/* ==============================================
   Цветочная подписка — Цветомания
   /tsvetochnaya-podpiska/css/subscription.css
   ============================================== */

:root {
  --red: #A11826;
  --red-d: #8A1420;
  --red-bg: #FCEDEF;
  --dark: #191817;
  --white: #FFF;
  --cream: #FAF7F4;
  --warm: #F5F0EB;
  --gray: #6B6560;
  --glt: #9E9890;
  --brd: #E8E4E0;
  --h: 'Unbounded', sans-serif;
  --b: 'Onest', sans-serif;
  --c: 'Caveat', cursive;
}

/* ── Reset (scoped to .cp-page) ── */
.cp-page {
  font-family: var(--b);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}
.cp-page *,
.cp-page *::before,
.cp-page *::after {
  box-sizing: border-box;
}
.cp-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ══════════ HERO ══════════ */
.cp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}
.cp-hero-l {
  background: var(--red);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.cp-hero-l::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}
.cp-htag {
  font-family: var(--h);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  opacity: .55;
  margin-bottom: 20px;
}
.cp-hero h1 {
  font-family: var(--h);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-transform: lowercase;
  margin-bottom: 8px;
}
.cp-hhand {
  font-family: var(--c);
  font-size: clamp(24px, 2.6vw, 34px);
  opacity: .75;
  margin-bottom: 24px;
  transform: rotate(-1.5deg);
  display: inline-block;
}
.cp-hdesc {
  font-size: 14.5px;
  line-height: 1.7;
  opacity: .65;
  max-width: 380px;
  margin-bottom: 32px;
}
.cp-hbtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cp-btn-w {
  background: var(--white);
  color: var(--red);
  border: none;
  padding: 13px 28px;
  border-radius: 4px;
  font-family: var(--h);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .3s;
  text-decoration: none;
  display: inline-block;
}
.cp-btn-w:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}
.cp-btn-wo {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .3);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--h);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .3s;
  text-decoration: none;
  display: inline-block;
}
.cp-btn-wo:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
}
.cp-hnums {
  display: flex;
  gap: 36px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.cp-nv {
  font-family: var(--h);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.cp-nl {
  font-size: 11px;
  opacity: .4;
  margin-top: 3px;
}
.cp-hero-r {
  position: relative;
  overflow: hidden;
}
.cp-hero-r img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-hfloat {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cp-hfloat-i {
  width: 36px;
  height: 36px;
  background: var(--red-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.cp-hfloat-t {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.cp-hfloat-s {
  font-size: 10.5px;
  color: var(--glt);
  font-weight: 400;
}

/* ══════════ GALLERY STRIP ══════════ */
.cp-gstrip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  padding: 3px 0;
}
.cp-gstrip img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .35s;
}
.cp-gstrip img:hover {
  transform: scale(1.04);
}

/* ══════════ SECTION UTILS ══════════ */
.cp-stag {
  font-family: var(--h);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--red);
  margin-bottom: 12px;
}
.cp-sh {
  font-family: var(--h);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.04em;
  text-transform: lowercase;
  margin-bottom: 8px;
  max-width: 520px;
}
.cp-shand {
  font-family: var(--c);
  font-size: 24px;
  color: var(--red);
  margin-bottom: 40px;
  transform: rotate(-1deg);
  display: inline-block;
}
.cp-sec {
  padding: 88px 48px;
}

/* ══════════ HOW ══════════ */
.cp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cp-st {
  padding: 24px 20px;
  border: 1px solid var(--brd);
  border-radius: 6px;
  transition: all .3s;
}
.cp-st:hover {
  border-color: var(--red);
  box-shadow: 0 8px 28px rgba(161, 24, 38, .04);
}
.cp-stn {
  font-family: var(--h);
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  opacity: .1;
  line-height: 1;
  margin-bottom: 14px;
}
.cp-stt {
  font-family: var(--h);
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
  margin-bottom: 6px;
}
.cp-std {
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray);
}

/* ══════════ PRICING ══════════ */
.cp-pricing {
  background: var(--cream);
}
.cp-phead {
  text-align: center;
  margin-bottom: 48px;
}
.cp-phead .cp-sh {
  margin: 0 auto 6px;
  text-align: center;
}
.cp-psub {
  font-size: 13.5px;
  color: var(--gray);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.55;
}
.cp-pgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1140px;
  margin: 0 auto;
}
.cp-pc {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid transparent;
  transition: all .35s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cp-pc:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .06);
}
.cp-pc.pop {
  border-color: var(--red);
}
.cp-pc.pop::after {
  content: 'хит';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--h);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 3;
}

/* ══════════ MANUAL SLIDER ══════════ */
.cp-slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.cp-slider-track {
  display: flex;
  height: 100%;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.cp-slider-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.cp-slider-arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: all .2s;
  z-index: 2;
  opacity: 0;
}
.cp-slider:hover .cp-slider-arr {
  opacity: 1;
}
.cp-slider-arr:hover {
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  transform: translateY(-50%) scale(1.08);
}
.cp-slider-arr.prev {
  left: 8px;
}
.cp-slider-arr.next {
  right: 8px;
}
.cp-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.cp-slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .25s;
}
.cp-slider-dot.active {
  background: var(--white);
  transform: scale(1.2);
}

/* ── Card body ── */
.cp-pcb {
  padding: 22px 18px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.cp-pcsz {
  font-family: var(--h);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1px;
}
.cp-pclbl {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--glt);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.cp-pcpr {
  font-family: var(--h);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 2px;
}
.cp-pcpr span {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
}
.cp-pcper {
  font-size: 11px;
  color: var(--glt);
  margin-bottom: 14px;
}
.cp-pcln {
  height: 1px;
  background: var(--brd);
  margin-bottom: 12px;
}
.cp-pcul {
  list-style: none;
  flex-grow: 1;
  margin-bottom: 18px;
  padding: 0;
}
.cp-pcul li {
  font-size: 12px;
  color: var(--gray);
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}
.cp-pcul li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.cp-btn-r {
  width: 100%;
  padding: 11px;
  border-radius: 4px;
  font-family: var(--h);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .3s;
  background: var(--red);
  color: var(--white);
  border: 1.5px solid var(--red);
  text-decoration: none;
  display: block;
  text-align: center;
}
.cp-btn-r:hover {
  background: var(--red-d);
  border-color: var(--red-d);
}
.cp-btn-ro {
  width: 100%;
  padding: 11px;
  border-radius: 4px;
  font-family: var(--h);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .3s;
  background: var(--white);
  color: var(--red);
  border: 1.5px solid var(--red);
  text-decoration: none;
  display: block;
  text-align: center;
}
.cp-btn-ro:hover {
  background: var(--red);
  color: var(--white);
}

/* ══════════ WEEKLY ══════════ */
.cp-wgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.cp-wc {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--brd);
  transition: all .3s;
}
.cp-wc:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .05);
  transform: translateY(-3px);
}
.cp-wimg {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.cp-wb {
  padding: 18px;
}
.cp-ww {
  font-family: var(--h);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 5px;
}
.cp-wn {
  font-family: var(--h);
  font-size: 13px;
  font-weight: 700;
  text-transform: lowercase;
  margin-bottom: 5px;
}
.cp-wd {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
}

/* ══════════ MOSAIC ══════════ */
.cp-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 3px;
  padding: 3px 0;
}
.cp-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.cp-mosaic img:hover {
  transform: scale(1.03);
}
.cp-mosaic img:first-child {
  grid-row: 1 / 3;
}

/* ══════════ SPLIT ══════════ */
.cp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.cp-split--reverse {
  direction: rtl;
}
.cp-split--reverse > * {
  direction: ltr;
}
.cp-simg {
  overflow: hidden;
}
.cp-simg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-stxt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px;
}
.cp-stxt p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 12px;
}
.cp-cta-box {
  background: var(--red);
  border-radius: 6px;
  padding: 22px;
  margin-top: 20px;
  color: var(--white);
}
.cp-cta-box-t {
  font-family: var(--h);
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
  margin-bottom: 5px;
}
.cp-cta-box p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--white);
  opacity: .75;
  margin: 0;
}
.cp-cta-box .cp-ch {
  font-family: var(--c);
  font-size: 18px;
  opacity: .6;
  display: block;
  margin-top: 6px;
  transform: rotate(-1deg);
}

/* ══════════ DELIVERY ══════════ */
.cp-del-sec {
  background: var(--warm);
}
.cp-del-g {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}
.cp-del-g > div:first-child p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gray);
  margin-top: 12px;
}
.cp-dc {
  border: 1px solid var(--brd);
  border-radius: 6px;
  padding: 24px;
  background: var(--white);
  transition: all .3s;
}
.cp-dc:hover {
  border-color: var(--red);
  box-shadow: 0 6px 24px rgba(161, 24, 38, .04);
}
.cp-dci {
  font-size: 22px;
  margin-bottom: 10px;
}
.cp-dct {
  font-family: var(--h);
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
  margin-bottom: 5px;
}
.cp-dcd {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
}

/* ══════════ FAQ ══════════ */
.cp-fwrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
}
.cp-fi {
  border-bottom: 1px solid var(--brd);
  padding: 16px 0;
}
.cp-fq {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color .2s;
}
.cp-fq:hover {
  color: var(--red);
}
.cp-fq::after {
  content: '+';
  font-family: var(--h);
  font-size: 16px;
  font-weight: 400;
  color: var(--red);
  flex-shrink: 0;
  transition: transform .3s;
}
.cp-fi.open .cp-fq::after {
  transform: rotate(45deg);
}
.cp-fa {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s, padding .4s;
}
.cp-fi.open .cp-fa {
  max-height: 200px;
  padding-top: 10px;
}
.cp-fa p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
}

/* ══════════ CTA SECTION ══════════ */
.cp-cta-sec {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}
.cp-cta-sec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' fill='none' stroke='white' stroke-width='.3' opacity='.04'%3E%3Cpath d='M50 130C50 90 30 80 40 50 45 35 50 30 50 10'/%3E%3Cpath d='M50 70C60 60 75 65 80 55'/%3E%3C/svg%3E") repeat;
  background-size: 120px;
  pointer-events: none;
}
.cp-cta-in {
  position: relative;
  z-index: 1;
}
.cp-cta-sec .cp-sh {
  color: #fff;
  margin: 0 auto 6px;
  text-align: center;
  max-width: 520px;
}
.cp-ctah {
  font-family: var(--c);
  font-size: 26px;
  opacity: .55;
  margin-bottom: 20px;
  display: block;
  transform: rotate(-1deg);
}
.cp-ctap {
  font-size: 14px;
  opacity: .55;
  max-width: 380px;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.cp-ctab {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ══════════ RESPONSIVE — tablet ══════════ */
@media (max-width: 1024px) {
  .cp-hero,
  .cp-split {
    grid-template-columns: 1fr;
  }
  .cp-split--reverse {
    direction: ltr;
  }
  .cp-hero-r {
    min-height: auto;
  }
  .cp-hero-r img {
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
  }
  .cp-steps,
  .cp-pgrid,
  .cp-wgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cp-del-g,
  .cp-fwrap {
    grid-template-columns: 1fr;
  }
  .cp-gstrip {
    grid-template-columns: repeat(3, 1fr);
  }
  .cp-gstrip img {
    height: auto;
    aspect-ratio: 4/3;
  }
  .cp-gstrip img:nth-child(n+4) {
    display: none;
  }
  .cp-slider {
    height: auto;
    aspect-ratio: 4/3;
  }
  .cp-slider .cp-slider-arr {
    opacity: .8;
  }
  .cp-wimg {
    height: auto;
    aspect-ratio: 4/3;
  }
  .cp-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .cp-mosaic img {
    aspect-ratio: 4/3;
    height: auto;
  }
  .cp-mosaic img:first-child {
    grid-row: auto;
  }
  .cp-simg {
    aspect-ratio: 4/3;
  }
  .cp-simg img {
    height: auto;
    aspect-ratio: 4/3;
  }
  .cp-sec {
    padding: 64px 24px;
  }
  .cp-stxt {
    padding: 48px 24px;
  }
  .cp-cta-sec {
    padding: 64px 24px;
  }
}

/* ══════════ RESPONSIVE — mobile ══════════ */
@media (max-width: 640px) {
  .cp-steps,
  .cp-pgrid,
  .cp-wgrid {
    grid-template-columns: 1fr;
  }
  .cp-hnums {
    flex-direction: column;
    gap: 14px;
  }
  .cp-hbtns,
  .cp-ctab {
    flex-direction: column;
    align-items: stretch;
  }
  .cp-gstrip {
    grid-template-columns: 1fr 1fr;
  }
  .cp-gstrip img:nth-child(n+3) {
    display: none;
  }
  .cp-mosaic {
    grid-template-columns: 1fr;
  }
  .cp-hero-l {
    padding: 40px 20px;
  }
}
