/* «Громко» — лендинг v2. Спокойный премиум: воздух, крупный serif, живая фотография. */

/* Шрифты — со своего сервера (без Google Fonts: аудит T1). Файлы общие с приглашением (../invite/fonts/, OFL),
   поэтому живые приглашения в телефонах берут их из кеша. Golos Text и Cormorant Garamond — вариативные (вес диапазоном).
   Lora — только цифры (у Prata «1» похожа на «l»). У декоративных Cormorant и Oranienbaum пробел берётся из кириллического
   файла (он объявлен последним и проверяется первым) — латиница грузится, только если в тексте есть латинские знаки. Критичные кириллические Prata и Golos — preload в index.html. */
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap; src: url("../invite/fonts/prata-roman-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Prata"; font-style: normal; font-weight: 400; font-display: swap; src: url("../invite/fonts/prata-roman-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../invite/fonts/golos-text-roman-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../invite/fonts/golos-text-roman-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oranienbaum"; font-style: normal; font-weight: 400; font-display: swap; src: url("../invite/fonts/oranienbaum-roman-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oranienbaum"; font-style: normal; font-weight: 400; font-display: swap; src: url("../invite/fonts/oranienbaum-roman-cyrillic.woff2") format("woff2"); unicode-range: U+0020, U+00A0, U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../invite/fonts/cormorant-garamond-roman-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../invite/fonts/cormorant-garamond-roman-cyrillic.woff2") format("woff2"); unicode-range: U+0020, U+00A0, U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../invite/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../invite/fonts/cormorant-garamond-italic-cyrillic.woff2") format("woff2"); unicode-range: U+0020, U+00A0, U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../invite/fonts/lora-digits.woff2") format("woff2"); unicode-range: U+2E, U+30-3A, U+B7; }

/* Запасные шрифты с метриками Prata и Golos Text: пока грузятся настоящие, строки переносятся так же —
   первый экран не прыгает (qa Q5, CLS 0,46). Коэффициенты сняты по кириллической строке заголовка. */
@font-face { font-family: "Prata Fallback"; src: local("Georgia"); size-adjust: 109.7%; ascent-override: 90%; descent-override: 33%; line-gap-override: 0%; }
@font-face { font-family: "Golos Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 103.5%; ascent-override: 95%; descent-override: 21%; line-gap-override: 0%; }

:root {
  --bg: #F7F5F0;
  --bg-2: #EFEBE3;
  --paper: #FBFAF7;
  --ink: #161616;
  --soft: #66625B;          /* 5,5 : 1 на --bg, 5,1 : 1 на --bg-2 */
  --line: rgba(22, 22, 22, .12);
  --line-2: rgba(22, 22, 22, .2);
  --accent: #3E4630;
  --accent-ink: #2C3222;
  --on-dark: #F4F0E6;
  --on-dark-soft: rgba(244, 240, 230, .74);
  --night: #1B1C18;

  --serif: "Prata", "Prata Fallback", "Times New Roman", serif;
  --sans: "Golos Text", "Golos Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --caps: var(--sans);        /* метки — Golos 500 капсом: на странице две гарнитуры + цифры Lora (art L-6) */
  --num: "Lora", "Prata", serif; /* цифры: у Prata «1» похожа на «l» */

  --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); /* альбомная ориентация с «чёлкой» (qa Q20) */
  --max: 1320px;
  --sec: clamp(60px, 11vw, 150px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 760px) { :root { --gutter: max(40px, env(safe-area-inset-left), env(safe-area-inset-right)); } }
@media (min-width: 1200px) { :root { --gutter: 56px; } }

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* запас для iOS < 16 (qa Q20) */
  overflow-x: clip;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-dark); }

/* «Сами»: без конструктора (CREATE_URL пуст) всё про него скрыто; с ним — скрыты запасные тексты «только под ключ» */
html:not(.has-diy) [data-diy-only] { display: none !important; }
html.has-diy [data-no-diy] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; }
.anchor { position: absolute; top: 0; }

/* цифры одной высоты везде, где это цены и время */
.num, .plan__price, .step__n, .mini-prog time, .rail-ctrl__count { font-variant-numeric: lining-nums tabular-nums; }
.num { font-feature-settings: "lnum" 1; }
.nw { white-space: nowrap; }

.label {
  font: 500 11px/1.4 var(--caps);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--soft);
}
@media (min-width: 960px) { .label { letter-spacing: .2em; } }
.h2 {
  font: 400 clamp(38px, 9.6vw, 88px)/1.04 var(--serif);
  letter-spacing: -.02em;
  margin-top: 16px;
  text-wrap: balance;
}
.sec-head { margin-bottom: clamp(36px, 6vw, 80px); max-width: 860px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--split { max-width: none; display: grid; gap: 20px; align-items: end; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.sec-sub { margin-top: 20px; max-width: 520px; color: var(--soft); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.sec-head--center .sec-sub { margin-inline: auto; }
.sec-head--split .sec-sub { margin-top: 0; }
@media (min-width: 900px) { .sec-head--split .sec-sub { justify-self: end; } }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border-radius: 999px;
  font: 500 15px/1.2 var(--sans);
  letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--glass {
  color: #fff; border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .7); }
.btn--ink { background: var(--accent); color: var(--on-dark); }
.btn--ink:hover { background: var(--accent-ink); }
.btn--line { border: 1px solid var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1.2 var(--sans); text-decoration: none;
  padding: 12px 0 4px; border-bottom: 1px solid currentColor; /* область нажатия от 40 px */
}
.link-arrow::after { content: "→"; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-u { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; color: var(--ink); padding: 6px 0; }

/* ---------- шапка ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { font: 400 24px/1 var(--serif); letter-spacing: -.01em; text-decoration: none; padding: 10px 0; }
.hdr__nav { display: none; gap: 36px; }
.hdr__nav a { font: 500 11px/1 var(--caps); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; opacity: .85; transition: opacity .3s; padding: 12px 0; }
.hdr__nav a:hover { opacity: 1; }
.hdr__cta {
  font: 500 14px/1 var(--sans);
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .08);
  transition: background-color .4s, border-color .4s, color .4s, opacity .4s;
}
.hdr__cta-s { display: none; }
@media (max-width: 359px) {
  .hdr__cta { display: inline-flex; align-items: center; padding: 0 16px; height: 40px; white-space: nowrap; }
  .hdr__cta-l { display: none; }
  .hdr__cta-s { display: inline; }
}
.hdr.is-solid {
  background: rgba(247, 245, 240, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-solid .hdr__cta { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }
/* на первом экране свои такие же кнопки — в шапке кнопка появляется, когда они ушли из кадра (ревизия 2, № 5) */
.js .hdr:not(.cta-on) .hdr__cta { opacity: 0; visibility: hidden; pointer-events: none; }
.hdr.is-hidden { transform: translateY(-100%); }
/* мобильный: пока видна плавающая кнопка, вторая в шапке не нужна */
@media (max-width: 959px) { .hdr.dock-on .hdr__cta { opacity: 0; pointer-events: none; } }
@media (min-width: 960px) {
  .hdr__in { height: 84px; }
  .hdr__nav { display: flex; }
  .hdr__cta { padding: 14px 22px; }
}

/* ---------- телефон (общий для первого экрана и тем) ---------- */
.phone {
  display: block; position: relative;
  border-radius: calc(var(--phone-w) * .16);
  padding: calc(var(--phone-w) * .028);
  background: linear-gradient(145deg, #3a3a36, #0d0d0c 40%, #2a2a27);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .7);
  transition: transform .8s var(--ease);
}
.phone::after { /* «остров» камеры */
  content: ""; position: absolute; z-index: 4; top: calc(var(--phone-w) * .055); left: 50%;
  width: 30%; height: calc(var(--phone-w) * .07); transform: translateX(-50%);
  border-radius: 999px; background: #050505;
}
.phone__screen {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 390 / 844;
  border-radius: calc(var(--phone-w) * .135);
  background: #222; isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.phone__screen iframe {
  position: absolute; top: 0; left: 0; z-index: 2;
  width: 340px; height: 736px; border: 0; /* логическая ширина 340 (FRAME_W в landing.js), пропорции экрана 390×844 */
  transform-origin: 0 0; transform: scale(var(--s, .6));
  pointer-events: none; background: transparent;
  opacity: 0; transition: opacity .5s var(--ease);
}
.phone__screen iframe.is-loaded { opacity: 1; }
.phone__screen iframe.is-stale { opacity: 0; transition-duration: .22s; }
.phone__screen.is-live .ph { visibility: hidden; } /* живая страница загрузилась — заглушка не просвечивает */
/* тонкая «загрузка» по верхнему краю экрана, пока примеряем */
.phone__screen::after {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  transform: translateX(-100%); opacity: 0;
}
.is-busy .phone__screen::after { opacity: 1; animation: sweep 1.1s var(--ease-io) infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
/* в карусели телефон — кнопка: нажатие открывает приглашение целиком (#view) */
.theme .phone { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.theme .phone:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 4px; }
.phone.is-nudge { animation: nudge .4s var(--ease-io); }
@keyframes nudge { 50% { transform: scale(1.02); } }

/* заглушка экрана — видна сразу и мгновенно показывает введённые имена */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; }
.ph img { object-fit: cover; }
.ph > span { display: block; }
.ph__names { font-family: var(--serif); overflow-wrap: anywhere; padding: 0 8%; }
.ph__k { font: 500 calc(var(--phone-w) * .03)/1.4 var(--caps); letter-spacing: .24em; text-transform: uppercase; }

.ph--linia { background: #EDEBE4; color: #141414; padding-top: 24%; }
.ph--linia .ph__k { color: #6b6862; }
.ph--linia .ph__names { font: 400 calc(var(--phone-w) * .13 * var(--fit, 1))/1.02 var(--serif); margin-top: 8%; }
.ph--linia img { width: 46%; aspect-ratio: 3/4; height: auto; filter: grayscale(1) contrast(1.05); margin-top: 10%; }
.ph--linia .ph__date { margin-top: auto; margin-bottom: 12%; font: 500 calc(var(--phone-w) * .045)/1 var(--caps); letter-spacing: .2em; }

.ph--svet { color: #fff; justify-content: flex-end; padding-bottom: 16%; }
.ph--svet img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; object-position: 50% 40%; }
.ph--svet::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 28, 24, .72), rgba(20, 28, 24, 0) 62%); }
.ph--svet .ph__names { font-size: calc(var(--phone-w) * .15 * var(--fit, 1)); line-height: .98; margin: 3% 0; }
.ph--svet .ph__k { opacity: .92; }
.ph--svet .ph__btn { margin-top: 8%; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .14); font: 500 calc(var(--phone-w) * .045)/1 var(--sans); }

.ph--plenka { background: #3d3a33; color: #F1E6C8; justify-content: center; gap: 4%; padding-bottom: 8%; }
.ph--plenka .ph__blur { position: absolute; inset: -10%; width: 120%; height: 120%; filter: blur(14px) brightness(.5) saturate(.8); z-index: -1; }
.ph__meta { align-self: flex-start; margin-left: 10%; font: 500 calc(var(--phone-w) * .03)/1 var(--caps); letter-spacing: .14em; color: rgba(241, 230, 200, .85); font-variant-numeric: lining-nums; }
.ph__finder { position: relative; width: 74%; aspect-ratio: 4/5; padding: calc(var(--phone-w) * .03); }
.ph__finder::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(#F1E6C8 0 0) 0 0 / 14px 1px, linear-gradient(#F1E6C8 0 0) 0 0 / 1px 14px,
    linear-gradient(#F1E6C8 0 0) 100% 0 / 14px 1px, linear-gradient(#F1E6C8 0 0) 100% 0 / 1px 14px,
    linear-gradient(#F1E6C8 0 0) 0 100% / 14px 1px, linear-gradient(#F1E6C8 0 0) 0 100% / 1px 14px,
    linear-gradient(#F1E6C8 0 0) 100% 100% / 14px 1px, linear-gradient(#F1E6C8 0 0) 100% 100% / 1px 14px;
  background-repeat: no-repeat;
}
.ph__finder img { width: 100%; height: 100%; border-radius: 3px; }
.ph--plenka .ph__k { color: rgba(241, 230, 200, .8); font-size: calc(var(--phone-w) * .026); }
.ph--plenka .ph__names { font: 400 calc(var(--phone-w) * .12 * var(--fit, 1))/1 "Oranienbaum", var(--serif); text-transform: uppercase; letter-spacing: .02em; }

.ph--premiera {
  color: #E6D3A3; justify-content: center; gap: 5%;
  background: radial-gradient(120% 80% at 50% 20%, #6E1527 0%, #5A0F1F 40%, #3B0A14 100%);
}
.ph__frame { width: 62%; aspect-ratio: 3/4; padding: 7px; border: 1px solid rgba(230, 211, 163, .7); outline: 1px solid rgba(230, 211, 163, .35); outline-offset: 4px; }
.ph__frame img { width: 100%; height: 100%; filter: sepia(.2) saturate(.85); }
.ph__mono { font: italic 500 calc(var(--phone-w) * .14)/1 "Cormorant Garamond", var(--serif); margin-top: 4%; }
.ph--premiera .ph__k { color: rgba(230, 211, 163, .85); }

.ph--pismo { background: #FBFAF7; color: #3A3631; justify-content: center; gap: 5%; }
.ph__vine { width: 46%; color: #B9B1A4; }
.ph__sketch { width: 60%; aspect-ratio: 3/4; border-radius: 999px 999px 0 0; overflow: hidden; }
.ph__sketch img { width: 100%; height: 100%; filter: grayscale(1) contrast(1.5) brightness(1.2); mix-blend-mode: multiply; opacity: .85; }
.ph--pismo .ph__names { font: 500 calc(var(--phone-w) * .1 * var(--fit, 1))/1.05 "Cormorant Garamond", var(--serif); }
.ph--pismo .ph__k { color: #6a6358; }

/* примерка: в заглушках чужих лиц нет — кадр поднят к детали над головами (art T-1), подпись «здесь будет ваше фото» */
.is-trying .ph img { object-position: 50% 0; transform: scale(1.8); transform-origin: 50% 0; }
.is-trying .ph img.ph__blur { transform: none; }
.is-trying .ph__finder, .is-trying .ph__frame, .is-trying .ph__sketch { overflow: hidden; }
.is-trying .ph--linia img { transform: none; aspect-ratio: 2 / 1; } /* «Линия»: только верхняя полоса кадра — фасад */
/* «Свет»: в кадре над головами места мало — вместо фото пустой горизонт: небо и вода */
.is-trying .ph--svet img { display: none; }
.is-trying .ph--svet { background: linear-gradient(180deg, #CBD3D6 0%, #B9C3C7 54%, #93A1A6 54.4%, #6E7E84 100%); }
.is-trying .ph--pismo .ph__sketch img { transform: scale(2.6); } /* «Письмо»: арочное окно над парой */
.is-trying .ph::after {
  content: "здесь будет ваше фото"; position: absolute; z-index: 2; left: 50%; top: 10%; transform: translateX(-50%);
  padding: 4px 8px; border: 1px solid currentColor; border-radius: 2px; opacity: .72; white-space: nowrap;
  font: 500 calc(var(--phone-w) * .028)/1.2 var(--caps); letter-spacing: .14em; text-transform: uppercase;
}
.is-trying .ph--linia::after { top: auto; bottom: 30%; }
/* «Премьера» в примерке — монограмма пары вместо фото (как в самом приглашении) */
.is-trying .ph--premiera .ph__frame { display: none; }
.is-trying .ph--premiera .ph__mono { font-size: calc(var(--phone-w) * .24); }
.is-trying .ph--premiera::after { content: none; }

/* ---------- 1. первый экран ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden;
  background: #2a2620;
}
.hero__media { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(1.06);
  animation: heroZoom 2.4s var(--ease) both;
}
@keyframes heroZoom { from { transform: scale(1.14); filter: brightness(.7); } to { transform: scale(1.06); filter: none; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, .45) 0%, rgba(14, 12, 10, 0) 20%),
    linear-gradient(0deg, rgba(14, 12, 10, .88) 0%, rgba(14, 12, 10, .55) 45%, rgba(14, 12, 10, 0) 75%);
}
.hero__in { padding-top: 92px; width: 100%; min-width: 0; }
.hero__kicker { color: rgba(255, 255, 255, .85); margin-bottom: 14px; }
.hero__title {
  font: 400 clamp(44px, 12.6vw, 56px)/.98 var(--serif);
  letter-spacing: -.025em;
  max-width: 11.5em;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; }
.hero__foot { margin-top: 20px; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.hero__lead { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 460px; text-wrap: pretty; }
.hero__actions { display: grid; gap: 10px; }
/* «или соберите сами — 1 990 ₽ · примерить на свои имена» — строкой под главной кнопкой (ревизия 3, № 16) */
.hero__alt { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .78); text-wrap: pretty; }
.hero__alt a { display: inline-block; padding: 6px 0; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-decoration-thickness: 1px; text-underline-offset: .25em; }
.hero__alt a:hover { text-decoration-color: #fff; }
.hero__alt a::after { content: " →"; }
.hero__sep { color: rgba(255, 255, 255, .55); }

/* телефон на первом экране — только на компьютере; на телефоне примерка идёт следующим блоком (ревизия 2, № 4г) */
.hero__phone { display: none; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hero__cap { display: none; }
/* art L-2: телефон и планшет — лица пары в верхней трети, текст начинается ниже лиц и ложится на тёмную часть кадра */
@media (max-width: 999px) {
  .hero__media { inset: -4% 0 auto; height: calc(66svh + 4%); -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 98%); mask-image: linear-gradient(180deg, #000 50%, transparent 98%); }
  .hero__media img { object-position: 50% 0; }
  .hero__in { padding-top: max(84px, 30svh); padding-bottom: 28px; }
  .hero__foot { gap: 16px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(14, 12, 10, .4) 0%, rgba(14, 12, 10, 0) 14%),
      linear-gradient(0deg, rgba(30, 26, 22, .5) 0%, rgba(30, 26, 22, .55) 50%, rgba(14, 12, 10, 0) 72%);
  }
}

/* низкие телефоны (320×640, 360×640): кнопка с ценой помещается на первый экран (аудит лендинга №7) */
@media (max-width: 559px) and (max-height: 700px) {
  .hero__in { padding-top: max(76px, 26svh); padding-bottom: 24px; }
  .hero__media { height: calc(58svh + 4%); }
  .hero__media img { object-position: 50% 8%; }
  .hero__title { font-size: clamp(36px, 11.6vw, 44px); }
  .hero__foot { margin-top: 14px; gap: 14px; }
  .hero__lead { font-size: 15px; }
}

@media (min-width: 560px) {
  .hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero__title { font-size: clamp(40px, min(10.5vw, 14vh), 96px); } /* альбомная ориентация: кнопки на первом экране */
}
@media (min-width: 1000px) {
  .hero { justify-content: center; }
  .hero__in {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
    column-gap: clamp(48px, 6vw, 112px); align-items: end;
    padding-top: 112px; padding-bottom: 48px;
  }
  .hero__text { grid-row: 1 / span 2; align-self: end; padding-bottom: 8px; }
  .hero__title { font-size: clamp(56px, min(5.6vw, 10vh), 112px); max-width: 7.4em; }
  /* art L-1: кадр шире экрана и прижат влево — руки уходят в правую часть, к телефону; слева под заголовком — небо */
  .hero__media img { width: 118%; max-width: none; object-position: 50% 32%; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(20, 17, 14, .55) 0%, rgba(20, 17, 14, .25) 55%, rgba(20, 17, 14, 0) 75%),
      linear-gradient(180deg, rgba(14, 12, 10, .45) 0%, rgba(14, 12, 10, 0) 20%),
      linear-gradient(0deg, rgba(14, 12, 10, .7) 0%, rgba(14, 12, 10, 0) 45%);
  }
  .hero__foot { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .24); gap: 22px; }
  .hero__lead { font-size: 17px; }
  .hero__phone {
    --phone-w: clamp(220px, calc((100vh - 260px) * .45), 300px);
    display: block; width: var(--phone-w); margin: 0; grid-column: 2;
  }
  .hero__phone .phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 90px -30px rgba(0, 0, 0, .8); }
  .hero__phone:hover .phone { transform: translateY(-6px); }
  .hero__cap {
    display: flex; grid-column: 2; justify-content: space-between; align-items: center; gap: 16px;
    margin-top: 18px; color: rgba(255, 255, 255, .82);
  }
  .hero__dots { display: inline-flex; gap: 6px; }
  .hero__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background-color .4s, transform .4s; }
  .hero__dots i.is-on { background: #fff; transform: scale(1.25); }
}

/* интро-анимация первого экрана: кнопки видны раньше 0,6 с */
.js .hero__title .w > span { transform: translateY(105%); animation: rise .8s var(--ease) both; animation-delay: calc(.08s + var(--i) * .05s); }
.js .intro { opacity: 0; transform: translateY(12px); animation: fadeUp .8s var(--ease) both; animation-delay: calc(.08s + var(--i) * .05s); }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- появление при прокрутке ---------- */
/* мобильный: без размытия (тормозит во встроенных браузерах), 0,6 с, сдвиг 16 px */
.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--d, 0) * 60ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (min-width: 769px) {
  .js [data-reveal] { transform: translateY(24px); transition-duration: .9s; transition-delay: calc(var(--d, 0) * 90ms); }
  .js .h2[data-reveal], .js .final__h[data-reveal] { filter: blur(5px); transition-property: opacity, transform, filter; }
  .js .h2[data-reveal].is-in, .js .final__h[data-reveal].is-in { filter: none; }
}

/* ---------- 2. знакомо? ---------- */
.pain { padding-bottom: calc(var(--sec) * .8); }
.pain__grid { display: grid; gap: 20px; }
.pain__photo { display: none; overflow: hidden; border-radius: 2px; } /* фото конвертов — только на компьютере (№ 14) */
.pain__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.pain__list { border-top: 1px solid var(--line); }
.pain__item { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.pain__q { font: 400 clamp(25px, 6.6vw, 46px)/1.12 var(--serif); letter-spacing: -.015em; }
.pain__item p { margin-top: 6px; color: var(--soft); max-width: 420px; }
.pain__out { margin-top: clamp(40px, 8vw, 110px); text-align: center; }
.pain__out-t {
  font: 400 clamp(36px, 9vw, 64px)/1.1 var(--serif); letter-spacing: -.02em;
  text-wrap: balance;
}
.pain__out em { font-style: normal; color: var(--accent); }
.urlbar {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  margin-top: 26px; padding: 12px 20px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -26px rgba(30, 36, 20, .4);
  font: 400 15px/1.2 var(--sans); color: var(--ink); white-space: nowrap;
}
.urlbar svg { width: 15px; height: 15px; flex: none; color: var(--soft); }
.urlbar > span { overflow: hidden; text-overflow: ellipsis; }
.urlbar #urlSlug { color: var(--accent); font-weight: 500; }
.urlbar__caret { display: inline-block; width: 1px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--ink); animation: blink 1s steps(1) 6; }
@keyframes blink { 50% { opacity: 0; } }
@media (min-width: 900px) {
  .pain__grid { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .pain__photo { display: block; margin: 40px 0 0; aspect-ratio: 4 / 5; max-width: 300px; }
  .pain__photo img { width: 100%; height: 100%; }
  .pain__head { position: sticky; top: 120px; }
  .pain__item { padding: 32px 0 34px; }
  .urlbar { font-size: 17px; padding: 14px 24px; }
}

/* ---------- 3. как это работает ---------- */
.how { background: var(--bg-2); }
.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); margin-bottom: clamp(28px, 5vw, 64px);
  width: 100%; max-width: 400px;
}
.seg__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--accent);
  transition: transform .6s var(--ease);
}
.seg[data-active="diy"] .seg__thumb { transform: translateX(100%); }
.seg__btn {
  position: relative; z-index: 1; height: 48px; border-radius: 999px;
  font: 500 15px/1 var(--sans); color: var(--ink);
  transition: color .5s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.seg__btn small { font: 500 13px/1 var(--sans); opacity: .72; }
.seg__btn[aria-selected="true"] { color: var(--on-dark); }

.how__panels { position: relative; }
.steps { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.steps[hidden] { display: none; }
.steps.is-entering .step { animation: stepIn .6s var(--ease) both; animation-delay: calc(var(--k, 0) * 70ms); }
.steps.is-entering .step:nth-child(2) { --k: 1; }
.steps.is-entering .step:nth-child(3) { --k: 2; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.step {
  display: grid; grid-template-columns: 48px 1fr; grid-template-areas: "n when" "n t" "n p";
  column-gap: 14px; padding: 18px 0 20px; border-bottom: 1px solid var(--line);
}
.step__n { grid-area: n; font: 400 40px/.9 var(--num); color: var(--accent); }
.step__when { grid-area: when; margin-bottom: 4px; }
.step__t { grid-area: t; font: 400 24px/1.2 var(--serif); letter-spacing: -.01em; }
.step p { grid-area: p; margin-top: 4px; color: var(--soft); max-width: 360px; }
.how__cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.how__cta [hidden] { display: none; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 40px; }
  .step {
    grid-template-columns: 1fr; grid-template-areas: "when" "n" "t" "p";
    border-bottom: 0; border-top: 1px solid var(--line-2); padding: 22px 0 0;
  }
  .step__when { margin-bottom: 36px; }
  .step__n { font-size: clamp(72px, 7vw, 96px); margin-bottom: 24px; color: rgba(62, 70, 48, .35); }
  .step__t { font-size: 30px; }
  .how__cta { margin-top: 48px; }
}

/* ---------- 4. примерьте на себя + темы ---------- */
.try { position: relative; background: var(--night); color: var(--on-dark); overflow: hidden; }
.try .label { color: var(--on-dark-soft); }
.try .sec-sub { color: var(--on-dark-soft); }
.try__head { max-width: 860px; }
@media (min-width: 1000px) {
  .try { padding-top: calc(var(--sec) * .8); }
  .try__head { max-width: none; display: grid; grid-template-columns: 2fr 1fr; grid-template-areas: "k k" "h s"; column-gap: 64px; align-items: end; }
  .try__head .label { grid-area: k; }
  .try__head .h2 { grid-area: h; font-size: clamp(56px, 5.4vw, 80px); }
  .try__head .sec-sub { grid-area: s; justify-self: end; margin-top: 0; }
}

.try__form {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "a amp b" "d d d";
  align-items: end; column-gap: 12px; row-gap: 18px;
  margin-top: 32px; max-width: 760px;
}
.fld { display: grid; gap: 6px; min-width: 0; }
.fld--a { grid-area: a; } .fld--b { grid-area: b; } .fld--d { grid-area: d; }
.fld__l { font: 500 11px/1.4 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); }
.fld__l i { font-style: normal; text-transform: none; letter-spacing: .02em; font-family: var(--sans); font-size: 13px; opacity: .85; }
.fld input {
  width: 100%; min-width: 0; min-height: 52px;
  font: 400 clamp(20px, 6.4vw, 26px)/1.2 var(--serif); letter-spacing: -.01em; color: var(--on-dark);
  background: transparent; border: 0; border-bottom: 1px solid rgba(244, 240, 230, .32); border-radius: 0;
  padding: 8px 0 10px; outline: none;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.fld input::placeholder { color: rgba(244, 240, 230, .34); }
.fld input:focus { border-bottom-color: var(--on-dark); }
.fld input:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--on-dark); } /* видимый фокус: линия 2 px (qa Q19) */
.fld--d input { font: 400 17px/1.2 var(--sans); color-scheme: dark; min-height: 48px; max-width: 340px; }
.fld--d input:invalid, .fld--d input:not(:focus):placeholder-shown { color: var(--on-dark-soft); }
.try__amp { grid-area: amp; font: 400 30px/1 var(--serif); color: var(--on-dark-soft); padding-bottom: 14px; }
.try__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 22px 0 clamp(28px, 4vw, 48px); min-height: 26px; }
.try__status { color: var(--on-dark-soft); font-size: 15px; }
.try__status b { color: var(--on-dark); font-weight: 500; }
.try__reset, .try__share { color: var(--on-dark); font-size: 14px; }
.try__reset[hidden], .try__share[hidden] { display: none; }
.try__share { font-weight: 500; }
.fld__hint { font-size: 13px; line-height: 1.45; color: var(--on-dark-soft); }
.fld__hint[hidden] { display: none; }
@media (min-width: 760px) {
  .try__form { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, .9fr); grid-template-areas: "a amp b d"; column-gap: 20px; margin-top: 44px; max-width: 1040px; }
  .fld input { font-size: 32px; }
  .fld--d input { font-size: 18px; min-height: 56px; padding-bottom: 12px; }
  .try__amp { font-size: 38px; padding-bottom: 16px; }
}

.rail {
  --phone-w: min(70.4vw, 264px); /* 264 px на 375: масштаб приглашения ≈ 0,74 (art T-3) */
  display: flex; gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 8px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }
.theme { flex: 0 0 var(--phone-w); scroll-snap-align: start; min-width: 0; }
.theme:last-child { margin-right: var(--gutter); }
@media (hover: hover) and (pointer: fine) { .theme:hover .phone { transform: translateY(-8px); } }

.theme__cap { padding: 20px 2px 0; }
.theme__cap h3 { font: 400 28px/1.1 var(--serif); }
.theme__cap p { margin-top: 6px; color: var(--on-dark-soft); font-size: 14px; line-height: 1.45; }
.theme__acts { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.theme__want {
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--on-dark); color: var(--ink); font: 500 14px/1 var(--sans); white-space: nowrap;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.theme__want:hover { background: #fff; }
.theme__want:active { transform: scale(.97); }
.theme__open { font: 500 14px/1 var(--sans); color: var(--on-dark); text-decoration: none; padding: 14px 0; border-bottom: 0; display: inline-flex; gap: 8px; opacity: .85; }
.theme__open::after { content: "↗"; }
.theme__open:hover { opacity: 1; }
@media (hover: none), (pointer: coarse) { .theme__open { display: none; } }

.rail-ctrl { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.rail-ctrl__count { color: var(--on-dark-soft); }
.rail-ctrl__count b { color: var(--on-dark); font-weight: 600; }
.rail-ctrl__bar { flex: 1; height: 1px; background: rgba(244, 240, 230, .18); position: relative; max-width: 360px; }
.rail-ctrl__bar span { position: absolute; left: 0; top: -0.5px; height: 2px; width: 20%; background: var(--on-dark); transition: transform .5s var(--ease); }
.rail-ctrl__tip { letter-spacing: .08em; }
/* светлый вариант — под лентой «Что увидят гости» */
.rail-ctrl--light .rail-ctrl__count { color: var(--soft); }
.rail-ctrl--light .rail-ctrl__count b { color: var(--ink); }
.rail-ctrl--light .rail-ctrl__bar { background: var(--line-2); }
.rail-ctrl--light .rail-ctrl__bar span { background: var(--ink); }
.strip-ctrl { margin-top: 22px; }
@media (min-width: 900px) { .strip-ctrl { display: none; } }

@media (min-width: 1180px) {
  .rail {
    --phone-w: calc((min(100vw, var(--max) + var(--gutter) * 2) - var(--gutter) * 2 - 4 * 28px) / 5);
    max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto;
    gap: 28px; overflow: visible; scroll-snap-type: none; padding-bottom: 8px;
  }
  .theme:last-child { margin-right: 0; }
  .rail-ctrl { display: none; }
  .theme__acts { gap: 14px; }
  .theme__cap p { min-height: 2.9em; }
}

/* ---------- 5. что увидят гости ---------- */
.guests { padding-bottom: calc(var(--sec) * .9); }
.strip {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.frame { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; min-width: 0; }
.frame:last-child { margin-right: var(--gutter); }
.frame__ui {
  height: 196px; padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
}
.frame__t { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; }
.frame__t .label { flex: none; }
.frame > p { margin-top: 6px; color: var(--soft); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
@media (min-width: 900px) {
  .strip { display: grid; grid-auto-flow: row dense; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; overflow: visible; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; }
  .frame:last-child { margin-right: 0; }
  .frame__ui { height: 220px; padding: 28px; }
  .frame__t { font-size: 24px; }
  /* седьмая карточка — на всю строку: таблица слева, текст справа */
  .frame--you { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 32px; }
  .frame--you .frame__ui { grid-row: 1 / span 2; }
  .frame--you .frame__t { margin-top: 0; align-self: end; }
  .frame--you > p { align-self: start; margin-top: 10px; max-width: 360px; }
}
/* широкий компьютер: две строки вместо трёх — 3 + 4 карточки, «Что увидите вы» на две колонки (ревизия 3, № 17) */
@media (min-width: 1180px) {
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 28px; }
  .frame__ui { padding: 24px 22px; }
  .frame--you { grid-column: span 2; display: block; }
  .frame--you .frame__t { margin-top: 18px; }
  .frame--you > p { margin-top: 6px; max-width: none; }
  .mini-dress i { width: 38px; }
}

.mini-prog { position: relative; display: grid; gap: 12px; }
.mini-prog::before { content: ""; position: absolute; left: 48px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.mini-prog li { display: grid; grid-template-columns: 40px 1fr; gap: 24px; align-items: start; position: relative; }
.mini-prog li::before { content: ""; position: absolute; left: 45px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mini-prog time { font: 500 13px/1.4 var(--sans); }
.mini-prog span { font: 400 16px/1.25 var(--serif); }
.mini-prog small { display: block; font: 400 12.5px/1.4 var(--sans); color: var(--soft); margin-top: 2px; }

.mini-place__name { font: 400 24px/1.15 var(--serif); }
.mini-place__addr { margin-top: 6px; color: var(--soft); font-size: 14px; }
.mini-place__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mini-place__btns span { padding: 9px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.mini-place__btns span:first-child { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.mini-dress { display: flex; justify-content: space-between; gap: 4px; }
.mini-dress li { display: grid; justify-items: center; gap: 10px; font-size: 12px; color: var(--soft); }
.mini-dress i { width: clamp(36px, 10vw, 46px); aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

.mini-form__bar { display: block; height: 2px; background: var(--line); margin: 10px 0 18px; border-radius: 2px; }
.mini-form__bar i { display: block; width: 33.4%; height: 100%; background: var(--accent); border-radius: 2px; }
.mini-form__q { font: 400 24px/1.15 var(--serif); }
.mini-form__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.mini-form__btns span { text-align: center; padding: 11px 0; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; }
.mini-form__btns .is-on { background: var(--accent); border-color: var(--accent); color: var(--on-dark); }

.mini-gift__quote { font: italic 500 19px/1.4 "Cormorant Garamond", var(--serif); margin-top: 10px; }

.mini-greet { font: 400 28px/1.12 var(--serif); letter-spacing: -.01em; }

.mini-ans__sum { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--soft); }
.mini-ans__sum b { font: 400 22px/1 var(--num); color: var(--ink); margin-right: 4px; }
.mini-ans__t { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 12.5px; line-height: 1.3; table-layout: fixed; }
.mini-ans__t th { text-align: left; font: 500 10px/1.3 var(--caps); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); padding: 0 6px 6px 0; border-bottom: 1px solid var(--line-2); }
.mini-ans__t td { padding: 6px 6px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ans__t th:first-child, .mini-ans__t td:first-child { width: 36%; }
.mini-ans__t i { font-style: normal; color: var(--soft); }
.mini-ans__t i.yes { color: var(--accent); font-weight: 500; }
@media (max-width: 899px) { .mini-ans__t th:nth-child(4), .mini-ans__t td:nth-child(4) { display: none; } }
.mini-greet__url { margin-top: 14px; font: 400 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 6. кто это делает ---------- */
/* компактная карточка владельца (ревизия 2, № 7); без owner.name секция скрыта атрибутом hidden */
.who { background: var(--bg-2); padding: calc(var(--sec) * .6) 0; }
.who[hidden] { display: none; }
.who__card { display: grid; gap: 20px; max-width: 760px; margin: 0 auto; align-items: center; }
.who__photo { width: 112px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.who__photo[hidden] { display: none; }
.who__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.who__name { font: 400 clamp(30px, 7vw, 44px)/1.1 var(--serif); letter-spacing: -.015em; margin-top: 10px; }
.who__role { margin-top: 6px; color: var(--soft); }
.who__story { margin-top: 14px; font: italic 500 20px/1.45 "Cormorant Garamond", var(--serif); max-width: 520px; }
.who__story[hidden] { display: none; }
.who__btn { margin-top: 22px; }
@media (min-width: 760px) {
  .who--photo .who__card { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
  .who__photo { width: 200px; border-radius: 2px; aspect-ratio: 4 / 5; }
}

/* ---------- 7. тарифы ---------- */
.plans { display: grid; gap: 14px; align-items: stretch; max-width: 920px; margin: 0 auto; }
html:not(.has-diy) .plans { max-width: 560px; }
.plan {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 22px 24px;
}
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 26px; }
.plan__name { color: var(--ink); font-weight: 600; }
.plan__price { font: 400 clamp(52px, 13vw, 72px)/1 var(--num); letter-spacing: -.03em; margin-top: 22px; white-space: nowrap; }
.plan__price span:not([data-price]) { font-size: .42em; letter-spacing: 0; color: var(--soft); vertical-align: .55em; margin-left: .05em; }
.plan__lead { margin-top: 10px; font-size: 16px; color: var(--soft); }
.plan__list { margin: 22px 0 26px; border-top: 1px solid var(--line); flex: 1; }
.plan__list li { padding: 11px 0 11px 24px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; line-height: 1.5; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 1px; background: currentColor; opacity: .55; }
.plan__fine { margin-top: 14px; font-size: 13px; line-height: 1.5; text-align: center; }
/* главная гарантия «под ключ» — рядом с ценой (аудит Л4, roadmap 0.10) */
.plan__pay { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; padding: 11px 14px; border-radius: 12px; font-size: 15px; line-height: 1.45; background: rgba(244, 240, 230, .1); }
.plan__pay::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transform: translateY(-2px); }

.plan--main { background: var(--accent); color: var(--on-dark); border-color: var(--accent); }
.plan--main .plan__name { color: var(--on-dark); }
.plan--main .plan__price span:not([data-price]), .plan--main .plan__lead, .plan--main .plan__fine { color: var(--on-dark-soft); }
.plan--main .plan__list, .plan--main .plan__list li { border-color: rgba(244, 240, 230, .18); }

.org {
  max-width: 920px; margin: 32px auto 0;
  border: 1px solid var(--line-2); border-radius: 16px;
  font-size: 15px; line-height: 1.5; color: var(--soft);
}
.org b { color: var(--ink); font-weight: 500; }
.org__sum {
  list-style: none; cursor: pointer; padding: 16px 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
}
.org__sum::-webkit-details-marker { display: none; }
.org__more { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; padding: 8px 0 2px; border-bottom: 1px solid currentColor; white-space: nowrap; }
.org__more::after { content: "+"; font-weight: 400; font-size: 18px; line-height: 1; transition: transform .4s var(--ease); }
.org[open] .org__more::after { transform: rotate(45deg); }
.org__body { padding: 4px 22px 22px; border-top: 1px solid var(--line); }
/* условия для организаторов — решение владельца 08.10.2026; выделены фоном, польза — ниже обычным списком */
.org__terms { margin: 14px 0 10px; padding: 4px 16px; border-radius: 12px; background: var(--bg-2); }
.org__terms li { padding: 12px 0; border-top: 1px solid var(--line); }
.org__terms li:first-child { border-top: 0; }
.org__list li { padding: 12px 0; border-top: 1px solid var(--line); }
.org__list li:first-child { border-top: 0; }
.org__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 12px; }

/* «Во всех тарифах» — списком слева, затем строка о поддержке (ревизия 2, № 17; сравнение со студиями убрано — ревизия 3, № 3) */
.pricing__notes { margin: 32px auto 0; max-width: 560px; color: var(--soft); font-size: 15px; }
.pricing__notes > .label { color: var(--ink); }
.pricing__list { margin-top: 10px; border-top: 1px solid var(--line); }
.pricing__list li { padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink); line-height: 1.45; }
.pricing__list li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 1px; background: currentColor; opacity: .55; }
.pricing__help { margin-top: 16px; color: var(--ink); }
html.has-diy .pricing__notes { max-width: 920px; }
@media (min-width: 800px) {
  html.has-diy .pricing__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

@media (min-width: 800px) {
  .plans { grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
  html:not(.has-diy) .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 40px 36px 34px; }
  .org__sum { padding: 18px 28px; }
  .org__body { padding: 6px 28px 26px; }
  .org__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .org__list li:nth-child(2) { border-top: 0; }
  .org__terms { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; padding: 6px 22px; }
  .org__terms li:nth-child(2) { border-top: 0; }
}

/* ---------- 8. вопросы ---------- */
.faq__grid { display: grid; gap: 28px; }
.faq__list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center;
  padding: 15px 0; font: 400 19px/1.3 var(--serif); letter-spacing: -.005em;
  transition: color .3s;
}
.faq summary .num { font-family: var(--num); letter-spacing: -.01em; white-space: nowrap; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 24px; height: 24px; justify-self: end;
  background:
    linear-gradient(currentColor 0 0) center / 14px 1px no-repeat,
    linear-gradient(currentColor 0 0) center / 1px 14px no-repeat;
  transition: transform .5s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 40px 20px 0; color: var(--soft); max-width: 640px; }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .faq__head { position: sticky; top: 120px; align-self: start; }
  .faq summary { font-size: 23px; padding: 26px 0; }
  .faq__a p { padding-bottom: 26px; }
}

/* ---------- 9. финальный призыв ---------- */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 70vh; min-height: 70svh;
  display: flex; align-items: center; color: #fff; text-align: center;
  background: #15130f;
}
.final__media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.final__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.final__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 70% at 50% 50%, rgba(12, 10, 8, .55), rgba(12, 10, 8, .8)); }
.final__in { padding-top: 96px; padding-bottom: 96px; display: grid; justify-items: center; }
.final .label { color: rgba(255, 255, 255, .8); }
.final__h { font: 400 clamp(38px, 9.4vw, 96px)/1.04 var(--serif); letter-spacing: -.025em; max-width: 12em; text-wrap: balance; }
.final__p { margin-top: 22px; max-width: 460px; color: rgba(255, 255, 255, .86); font-size: 17px; }
.final__actions { margin-top: 34px; display: grid; gap: 10px; width: 100%; max-width: 360px; }
@media (min-width: 640px) { .final__actions { display: flex; justify-content: center; max-width: none; gap: 12px; } }

/* ---------- 10. подвал ---------- */
.ftr { padding: 64px 0 0; overflow: hidden; }
.ftr__top { display: grid; gap: 16px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.ftr__tag { font: 400 clamp(24px, 5vw, 36px)/1.2 var(--serif); max-width: 16em; letter-spacing: -.01em; }
.ftr__links { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 18px 0 4px; }
.ftr__links a { font-size: 14px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; color: var(--ink); padding: 11px 0; }
.ftr__links a:hover { text-decoration-color: var(--ink); }
.ftr__legal { font-size: 13px; color: var(--soft); padding-top: 10px; }
.ftr__contacts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 20px; font-size: 15px; }
.ftr__contacts[hidden] { display: none; }
.ftr__contacts > span { color: var(--soft); margin-right: -8px; }
.ftr__contacts a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 5px; padding: 11px 0; }
.ftr__contacts a:hover { text-decoration-color: var(--ink); }
.ftr__mark {
  font: 400 24vw/.8 var(--serif); letter-spacing: -.04em; /* размер подгоняется под ширину в landing.js */
  color: var(--ink); opacity: .07; margin: 32px 0 -0.14em -0.04em; white-space: nowrap; user-select: none; width: max-content;
}
@media (min-width: 900px) {
  .ftr { padding-top: 100px; }
  .ftr__top { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 60px; }
  .ftr__contacts { justify-content: flex-end; }
}

/* ---------- плавающая кнопка (мобильный) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; justify-content: center;
  transform: translateY(120%); transition: transform .5s var(--ease);
  pointer-events: none;
}
.dock.is-on { transform: none; pointer-events: auto; }
.dock__btn {
  width: 100%; max-width: 420px; min-height: 52px;
  background: rgba(62, 70, 48, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 14px 30px -18px rgba(20, 24, 12, .55);
}
.dock__btn[hidden] { display: none; }
@media (min-width: 960px) { .dock { display: none; } }

/* ---------- выбор мессенджера ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%;
  background: var(--bg); color: var(--ink);
  border-radius: 24px 24px 0 0;
  max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgba(14, 12, 10, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetUp .5s var(--ease) both; }
.sheet[open]::backdrop { animation: fade .4s ease both; }
.sheet.is-closing { animation: sheetDown .32s var(--ease-io) both; }
.sheet.is-closing::backdrop { animation: fade .32s ease reverse both; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet__in { position: relative; padding: 30px var(--gutter) calc(22px + env(safe-area-inset-bottom)); }
.sheet__in::before { content: ""; position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
.sheet__x { position: absolute; top: 14px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.sheet__x:hover { background: var(--bg-2); }
.sheet__x svg { width: 22px; height: 22px; }
#sheet-k { padding-right: 44px; }
.sheet__in:focus { outline: none; }
.sheet__h { font: 400 clamp(28px, 7.6vw, 38px)/1.08 var(--serif); letter-spacing: -.015em; margin-top: 10px; padding-right: 30px; }
.sheet__p { margin-top: 10px; color: var(--soft); font-size: 15px; line-height: 1.5; }
.sheet__msg { display: grid; gap: 6px; margin-top: 18px; }
.sheet__msg textarea {
  width: 100%; min-height: 84px; resize: vertical;
  font: 400 16px/1.5 var(--sans); color: var(--ink); /* 16 px: iOS не увеличивает страницу при фокусе */
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; outline: none; transition: border-color .3s;
}
.sheet__msg textarea:focus { border-color: var(--accent); }
.sheet__btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.chan {
  display: flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 16px; border-radius: 16px;
  background: var(--paper); border: 1px solid var(--line);
  text-decoration: none; font: 500 16px/1.1 var(--sans);
  transition: border-color .3s, background-color .3s;
}
.chan svg { width: 24px; height: 24px; flex: none; color: var(--accent); }
.chan span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) { .chan { padding: 0 10px; gap: 8px; font-size: 15px; } } /* 320 px: «ВКонтакте» помещается (qa Q11) */
.chan:hover { border-color: var(--ink); }
.chan.is-copied { border-color: var(--accent); background: #EEF0E8; }
.sheet__note { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--soft); }
.sheet__note:empty { display: none; }
.sheet__note.is-ok { color: var(--accent); font-weight: 500; }
.sheet__fine { margin-top: 6px; font-size: 12.5px; color: var(--soft); }
.sheet__fine a { color: inherit; text-underline-offset: 3px; }
.sheet__pay { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.sheet__pay .link-u { padding: 2px 0; }
.sheet [hidden] { display: none !important; }
@media (min-width: 640px) {
  .sheet { margin: auto; max-width: 500px; border-radius: 24px; }
  .sheet__in { padding: 40px 36px 32px; }
  .sheet__in::before { display: none; }
  .sheet[open] { animation: pop .45s var(--ease) both; }
  .sheet.is-closing { animation: pop .28s var(--ease-io) reverse both; }
  @keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
}
html.is-locked { overflow: hidden; }

/* ---------- приглашение целиком (поверх страницы) ---------- */
.view {
  border: 0; padding: 0; margin: 0; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  height: 100dvh; background: var(--night); color: var(--on-dark);
  display: none; flex-direction: column; overflow: hidden;
}
.view[open] { display: flex; animation: viewIn .45s var(--ease) both; }
.view.is-closing { animation: viewOut .28s var(--ease-io) both; }
.view::backdrop { background: var(--night); }
@keyframes viewIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes viewOut { to { opacity: 0; transform: translateY(24px) scale(.985); } }
.view__bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px; min-height: 60px;
  border-bottom: 1px solid rgba(244, 240, 230, .12);
}
.view__x { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px 0 2px; border-radius: 999px; font: 500 14px/1 var(--sans); }
.view__x svg { width: 24px; height: 24px; }
.view__x:hover { background: rgba(244, 240, 230, .08); }
.view__nav { display: flex; align-items: center; gap: 0; min-width: 0; }
.view__step { width: 36px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--on-dark-soft); }
.view__step:hover { color: var(--on-dark); }
.view__step svg { width: 20px; height: 20px; }
.view__name { font: 400 20px/1 var(--serif); white-space: nowrap; min-width: 4.6em; text-align: center; }
.view__want {
  min-height: 40px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  background: var(--on-dark); color: var(--ink); font: 500 14px/1 var(--sans);
}
.view__want:hover { background: #fff; }
.view__screen { position: relative; flex: 1; min-height: 0; background: #111; }
.view__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.view.is-busy .view__screen::after {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  transform: translateX(-100%); animation: sweep 1.1s var(--ease-io) infinite;
}
@media (max-width: 359px) {
  .view__bar { padding-inline: 4px; gap: 2px; }
  .view__x span { display: none; }
  .view__x { padding: 0 6px; }
  .view__name { font-size: 18px; min-width: 0; }
  .view__want { padding: 0 12px; font-size: 13px; }
}
@media (min-width: 760px) {
  .view__bar { padding-inline: 20px; }
  .view__name { font-size: 22px; }
}

/* ---------- уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 2147483647;
  max-width: calc(100vw - 32px); padding: 13px 20px; border-radius: 999px;
  background: var(--ink); color: var(--on-dark); font: 500 14px/1.35 var(--sans); text-align: center;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 960px) { .toast { bottom: 32px; } }

/* ---------- меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .hero__title .w > span, .js .intro { transform: none; opacity: 1; }
  .hero__media, .final__media { transform: none !important; }
  .hero__media img { transform: none; }
  .urlbar__caret { display: none; }
}
