/* =========================================================
   L'Amour Studio — сказочные онлайн-приглашения
   ========================================================= */

:root {
  --bg: #FBF7F1;
  --bg-2: #F6EEE3;
  --pearl: #FFFDFA;
  --taupe: #6F5A4D;
  --taupe-2: #8A766A;
  --text: #7C6C62;
  --gold: #B8955E;
  --gold-2: #D9C196;
  --gold-3: #9A7845;
  --gold-line: rgba(184, 149, 94, .42);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Great Vibes", "Marck Script", cursive;

  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius: 24px;
  --shadow: 0 34px 70px -38px rgba(122, 92, 52, .34), 0 6px 18px -10px rgba(122, 92, 52, .14);
  --shadow-hover: 0 46px 90px -40px rgba(122, 92, 52, .45), 0 10px 26px -12px rgba(122, 92, 52, .18);
  --gold-grad: linear-gradient(120deg, #A9884F 0%, #CBAE78 32%, #EAD7AE 50%, #C4A570 68%, #A2814A 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; color: var(--taupe); line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--lg { width: 54px; height: 54px; stroke-width: 1.15; color: var(--gold); }

/* ---------- Общий фон ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 12% 8%, rgba(255, 255, 255, .95), transparent 62%),
    radial-gradient(900px 640px at 88% 28%, rgba(246, 226, 200, .55), transparent 62%),
    radial-gradient(1000px 760px at 45% 105%, rgba(242, 228, 210, .7), transparent 62%),
    linear-gradient(180deg, #FCF9F4 0%, #F8F1E7 100%);
}

/* текстура бумаги */
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .35  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* мягкие лучи света */
.ambient__ray {
  position: absolute;
  top: -30%;
  width: 34vw;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75) 50%, transparent);
  filter: blur(28px);
  transform: rotate(24deg);
  opacity: .55;
  animation: ray 16s var(--ease-io) infinite alternate;
}
.ambient__ray--1 { left: 8%; }
.ambient__ray--2 { left: 48%; width: 18vw; opacity: .4; animation-duration: 21s; animation-delay: -6s; }
.ambient__ray--3 { left: 78%; width: 26vw; opacity: .45; animation-duration: 18s; animation-delay: -11s; }

@keyframes ray {
  0%   { transform: rotate(24deg) translateX(-4vw); opacity: .25; }
  100% { transform: rotate(20deg) translateX(5vw);  opacity: .7; }
}

.particles {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: 100%;
  height: 100lvh; /* высота не прыгает, когда прячется адресная строка телефона */
  z-index: 45; /* под шапкой: лепесток не закрывает меню */
  pointer-events: none;
}

/* ---------- Заставка ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, #FFFDF9, #F6EEE3 75%);
  transition: opacity 1.1s var(--ease), visibility 1.1s;
  /* запасной вариант, если скрипт не загрузится */
  animation: preloader-out 1s 4s forwards;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { text-align: center; color: var(--gold); }
.preloader__mark svg { width: 120px; height: 120px; margin: 0 auto; overflow: visible; }
.preloader__ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s var(--ease-io) .1s forwards;
  transform-origin: center;
  transform: rotate(-90deg);
}
.preloader__ring--inner { stroke-width: .6; animation-delay: .35s; }
.preloader__mark text {
  font-family: var(--script);
  font-size: 58px;
  fill: currentColor;
  opacity: 0;
  animation: fade-in 1.2s ease .6s forwards;
}
.preloader__mark p {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: .14em;
  color: var(--taupe);
  opacity: 0;
  animation: fade-up 1.2s var(--ease) .8s forwards;
}
.preloader__mark p span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .6em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes preloader-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 36px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s, background-color .4s, border-color .4s;
}
.btn .icon { width: 20px; height: 20px; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 13.5px; }

.btn--gold {
  color: #fff;
  background: var(--gold-grad);
  background-size: 200% 100%;
  background-position: 0% 0;
  box-shadow: 0 18px 34px -16px rgba(150, 112, 58, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
  text-shadow: 0 1px 1px rgba(120, 88, 40, .25);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-position 1.2s var(--ease);
}
/* блик, пробегающий по золотой кнопке */
.btn--gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg);
  animation: shine 5.5s ease-in-out 2.5s infinite;
  z-index: -1;
}
.btn--gold:hover {
  transform: translateY(-3px);
  background-position: 100% 0;
  box-shadow: 0 26px 44px -18px rgba(150, 112, 58, .85), inset 0 1px 0 rgba(255, 255, 255, .5);
}

@keyframes shine {
  0%, 70% { left: -60%; }
  100% { left: 130%; }
}

.btn--ghost {
  color: var(--taupe);
  background: rgba(255, 253, 249, .55);
  border: 1px solid var(--gold-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold-grad);
  opacity: 0;
  transform: scale(.6);
  border-radius: inherit;
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.btn--ghost:hover { color: #fff; border-color: transparent; transform: translateY(-3px); box-shadow: 0 20px 36px -18px rgba(150, 112, 58, .7); }
.btn--ghost:hover::before { opacity: 1; transform: scale(1); }

.btn-round {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: var(--gold-grad);
  box-shadow: 0 18px 34px -16px rgba(150, 112, 58, .75);
  transition: transform .5s var(--ease);
}
.btn-round .icon { width: 26px; height: 26px; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(120, 88, 40, .45)); }
.btn-round:hover { transform: translateY(-3px) rotate(-8deg); }

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color .6s var(--ease), box-shadow .6s var(--ease), padding .6s var(--ease);
  padding: 22px 0;
}
.header.is-scrolled {
  padding: 10px 0;
  background: rgba(251, 247, 241, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(184, 149, 94, .18), 0 18px 40px -30px rgba(122, 92, 52, .35);
}
.header__inner { display: flex; align-items: center; gap: 40px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--taupe); }
.logo__mark { width: 50px; height: 50px; color: var(--gold); }
.logo__mark svg { width: 100%; height: 100%; }
.logo__mark circle { fill: none; stroke: currentColor; stroke-width: 1; }
.logo__mark circle + circle { stroke-width: .6; }
.logo__mark text { font-family: var(--script); font-size: 34px; fill: currentColor; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font-family: var(--serif); font-weight: 500; font-size: 27px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.logo__text small { font-size: 10px; letter-spacing: .62em; text-transform: uppercase; color: var(--gold); margin-top: 5px; padding-left: 2px; }

/* меню по центру шапки, как на референсе */
.nav { display: flex; gap: 40px; margin: 0 auto; }
.nav a {
  position: relative;
  white-space: nowrap; /* «Как это работает» не переносится на две строки */
  font-size: 15px;
  font-weight: 400;
  color: var(--taupe-2);
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav a:hover { color: var(--taupe); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__cta { margin-left: 0; }
/* вход в личный кабинет — тихая ссылка рядом с кнопкой */
.header__login {
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--taupe-2);
  white-space: nowrap;
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.header__login:hover { color: var(--taupe); border-color: var(--gold); }

.burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: rgba(255, 253, 249, .6);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.3px;
  background: var(--taupe);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  background: rgba(251, 247, 241, .94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 34px; color: var(--taupe); }
.mobile-menu nav > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.mobile-menu.is-open nav > * { opacity: 1; transform: none; }
.mobile-menu.is-open nav > *:nth-child(2) { transition-delay: .06s; }
.mobile-menu.is-open nav > *:nth-child(3) { transition-delay: .12s; }
.mobile-menu.is-open nav > *:nth-child(4) { transition-delay: .18s; }
.mobile-menu.is-open nav > *:nth-child(5) { transition-delay: .24s; margin-top: 14px; }

/* ---------- Общие элементы блоков ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold-text {
  font-style: italic;
  background: linear-gradient(100deg, #A6844C 0%, #C9A86F 25%, #EBD8AF 42%, #C6A46B 58%, #A6844C 80%, #C9A86F 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-flow 7s linear infinite;
  padding-right: .06em;
}
@keyframes gold-flow { to { background-position: -250% 0; } }

.section {
  position: relative;
  padding: 140px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 70px;
  text-align: center;
}
.section-head h2 {
  margin-top: 16px;
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 500;
  letter-spacing: -.005em;
}
.section-lead {
  margin-top: 6px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 18px;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: "";
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.divider::after { transform: scaleX(-1); }
.divider .icon { width: 18px; height: 18px; stroke-width: 1.3; }

.section-cta { display: flex; justify-content: center; margin-top: 64px; }

.note {
  margin-top: 46px;
  text-align: center;
  font-size: 15px;
  color: var(--taupe-2);
}
.note span { position: relative; display: inline-flex; align-items: center; gap: 18px; }
.note span::before, .note span::after { content: ""; width: 60px; height: 1px; background: var(--gold-line); }

/* Карточка с двойной золотой рамкой, как на референсах:
   жемчужно-белая, с белой кромкой, тонкой золотой рамкой внутри и мягкой тенью */
.card {
  --card-edge: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 0 0 1px rgba(214, 196, 168, .28);
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFBF8 60%, #F9F6F0 100%);
  border-radius: var(--radius);
  box-shadow: var(--card-edge), 0 36px 60px -36px rgba(120, 92, 60, .34), 0 10px 22px -12px rgba(120, 92, 60, .14);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 149, 104, .55);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
  transition: border-color .6s, inset .8s var(--ease);
}
/* световая полоса при наведении */
.card::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -80%;
  width: 50%;
  height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 2;
}
.card:hover { transform: translateY(-10px); box-shadow: var(--card-edge), var(--shadow-hover); }
/* заголовки и иконки в карточках — тёмные и тёпло-золотые, как в блоке «Волшебство» */
.card h3 { color: #463C35; }
.card .icon--lg { color: #B8966A; }
.card:hover::before { border-color: rgba(184, 149, 94, .75); inset: 8px; }
.card:hover::after { animation: card-shine 1.1s var(--ease) forwards; }
@keyframes card-shine { to { left: 140%; } }

/* Появление при прокрутке */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { opacity: 1; animation: reveal 1.4s var(--ease) var(--d, 0s) backwards; }
@keyframes reveal {
  from { opacity: 0; transform: translate3d(0, 46px, 0) scale(.98); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Золотые веточки в углах — прорисовываются линией */
.sprig {
  position: absolute;
  width: 230px;
  height: 230px;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
/* веточка растёт из угла: в символе её основание внизу слева */
.sprig--tl { top: 30px; left: 20px; transform: scaleY(-1); }
.sprig--tr { top: 30px; right: 20px; transform: scale(-1, -1); }
.sprig--bl { bottom: 30px; left: 20px; }
.sprig--br { bottom: 30px; right: 20px; transform: scaleX(-1); }
.sprig--big { width: 300px; height: 300px; }
.js .sprig { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.6s var(--ease-io) .2s; }
.js .section.is-in .sprig { stroke-dashoffset: 0; }

.section > .container { position: relative; z-index: 1; }

/* Общий фон блоков 2–7: одно длинное облачное полотно «Фон блоков Full»
   растянуто на все блоки сразу */
.blocks { position: relative; isolation: isolate; overflow-x: clip; }
.blocks::before {
  content: "";
  position: absolute;
  /* облака заходят под низ главного экрана: его картинка растворяется прямо в них,
     без бледной полосы между блоками */
  inset: -300px 0 -280px;
  z-index: -1;
  /* ?v=4 — чтобы браузер не показывал старую версию картинки из кеша */
  background: url("../images/blocks/фон блоков full.jpg?v=4") center top / 100% 100% no-repeat;
  /* мягкий переход к первому и последнему блоку */
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 160px, #000 calc(100% - 480px), transparent 100%);
  mask: linear-gradient(180deg, transparent 0, #000 160px, #000 calc(100% - 480px), transparent 100%);
}
/* Гирлянды роз на стыках блоков: слева и справа (зеркально), по центру стыка */
.blocks > .section ~ .section::before,
.blocks > .section ~ .section::after {
  content: "";
  position: absolute;
  top: 0;
  z-index: 0;
  width: clamp(198px, 26.9vw, 503px);
  aspect-ratio: 1281 / 3072;
  translate: 0 -50%;
  pointer-events: none;
  background: url("../images/blocks/flowers-left.webp?v=2") center / contain no-repeat;
  transform-origin: 0 50%;
}
.blocks > .section ~ .section::after {
  left: auto;
  right: 0;
  background-image: url("../images/blocks/flowers-right.webp?v=2");
  transform-origin: 100% 50%;
}
.blocks > .section ~ .section::before { left: 0; }

/* распускаются от края, когда стык попадает в экран, потом еле заметно покачиваются */
.js .blocks > .section ~ .section::before { opacity: 0; transform: translateX(-35%) rotate(-6deg); filter: blur(6px); }
.js .blocks > .section ~ .section::after { opacity: 0; transform: translateX(35%) rotate(6deg); filter: blur(6px); }
.blocks > .section ~ .section.is-in::before,
.blocks > .section ~ .section.is-in::after {
  animation: cta-flowers-in 2.4s var(--ease) .1s forwards, cta-sway 9s ease-in-out 2.5s infinite alternate;
}
.blocks > .section ~ .section.is-in::after { animation-delay: .25s, 2.8s; animation-duration: 2.4s, 10s; }

/* Мягкие облака на стыке главного экрана и второго блока: два слоя медленно плывут навстречу */
.cloud-band {
  position: relative;
  z-index: 2;
  height: 0;
  pointer-events: none;
  --band-h: clamp(200px, 24vw, 540px);
  --tile: calc(var(--band-h) * 8.541); /* ширина повтора картинки при такой высоте */
}
.cloud-band i {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100% + var(--tile));
  height: var(--band-h);
  translate: 0 -46%;
  background: url("../images/blocks/clouds-band.webp") left center / auto 100% repeat-x;
  opacity: .92;
  animation: cloud-drift 120s linear infinite;
}
.cloud-band i + i {
  translate: 0 -26%;
  opacity: .6;
  scale: 1 .8;
  animation-duration: 180s;
  animation-direction: reverse;
}
.cloud-band { overflow-x: clip; }
/* такие же облака на стыке отзывов и финального блока; лежат выше стыка, чтобы не закрывать заголовок */
.cloud-band.cloud-band--cta i { translate: 0 -72%; }
.cloud-band.cloud-band--cta i + i { translate: 0 -56%; }
@keyframes cloud-drift { to { transform: translateX(calc(var(--tile) * -1)); } }

/* Тонкая золотая линия со светом на стыке блоков */
.block-line {
  position: relative;
  z-index: 2;
  height: 1px;
  margin-top: -1px;
  pointer-events: none;
  --line-w: min(88vw, 1280px);
}
/* сама линия: тает к краям */
.block-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--line-w);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 104, .35) 22%, rgba(226, 199, 142, .75) 50%, rgba(196, 163, 104, .35) 78%, transparent);
  transform-origin: 50% 50%;
}
/* мягкое свечение в центре */
.block-line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--line-w) * .55);
  height: 46px;
  translate: -50% -50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 236, 196, .55), rgba(255, 236, 196, .18) 45%, transparent 75%);
  filter: blur(4px);
  opacity: .7;
}
/* блик, который изредка пробегает по линии */
.block-line span {
  position: absolute;
  left: 50%;
  top: -1px;
  width: var(--line-w);
  height: 3px;
  translate: -50% 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.block-line span::before {
  content: "";
  position: absolute;
  top: 0;
  left: -18%;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 249, 232, .95), transparent);
  filter: blur(.6px);
  animation: line-glint 8s ease-in-out infinite;
}
@keyframes line-glow-in { to { opacity: .45; } }
@keyframes line-breathe { from { opacity: .45; } to { opacity: .9; } }
@keyframes line-glint { 0%, 60% { left: -18%; } 100% { left: 100%; } }

/* при появлении линия прорисовывается от центра к краям */
.js .block-line[data-reveal] { opacity: 1; }
.js .block-line[data-reveal].is-in { animation: none; }
.js .block-line::before { transform: scaleX(0); transition: transform 2.2s var(--ease-io) .2s; }
.js .block-line.is-in::before { transform: scaleX(1); }
.js .block-line span { opacity: 0; transition: opacity 1.6s ease 1.2s; }
.js .block-line.is-in span { opacity: 1; }
.js .block-line::after { opacity: 0; }
.js .block-line.is-in::after { animation: line-glow-in 1.6s ease 1s forwards, line-breathe 6s ease-in-out 2.6s infinite alternate; }

/* на новом фоне уже есть цветы — золотые веточки в углах больше не нужны */
.blocks .sprig { display: none; }

/* ---------- 1. Главный экран ---------- */

.hero {
  position: relative;
  z-index: 1; /* поверх облаков второго блока, которые заходят под его низ */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 120px;
  overflow: hidden;
}

/* обёртка не двигается: её маска плавно растворяет низ картинки в облаках второго блока */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  container-type: size;
  -webkit-mask: linear-gradient(180deg, #000 60%, rgba(0, 0, 0, .55) 80%, transparent 100%);
  mask: linear-gradient(180deg, #000 60%, rgba(0, 0, 0, .55) 80%, transparent 100%);
}
.hero__bg {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* Сцена в пропорциях фона (2560×1429): заполняет экран как cover и прижата вправо,
   чтобы конверт всегда был виден. Все слои внутри — в процентах от картинки. */
.hero__stage {
  position: absolute;
  right: 0;
  top: 50%;
  width: max(100cqw, 100cqh * 1.7915);
  aspect-ratio: 2560 / 1429;
  translate: 0 -50%;
}
.hero__stage > * { position: absolute; }
.hero__img { inset: 0; width: 100%; height: 100%; display: block; }

/* закрытый конверт с печатью лежит поверх открытого */
.hero__closed { left: 66.04%; top: 12.5%; width: 23.13%; }
.hero__closed img { display: block; width: 100%; height: auto; }
.hero__seal-glow {
  position: absolute;
  left: 39%;
  top: 87%;
  width: 34%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  /* тёплый золотой ореол вокруг печати */
  background: radial-gradient(closest-side, rgba(255, 246, 222, .2) 30%, rgba(236, 196, 120, .55) 55%, rgba(236, 196, 120, .18) 72%, transparent 85%);
  filter: blur(2px);
  opacity: 0;
}

/* свет из раскрытого конверта */
.hero__mouth-glow {
  left: 76%;
  top: 46%;
  width: 26%;
  aspect-ratio: 1.3;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 240, 205, .9), rgba(255, 228, 175, .35) 50%, transparent 80%);
  mix-blend-mode: screen;
  opacity: 0;
}
.hero__flash {
  left: 76%;
  top: 46%;
  width: 40%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #FFFDF6, rgba(255, 240, 205, .7) 35%, transparent 75%);
  opacity: 0;
  pointer-events: none;
}

/* лучи света сверху справа мягко переливаются */
.hero__rays {
  right: -6%;
  top: -18%;
  width: 52%;
  aspect-ratio: 1;
  background: repeating-conic-gradient(from 200deg at 100% 0%, rgba(255, 246, 225, .55) 0deg 3deg, transparent 3deg 9deg);
  -webkit-mask: radial-gradient(circle at 100% 0%, #000 10%, transparent 70%);
  mask: radial-gradient(circle at 100% 0%, #000 10%, transparent 70%);
  filter: blur(6px);
  mix-blend-mode: screen;
  opacity: .5;
  transform-origin: 100% 0;
  animation: hero-rays 9s ease-in-out infinite alternate;
}
@keyframes hero-rays {
  from { opacity: .3; rotate: -2deg; }
  to   { opacity: .75; rotate: 2deg; }
}

/* три голубя над конвертом, как на референсе */
.hero__trio { left: 69.5%; top: 25%; width: 14.5%; height: auto; }

.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 720px; }

.hero__eyebrow { margin-bottom: 26px; }
.hero__title {
  font-size: clamp(48px, 5.5vw, 92px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.012em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .1em .1em 0; margin-bottom: -.06em; }
.hero__title .line > span { display: block; }
.hero__title .gold-text { font-weight: 500; }

.hero__lead {
  margin-top: 28px;
  font-size: clamp(17px, 1.5vw, 24px);
  line-height: 1.5;
  color: var(--taupe-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 40px; }
/* на референсе кнопки главного экрана — прямоугольники со скруглением */
.hero__actions .btn { border-radius: 10px; min-height: 60px; padding: 0 34px; font-size: 16px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 40px;
  font-size: 15px;
  color: var(--taupe-2);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero__facts .icon { width: 20px; height: 20px; color: var(--gold); stroke-width: 1.5; }
/* низкие экраны ноутбуков: первый экран целиком помещается в окно */
@media (min-width: 761px) and (max-height: 780px) {
  .hero { padding: 112px 0 64px; }
  .hero__actions, .hero__facts { margin-top: 30px; }
}
.icon--fill { fill: currentColor; stroke: none; }

/* без скрипта показываем уже раскрытый конверт с голубями */
.hero__closed { display: none; }
.js .hero__closed { display: block; }

/* ---------- Вступительная анимация главного экрана (после заставки) ---------- */
/* сцена проявляется целиком, а не по слоям — иначе в первую секунду
   закрытый конверт проступает отдельным пятном поверх полупрозрачного фона */
.js .hero__stage { opacity: 0; }
.js .hero__trio { opacity: 0; }
.js .hero__title .line > span { transform: translateY(110%); }
.js .hero__eyebrow,
.js .hero__lead,
.js .hero__actions,
.js .hero__facts,
.js .header { opacity: 0; }

.is-loaded .hero__stage { animation: fade-in 1.6s ease forwards; }
.is-loaded .hero__title .line > span { animation: line-up 1.5s var(--ease) forwards; }
.is-loaded .hero__title .line:nth-child(1) > span { animation-delay: .55s; }
.is-loaded .hero__title .line:nth-child(2) > span { animation-delay: .7s; }
.is-loaded .hero__title .line:nth-child(3) > span { animation-delay: .85s; }
.is-loaded .hero__eyebrow { animation: fade-up 1.3s var(--ease) .4s forwards; }
.is-loaded .hero__lead    { animation: fade-up 1.4s var(--ease) 1.1s forwards; }
.is-loaded .hero__actions { animation: fade-up 1.4s var(--ease) 1.25s forwards; }
.is-loaded .hero__facts   { animation: fade-up 1.4s var(--ease) 1.4s forwards; }
.is-loaded .header        { animation: header-in 1.4s var(--ease) .3s forwards; }

/* 1) печать загорается, 2) конверт раскрывается со вспышкой, 3) появляются голуби */
.is-loaded .hero__seal-glow  { animation: seal-glow 1.6s ease-in-out 1.6s forwards; }
.is-loaded .hero__closed     { animation: envelope-open 1.4s var(--ease) 2.8s forwards; }
.is-loaded .hero__flash      { animation: envelope-flash 2s ease-out 2.8s forwards; }
.is-loaded .hero__mouth-glow { animation: fade-in 1.6s ease 3s forwards, mouth-glow 5s ease-in-out 4.6s infinite alternate; }
.is-loaded .hero__trio       { animation: trio-rise 2.8s var(--ease) 3.1s forwards, trio-hover 6s ease-in-out 5.9s infinite alternate; }

@keyframes seal-glow {
  0%   { opacity: 0; transform: scale(.6); }
  60%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: .9; transform: scale(1); }
}
@keyframes envelope-open {
  0%   { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.04) translateY(-1%); filter: blur(5px); visibility: hidden; }
}
@keyframes envelope-flash {
  0%   { opacity: 0; transform: scale(.3); }
  25%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes mouth-glow {
  from { opacity: .55; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1.06); }
}
@keyframes trio-rise {
  from { opacity: 0; transform: translate(6%, 38%) scale(.35); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes trio-hover {
  from { opacity: 1; transform: translateY(0) rotate(0deg); }
  to   { opacity: 1; transform: translateY(-5%) rotate(-1.5deg); }
}
@keyframes line-up { to { transform: none; } }
@keyframes header-in { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }

/* ---------- 2. Преимущества ---------- */

.why { overflow: hidden; }
.why__scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* декоративный слой; --px/--py задаёт скрипт для лёгкой глубины за мышкой */
.deco {
  position: absolute;
  translate: calc(var(--px, 0) * var(--depth, 10) * 1px) calc(var(--py, 0) * var(--depth, 10) * .6px);
}
.deco img { display: block; width: 100%; height: auto; }

/* букеты в верхних углах; верх растворяется, чтобы не было резкого среза под главным экраном */
/* за курсором не двигаются */
.why__corner { top: 0; width: clamp(190px, 25vw, 470px); translate: none; }
.why__corner--left { left: 0; }
.why__corner--right { right: 0; }
.why__corner img {
  -webkit-mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .35) 18%, #000 44%);
  mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .35) 18%, #000 44%);
}
.why__corner--left img { transform-origin: 0 0; }
.why__corner--right img { transform-origin: 100% 0; }

.why__petal {
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: max(26px, calc(var(--w) * 1vw));
  --depth: 36;
}

/* голуби: полупрозрачные и чуть размытые, как на референсе, — разная резкость даёт глубину */
.why__front { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.why__dove { position: absolute; pointer-events: none; }
.why__dove img { display: block; width: 100%; height: auto; opacity: 0; }
.why__dove--1 { left: 66%; top: 10%; width: clamp(64px, 6.8vw, 130px); --o: .8; filter: blur(.5px); }
.why__dove--2 { left: 14%; top: 25%; width: clamp(78px, 8.6vw, 168px); --o: .62; filter: blur(1.6px); }
.why__dove--3 { left: 76%; top: 30%; width: clamp(90px, 11.5vw, 220px); --o: .78; filter: blur(.9px); }
.why.is-in .why__dove img { animation: dove-in 2.4s ease forwards, dove-drift 7s ease-in-out infinite alternate; }
.why.is-in .why__dove--1 img { animation-delay: .6s, 0s; }
.why.is-in .why__dove--2 img { animation-delay: .9s, -2.5s; animation-duration: 2.4s, 8.5s; }
.why.is-in .why__dove--3 img { animation-delay: 1.2s, -4s; animation-duration: 2.4s, 7.8s; }
@keyframes dove-in { from { opacity: 0; } to { opacity: var(--o, .8); } }
/* на телефоне заголовок в несколько строк — голуби уходят на свободные места:
   двое над надписью «Почему выбирают нас», третий садится на угол правой карточки */
@media (max-width: 760px) {
  .why__dove--1 { left: 64%; top: 3.5%; width: 58px; }
  .why__dove--2 { left: 20%; top: 4.5%; width: 62px; }
  .why__dove--3 { left: 76%; top: 37.5%; width: 74px; }
}
@keyframes dove-drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(-6px, -10px) rotate(-2deg); }
}

.why__head { max-width: 1040px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
}
.feature {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
}
.feature .icon--lg { width: 64px; height: 64px; margin: 0 auto 30px; stroke-width: 1.1; color: #B8966A; }
.feature h3 { font-size: clamp(24px, 2.3vw, 34px); font-weight: 400; line-height: 1.22; color: #463C35; }

/* скругления карточек второго блока — как на референсе */
.features .card { border-radius: 22px; }
.features .card::before { inset: 11px; border-radius: 14px; }

/* кнопка «Выбрать дизайн», как на референсе: крупная капсула, шрифт с засечками,
   золото светлеет к середине */
.why__btn {
  min-height: 64px;
  padding: 0 64px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .01em;
  color: #FFFDF7;
  background: linear-gradient(90deg, #A9885D 0%, #C7AA7E 26%, #E9D8B5 50%, #C7AA7E 74%, #A9885D 100%);
  background-size: 100% 100%;
  text-shadow: 0 1px 2px rgba(110, 80, 40, .35);
  box-shadow: 0 22px 40px -20px rgba(150, 112, 62, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.why__btn:hover { background-position: 0 0; filter: brightness(1.04); }

/* появление декораций второго блока */
.js .why__petal img { opacity: 0; }
.js .why__corner--left img { opacity: 0; transform: translate(-14%, -14%) rotate(-5deg); filter: blur(6px); }
.js .why__corner--right img { opacity: 0; transform: translate(14%, -14%) rotate(5deg); filter: blur(6px); }
.why.is-in .why__corner img { animation: cta-flowers-in 2.4s var(--ease) .1s forwards, cta-sway 9s ease-in-out 2.5s infinite alternate; }
.why.is-in .why__corner--right img { animation-delay: .25s, 2.8s; animation-duration: 2.4s, 10s; }

.why.is-in .why__petal img {
  animation: fade-in 2s ease calc(.9s + var(--i) * .15s) forwards,
             cta-petal calc(7s + var(--i) * 1.4s) ease-in-out calc(var(--i) * -1.9s) infinite alternate;
}

/* иконки прорисовываются линией при появлении */
.js .card .icon--lg,
.js .step .icon--lg { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .card.is-in .icon--lg { animation: draw 2.4s var(--ease-io) calc(var(--d, 0s) + .4s) forwards; }
/* залитые иконки (голубь, цветок) не прорисовываются линией, а мягко проявляются из дымки */
.js .card .icon--solid { opacity: 0; }
.js .card.is-in .icon--solid { animation: icon-solid-in 1.8s var(--ease) calc(var(--d, 0s) + .4s) forwards; }
@keyframes icon-solid-in { from { opacity: 0; filter: blur(4px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }

/* ---------- 3. Дизайны ---------- */

.designs {
  display: grid;
  /* пять дизайнов: на широком экране 3 + 2 по центру, на среднем по два в ряд, на телефоне — лентой */
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.design { grid-column: span 2; }
.design:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.design {
  padding: 74px 22px 36px;
  text-align: center;
  perspective: 1000px;
}
.design h3 { margin-top: 34px; font-size: 32px; }
.design > p { margin-top: 4px; font-size: 14.5px; }
.design__actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

.badge {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-3);
  background: rgba(255, 252, 245, .92);
  border: 1px solid var(--gold-line);
  white-space: nowrap;
}

.phone {
  position: relative;
  width: 214px;
  aspect-ratio: 9 / 19;
  margin: 18px auto 0;
  padding: 8px;
  border-radius: 38px;
  background: linear-gradient(145deg, #FFFFFF, #EDE4D8);
  box-shadow:
    0 40px 60px -34px rgba(110, 82, 45, .55),
    inset 0 0 0 1px rgba(200, 176, 140, .55),
    inset 0 2px 2px rgba(255, 255, 255, .9);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease);
}
.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  width: 62px;
  height: 18px;
  border-radius: 999px;
  background: #2C2420;
  transform: translateX(-50%);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
}
/* блик стекла */
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 45%, transparent 60%);
  background-size: 250% 100%;
  background-position: 120% 0;
  transition: background-position 1.4s var(--ease);
  pointer-events: none;
}
.design:hover .phone__screen::after { background-position: -40% 0; }

.screen {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #F8F1E9;
}
.screen__text { position: relative; z-index: 2; padding: 0 14px; }
.screen__text small {
  display: block;
  font-size: 8.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-3);
}
.screen__text b {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--script);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  color: var(--taupe);
}
.screen__text b i { display: block; font-style: normal; font-size: 24px; color: var(--gold); }
.screen__text span { font-family: var(--serif); font-size: 15px; letter-spacing: .18em; color: var(--taupe-2); }

/* «Белый сад»: на экране обложка настоящего приглашения — видео, букеты и надписи */
.screen--invite { background: #F8EFE2; }
.invite-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s var(--ease);
}
.design:hover .invite-preview { transform: scale(1.04); }
.invite-preview__flowers {
  position: absolute;
  bottom: -6%;
  width: 52%;
  z-index: 1;
  pointer-events: none;
}
.invite-preview__flowers--left { left: -16%; }
.invite-preview__flowers--right { right: -16%; }
.invite-preview__text {
  position: absolute;
  left: 0;
  right: 0;
  top: 13%;
  z-index: 2;
  text-align: center;
  color: #9C7A40;
  text-shadow: 0 0 10px rgba(255, 248, 232, .95), 0 0 2px rgba(255, 248, 232, .9);
}
.invite-preview__text small { display: block; font-family: var(--script); font-size: 20px; line-height: 1; }
.invite-preview__text span { display: block; margin-top: 4px; font-family: var(--serif); font-size: 10px; letter-spacing: .2em; color: #8E6E3C; }
.invite-preview__text b { display: block; margin-top: 6px; font-family: var(--script); font-weight: 400; font-size: 23px; white-space: nowrap; }

/* экраны используют фрагменты главного фона */
.screen--doves::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(253, 249, 243, .1) 0%, rgba(253, 249, 243, .9) 34%, rgba(253, 249, 243, .9) 66%, rgba(253, 249, 243, .1) 100%);
}
.screen--doves {
  background: url("../images/главный фон.jpg") 60% 40% / auto 118% no-repeat;
  transition: background-position 6s var(--ease);
}
.design:hover .screen--doves { background-position: 52% 30%; }

/* «Восточная сказка»: собранная сцена приглашения, поверх — имена каллиграфией в проёме арки */
.screen--palace { background: #F6EEE6; }
.screen--palace .invite-preview { object-position: 50% 50%; }
.palace-preview__text {
  position: absolute;
  top: 27%;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  line-height: 1;
  color: #6B4E3B;
  text-shadow: 0 0 10px rgba(255, 251, 245, .95), 0 0 2px rgba(255, 251, 245, .9);
}
.palace-preview__text small { display: block; margin-bottom: 8px; font-family: var(--sans); font-size: 7px; letter-spacing: .28em; padding-left: .28em; text-transform: uppercase; color: #A86A78; }
.palace-preview__text b { display: block; font-family: var(--script); font-weight: 400; font-size: 30px; line-height: 1.1; }
.palace-preview__text i { display: block; margin: -4px 0 -2px; font-family: var(--script); font-style: normal; font-size: 18px; color: #C79583; }
.palace-preview__text span { display: block; margin-top: 10px; font-family: var(--serif); font-size: 11px; letter-spacing: .22em; color: #5E4636; }

/* «Сиреневый сад»: собранная сцена, имена каллиграфией в проёме арки над дворцом */
.screen--lilac { background: #F2EBF1; }
.screen--lilac .invite-preview { object-position: 50% 50%; }
.lilac-preview__text {
  position: absolute;
  top: 29%;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  line-height: 1;
  color: #765545;
  text-shadow: 0 0 10px rgba(255, 251, 250, .95), 0 0 2px rgba(255, 251, 250, .9);
}
.lilac-preview__text small { display: block; margin-bottom: 7px; font-family: var(--sans); font-size: 6.5px; letter-spacing: .28em; padding-left: .28em; text-transform: uppercase; color: #A06E6E; }
.lilac-preview__text b { display: block; font-family: var(--script); font-weight: 400; font-size: 28px; line-height: 1.1; }
.lilac-preview__text i { display: block; margin: -5px 0 -3px; font-family: var(--script); font-style: normal; font-size: 17px; color: #A06E6E; }
.lilac-preview__text span { display: block; margin-top: 9px; font-family: var(--serif); font-size: 10.5px; letter-spacing: .22em; color: #6B4C3D; }

/* «Павлиний сад»: видео беседки на закате, в светлом небе — «Save the Date», как в приглашении */
.screen--peacock { background: #F6ECE2; }
.screen--peacock .invite-preview { object-position: 50% 50%; }
.peacock-preview__text {
  position: absolute;
  top: 15%;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 251, 245, .95), 0 0 2px rgba(255, 251, 245, .9);
}
.peacock-preview__text b { display: block; font-family: var(--serif); font-weight: 400; font-size: 21px; letter-spacing: .16em; padding-left: .16em; color: #A9813F; }
.peacock-preview__text i { display: block; margin: -3px 0 -1px; font-family: var(--script); font-style: normal; font-size: 15px; color: #A9813F; }
.peacock-preview__text small { display: block; margin-top: 7px; font-family: var(--sans); font-size: 6.5px; letter-spacing: .3em; padding-left: .3em; text-transform: uppercase; color: #A9813F; }
.peacock-preview__text span { display: block; margin-top: 3px; font-family: var(--script); font-size: 19px; white-space: nowrap; color: #B8706A; }
.peacock-preview__text em { display: block; margin-top: 4px; font-family: var(--serif); font-style: normal; font-size: 9.5px; letter-spacing: .2em; color: #6A5244; }

/* «Изумрудная бабочка»: видео бабочки из приглашения, поверх «Save the Date» и ветки */
.screen--emerald { background: #0C211A; }
.screen--emerald .invite-preview { object-position: 50% 0; }
.emerald-preview__branch { position: absolute; bottom: -4%; z-index: 1; width: 40%; pointer-events: none; }
.emerald-preview__branch--left { left: -8%; rotate: -14deg; transform-origin: 0 100%; }
.emerald-preview__branch--right { right: -8%; rotate: 14deg; transform-origin: 100% 100%; }
.emerald-preview__text {
  position: absolute;
  top: 37%;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  color: #EFE7D6;
  line-height: 1;
}
.emerald-preview__text b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: .3em; padding-left: .3em; }
.emerald-preview__text i { display: block; margin: -2px 0 2px; font-family: var(--script); font-style: normal; font-size: 18px; color: #C9A866; }
.emerald-preview__text span { display: block; margin-top: 12px; font-family: var(--serif); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.emerald-preview__text em { font-family: var(--script); font-style: normal; font-size: 1.2em; text-transform: none; color: #C9A866; }
.emerald-preview__text small { display: block; margin-top: 8px; font-family: var(--serif); font-size: 10px; letter-spacing: .24em; color: #E7D3A0; }

/* ---------- 4. Что входит ---------- */

/* заголовок «Что входит в приглашение» — в одну строку на широком экране */
.included__head { max-width: 1100px; }
@media (min-width: 900px) { .included__head h2 { white-space: nowrap; } }

/* голубь и лепестки за карточками: появляются вместе с блоком и мягко парят */
.included__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.included__dove { position: absolute; left: 78%; top: 10%; width: clamp(80px, 9vw, 170px); filter: blur(.6px); }
.included__petal {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: max(24px, calc(var(--w) * 1vw));
  /* лепестки размыты и приглушены — как будто в стороне от фокуса, не спорят с карточками */
  filter: blur(2.2px);
  opacity: .7;
}
.included__dove img, .included__petal img { display: block; width: 100%; height: auto; opacity: 0; }
#included.is-in .included__dove img { animation: dove-in 2.4s ease .5s forwards, dove-drift 8s ease-in-out infinite alternate; --o: .85; }
#included.is-in .included__petal img {
  animation: fade-in 2s ease calc(.8s + var(--i) * .15s) forwards,
             cta-petal calc(7s + var(--i) * 1.3s) ease-in-out calc(var(--i) * -1.7s) infinite alternate;
}
#included > .container { position: relative; z-index: 1; }

.included {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.included__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.inc {
  padding: 38px 24px 32px;
  text-align: center;
}
.inc .icon--lg { margin: 0 auto 18px; width: 48px; height: 48px; }
.inc h3 { font-size: 25px; }
.inc p { margin-top: 8px; font-size: 14px; line-height: 1.6; }

.infinity {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 30px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(155deg, #F1E3C7 0%, #D9BE8E 45%, #EAD8B5 75%, #CDAE7A 100%);
  background-size: 200% 200%;
  box-shadow: 0 40px 70px -36px rgba(150, 112, 58, .7), inset 0 1px 0 rgba(255, 255, 255, .6);
  color: var(--taupe);
  overflow: hidden;
  animation: gold-move 9s ease-in-out infinite alternate;
}
.infinity::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: calc(var(--radius) - 8px);
}
.infinity::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 40%);
  animation: orbit 10s linear infinite;
}
@keyframes gold-move { to { background-position: 100% 100%; } }
@keyframes orbit {
  from { transform: rotate(0deg) translateX(18%) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(18%) rotate(-360deg); }
}
.infinity > * { position: relative; z-index: 1; }
.infinity__sign {
  font-family: var(--serif);
  font-size: 120px;
  line-height: .8;
  color: #7A604A;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .5);
}
.infinity h3 { margin-top: 20px; font-size: 36px; color: #5E4A3D; }
.infinity p { margin-top: 12px; font-size: 14.5px; color: #6E5848; }
.infinity__spark { position: absolute; color: #fff; stroke-width: 1.3; animation: twinkle 3s ease-in-out infinite; }
.infinity__spark--1 { top: 34px; left: 32px; width: 30px; height: 30px; }
.infinity__spark--2 { bottom: 40px; right: 30px; width: 24px; height: 24px; animation-delay: -1.5s; }
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(15deg); }
}

/* ---------- 5. Как это работает ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto;
  counter-reset: none;
}
/* золотая линия между шагами, как на референсе: зернистое золото с бегущим бликом,
   прорисовывается слева направо; вокруг неё — золотая пыль */
.steps { --line-y: 168px; }
.steps::before {
  content: "";
  position: absolute;
  top: calc(var(--line-y) - 1px);
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 0 40%, rgba(255, 250, 236, .95) 50%, transparent 60% 100%) -40% 0 / 40% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 248, 230, .7) 0 1px, transparent 1px 2px, rgba(154, 120, 69, .35) 2px 3px, transparent 3px 5px),
    linear-gradient(90deg, #D9C196, #B8955E 30%, #CFB27E 50%, #B8955E 70%, #D9C196);
  box-shadow: 0 0 6px rgba(201, 168, 110, .45);
  transform-origin: left;
  transition: transform 2.2s var(--ease-io) .5s;
}
.steps.is-in::before { animation: how-shine 5.5s ease-in-out 3s infinite; }
@keyframes how-shine { 0% { background-position: -40% 0, 0 0, 0 0; } 60%, 100% { background-position: 140% 0, 0 0, 0 0; } }
.steps::after {
  content: "";
  position: absolute;
  top: calc(var(--line-y) - 22px);
  left: 16.6%;
  right: 16.6%;
  height: 44px;
  pointer-events: none;
  background:
    radial-gradient(circle, #C9A86E 0 1px, transparent 1.6px) 6% 70% / 4px 4px no-repeat,
    radial-gradient(circle, #D9C196 0 1.3px, transparent 2px) 11% 30% / 5px 5px no-repeat,
    radial-gradient(circle, #B8955E 0 .9px, transparent 1.4px) 17% 82% / 4px 4px no-repeat,
    radial-gradient(circle, #E6D2A8 0 1.5px, transparent 2.2px) 24% 22% / 5px 5px no-repeat,
    radial-gradient(circle, #C9A86E 0 1px, transparent 1.6px) 31% 64% / 4px 4px no-repeat,
    radial-gradient(circle, #B8955E 0 1.2px, transparent 1.8px) 38% 36% / 4px 4px no-repeat,
    radial-gradient(circle, #D9C196 0 .9px, transparent 1.4px) 45% 88% / 4px 4px no-repeat,
    radial-gradient(circle, #C9A86E 0 1px, transparent 1.6px) 56% 74% / 4px 4px no-repeat,
    radial-gradient(circle, #E6D2A8 0 1.4px, transparent 2.1px) 62% 18% / 5px 5px no-repeat,
    radial-gradient(circle, #B8955E 0 1px, transparent 1.6px) 69% 60% / 4px 4px no-repeat,
    radial-gradient(circle, #D9C196 0 1.2px, transparent 1.8px) 76% 32% / 4px 4px no-repeat,
    radial-gradient(circle, #C9A86E 0 .9px, transparent 1.4px) 83% 84% / 4px 4px no-repeat,
    radial-gradient(circle, #E6D2A8 0 1.3px, transparent 2px) 89% 26% / 5px 5px no-repeat,
    radial-gradient(circle, #B8955E 0 1px, transparent 1.6px) 95% 66% / 4px 4px no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease 2.2s;
}
.steps.is-in::after { opacity: 1; animation: how-dust 3.2s ease-in-out 3.8s infinite alternate; }
@keyframes how-dust { to { opacity: .45; } }
.js .steps::before { transform: scaleX(0); }
.js .steps.is-in::before { transform: scaleX(1); }

/* голуби над шагами — мягко проявляются и парят */
.how__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.how__dove { position: absolute; }
.how__dove img { display: block; width: 100%; height: auto; opacity: 0; }
.how__dove--l { left: 13%; top: 12%; width: clamp(90px, 10.5vw, 210px); --o: .78; filter: blur(.7px); }
.how__dove--r { left: 75%; top: 11%; width: clamp(90px, 10vw, 200px); --o: .82; filter: blur(.5px); }
#how.is-in .how__dove img,
#how:has(.section-head.is-in) .how__dove img { animation: dove-in 2.4s ease .5s forwards, dove-drift 8s ease-in-out infinite alternate; }
#how:has(.section-head.is-in) .how__dove--r img { animation-delay: .8s, -3s; animation-duration: 2.4s, 7.4s; }
#how > .container { position: relative; z-index: 1; }
.js .steps[data-reveal].is-in { animation: none; }
.js .steps[data-reveal] { opacity: 1; }

.step { position: relative; text-align: center; }
/* иконки крупные и тонкие, как на референсе */
.step .icon--lg { margin: 0 auto 18px; width: 96px; height: 96px; stroke-width: .9; color: #B8966A; }
.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 0 auto;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #F7F0E6);
  box-shadow: 0 24px 40px -24px rgba(122, 92, 52, .5), inset 0 0 0 1px var(--gold-line), inset 0 0 0 7px #FFFDF9, inset 0 0 0 8px rgba(184, 149, 94, .3);
}
.step h3 { margin-top: 28px; font-size: 32px; }
.step p { max-width: 280px; margin: 12px auto 0; font-size: 15px; }

.js .step { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--i) * .35s + .2s); }
.js .steps.is-in .step { opacity: 1; transform: none; filter: none; }
.js .steps.is-in .step .icon--lg { animation: draw 2.4s var(--ease-io) calc(var(--i) * .35s + .7s) forwards; }
/* залитые иконки шагов проявляются из дымки, как голубь и цветок в карточках */
.js .step .icon--solid { opacity: 0; }
.js .steps.is-in .step .icon--solid { animation: icon-solid-in 1.8s var(--ease) calc(var(--i) * .35s + .7s) forwards; }
.js .steps.is-in .step__num { animation: pop 1.2s var(--ease) calc(var(--i) * .35s + .4s) backwards; }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }

/* ---------- 6. Цены ---------- */

/* заголовок «Выберите своё приглашение» — в одну строку на широком экране */
.prices__head { max-width: 1100px; }
@media (min-width: 900px) { .prices__head h2 { white-space: nowrap; } }

/* голубь над заголовком: мягко проявляется и парит */
.prices__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.prices__dove { position: absolute; left: 61%; top: 5.5%; width: clamp(80px, 9vw, 170px); filter: blur(.5px); }
.prices__dove img { display: block; width: 100%; height: auto; opacity: 0; }
#prices:has(.section-head.is-in) .prices__dove img { animation: dove-in 2.4s ease .5s forwards, dove-drift 8s ease-in-out infinite alternate; --o: .85; }
#prices > .container { position: relative; z-index: 1; }

.prices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.price {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 38px 34px;
  text-align: center;
}
.price h3 { font-size: 36px; }
.price__desc { margin-top: 6px; font-size: 14px; min-height: 44px; }
.price__value {
  margin: 12px 0 20px;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 1;
  color: var(--taupe);
}
.price__value span { font-size: .7em; }
.price__value small { font-size: .4em; color: var(--taupe-2); }
.checks { align-self: stretch; text-align: left; display: grid; gap: 10px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--taupe-2); }
.checks .icon { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; stroke-width: 2; }
.price__time { margin: 18px 0 16px; font-size: 13px; letter-spacing: .06em; color: var(--gold-3); }
.price .btn { width: 100%; margin-top: auto; }

.price--featured {
  padding-top: 56px;
  padding-bottom: 42px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 0 0 1.5px rgba(184, 149, 94, .55), 0 50px 90px -40px rgba(122, 92, 52, .5);
}
.price--featured::before { border-color: rgba(184, 149, 94, .7); }
.price__label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 26px 9px;
  border-radius: 0 0 14px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold-grad);
  z-index: 3;
}
.price__ribbon {
  position: absolute;
  top: 10px;
  right: 34px;
  width: 34px;
  height: 46px;
  display: grid;
  place-items: center;
  padding-bottom: 8px;
  background: var(--gold-grad);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  color: #fff;
  z-index: 3;
}
.price__ribbon .icon { width: 18px; height: 18px; }

/* ---------- 7. Отзывы ---------- */

/* голуби по сторонам заголовка и размытые лепестки за карточками */
.reviews__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.reviews__dove { position: absolute; }
.reviews__dove img, .reviews__petal img { display: block; width: 100%; height: auto; opacity: 0; }
.reviews__dove--l { left: 19%; top: 14%; width: clamp(90px, 11vw, 220px); --o: .8; filter: blur(.6px); }
.reviews__dove--r { left: 71%; top: 13%; width: clamp(90px, 10.5vw, 210px); --o: .82; filter: blur(.5px); }
.reviews__petal {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: max(24px, calc(var(--w) * 1vw));
  /* размыты и приглушены — как будто в стороне от фокуса */
  filter: blur(2.2px);
  opacity: .7;
}
#reviews:has(.section-head.is-in) .reviews__dove img { animation: dove-in 2.4s ease .5s forwards, dove-drift 8s ease-in-out infinite alternate; }
#reviews:has(.section-head.is-in) .reviews__dove--r img { animation-delay: .8s, -3s; animation-duration: 2.4s, 7.4s; }
#reviews:has(.section-head.is-in) .reviews__petal img {
  animation: fade-in 2s ease calc(.8s + var(--i) * .15s) forwards,
             cta-petal calc(7s + var(--i) * 1.3s) ease-in-out calc(var(--i) * -1.7s) infinite alternate;
}
#reviews > .container { position: relative; z-index: 1; }

.stars-pill {
  display: inline-block;
  margin-top: 26px;
  padding: 8px 26px;
  border-radius: 999px;
  font-size: 20px;
  letter-spacing: .2em;
  color: var(--gold);
  background: rgba(255, 253, 249, .9);
  box-shadow: var(--shadow);
}

.reviews { position: relative; }
.reviews__track {
  display: flex;
  gap: 30px;
  padding: 20px 6px 50px;
  margin: -20px -6px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 calc((100% - 60px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 36px 40px;
  text-align: center;
}
.review:hover { transform: translateY(-6px); }
.review__quote {
  font-family: var(--serif);
  font-size: 110px;
  line-height: .7;
  height: 46px;
  color: var(--gold);
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.review__stars { margin: 14px 0 18px; font-size: 18px; letter-spacing: .18em; color: var(--gold); }
.review p { font-size: 15.5px; line-height: 1.75; color: var(--taupe-2); flex: 1; }
.review__avatar {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 28px 0 12px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-3);
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #F4EBDF);
  box-shadow: 0 16px 28px -16px rgba(122, 92, 52, .5), inset 0 0 0 1px var(--gold-line);
}
.review b { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--taupe); }

.reviews__arrow {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--gold-grad);
  box-shadow: 0 16px 30px -14px rgba(150, 112, 58, .8);
  cursor: pointer;
  transition: transform .5s var(--ease), opacity .4s;
}
.reviews__arrow .icon { width: 24px; height: 24px; stroke-width: 2.4; filter: drop-shadow(0 1px 1px rgba(120, 88, 40, .45)); }
.reviews__arrow:hover { transform: scale(1.08); }
.reviews__arrow:disabled { opacity: .35; cursor: default; transform: none; }
.reviews__arrow--prev { left: -78px; }
.reviews__arrow--prev .icon { transform: scaleX(-1); }
.reviews__arrow--next { right: -78px; }

.reviews__dots, .designs__dots { display: flex; justify-content: center; gap: 12px; }
.reviews__dots button, .designs__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(255, 253, 249, .8);
  cursor: pointer;
  transition: width .6s var(--ease), background-color .4s;
}
.reviews__dots button[aria-selected="true"], .designs__dots button[aria-selected="true"] { width: 34px; background: var(--gold); border-color: var(--gold); }
/* дизайны стоят сеткой — листать нечего, точки не нужны (лента с точками есть только в узкой раскладке) */
.designs__dots { display: none; }

/* ---------- 8. Финальный призыв ---------- */

/* Блок — сцена во весь экран. Размеры декораций заданы в cqh (доля высоты блока),
   поэтому композиция сохраняется как на референсе при любой высоте экрана. */
.cta {
  position: relative;
  height: max(100svh, 760px);
  container-type: size;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

.cta__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* верх сцены растворяется в общем фоне страницы */
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 24%);
  mask: linear-gradient(180deg, transparent 0, #000 24%);
}

.cta__sky { position: absolute; inset: 0; overflow: hidden; }
.cta__sky img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  translate: calc(var(--px, 0) * -10px) calc(var(--py, 0) * -6px);
}

/* сияние в центре, как на референсе */
.cta__light {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 120cqh;
  height: 90cqh;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 252, 244, .95), rgba(255, 240, 214, .55) 45%, transparent 80%);
  mix-blend-mode: screen;
}

/* слой декорации: позиция от левого (--l) или правого (--r) края, в cqh */
.cta__layer {
  position: absolute;
  top: calc(var(--t, 0) * 1cqh);
  width: calc(var(--w, 10) * 1cqh);
  translate: calc(var(--px, 0) * var(--depth, 10) * 1px) calc(var(--py, 0) * var(--depth, 10) * .6px);
}
.cta__layer[style*="--l"] { left: calc(var(--l) * 1cqh); }
.cta__layer[style*="--r"] { right: calc(var(--r) * 1cqh); }
.cta__layer img { display: block; width: 100%; height: auto; }

.cta__flowers {
  top: 0; height: 100%; width: auto; --depth: 14;
  /* букеты начинаются не ровным срезом, а проступают из облаков */
  -webkit-mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .4) 14%, #000 34%);
  mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .4) 14%, #000 34%);
}
.cta__flowers img { height: 100%; width: auto; }
.cta__flowers--left { left: 0; }
.cta__flowers--right { right: 0; }
.cta__flowers--left img { transform-origin: 0 50%; }
.cta__flowers--right img { transform-origin: 100% 50%; }

.cta__dove { --depth: 26; }
.cta__dove--flip img { scale: -1 1; }

.cta__petal { --depth: 34; }

/* текст */
.cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15cqh;
}
.cta__head { max-width: 760px; }
.cta__title {
  margin-top: 14px;
  font-size: clamp(54px, 10.5cqh, 128px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--taupe);
  text-shadow: 0 2px 30px rgba(255, 250, 240, .9);
}
.cta__lead {
  margin-top: 22px;
  font-size: clamp(17px, 2.4cqh, 24px);
  font-weight: 400;
  color: var(--taupe-2);
  text-shadow: 0 1px 16px rgba(255, 250, 240, .95);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 5cqh;
}

/* конверт внизу по центру */
.cta__envelope {
  position: absolute;
  left: 50%;
  bottom: -5cqh;
  z-index: 1;
  width: 36cqh;
  translate: -50% 0;
}
/* конверт из двух картинок: открытой (корпус и крышка) и закрытой (карман и клапан с печатью).
   Линия сгиба у открытой картинки — 36.2% от верха, ниже неё корпус */
.cta__env {
  --fold: 36.2%;
  position: relative;
  aspect-ratio: 900 / 991;
  filter: drop-shadow(0 -10px 40px rgba(255, 236, 200, .6));
}
.cta__env img { position: absolute; left: 0; display: block; width: 100%; }
.env__body, .env__lid { top: 0; height: 100%; }
/* от открытой картинки видна только подкладка внутри: она чуть вытянута вниз,
   чтобы её карман и печать целиком прятались под карманом закрытого конверта */
.env__body { clip-path: inset(var(--fold) 0 10.6% 0); transform-origin: 50% var(--fold); transform: scaleY(1.2); }
/* крышка — верх открытой картинки, поворачивается вокруг линии сгиба */
.env__lid { clip-path: inset(0 0 calc(100% - var(--fold)) 0); transform-origin: 50% var(--fold); }
/* закрытый конверт лежит ровно на корпусе */
.env__closed { position: absolute; left: 0; right: 0; top: var(--fold); bottom: 0; }
.env__closed img { top: 0; height: 100%; }
/* карман и печать закрытого конверта остаются до конца, клапан уходит вверх из-под печати */
.env__pocket { clip-path: polygon(0 3%, 39% 49%, 42% 44%, 46% 42%, 50% 41.5%, 54% 42%, 58% 44%, 61% 49%, 100% 3%, 100% 100%, 0 100%); }
.env__flap { clip-path: polygon(0 0, 100% 0, 100% 3%, 61% 49%, 58% 44%, 54% 42%, 50% 41.5%, 46% 42%, 42% 44%, 39% 49%, 0 3%); transform-origin: 50% 0; }
/* вспышка вокруг печати перед открытием */
.env__glow {
  position: absolute;
  left: 50%;
  top: 72.8%;
  width: 44%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 225, .95) 0%, rgba(246, 218, 160, .55) 32%, rgba(240, 205, 140, 0) 68%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

/* столб золотого света, который вырывается из конверта при открытии */
.cta__burst {
  position: absolute;
  left: 50%;
  bottom: 52%;
  width: 120%;
  height: 210%;
  translate: -50% 0;
  background:
    radial-gradient(20% 70% at 50% 100%, #FFF8E6, rgba(255, 226, 160, .8) 40%, rgba(255, 226, 160, 0) 100%),
    radial-gradient(50% 95% at 50% 100%, rgba(246, 210, 140, .75), rgba(240, 200, 130, .28) 55%, transparent 82%);
  filter: blur(14px);
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
  opacity: 0;
  pointer-events: none;
}

/* луч света из конверта */
.cta__beam {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 70%;
  height: 120%;
  translate: -50% 0;
  background: radial-gradient(50% 100% at 50% 100%, rgba(255, 238, 200, .85), rgba(255, 238, 200, .25) 55%, transparent 80%);
  filter: blur(12px);
  transform-origin: 50% 100%;
  opacity: 0;
}

/* золотые искры, вылетающие из конверта (создаются скриптом) */
.cta__sparks { position: absolute; left: 20%; right: 20%; bottom: 56%; height: 0; }
.cta__sparks i {
  position: absolute;
  bottom: 0;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #FFF8E8 0%, #F2D9A6 45%, rgba(230, 200, 140, 0) 70%);
  box-shadow: 0 0 10px 2px rgba(255, 226, 170, .7);
  opacity: 0;
}

/* --- анимация появления сцены --- */
.js .cta__sky img { opacity: 0; transform: scale(1.12); filter: blur(10px); }
.js .cta__light { opacity: 0; }
.js .cta__flowers--left img { opacity: 0; transform: translateX(-18%); filter: blur(6px); }
.js .cta__flowers--right img { opacity: 0; transform: translateX(18%); filter: blur(6px); }
.js .cta__dove img, .js .cta__petal img { opacity: 0; }
.js .cta__env { opacity: 0; transform: translateY(45%); }
.js .env__lid { transform: perspective(900px) rotateX(-90deg); }

.cta.is-in .cta__sky img { animation: cta-sky-in 3s var(--ease) forwards, cta-sky 28s ease-in-out 3s infinite alternate; }
.cta.is-in .cta__light { animation: fade-in 2.4s ease .4s forwards, cta-pulse 6s ease-in-out 2.8s infinite alternate; }
.cta.is-in .cta__flowers img { animation: cta-flowers-in 2.4s var(--ease) .2s forwards, cta-sway 9s ease-in-out 2.6s infinite alternate; }
.cta.is-in .cta__flowers--right img { animation-delay: .35s, 2.8s; animation-duration: 2.4s, 10s; }
.cta.is-in .cta__dove img {
  animation: cta-dove-in 2.6s var(--ease) calc(.8s + var(--i) * .22s) forwards,
             cta-hover calc(4.6s + var(--i) * .7s) ease-in-out calc(3.4s + var(--i) * .22s) infinite alternate;
}
.cta.is-in .cta__dove--flip img { animation-name: cta-dove-in-flip, cta-hover; }
.cta.is-in .cta__petal img {
  animation: fade-in 2s ease calc(1s + var(--i) * .15s) forwards,
             cta-petal calc(7s + var(--i) * 1.3s) ease-in-out calc(var(--i) * -1.7s) infinite alternate;
}
/* конверт поднимается, печать вспыхивает, клапан отгибается на зрителя и становится открытой крышкой */
.cta.is-in .cta__env { animation: cta-envelope-in 1.2s var(--ease) .2s forwards; }
.cta.is-in .env__glow { animation: env-glow .9s ease-in-out 1.1s both; }
.cta.is-in .env__flap { animation: env-flap .45s cubic-bezier(.55, 0, .9, .45) 1.5s both; }
.cta.is-in .env__lid { animation: env-lid .6s cubic-bezier(.15, .6, .3, 1) 1.95s both; }
.cta.is-in .cta__beam { animation: cta-beam 5s ease-in-out 2.2s infinite alternate; }
/* из открытого конверта вырывается свет, в нём поднимаются текст, а следом кнопки */
.cta.is-in .cta__burst { animation: cta-burst 3s ease-out 1.9s both; }
.js .cta__head[data-reveal], .js .cta__actions[data-reveal] { opacity: 0; animation: none; }
.js .cta.is-in .cta__head[data-reveal] { opacity: 1; animation: cta-rise 1.8s ease-out 2.1s both; --rise: 50cqh; }
.js .cta.is-in .cta__actions[data-reveal] { opacity: 1; animation: cta-rise 1.6s ease-out 2.6s both; --rise: 30cqh; }
.cta.is-in .cta__sparks i { animation: cta-spark var(--dur) ease-out var(--delay) infinite; }

@keyframes cta-sky-in { to { opacity: 1; transform: scale(1); filter: blur(0); } }
@keyframes cta-sky { from { transform: scale(1); } to { transform: scale(1.07) translate(-1%, -1%); } }
@keyframes cta-pulse { from { opacity: .65; transform: scale(.95); } to { opacity: 1; transform: scale(1.05); } }
@keyframes cta-flowers-in { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes cta-sway { from { transform: rotate(-.6deg); } to { transform: rotate(.7deg); } }
@keyframes cta-dove-in {
  from { opacity: 0; transform: translate(70%, 30%) scale(.7) rotate(8deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes cta-dove-in-flip {
  from { opacity: 0; transform: translate(-70%, 30%) scale(.7) rotate(-8deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes cta-hover {
  from { opacity: 1; transform: translateY(0) rotate(0deg); }
  to   { opacity: 1; transform: translateY(-9%) rotate(-3deg); }
}
@keyframes cta-petal {
  from { transform: translate(0, 0) rotate(0deg); }
  to   { transform: translate(18%, 32%) rotate(22deg); }
}
@keyframes cta-envelope-in { to { opacity: 1; transform: none; } }
@keyframes cta-burst {
  0%   { opacity: 0; transform: scaleY(.15) scaleX(.6); }
  25%  { opacity: 1; transform: scaleY(1) scaleX(1); }
  60%  { opacity: .75; }
  100% { opacity: 0; transform: scaleY(1.1) scaleX(1.15); }
}
/* текст вылетает из конверта маленьким и размытым, в золотом сиянии, и встаёт на место */
@keyframes cta-rise {
  0%   { opacity: 0; transform: translateY(var(--rise)) scale(.3); filter: blur(12px) drop-shadow(0 0 0 rgba(236, 196, 120, 0)); }
  25%  { opacity: 1; filter: blur(4px) drop-shadow(0 0 26px rgba(240, 200, 120, 1)); }
  70%  { transform: translateY(0) scale(1.02); filter: blur(0) drop-shadow(0 0 20px rgba(236, 196, 120, .85)); }
  100% { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 0 rgba(236, 196, 120, 0)); }
}
@keyframes env-glow { 0% { opacity: 0; scale: .6; } 55% { opacity: 1; scale: 1.05; } 100% { opacity: 0; scale: 1.25; } }
@keyframes env-flap { from { transform: perspective(900px) rotateX(0); } to { transform: perspective(900px) rotateX(90deg); } }
@keyframes env-lid { from { transform: perspective(900px) rotateX(-90deg); } to { transform: perspective(900px) rotateX(0); } }
@keyframes cta-beam {
  0%   { opacity: .55; transform: scaleY(.9); }
  100% { opacity: 1; transform: scaleY(1.08); }
}
@keyframes cta-spark {
  0%   { opacity: 0; transform: translate(0, 0) scale(.4); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

/* ---------- Подвал ---------- */

.footer {
  position: relative;
  z-index: 2;
  padding: 70px 0 34px;
  background: linear-gradient(180deg, rgba(251, 247, 241, .4), rgba(246, 238, 227, .95));
  border-top: 1px solid rgba(184, 149, 94, .25);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 40px;
  align-items: center;
}
.footer__brand p { margin-top: 14px; font-size: 14px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 30px; font-size: 14.5px; color: var(--taupe-2); }
.footer__nav a:hover { color: var(--gold-3); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--gold-3);
  border: 1px solid var(--gold-line);
  transition: color .4s, background-color .4s, transform .5s var(--ease);
}
.footer__social a:hover { color: #fff; background: var(--gold); transform: translateY(-3px); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(184, 149, 94, .18);
  font-size: 13px;
  text-align: center;
  color: var(--taupe-2);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1240px) {
  .design, .design:nth-child(4):nth-last-child(2) { grid-column: auto; }
  .reviews__arrow--prev { left: -12px; }
  .reviews__arrow--next { right: -12px; }
}

/* четыре карточки в ряд: названия в одну строку и подписи одной высоты — кнопки стоят ровно */
@media (min-width: 1241px) {
  .design h3 { font-size: 27px; white-space: nowrap; }
  .design > p { min-height: 2.9em; }
  .design__actions .btn--sm { padding: 0 18px; }
}

@media (max-width: 1240px) and (min-width: 961px) {
  /* шапка на ноутбуке: пункты меню ближе, чтобы всё помещалось в одну строку */
  .header__inner { gap: 24px; }
  .nav { gap: 22px; }
  .nav a { font-size: 14px; }
  .designs { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 28px; }
  /* нечётная последняя карточка — одна по центру */
  .design:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 360px; }
}

@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .included { grid-template-columns: 1fr; }
  .infinity { padding: 50px 40px; }
  .designs { gap: 22px; }
  .design { padding-left: 18px; padding-right: 18px; }
  .phone { width: 190px; }
  .prices { gap: 20px; }
  .price { padding-left: 26px; padding-right: 26px; }
  .review { flex-basis: calc((100% - 30px) / 2); }
}

@media (max-width: 960px) {
  .nav, .header__cta, .header__login { display: none; }
  .burger { display: block; }
  .section { padding: 130px 0; }
  /* планшет: гирлянды роз на стыках поменьше и частично за краем — не заходят на текст */
  .blocks > .section ~ .section::before,
  .blocks > .section ~ .section::after { width: min(22vw, 160px); }
  .blocks > .section ~ .section::before { left: calc(min(22vw, 160px) * -.3); }
  .blocks > .section ~ .section::after { right: calc(min(22vw, 160px) * -.3); }
  .designs { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .note { max-width: 440px; margin-left: auto; margin-right: auto; }
  .note span::before, .note span::after { display: none; }
  .prices { grid-template-columns: 1fr; max-width: 440px; }
  .price--featured { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 54px; max-width: 420px; }
  .steps::before, .steps::after { display: none; }
  .how__dove--l { left: 1%; top: 196px; width: 66px; }
  .how__dove--r { left: 80%; top: 186px; width: 66px; }
  .prices__dove { left: 64%; top: 64px; width: 72px; }
  .reviews__dove--l { left: 1%; top: 150px; width: 66px; }
  .reviews__dove--r { left: 80%; top: 140px; width: 66px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer__nav { justify-content: center; }
}

/* Телефон: картинка уходит вниз, текст по центру сверху */
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .header { padding: 14px 0; }
  .logo__mark { width: 42px; height: 42px; }
  .logo__text b { font-size: 19px; }

  /* телефон: текст сверху, сцена с конвертом снизу, конверт по центру экрана */
  .hero {
    align-items: flex-start;
    padding: 108px 0 400px;
    min-height: 100svh;
    text-align: center;
  }
  .hero__stage {
    top: auto;
    bottom: 0;
    right: auto;
    left: calc(50vw - 235vw * .76);
    width: 235vw;
    translate: none;
    -webkit-mask: linear-gradient(180deg, transparent 0, #000 22%);
    mask: linear-gradient(180deg, transparent 0, #000 22%);
  }
  .hero__media { -webkit-mask: linear-gradient(180deg, #000 88%, transparent 100%); mask: linear-gradient(180deg, #000 88%, transparent 100%); }
  .hero__content { margin: 0 auto; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .26em; margin-bottom: 18px; }
  .hero__title { font-size: clamp(40px, 11.5vw, 58px); }
  .hero__title .line { padding-right: 0; }
  .hero__lead { margin: 18px auto 0; font-size: 15px; }
  .hero__actions { justify-content: center; margin-top: 26px; gap: 12px; }
  .hero__actions .btn { flex: 1 1 100%; min-height: 54px; }
  .hero__facts { display: none; }

  .section { padding: 124px 0; } /* запас под гирлянды роз на стыках блоков */
  .section-head { margin-bottom: 46px; }
  .eyebrow { font-size: 11px; letter-spacing: .26em; }

  /* гирлянды роз на стыках: на узком экране две полные гирлянды шире самого экрана
     и закрывали текст — здесь они меньше и наполовину уходят за край */
  .blocks > .section ~ .section::before,
  .blocks > .section ~ .section::after { width: min(27vw, 130px); }
  .blocks > .section ~ .section::before { left: calc(min(27vw, 130px) * -.3); }
  .blocks > .section ~ .section::after { right: calc(min(27vw, 130px) * -.3); }

  /* дизайны — лентой, листаются пальцем; соседняя карточка выглядывает сбоку */
  .designs {
    display: flex;
    gap: 14px;
    max-width: none;
    margin: -16px -20px 0;
    padding: 16px 20px 34px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }
  .designs::-webkit-scrollbar { display: none; }
  .design { flex: 0 0 min(82%, 330px); scroll-snap-align: center; padding: 70px 16px 30px; }
  .designs__dots { display: flex; }
  /* карточки за краем ленты проявляются вместе с блоком — иначе соседняя не выглядывает */
  .js .section.is-in .designs > .design[data-reveal] { opacity: 1; animation: reveal 1.4s var(--ease) var(--d, 0s) backwards; }
  .section-head h2 { font-size: clamp(36px, 10vw, 48px); }
  .sprig { width: 130px; height: 130px; opacity: .35; }
  .sprig--tl, .sprig--tr { top: 10px; }
  .sprig--bl, .sprig--br { bottom: 10px; }
  .sprig--tl, .sprig--bl { left: 4px; }
  .sprig--tr, .sprig--br { right: 4px; }

  .features { grid-template-columns: 1fr 1fr; gap: 14px; }
  .feature { padding: 20px 12px; }
  .feature .icon--lg { width: 46px; height: 46px; margin-bottom: 18px; }
  .feature h3 { font-size: 22px; }
  .br-desktop { display: none; }
  /* на телефоне блоки очень длинные: полотно повторяется, а не растягивается */
  .blocks::before { background-size: 100% auto; background-repeat: repeat-y; }
  .why__petal:nth-child(n+5) { display: none; }
  .why__corner { width: 38vw; }
  .why { padding-top: 130px; }

  .included__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .inc { padding: 30px 10px 24px; }
  .inc h3 { font-size: clamp(17px, 5.4vw, 21px); }
  .inc p { font-size: 12.5px; }
  .infinity { flex-direction: column; text-align: center; padding: 40px 26px; gap: 0; }
  .infinity h3 { margin-top: 16px; }
  .infinity__sign { font-size: 96px; }

  .price__value { font-size: 54px; }

  .review { flex-basis: 86%; padding: 38px 26px 34px; }
  .reviews__arrow { display: none; }


  /* финальный блок: цветы уходят в углы, голуби — по краям */
  .cta { height: max(100svh, 720px); }
  .cta__flowers { height: 56%; -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
  .cta__flowers--left { top: 6%; left: -10cqh; }
  .cta__flowers--right { top: auto; bottom: 8%; right: -9cqh; }
  .cta__petal, .cta__dove--l2, .cta__dove--l3 { display: none; }
  .cta__dove--r1 { --r: 2 !important; --t: 9 !important; --w: 10 !important; }
  .cta__dove--r2 { --r: 9 !important; --t: 47 !important; --w: 9 !important; }
  .cta__dove--r3 { --r: -1.5 !important; --t: 60 !important; --w: 8.4 !important; }
  .cta__dove--l1 { --l: 3 !important; --t: 56 !important; --w: 9 !important; }
  .cta__inner { padding-top: 15cqh; }
  .cta__title { font-size: clamp(42px, 12vw, 56px); }
  .cta__lead { font-size: 16px; padding: 0 20px; }
  .cta__actions { gap: 12px; margin-top: 4cqh; padding: 0 8px; }
  .cta__actions .btn { flex: 1 1 100%; min-height: 54px; }
  .cta__envelope { width: 30cqh; }
}

/* самые узкие телефоны (iPhone SE 1-го поколения и подобные) */
@media (max-width: 360px) {
  .note { font-size: 13px; }
  /* на самых узких экранах подписи на 3–12px шире места — чуть мельче, чтобы встали в одну строку */
  .designs .design h3 { font-size: 14px; }
  .included__grid .inc h3 { font-size: 14.5px; }
  .included__grid .inc { padding-left: 4px; padding-right: 4px; }
  .infinity h3 { font-size: 21px !important; }
  /* правый голубь финального блока задевал заголовок — на самых узких экранах трёх хватает */
  .cta__dove--r1 { display: none; }
  /* карточки преимуществ узкие: иконка и подпись мельче, чтобы не заходить на рамку */
  .feature { padding: 16px 8px; }
  .feature .icon--lg { width: 38px; height: 38px; margin-bottom: 10px; }
  .feature h3 { font-size: 18px; }
  /* логотип чуть меньше, чтобы кнопка меню целиком помещалась в шапке */
  .logo__mark { width: 36px; height: 36px; }
  .logo__text b { font-size: 16px; }
  .burger { flex: none; }
  .design { padding-left: 12px; padding-right: 12px; }
  .design__actions { gap: 8px; }
  .design__actions .btn--sm { padding: 0 14px; letter-spacing: .02em; }
  .why__btn { padding: 0 24px; }
}

/* ---------- Телефон: свои картины и раскладка по макету ----------
   На телефоне у главного экрана и финального блока — свои вертикальные картины, под блоками —
   кремовое полотно, на стыках блоков — гирлянды роз слева и справа, у второго блока — букеты
   в верхних углах. Раскладка блоков — как на макетах заказчика. */
.hero__phone, .cta__phone { display: none; }

@media (max-width: 760px) {
  /* главный экран — как на макете: картина на весь экран (облака и лучи сверху, конверт внизу),
     текст и кнопки компактно над конвертом. Конверт начинается на 59% высоты картины, поэтому
     экран не ниже 830px: на коротких телефонах главный экран чуть выше окна, но текст на конверт не заходит */
  .hero { align-items: flex-start; min-height: max(100svh, 830px); padding: 92px 0 0; }
  .hero__stage { display: none; }
  .hero__phone { display: block; position: absolute; inset: 0; }
  .hero__phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
  /* низ картины мягко переходит в облака второго блока */
  /* низ картины уходит в облака длинно и неравномерно, а не обрывается полосой */
  .hero__media {
    -webkit-mask: linear-gradient(180deg, #000 82%, rgba(0, 0, 0, .7) 90%, rgba(0, 0, 0, .25) 96%, transparent 100%);
    mask: linear-gradient(180deg, #000 82%, rgba(0, 0, 0, .7) 90%, rgba(0, 0, 0, .25) 96%, transparent 100%);
  }
  .hero__eyebrow { margin: 0 auto 12px; font-size: 11px; letter-spacing: .3em; line-height: 1.9; }
  /* кнопка меню — три тонкие линии без рамки, как на макете; при открытии — крестик */
  .burger { width: 44px; height: 44px; border: 0; background: none; }
  .burger span, .burger::before { left: 8px; right: 8px; height: 1.4px; background: var(--taupe); }
  .burger span:first-child { top: 14px; }
  .burger span:last-child { top: 29px; }
  .burger::before { content: ""; position: absolute; top: 21.5px; transition: opacity .3s; }
  .burger[aria-expanded="true"]::before { opacity: 0; }
  .burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 21.5px; }
  .hero__title { font-size: min(40px, 10.6vw); line-height: .98; }
  .hero__lead { margin: 12px auto 0; font-size: 15px; line-height: 1.45; }
  .hero__actions { flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
  .hero__actions .btn { flex: none; width: min(76vw, 300px); min-height: 46px; padding: 0 20px; border-radius: 9px; font-size: 15px; }
  .hero__facts {
    display: flex;
    justify-content: center;
    gap: 8px 22px;
    max-width: 320px;
    margin: 16px auto 0;
    font-size: 13px;
  }
  .hero__facts .icon { width: 17px; height: 17px; }

  /* общий фон блоков — кремовое полотно, повторяется по высоте */
  .blocks::before { background: url("../images/mobile/bg.webp") center top / 100% auto repeat-y; }

  /* гирлянды на стыках: слева и справа, зеркально, самой пышной частью — на линии стыка */
  .blocks > .section ~ .section::before,
  .blocks > .section ~ .section::after { width: 34vw; aspect-ratio: 520 / 1107; }
  .blocks > .section ~ .section::before { left: 0; background-image: url("../images/mobile/garland-l.webp"); }
  .blocks > .section ~ .section::after { right: 0; background-image: url("../images/mobile/garland-r.webp"); }
  /* золотой разделитель — на уровне самой пышной части гирлянд (на 4% их высоты ниже стыка)
     и только в просвете между ними: гирлянда выступает к центру на 33.6vw, линия занимает 24vw */
  .block-line { top: 2.9vw; --line-w: 24vw; }

  /* второй блок: букеты в верхних углах, голуби по бокам — размытые, как на макете */
  /* стык главного экрана и второго блока — в облаках: полоса облаков пышнее, плотнее и лежит
     прямо на линии стыка, закрывая её; верх угловых букетов растворяется в облаках */
  .cloud-band { --band-h: 300px; }
  .cloud-band i { translate: 0 -50%; opacity: 1; }
  /* второй слой ниже стыка: из него вырастают букеты второго блока */
  .cloud-band i + i { translate: 0 -20%; opacity: .7; scale: 1 .8; }
  /* под облаками — мягкая кремовая дымка во всю ширину, чтобы между клубами не просвечивала граница */
  .cloud-band::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -110px;
    height: 220px;
    background: radial-gradient(120% 50% at 50% 50%, rgba(250, 244, 236, .85), rgba(250, 244, 236, .5) 55%, transparent 100%);
  }
  .cloud-band--cta::before { display: none; }
  .why__corner { width: min(38vw, 150px); }
  .why__corner img {
    -webkit-mask: linear-gradient(180deg, transparent 0, transparent 8%, rgba(0, 0, 0, .3) 28%, #000 64%);
    mask: linear-gradient(180deg, transparent 0, transparent 8%, rgba(0, 0, 0, .3) 28%, #000 64%);
  }
  /* облака на стыке отзывов и финала ложатся на сам стык и закрывают верх цветочной рамки */
  .cloud-band.cloud-band--cta i { translate: 0 -52%; }
  .cloud-band.cloud-band--cta i + i { translate: 0 -34%; }
  /* между подзаголовком и карточками — полоса для голубей: по бокам, размытые, как на макете */
  .why__head { margin-bottom: 96px; }
  .why__dove--1 { left: 80%; top: 318px; width: 18vw; filter: blur(2px); }
  .why__dove--2 { left: 1%; top: 322px; width: 17vw; filter: blur(2.4px); }
  .why__dove--3 { display: none; }

  /* дизайны — сеткой по два, как на макете; телефон-превью целиком уменьшен вместе с надписями */
  .designs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  /* содержимое и кнопки — внутри золотой рамки карточки (она в 10px от края) */
  .design { padding: 50px 16px 18px; }
  .design:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .designs__dots { display: none; }
  .badge { top: 14px; padding: 3px 9px; font-size: 9px; }
  .design .phone { zoom: .56; margin-top: 0; }
  /* названия дизайнов — в одну строку, где хватает места */
  .design h3 { margin-top: 12px; font-size: clamp(15px, 4.6vw, 19px); line-height: 1.1; }
  .design > p { margin-top: 4px; font-size: 11.5px; line-height: 1.4; }
  .design__actions { gap: 6px; margin-top: 12px; }
  /* две кнопки делят ширину карточки поровну */
  .design__actions .btn--sm { flex: 1 1 0; min-width: 0; min-height: 32px; padding: 0 4px; font-size: 10.5px; letter-spacing: 0; }

  /* «Без ограничений»: знак слева за чертой, текст справа */
  .inc { padding-left: 6px; padding-right: 6px; }
  .inc h3 { font-size: clamp(14.5px, 4.1vw, 17px); }

  .infinity {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 18px;
    padding: 24px 20px;
    text-align: left;
  }
  .infinity__sign { grid-row: 1 / span 2; padding-right: 18px; border-right: 1px solid rgba(110, 88, 72, .25); font-size: 72px; }
  .infinity h3 { margin-top: 0; font-size: 24px; }
  .infinity p { margin-top: 4px; font-size: 13px; }

  /* как это работает: номера слева на пунктирной линии, иконка и текст справа */
  .steps { gap: 30px; max-width: none; }
  .steps::before {
    display: block;
    left: 31px;
    top: 30px;
    bottom: 30px;
    width: 0;
    height: auto;
    background: none;
    right: auto;
    border-radius: 0;
    box-shadow: none;
    border-left: 2px dotted rgba(184, 149, 94, .55);
    animation: none;
    -webkit-mask: none;
    mask: none;
    opacity: 1;
  }
  /* пунктир прорисовывается сверху вниз, когда блок появляется */
  .js .steps::before { transform: scaleY(0); transform-origin: 50% 0; }
  .js .steps.is-in::before { transform: scaleY(1); }
  .steps.is-in::before { animation: none; }
  .step {
    display: grid;
    grid-template-columns: 62px 1fr;
    column-gap: 18px;
    align-items: start;
    text-align: left;
  }
  .step .icon--lg { grid-column: 2; grid-row: 1; width: 54px; height: 54px; margin: 0 0 6px; }
  .step__num { grid-column: 1; grid-row: 1 / span 3; align-self: center; width: 62px; height: 62px; font-size: 30px; }
  .step h3 { grid-column: 2; grid-row: 2; margin-top: 0; font-size: 23px; }
  .step p { grid-column: 2; grid-row: 3; max-width: none; margin: 6px 0 0; font-size: 14px; }

  /* тарифы — по порядку цены; пункты в две колонки */
  .price--featured { order: 0; }
  .price__desc { font-size: 13.5px; }
  /* пункты — столбиком, каждый в одну строку: в две колонки они рвались на 2–4 строки */
  .price .checks { grid-template-columns: 1fr; gap: 8px; width: max-content; max-width: 100%; margin: 0 auto; }
  .price .checks li { gap: 9px; font-size: 13.5px; }
  .price .checks .icon { width: 16px; height: 16px; margin-top: 2px; }

  /* отзывы — столбиком по три, под ними стрелки и точки */
  .reviews { display: grid; grid-template-columns: auto 1fr auto; align-items: center; row-gap: 22px; }
  .reviews__track {
    grid-column: 1 / -1;
    grid-row: 1;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .review { flex: none; width: 100%; padding: 26px 22px 24px; animation: review-in .6s var(--ease) both; }
  .review.is-off { display: none; }
  .review p { font-size: 14px; }
  .reviews__arrow { display: grid; position: static; grid-row: 2; width: 44px; height: 44px; }
  .reviews__arrow--prev { grid-column: 1; }
  .reviews__arrow--next { grid-column: 3; }
  .reviews__dots { grid-column: 2; grid-row: 2; }

  /* финальный блок: своя картина с розами и конвертом; голуби — как на макете */
  .cta__sky, .cta__flowers, .cta__light, .cta__env { display: none; }
  .cta__phone { display: block; position: absolute; inset: 0; }
  .cta__phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
  .cta__dove--l1 { --l: 3.5 !important; --t: 10 !important; --w: 10 !important; }
  /* голуби — в свободных местах: вверху у подписи «Начните сейчас» и по бокам от кнопок */
  .cta__dove--l2 { display: block; --l: .5 !important; --t: 54 !important; --w: 7 !important; }
  .cta__dove--r1 { --r: 1.5 !important; --t: 12 !important; --w: 9 !important; }
  .cta__dove--r2 { --r: .5 !important; --t: 47 !important; --w: 7 !important; }

  .cta__dove--r3, .cta__dove--l3 { display: none; }
  /* верх картины проступает из фона постепенно — рамка из роз не начинается ровным срезом */
  .cta__scene {
    -webkit-mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .45) 8%, #000 19%);
    mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .45) 8%, #000 19%);
  }
  /* кнопки уже, как на макете: по бокам остаётся место голубям */
  .cta__actions { flex-direction: column; align-items: center; }
  .cta__actions .btn { flex: none; width: min(100%, 264px); }

  .how__dove--l { left: 1%; top: 168px; width: 19vw; }
  .how__dove--r { left: 79%; top: 150px; width: 19vw; }
  .reviews__dove--l { left: 2%; top: 165px; width: 19vw; }
  .reviews__dove--r { left: 78%; top: 150px; width: 19vw; }
}
@keyframes review-in { from { opacity: 0; transform: translateY(12px); } }
/* самые узкие телефоны: голуби финального блока меряются от высоты блока и выходят крупнее ширины —
   левый у подзаголовка не помещается, правый — меньше и рядом с заголовком */
@media (max-width: 360px) {
  .hero__eyebrow { font-size: 10px; letter-spacing: .2em; }
  /* две кнопки рядом в узкой карточке не помещаются — одна под другой, во всю ширину рамки */
  .design__actions { flex-direction: column; gap: 6px; }
  .design__actions .btn--sm { flex: none; width: 100%; }
  .design .phone { zoom: .46; }
  .cta__dove--l2 { display: none !important; }
  .cta__dove--l1 { --l: 1 !important; --w: 8 !important; }
  .cta__dove--r2 { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
