/* ═══════════════════════════════════════════════════════
   MARSO — ПК Покровская
   Aesthetic: «Парфюмерный бутик» · тёплый крем + корпоративная
   бирюза + коралл · Fraunces (serif) / Jost (sans)
   Mobile-first приоритет: оффер + форма в первом экране.
   ═══════════════════════════════════════════════════════ */

:root {
  --teal:       #02b1af;
  --teal-dark:  #018a88;
  --teal-deep:  #0a3a39;
  --teal-ink:   #0c2b2a;
  --teal-soft:  #e3f1f0;
  --coral:      #e84c4c;
  --coral-dark: #d23b3b;
  --cream:      #f6f1e8;
  --cream-2:    #efe7d8;
  --ink:        #16302e;
  --muted:      #5d6b69;
  --line:       #e2dccf;
  --white:      #ffffff;

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Jost', sans-serif;

  --nav-h: 60px;
  --r:     14px;
  --r-lg:  26px;
  --r-pill:50px;
  --sh:    0 14px 40px rgba(12,43,42,0.12);
  --sh-sm: 0 6px 20px rgba(12,43,42,0.08);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
em  { font-style: normal; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.link { color: var(--teal); border-bottom: 1px solid rgba(2,177,175,0.4); }
.link:hover { color: var(--teal-dark); }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1.is-in { transition-delay: .1s; }
.reveal--d2.is-in { transition-delay: .2s; }
.reveal--d3.is-in { transition-delay: .3s; }

/* ════════════════════════════════ TOP BAR ══ */
.topbar {
  background: var(--teal-deep);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  padding: 8px 22px;
  font-size: .8rem; letter-spacing: .04em;
}
.topbar__text { opacity: .92; }
.topbar__link { color: #8fe6e4; font-weight: 500; white-space: nowrap; }
.topbar__link:hover { color: var(--white); }

/* ════════════════════════════════ HEADER ══ */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(246,241,232,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 22px rgba(12,43,42,0.10); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.logo__img { height: 36px; width: auto; }

.nav__list { display: flex; gap: 4px; }
.nav__link {
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  color: var(--ink); padding: 8px 13px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--teal); background: rgba(2,177,175,0.08); }

.burger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; padding: 6px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; inset: 0; background: var(--teal-deep); z-index: 300; padding-top: 88px; }
.mobile-menu.open { display: flex; flex-direction: column; align-items: center; }
.mobile-menu__close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 1.6rem; opacity: .7; }
.mobile-menu__close:hover { opacity: 1; }
.mobile-menu__list { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mobile-menu__link {
  font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: #fff;
  padding: 8px 30px; transition: color .2s;
}
.mobile-menu__link:hover { color: #8fe6e4; }

/* ══════════════════════════════════════ HERO ══ */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(110% 80% at 85% 10%, #0d4a48 0%, transparent 55%),
    radial-gradient(90% 90% at 10% 90%, #016664 0%, transparent 60%),
    linear-gradient(160deg, #0a3a39 0%, #06504e 55%, #02b1af 140%);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .16; mix-blend-mode: overlay;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px; align-items: center;
  padding: 46px 22px 60px;
}

.hero__main { max-width: 580px; min-width: 0; }
.hero__offer-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.offer-pill {
  font-weight: 600; border-radius: var(--r-pill); white-space: nowrap;
  display: inline-flex; align-items: center;
}
.offer-pill--sale {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700;
  background: var(--coral); color: #fff; padding: 4px 20px;
  box-shadow: 0 8px 22px rgba(232,76,76,0.4);
}
.offer-pill--gift {
  font-size: .82rem; letter-spacing: .03em; color: #d7f4f3;
  border: 1px solid rgba(255,255,255,0.32); padding: 7px 16px;
}

.hero__eyebrow {
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: #76e0de; display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before { content: ''; width: 30px; height: 1px; background: #76e0de; }

.hero__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem); line-height: 1.02;
  color: var(--white); letter-spacing: -.01em;
  margin: 14px 0 16px;
}
.hero__title em { color: #ffd5a8; font-style: italic; font-weight: 500; }

.hero__img-deco { display: none; }

.hero__sub {
  font-size: 1.05rem; color: #cfe6e5; max-width: 440px; margin-bottom: 22px;
}

/* timer */
.timer { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.timer__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.countdown { display: flex; align-items: center; gap: 6px; }
.countdown__box {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; padding: 7px 12px; min-width: 56px;
}
.countdown__box b { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: #fff; line-height: 1; }
.countdown__box i { font-style: normal; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px; }
.countdown__sep { color: rgba(255,255,255,.4); font-size: 1.4rem; font-weight: 700; }

/* form card */
.form-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 22px 22px 24px;
  box-shadow: var(--sh);
  position: relative;
}
.form-card::before {
  content: ''; position: absolute; top: 0; left: 26px; right: 26px; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--coral)); border-radius: 0 0 3px 3px;
}
.form-card__title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--teal-ink); margin-bottom: 16px; line-height: 1.25; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form__row { display: flex; gap: 10px; }
.form__input {
  width: 100%; height: 48px; flex: 1; min-width: 0;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 15px; font-size: .92rem; font-family: var(--sans);
  background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form__input::placeholder { color: #9aa5a3; }
.form__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(2,177,175,0.18); }
.form__check { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: var(--muted); cursor: pointer; }
.form__check input { width: 17px; height: 17px; accent-color: var(--teal); flex-shrink: 0; }

/* hero visual (desktop) */
.hero__visual { display: flex; justify-content: center; }
.hero__visual-frame { position: relative; width: 100%; max-width: 440px; }
.hero__img-main {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  filter: brightness(1.04) contrast(1.03);
}
.hero__disc {
  position: absolute; top: -22px; right: -16px;
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1;
  box-shadow: 0 14px 30px rgba(232,76,76,0.45);
  transform: rotate(-8deg);
}
.hero__disc small { font-family: var(--sans); font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  letter-spacing: .02em; border-radius: var(--r-pill); padding: 14px 38px;
  transition: background .2s, box-shadow .2s, transform .15s; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 10px 26px rgba(232,76,76,0.32); }
.btn--coral:hover { background: var(--coral-dark); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 10px 26px rgba(2,177,175,0.3); }
.btn--teal:hover { background: var(--teal-dark); }
.btn--full { width: 100%; }

/* ── SECTION BASE ── */
.section { padding: 84px 0; }
.section__head { text-align: center; margin-bottom: 52px; }
.section__label {
  display: inline-block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px; font-weight: 600;
}
.section__title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; color: var(--teal-ink);
  letter-spacing: -.01em;
}
.section__note { text-align: center; color: var(--muted); max-width: 660px; margin: -32px auto 48px; }
.section__note strong { color: var(--coral); }

/* ════════════════════════════════ STEPS ══ */
.section--steps { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 44px; }
.step {
  background: var(--white); border-radius: var(--r-lg); padding: 26px 22px;
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
  transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.step__num {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700;
  color: var(--teal); line-height: 1; display: block; margin-bottom: 12px;
}
.step::after {
  content: ''; position: absolute; right: -20px; bottom: -24px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(2,177,175,0.1), transparent 70%);
}
.step__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--teal-ink); margin-bottom: 6px; }
.step__text { font-size: .9rem; color: var(--muted); }

/* ════════════════════════════════ BENEFITS ══ */
.section--benefits { background: var(--cream-2); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.benefit {
  background: var(--white); border-radius: var(--r); padding: 26px 24px;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--sh-sm); }
.benefit__ic {
  width: 50px; height: 50px; border-radius: 14px;
  background: var(--teal-soft); display: flex; align-items: center; justify-content: center;
  padding: 11px; margin-bottom: 16px;
}
.benefit__ic img { width: 100%; height: 100%; object-fit: contain; }
.benefit__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--teal-ink); margin-bottom: 7px; }
.benefit__text { font-size: .9rem; color: var(--muted); }

/* ════════════════════════════════ PERFUMES ══ */
.section--perfumes { background: var(--cream); }
.perfumes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
.pcard {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.pcard__img { height: 210px; background-size: contain; background-position: center; background-repeat: no-repeat; background-color: var(--cream-2); }
.pcard__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__code { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--teal-ink); letter-spacing: .03em; }
.pcard__notes { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 3px; font-size: .82rem; }
.pcard__notes dt { font-weight: 600; color: var(--teal); text-transform: uppercase; font-size: .68rem; letter-spacing: .06em; padding-top: 2px; }
.pcard__notes dd { color: var(--muted); }
.pcard__type {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft); border-radius: var(--r-pill);
  padding: 5px 14px; align-self: flex-start; margin-top: auto;
}

/* ════════════════════════════════ COOPERATION ══ */
.section--coop { background: var(--teal-deep); }
.section--coop .section__label { color: #76e0de; }
.section--coop .section__title { color: #fff; }
.coop { max-width: 820px; margin: 0 auto; }
.coop__nav {
  display: flex; background: rgba(255,255,255,0.08); border-radius: var(--r-pill);
  padding: 5px; width: fit-content; margin: 0 auto 30px;
}
.coop__btn {
  font-size: .95rem; font-weight: 600; letter-spacing: .03em;
  padding: 11px 44px; border-radius: var(--r-pill); color: rgba(255,255,255,.7);
  transition: background .22s, color .22s;
}
.coop__btn--active { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(2,177,175,0.4); }
.coop__panel { display: none; background: var(--cream); border-radius: var(--r-lg); overflow: hidden; }
.coop__panel--active { display: flex; align-items: stretch; }
.coop__img { flex: 0 0 320px; background-size: cover; background-position: center; min-height: 300px; }
.coop__body { flex: 1; padding: 40px 44px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.coop__role { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.coop__title { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--teal-ink); }
.coop__text { font-size: .95rem; color: var(--muted); }

/* ════════════════════════════════ CONTACTS ══ */
.section--contacts { background: var(--cream-2); }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-btn {
  display: flex; align-items: center; gap: 13px;
  background: var(--teal); border: none; color: #fff;
  border-radius: var(--r-pill); padding: 14px 28px;
  font-weight: 600; font-size: .94rem; box-shadow: 0 8px 22px rgba(2,177,175,0.28);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.contact-btn:hover { transform: translateY(-3px); background: var(--teal-dark); box-shadow: var(--sh); }
.contact-btn__ic { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
svg.contact-btn__ic { stroke: #fff; }

/* ════════════════════════════════ FOOTER ══ */
.footer { background: var(--teal-deep); padding: 38px 0; }
.footer__inner { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.footer__logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer__info { font-size: .85rem; color: rgba(255,255,255,.78); line-height: 1.95; }
.footer__info .link { color: #fff; border-color: rgba(255,255,255,.4); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__visual { order: -1; max-width: 380px; margin: 0 auto; }
  .steps    { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .perfumes { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE (приоритет: оффер + форма в первом экране) ── */
@media (max-width: 767px) {
  :root { --nav-h: 54px; }
  .topbar { display: none; }
  .nav { display: none; }
  .burger { display: flex; }
  .logo__img { height: 28.8px; }   /* −20% от 36px */

  /* hero — компактно, картинка-деко справа от текста, форма видна */
  .hero__visual { display: none; }        /* большой визуал прячем */
  .hero__inner { padding: 16px 18px 30px; }
  .hero__main { max-width: none; }

  .hero__offer-row { gap: 8px; margin-bottom: 12px; }
  .offer-pill--sale { font-size: 1.25rem; padding: 3px 16px; }
  .offer-pill--gift { font-size: .74rem; padding: 6px 13px; }

  .hero__eyebrow { font-size: .66rem; letter-spacing: .16em; }
  .hero__eyebrow::before { width: 20px; }

  .hero__title { font-size: 1.95rem; margin: 10px 0 10px; }

  /* маленькая картинка духов обтекается текстом подзаголовка */
  .hero__img-deco {
    display: block; float: right;
    width: 96px; height: 96px; object-fit: contain;
    margin: 0 0 6px 12px; shape-outside: circle();
    animation: float 3s ease-in-out infinite;
  }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

  .hero__sub { font-size: .9rem; margin-bottom: 14px; max-width: none; }

  /* таймер на всю ширину контента */
  .timer { gap: 8px; margin-bottom: 14px; clear: both; }
  .timer__label { width: 100%; font-size: .64rem; margin-bottom: 2px; text-align: center; }
  .countdown { width: 100%; gap: 10px; justify-content: center; }
  .countdown__box { flex: 0 0 auto; min-width: 0; padding: 8px 22px; }
  .countdown__box b { font-size: 1.82rem; }
  .countdown__sep { display: none; }

  /* форма — двухколоночные строки, чтобы быть короче и попасть в экран */
  .form-card { padding: 16px 15px 18px; }
  .form-card__title { font-size: 1rem; margin-bottom: 12px; }
  .form { gap: 12px; }
  .form__row { flex-direction: column; gap: 12px; }   /* поля на всю ширину */
  .form__input { flex: none; width: 100%; height: 51px; font-size: 1.05rem; padding: 0 18px; border-radius: 14px; }
  .form__check { font-size: .82rem; margin-top: 2px; }
  .btn--full { padding: 17px; font-size: 1.02rem; }

  /* sections */
  .section { padding: 54px 0; }
  .section__head { margin-bottom: 34px; }
  .section__note { margin-top: -20px; margin-bottom: 32px; font-size: .9rem; }
  .steps    { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 20px 20px; }
  .step__num { font-size: 2.2rem; margin-bottom: 6px; }
  .benefits { grid-template-columns: 1fr; gap: 12px; }
  .perfumes { grid-template-columns: 1fr; gap: 14px; }
  .pcard__img { height: 200px; }

  .coop__panel--active { flex-direction: column; }
  .coop__img { flex: none; width: 100%; height: 200px; min-height: 0; }
  .coop__body { padding: 26px 22px; }
  .coop__title { font-size: 1.6rem; }
  .coop__btn { padding: 10px 30px; }

  .contacts { flex-direction: column; }
  .contact-btn { justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; gap: 16px; }
}

/* ── совсем узкие телефоны ── */
@media (max-width: 360px) {
  .hero__title { font-size: 1.7rem; }
  .hero__img-deco { width: 84px; height: 84px; }
  .form__row { gap: 8px; }
  .offer-pill--sale { font-size: 1.1rem; }
  .countdown__box { min-width: 44px; padding: 5px 8px; }
  .countdown__box b { font-size: 1.62rem; }
}
