/* «Громко» — приглашение v2. Общая разметка и поведение блоков.
   Тема (theme-*.css) задаёт палитру, шрифты, раскладку отдельных блоков и «фирменный жест». */

:root {
  --bg: #faf8f3;
  --fg: #222;
  --muted: #8a877f;
  --accent: #a08a5b;
  --line: rgba(0, 0, 0, .12);
  --card: #fff;
  --font-display: Georgia, serif;
  --font-body: "Golos Text", system-ui, -apple-system, sans-serif;
  --font-label: "Golos Text", system-ui, sans-serif;
  --btn-bg: var(--fg);
  --btn-fg: var(--bg);
  --btn-radius: 999px;
  --radius: 16px;
  --gutter: max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --err: #b4432f;
}
html.is-sheet { overflow: hidden; }
/* Цифры одной высоты и ширины: время, отсчёт, даты */
.num, .cd__u b, .stop__time, .bigdate__num, .hero__date-num, .scratch__date, .foot__date, .mini__t, .fact__n, .ticket__when { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* Блоки только для своей темы */
html[data-theme="linia"] [data-only]:not([data-only~="linia"]),
html[data-theme="svet"] [data-only]:not([data-only~="svet"]),
html[data-theme="plenka"] [data-only]:not([data-only~="plenka"]),
html[data-theme="premiera"] [data-only]:not([data-only~="premiera"]),
html[data-theme="pismo"] [data-only]:not([data-only~="pismo"]) { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, ol, fieldset, blockquote { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ol { list-style: none; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--wide { max-width: 1120px; }
.center { text-align: center; }

.label {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Секции ---------- */
.s { position: relative; padding: clamp(76px, 14vw, 168px) 0; }
.s__head { text-align: center; margin-bottom: clamp(40px, 7vw, 64px); }
.s__head .label { margin-bottom: 18px; }
.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 11vw, 72px);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
/* переносы: заголовки — ровными строками, абзацы — без висячего слова в конце (art C-4) */
h1, h2, h3, h4, .lead, .step__q, .thanks__title { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.s__sub { margin: 18px auto 0; max-width: 30ch; color: var(--muted); font-size: 15px; }
.lead { max-width: 32ch; margin: 0 auto; text-align: center; font-size: 17px; line-height: 1.65; }
.note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 40px; }
.s__cover { display: none; }
.s__n { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  border: 1px solid transparent; border-radius: var(--btn-radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 15px/1 var(--font-body); letter-spacing: .02em; /* кнопки — от 15 px (art О-3) */
  text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s, opacity .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--glass {
  background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
.link { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Обложка (базово — полноэкранное фото) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__bg { display: none; }
.hero__media { position: absolute; inset: 0; }
.hero__frame { position: absolute; inset: 0; overflow: hidden; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.vf, .vf-meta { display: none; }
.hero__top, .hero__bottom { position: absolute; left: 0; right: 0; text-align: center; padding: 0 var(--gutter); z-index: 2; }
.hero__top { top: max(28px, env(safe-area-inset-top)); }
.hero__bottom { bottom: 40px; }
.names { font-family: var(--font-display); font-weight: 400; line-height: .95; }
.names span { display: block; }
.names i { font-style: inherit; }
.hero__date-long { display: none; }
.hero__over { display: none; }
.hero__cue { display: none; }

/* ---------- Обращение ---------- */
.s--greet { text-align: center; }
.s--greet .label { margin-bottom: 22px; }
.greet__to { font-size: clamp(34px, 9vw, 56px); margin-bottom: 28px; text-wrap: balance; }
.sign { margin-top: 32px; font-family: var(--font-display); font-size: 22px; }
.flourish { display: block; width: 180px; height: 20px; margin: 0 auto 28px; color: var(--accent); }

/* ---------- Дата ---------- */
.bigdate { text-align: center; margin-bottom: 48px; }
.bigdate__num { display: block; font-family: var(--font-display); font-size: clamp(64px, 20vw, 140px); line-height: 1; letter-spacing: -.02em; }
.bigdate__txt { display: block; margin-top: 14px; color: var(--muted); font-size: 15px; }
.cd { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 400px; margin: 0 auto 44px; text-align: center; }
/* отсчёт — дни, часы, минуты: без плиток, разделители — линии 1 px, подписи 14 px без капса (art О-2, О-9) */
.cd.cd { gap: 0; }
.cd .cd__u { background: none; border-radius: 0; }
.cd .cd__u + .cd__u { border-left: 1px solid var(--line); }
.cd .cd__u span { font-size: 14px; letter-spacing: .02em; text-transform: none; }
.cd__u b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(36px, 10vw, 56px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.cd__u span { display: block; margin-top: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cal { display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* «Добавить в календарь» — одна кнопка, выбор внутри (art О-3) */
.cal-pick { position: relative; display: inline-block; }
.cal-pick > summary { list-style: none; cursor: pointer; }
.cal-pick > summary::-webkit-details-marker { display: none; }
.cal-pick__list { display: grid; gap: 8px; margin-top: 10px; min-width: 240px; }
.cal-pick__list button, .cal-pick__list a {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--btn-radius);
  background: none; color: inherit; font: inherit; font-size: 15px; text-decoration: none; cursor: pointer;
}
.thanks__cal { display: contents; }
.thanks__cal .cal-pick { flex: 1 1 auto; }
.thanks__cal .cal-pick > summary { width: 100%; }

/* Стираемая дата */
.scratch { text-align: center; margin: 0 auto 56px; max-width: 420px; }
.scratch__hint { display: none; } /* подсказка — на самом слое (app.js рисует её на холсте), не отдельной строкой (art С-4) */
.scratch__card { position: relative; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--card); user-select: none; -webkit-user-select: none; }
.scratch__under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; }
.scratch__date { font-family: var(--font-display); font-size: clamp(30px, 9vw, 48px); line-height: 1.05; text-wrap: balance; transform: scale(.94); transition: transform 1.2s var(--ease); }
.scratch.is-open .scratch__date { transform: none; }
.scratch__sub { font-size: 15px; color: var(--fg); }
.scratch__note { font-size: 14px; color: var(--muted); margin-top: 4px; }
/* награда: мягкий блик по карточке */
.scratch__card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 190, .55) 50%, transparent 65%); background-size: 250% 100%; background-position: 120% 0; }
.scratch.is-open .scratch__card::after { animation: glint .9s var(--ease) .15s; }
@keyframes glint { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -30% 0; } }
.scratch__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; transition: opacity .9s var(--ease); }
.scratch.is-open .scratch__canvas { opacity: 0; pointer-events: none; }
.scratch__skip { margin-top: 12px; }
.scratch.is-open .scratch__skip, .scratch.is-open .scratch__hint { visibility: hidden; }

/* ---------- История ---------- */
.story { display: grid; gap: 72px; }
.moment__ph { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: rgba(0,0,0,.06); }
.moment__ph img { width: 100%; height: 100%; object-fit: cover; }
.moment__ph img { transform: translateY(calc(var(--py, 0) * -22px)) scale(1.1); will-change: transform; }
.moment__txt { margin-top: 22px; }
.moment__year { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.moment__title { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 6px 0 10px; }
.moment__txt p:last-child { color: var(--muted); }

/* ---------- Маршрут дня (программа и адреса вместе) ---------- */
.route { position: relative; max-width: 560px; margin: 0 auto; }
.stop { position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.stop:last-child { border-bottom: 1px solid var(--line); }
.stop__dot { display: none; }
.stop__body { min-width: 0; }
.stop__time { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.stop__title { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.stop__place { color: var(--accent); font-size: 15px; margin-top: 4px; }
.stop__late { display: inline-block; margin: 8px 0 0 -6px; padding: 10px 6px; font-size: 15px; color: var(--fg); }
.stop__note { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.55; }
.where { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
/* адрес — касание копирует (всплывает «Адрес скопирован»), одна кнопка «Открыть карту», «Как добраться» — свёрнуто (art О-4) */
.where__addr { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; line-height: 1.45; text-align: inherit; cursor: pointer;
  text-decoration: underline dotted; text-decoration-color: var(--line); text-underline-offset: 4px; }
.where--slot .where__addr { text-decoration: none; cursor: default; }
.where__maps, .where__how { margin-top: 12px; }
.where__maps > summary, .where__how > summary { list-style: none; cursor: pointer; }
.where__maps > summary::-webkit-details-marker, .where__how > summary::-webkit-details-marker { display: none; }
.where__map { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--btn-radius); font-size: 15px; }
.where__maps[open] > .where__map { border-color: currentColor; }
.where__maps .maps { margin-top: 10px; }
.where__how > summary { display: inline-block; padding: 8px 0; font-size: 15px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.where__how > summary::after { content: " ›"; }
.where__how[open] > summary::after { content: " ‹"; }
.where__tips { display: grid; gap: 10px; margin: 4px 0 0; }
.where__tips dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.where__tips dd { font-size: 15px; line-height: 1.55; }
.maps { display: flex; gap: 8px; margin-top: 16px; }
.maps a, .maps button {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 46px; padding: 0 6px; white-space: nowrap; border: 1px solid var(--line); border-radius: var(--btn-radius);
  background: none; color: inherit; font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s;
}
/* примерка: адрес — подсказка, кнопки карт не уводят (показывают пояснение) */
.where--slot .where__addr { color: var(--muted); font-style: italic; }
.where--slot .maps a, .where--slot .maps button { opacity: .7; }
.maps a:hover, .maps button:hover { border-color: currentColor; }
.maps svg { flex: none; width: 12px; height: 12px; }
.stop__late { text-align: left; }

/* ---------- Дресс-код ---------- */
.s--dress .lead { margin-bottom: 48px; }
.look { position: relative; }
.look__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); outline: none; }
.look__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.swatch { text-align: center; }
.swatch__chip { display: block; aspect-ratio: 1 / 2; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.swatch__name { display: block; margin-top: 12px; font-size: 14px; overflow-wrap: anywhere; }
.swatch__hint { display: none; }
.swatch__no { display: none; }
.look__count { display: none; }
.look__list { display: none; }

/* ---------- Подарки ---------- */
.s--gifts .lead { margin-bottom: 0; }
.gifts__link { margin-top: 28px; text-align: center; }


/* =====================================================================
   БЛОКИ (app.js → BLOCK_HTML). Базовый вид на токенах темы: любой блок выглядит прилично в любой теме,
   а «свои» блоки тема переопределяет в theme-*.css.
   ===================================================================== */

/* date:note — обращение внутри блока даты */
.date__note { text-align: center; margin: 0 auto 48px; }
.date__to { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 7vw, 40px); line-height: 1.15; margin-bottom: 18px; text-wrap: balance; }

/* letter — письмо от пары */
.letter { position: relative; max-width: 560px; margin: 0 auto; padding: 44px 26px 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.letter__k { margin-bottom: 24px; }
.letter__to { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 8vw, 44px); line-height: 1.1; margin-bottom: 22px; text-wrap: balance; }
.letter__body p { font-size: 17px; line-height: 1.7; }
.letter__body p + p { margin-top: 14px; }
.letter__sign { margin-top: 30px; text-align: right; font-family: var(--font-display); font-size: 26px; line-height: 1.25; }
.letter__sign span { display: block; font-size: 18px; color: var(--muted); }
.letter__sign b { font-weight: inherit; }
.letter__sign i { font-style: inherit; }
.letter__ps { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--muted); }
/* под P. S.: «Ответить →» и календарь ссылками (art П-4) */
.letter__acts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; margin-top: 12px; font-size: 15px; }
.letter__go { padding: 6px 0; text-underline-offset: 3px; }
.letter__cal .link { padding: 6px 0; }
.letter__cal .cal-pick__list { margin-top: 6px; }

/* facts — три факта */
.facts { border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.fact__n { font-family: var(--font-display); font-size: 26px; line-height: 1.1; color: var(--accent); }
.fact__t { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; margin-bottom: 6px; }
.fact__txt p { color: var(--muted); }
.facts__ph { width: 52%; aspect-ratio: 3 / 4; overflow: hidden; margin: 0 0 32px; background: rgba(127, 127, 127, .1); }
.facts__ph img { width: 100%; height: 100%; object-fit: cover; }

/* chapters — история главами: каждый момент на весь экран */
.s--chapters { padding-bottom: 0; }
.chap { position: relative; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; color: #fff; background: #1d2320; }
.chap__ph { position: absolute; inset: 0; overflow: hidden; }
.chap__ph img { width: 100%; height: 100%; object-fit: cover; transform: translateY(calc(var(--py, 0) * -34px)) scale(1.1); will-change: transform; }
.chap__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 16, 14, .78) 0%, rgba(12, 16, 14, .42) 34%, rgba(12, 16, 14, 0) 62%); }
.chap__txt { position: relative; z-index: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 0 var(--gutter) calc(max(96px, 13vh) + env(safe-area-inset-bottom)); } /* панель гостя не закрывает текст главы (art О-8) */
.chap__k { color: rgba(255, 255, 255, .88); margin-bottom: 14px; }
.chap__t { font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 13vw, 104px); line-height: .95; letter-spacing: -.01em; margin-bottom: 18px; }
.chap__p { max-width: 32ch; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .94); }

/* contact — контактный лист плёнки */
.cs { background: #1b1c17; color: #efe7d2; padding: 10px 0; }
.cs__edge { display: flex; gap: 22px; overflow: hidden; white-space: nowrap; padding: 10px 16px; font: 500 11px/1 var(--font-body); letter-spacing: .18em; color: #e3a64a; }
.cs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; max-width: 1080px; margin: 0 auto; padding: 14px 16px 18px; }
.cs__fr { position: relative; margin: 0; }
.cs__ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.cs__ph img { width: 100%; height: 100%; object-fit: cover; }
.cs__fr figcaption { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin-top: 10px; }
.cs__no { font-size: 14px; letter-spacing: .08em; color: #e3a64a; }
.cs__yr { font-size: 14px; letter-spacing: .08em; color: rgba(239, 231, 210, .78); text-align: right; } /* смысловые цифры — не мельче 14 px (№17) */
.cs__cap { grid-column: 1 / -1; font-size: 14px; line-height: 1.45; color: #efe7d2; }
/* лучший кадр обведён красным карандашом */
.cs__fr.is-pick .cs__ph { overflow: visible; }
.cs__fr.is-pick .cs__ph img { position: relative; }
.cs__fr.is-pick .cs__ph::after { content: ""; position: absolute; inset: -9px -8px; border: 2px solid #d9503a; border-radius: 47% 53% 49% 51% / 53% 47% 53% 47%; transform: rotate(-2.5deg); pointer-events: none; }
@media (min-width: 760px) { .cs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 26px; padding: 22px 32px 28px; } }
/* демо на телефоне — 4 кадра из 6 (знакомство, общий дом, предложение, «да»), все шесть — с 640 px (art П-5); кадры пары не прячем */
@media (max-width: 639px) { .cs__grid--demo:has(> .cs__fr:nth-child(6)) > .cs__fr:is(:nth-child(2), :nth-child(4)) { display: none; } }
/* три кадра — в ряд и на телефоне: как настоящий контактный лист, на треть экрана короче (№14) */
.cs__grid:has(> .cs__fr:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; max-width: 960px; }
.cs__grid:has(> .cs__fr:nth-child(3):last-child) .cs__fr figcaption { grid-template-columns: 1fr; }
.cs__grid:has(> .cs__fr:nth-child(3):last-child) .cs__yr { text-align: left; }

/* playlist — две стороны кассеты */
.tape { display: grid; gap: 34px; max-width: 560px; margin: 0 auto; }
.tape__h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--fg); }
.tape__k { font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1; }
.tape__h span { font-size: 14px; color: var(--muted); }
/* вторая сторона кассеты — свёрнутой строкой (№14) */
.tape__more > summary { cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.tape__more > summary::-webkit-details-marker { display: none; }
.tape__more > summary i { margin-left: auto; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .3s; align-self: center; flex: none; }
.tape__more[open] > summary i { transform: translateY(2px) rotate(-135deg); }
.tape__more[open] > summary { margin-bottom: 0; }
.track { display: grid; grid-template-columns: 34px 1fr; gap: 0 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.track__n { grid-row: span 2; padding-top: 5px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.track__t { font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.track__a { font-size: 14px; color: var(--muted); }
.tape__note { margin-top: 30px; text-align: center; color: var(--muted); font-size: 15px; }
.tape__note a { color: var(--fg); text-underline-offset: 3px; }
@media (min-width: 900px) { .tape { grid-template-columns: 1fr 1fr; max-width: none; gap: 44px; } }

/* ticket — пригласительный билет: личный (имя гостя крупно, место одной строкой), без фото и имён пары (art Пр-1…Пр-3) */
.s--ticket { overflow: hidden; }
.ticket-bg { display: none; }
.ticket { position: relative; width: min(86vw, 360px); margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.ticket__top { padding: 26px 20px 26px; }
.ticket__kicker { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.ticket__guest { margin-top: 18px; font-family: var(--font-display); font-style: italic; font-size: clamp(30px, 9vw, 36px); line-height: 1.1; text-wrap: balance; overflow-wrap: anywhere; }
.ticket__seat { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.ticket__bottom { position: relative; padding: 22px 20px 20px; border-top: 1px dashed var(--line); }
.ticket__when { font-family: var(--font-display); font-size: 22px; line-height: 1.25; }
.ticket__place { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--muted); }
.ticket__cd { margin-top: 12px; font-size: 15px; color: var(--muted); }
.ticket__cd:empty { display: none; }
.ticket__no { margin-top: 14px; font-size: 12px; letter-spacing: .14em; color: var(--muted); }

/* acts — программа актами */
.acts { display: grid; gap: 60px; max-width: 560px; margin: 0 auto; }
.act__h { text-align: center; margin-bottom: 18px; }
.act__n { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.act__t { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 9.5vw, 52px); line-height: 1.05; margin-top: 8px; }
.act__list .stop:last-child { border-bottom: 1px solid var(--line); }
/* «Как добраться домой» — свёрнуто одной строкой (art Пр-8) */
.home { margin-top: 24px; border-top: 1px solid var(--line); }
.home__k { display: block; padding: 16px 0; list-style: none; cursor: pointer; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.home__k::-webkit-details-marker { display: none; }
.home__k::after { content: " ›"; }
.home[open] .home__k::after { content: " ‹"; }
.home__list { padding-bottom: 8px; }
/* акт из одной точки: заголовок точки повторяет заголовок акта — не выводим (art Пр-7) */
.act--single .stop__title { display: none; }
.home__list { display: grid; gap: 14px; }
.home__list dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.home__list dd { font-size: 15px; line-height: 1.55; }

/* travel — дорога и ночлег */
.travel { display: grid; gap: 14px; }
.trip { padding: 26px 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.trip__ic { display: block; width: 34px; height: 34px; margin-bottom: 16px; color: var(--accent); }
.trip__ic svg { width: 100%; height: 100%; }
.trip__k { margin-bottom: 6px; }
.trip__t { font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.trip__d { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* pack — что взять с собой */
.pack { list-style: none; max-width: 520px; margin: 0 auto; padding: 0; border-top: 1px solid var(--line); }
.pack li { border-bottom: 1px solid var(--line); }
.pack__i { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pack__i input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pack__box { position: relative; flex: 0 0 24px; height: 24px; margin-top: 1px; border: 1px solid var(--muted); border-radius: 50%; transition: background-color .3s, border-color .3s; }
.pack__box::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid var(--bg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(.4); opacity: 0; transition: transform .35s var(--ease), opacity .3s; }
.pack__i input:checked + .pack__box { background: var(--fg); border-color: var(--fg); }
.pack__i input:checked + .pack__box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.pack__i input:focus-visible + .pack__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.pack__t b { display: block; font-weight: 500; font-size: 17px; line-height: 1.35; transition: color .3s; }
.pack__t span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pack__i input:checked ~ .pack__t b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.pack__note { margin-top: 24px; }

/* lookbook — для неё / для него */
.s--lookbook .lead { margin-bottom: 40px; }
.lb { display: grid; gap: 36px; }
.lb__ph { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.lb__ph img { width: 100%; height: 100%; object-fit: cover; }
.lb__h { font-family: var(--font-display); font-weight: 400; font-size: 30px; line-height: 1.1; padding-bottom: 12px; border-bottom: 1px solid var(--fg); }
.lb__list li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.lb__n { padding-top: 3px; font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.lb__t { font-size: 17px; line-height: 1.35; }
.lb__f { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.lb__pal { margin-top: 52px; text-align: center; }
.lb__pal .label { margin-bottom: 22px; }
.lb__pal .look__track { padding: 0; }
@media (min-width: 760px) { .lb { grid-template-columns: 1fr 1fr; gap: 40px; } .lb__ph { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

/* traditions — наши традиции */
.trad { display: grid; gap: 44px; max-width: 520px; margin: 0 auto; text-align: center; }
.trad__n { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent); }
.trad__t { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.trad__i p { max-width: 34ch; margin: 0 auto; color: var(--muted); }
.trad__ph { position: relative; max-width: 420px; aspect-ratio: 4 / 3.4; margin: 0 auto 52px; overflow: hidden; }
.trad__ph img { width: 100%; height: 100%; object-fit: cover; }

/* wishes — книга пожеланий */
.book__lead { margin-bottom: 36px; }
.book { max-width: 520px; margin: 0 auto; padding: 28px 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.book__field { display: block; }
.book__field textarea {
  display: block; width: 100%; min-height: 194px; padding: 0 0 2px; border: 0; border-radius: 0; outline: none; resize: vertical;
  font-size: 17px; line-height: 32px;
  background: transparent repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px); background-attachment: local;
}
.book__field textarea::placeholder { color: var(--muted); opacity: .7; }
.book__field.is-err textarea { box-shadow: 0 1px 0 var(--err); }
.book__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 30px; margin-top: 6px; }
.book__meta .form__err { margin: 0; }
.book__cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.book__btn { width: 100%; margin-top: 26px; }
.book__done { text-align: center; outline: none; animation: stepIn .7s var(--ease); }
.book__entry { margin: 18px 0; padding: 22px 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book__entry p { font-family: var(--font-display); font-size: 22px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.book__entry footer { margin-top: 12px; font-size: 15px; color: var(--muted); }
.book__ty { margin-bottom: 8px; color: var(--muted); }

/* day2 / kids */
.s--day2 .lead, .s--kids .lead { margin-bottom: 36px; }
.mini { max-width: 520px; margin: 0 auto; border-top: 1px solid var(--line); }
.mini__i { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mini__t { font-family: var(--font-num, var(--font-display)); font-size: 20px; line-height: 1.3; }
.mini__h { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.25; }
.mini__i p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.kids { list-style: none; display: grid; gap: 10px; max-width: 520px; margin: 0 auto; padding: 0; }
.kid { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.kid b { display: block; font-weight: 500; }
.kid span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }

/* faq:open — все ответы видны */
.faq--open .qa { padding: 20px 0; }
.faq--open .qa__q { display: block; padding: 0; cursor: auto; }
.faq--open .qa__a { display: block; }
.faq--open .qa__a p { padding: 8px 0 0; }

/* ---------- Вопросы ---------- */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-display); font-size: 20px; line-height: 1.3;
}
.qa__q i { position: relative; flex: 0 0 14px; height: 14px; }
.qa__q i::before, .qa__q i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.qa__q i::after { transform: rotate(90deg); }
.qa.is-open .qa__q i::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 32px 24px 0; color: var(--muted); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }

/* ---------- Анкета ---------- */
.answer-bg { display: none; }
.form, .thanks { position: relative; max-width: 480px; margin: 0 auto; padding: 28px 22px 26px; border-radius: calc(var(--radius) + 6px); background: var(--card); }
.form__bar { display: flex; justify-content: space-between; align-items: baseline; }
.form__count { margin-left: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* первый шаг: вопрос уже задан заголовком раздела («Будете?») — второй раз не пишем (art О-5); со второго шага — виден */
.form[data-step="1"] .step[data-s="1"] > .step__q { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.form__progress { height: 1px; background: var(--line); margin: 14px 0 30px; position: relative; }
.form__progress i { position: absolute; left: 0; top: -.5px; height: 2px; width: calc(var(--fp, 1) / 3 * 100%); background: var(--fg); transition: width .7s var(--ease); }
.step { animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step__q { text-wrap: balance; font-family: var(--font-display); font-size: clamp(28px, 8vw, 36px); line-height: 1.1; margin-bottom: 24px; padding: 0; }
.opts { display: grid; gap: 10px; margin-bottom: 24px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input, .chip input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; line-height: 1.3;
  transition: border-color .3s, background-color .3s, color .3s, transform .3s var(--ease);
}
.opts--big { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.opts--big .opt__box { min-height: 88px; height: 100%; padding: 14px 10px; font-family: var(--font-display); font-size: 18px; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
/* пара: «Приду один(а)» / «Придём не все» — третьей строкой на всю ширину */
.opts--big .opt--part { grid-column: 1 / -1; }
.opts--big .opt--part .opt__box { min-height: 56px; font-size: 16px; }
@media (max-width: 359px) { .opts--big { grid-template-columns: minmax(0, 1fr); } .opts--big .opt__box { min-height: 64px; } }
.opts--who { margin-bottom: 8px; }
.opts--big .opt { height: 100%; }
.opt--row .opt__box { flex-direction: row; min-height: 52px; padding: 12px 16px; }
.opt input:checked + .opt__box { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.opt input:focus-visible + .opt__box, .chip input:focus-visible + span, .check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: block; margin: 22px 0 0; }
.stepper + .field { margin-top: 0; }
.opts--big + .form__err + .field { margin-top: 26px; }
.opts.is-err .opt__box { border-color: var(--err); }
.field.is-err input, .field.is-err textarea { border-color: var(--err); }
.check.is-err span::before { border-color: var(--err); }
.group + .group { margin-top: 18px; }
.group .opts { margin-bottom: 0; }
[data-extra] { margin-bottom: 22px; }
.field__l { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; line-height: 1.4; }
/* шаг «Детали»: вопрос заметнее вариантов ответа, а не серой подписью (№23) */
.step[data-s="3"] .field__l, .step[data-s="2"] .stepper .field__l { font-size: 16px; font-weight: 500; color: var(--fg); margin-bottom: 10px; }
.field__hint { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.form__seat { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.form__try { max-width: 480px; margin: -20px auto 22px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius); font-size: 14px; line-height: 1.5; text-align: center; color: var(--muted); }
.check__doc { margin: -2px 0 0 34px; font-size: 14px; }
.check__doc a, .form__priv a { color: inherit; text-underline-offset: 3px; }
.form__priv { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.thanks__del { margin-top: 14px; }
.field input, .field textarea {
  width: 100%; padding: 14px 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; outline: none; font-size: 16px; resize: vertical; transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.stepper .field__l { margin: 0; }
.stepper__ctl { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; flex: 0 0 auto; }
.stepper__ctl button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.stepper__ctl button:hover { background: rgba(127,127,127,.12); }
.stepper__ctl output { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; cursor: pointer; transition: all .3s; }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.check { position: relative; display: flex; align-items: center; min-height: 48px; margin-top: 22px; padding: 8px 0; font-size: 14px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.check span { position: relative; padding-left: 34px; }
.check span::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -11px; width: 22px; height: 22px; border: 1px solid var(--muted); border-radius: 5px; transition: all .3s; }
.check input:checked + span::before { background: var(--fg); border-color: var(--fg); box-shadow: inset 0 0 0 4px var(--bg); }
.form__err { color: var(--err); font-size: 14px; line-height: 1.4; margin-top: 8px; }
.form__err::before { content: "↑ "; }
.form__nav { display: flex; gap: 10px; margin-top: 28px; }
.form__nav .btn { flex: 1; padding: 0 18px; }
.form__back { flex: 0 0 auto !important; }
.thanks { text-align: center; padding: 48px 24px; outline: none; animation: stepIn .8s var(--ease); }
.thanks__title { text-wrap: balance; font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 8vw, 40px); line-height: 1.1; margin-bottom: 14px; }
.thanks__txt { color: var(--muted); max-width: 30ch; margin: 0 auto 24px; }
.summary { display: grid; text-align: left; margin: 0 0 28px; border-top: 1px solid var(--line); }
.summary div { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.summary dt { color: var(--muted); font-size: 14px; }
.summary dd { overflow-wrap: anywhere; }
.thanks__btns { display: grid; gap: 10px; }

/* ---------- Подвал ---------- */
.foot { padding: 96px 0 calc(104px + env(safe-area-inset-bottom)); text-align: center; }
.foot__names { font-family: var(--font-display); font-size: clamp(44px, 13vw, 88px); line-height: 1; }
.foot__names i { font-style: inherit; }
.foot__date { margin-top: 18px; letter-spacing: .3em; font-size: 13px; }
.foot { position: relative; }
.foot__help { margin: 48px auto 0; max-width: 340px; color: var(--muted); font-size: 15px; }
.foot__help > p { max-width: 30ch; margin: 0 auto 20px; }
.foot__call { width: 100%; min-height: 52px; background: var(--fg); color: var(--foot-bg, var(--bg)); border-color: var(--fg); }
/* одна главная кнопка — «Позвонить …»; WhatsApp · Telegram — ссылками в строку под ней (art О-6) */
.foot__msg { display: flex; justify-content: center; gap: 4px 28px; margin-top: 10px; }
.foot__msg .btn { min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: none; color: var(--fg); font-weight: 400; letter-spacing: .01em; text-transform: none;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.foot__msg .btn:hover { transform: none; text-decoration-color: currentColor; }
.foot__date { display: none; } /* дата — на обложке; в подвале — подпись именами (art О-6, О-10) */
/* после свадьбы подвал — только имена и дата: без «звоните…», кнопок звонка и мессенджеров (№2) */
html[data-phase="after"] .foot__help { display: none !important; }
html[data-phase="after"] .hero__kicker { font-size: 14px; } /* «Мы поженились» — смысловая строка, не капс-метка */
html[data-phase="after"]:not([data-theme="pismo"]) .foot__names, html[data-phase="after"]:not([data-theme="pismo"]) .foot__date { display: block; }
html[data-phase="after"] .foot__date { font-size: 14px; }
.foot__ps { display: none; }
.foot__tel { margin-top: 12px; font-size: 14px; letter-spacing: .06em; }
.foot__made { margin-top: 48px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .5; }

/* ---------- Прочее ---------- */
.grain, .corners { display: none; }
.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 90; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 14px; background: rgba(20,20,20,.9); color: #fff; font-size: 14px; line-height: 1.4;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .5s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Переключатель тем (только в демо): виден на обложке; дальше темы — в меню */
.tsw {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 2px; padding: 4px; max-width: calc(100% - 16px);
  transform: translateX(-50%);
  background: rgba(24, 24, 24, .72); color: #fff;
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  font: 500 13px/1 "Golos Text", system-ui, sans-serif; letter-spacing: .01em;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: opacity .4s, transform .5s var(--ease), visibility .4s;
}
.tsw__list { display: flex; gap: 0; }
.tsw a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 9px; border-radius: 999px; color: rgba(255,255,255,.72); text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s; }
.tsw a:hover { color: #fff; }
.tsw a[aria-current="true"] { background: #fff; color: #111; }
.tsw__toggle { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; font-size: 17px; line-height: 1; }
.tsw__cap { display: none; min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.tsw.is-min .tsw__list, .tsw.is-min .tsw__toggle { display: none; }
.tsw.is-min .tsw__cap { display: block; }
html.past-hero .tsw { opacity: 0; visibility: hidden; transform: translate(-50%, 16px); }
html.is-clean .tsw { display: none; }

/* ---------- Плавающая панель: «Меню» + «Ответить до …» ---------- */
.dock {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: stretch; max-width: calc(100% - 32px);
  transform: translate(-50%, 24px); opacity: 0; visibility: hidden;
  background: var(--dock-bg, var(--btn-bg)); color: var(--dock-fg, var(--btn-fg));
  border-radius: var(--dock-radius, var(--btn-radius)); box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .38), 0 0 0 1px var(--dock-ring, rgba(255, 255, 255, .08));
  font: 500 15px/1 var(--font-body); letter-spacing: .01em; text-transform: none; /* главная кнопка — не мельче 15 px, без капса (№13) */
  transition: transform .5s var(--ease), opacity .35s, visibility .35s;
}
/* примерка внутри лендинга (?embed=landing): кнопки «‹ Темы · Хочу такое» — у лендинга */
html.is-embed .dock { display: none !important; }
.dock.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
/* демо: панель выезжает, когда переключатель тем уже ушёл, — не просвечивает сквозь него (art О-4) */
html:not(.is-clean) .dock.is-on { transition-delay: .35s; }
.dock__menu, .dock__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-decoration: none; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.dock__menu { padding: 0 14px 0 16px; border-right: 1px solid var(--dock-div, rgba(255, 255, 255, .22)); }
.dock__menu svg { width: 18px; height: 18px; }
.dock__cta { padding: 0 20px 0 16px; }
.dock__menu:focus-visible, .dock__cta:focus-visible { outline-offset: -4px; }
@media (max-width: 359px) { .dock__menu span { display: none; } }

/* Меню разделов — шторка снизу */
.sheet { position: fixed; inset: 0; z-index: 80; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(10, 10, 10, .42); opacity: 0; transition: opacity .3s; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; overflow: auto; overscroll-behavior: contain;
  margin: 0 auto; max-width: 560px; padding: 18px 24px calc(22px + env(safe-area-inset-bottom));
  background: var(--sheet-bg, var(--bg)); color: var(--sheet-fg, var(--fg));
  border-radius: var(--sheet-radius, 18px) var(--sheet-radius, 18px) 0 0;
  transform: translateY(100%); transition: transform .45s var(--ease);
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sheet__head .label { letter-spacing: .14em; }
.sheet__x { flex: 0 0 44px; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: inherit; cursor: pointer; }
.sheet__x svg { width: 20px; height: 20px; }
.sheet__nav { display: grid; }
.sheet__nav a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.sheet__n { flex: 0 0 22px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
html:not([data-theme="linia"]) .sheet__n { display: none; } /* номера в меню — только у «Линии» (art О-7) */
.sheet__panel:focus { outline: none; }
.sheet__t { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.sheet__quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; margin-top: 20px; }
.sheet__quick button { min-height: 46px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: none; color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.sheet__call { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--btn-radius); font-size: 15px; text-decoration: none; }
.sheet__themes { margin-top: 22px; }
.sheet__themes .label { margin-bottom: 8px; letter-spacing: .14em; }
.sheet__tlist { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet__tlist a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; }
.sheet__tlist a[aria-current="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Появление при прокрутке ----------
   Телефон: без размытия (тормозит во встроенных браузерах), 0,6 с, сдвиг 14 px. Десктоп: лёгкое размытие только у заголовков. */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (min-width: 769px) {
  .js .rv { transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0s); }
  .js .s__head.rv { filter: blur(6px); }
  .js .s__head.rv.in { filter: none; }
}

/* ---------- Минимальные кегли для всех тем (art О-3, О-9): кнопки — от 15 px, смысловой текст — от 14 px.
   Через html … — чтобы перебить кегль темы (theme-*.css грузится позже); капс-декор (номера, кромка плёнки) — как в теме. */
html .btn, html .link, html .where__map, html .cal-pick__list > *, html .maps a, html .maps button { font-size: 15px; }
html .form__count, html .swatch__hint, html .book__priv, html .field__hint, html .form__priv { font-size: 14px; }

/* ---------- Десктоп: крупнее текст, шире колонки ---------- */
@media (min-width: 1024px) {
  body { font-size: 18px; }
  .lead { font-size: 20px; max-width: 36ch; }
  .stop__note, .where__tips dd, .where__addr, .qa__a p { font-size: 16px; }
  .route { max-width: 600px; }
  .wrap { max-width: 680px; }
}

@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 .rv { opacity: 1; transform: none; filter: none; }
}

/* Цифры времени, даты и отсчёта — шрифтом цифр темы (--font-num), если он задан. Последним правилом, чтобы перекрыть font-family блоков выше. */
.cd__u b, .bigdate__num, .hero__date-num, .scratch__date, .stop__time, .mini__t { font-family: var(--font-num, var(--font-display)); }

/* =====================================================================
   Загрузка фото (art C-1): под кадром — основной цвет и размытое превью, сам кадр проявляется за 0,6 с
   ===================================================================== */
.hero__frame { background: var(--ph-c, rgba(127, 127, 127, .25)); }
.hero__frame::before { content: ""; position: absolute; inset: -24px; background: var(--ph-img, none) center / cover no-repeat; filter: blur(18px); transform: scale(1.06); }
.hero__frame img { position: relative; }
img[data-ph] { opacity: 0; transition: opacity .6s var(--ease); }
img[data-ph].is-ld { opacity: 1; }

/* ---------- Мелочи блоков ---------- */
.rule2 { display: block; width: 64px; height: 5px; margin: 0 auto 26px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
.book__priv { margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ticket__cap { width: min(86vw, 360px); margin: 18px auto 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ticket__top .ticket__cap { width: auto; margin: 14px 0 0; }
.ticket__guest.is-slot { opacity: .62; } /* примерка: имя гостя-примера, а не пара (№7) */
/* примерка с одним именем: «Аня», ниже мелко «второе имя впишем» (№31) */
.hero__tz { margin: 6px auto 0; font-size: 14px; line-height: 1.4; opacity: .8; } /* «по местному времени» (Event.content.tzNote) */
.day2__when { margin: 0 0 6px; font-size: 17px; line-height: 1.45; text-align: inherit; }
.s--day2 .where { margin: 12px 0 24px; }
.names__solo { display: block; margin-top: 14px; font: 400 15px/1.4 var(--font-body); letter-spacing: .04em; text-transform: none; opacity: .72; }
.ticket__cal { margin-top: 8px; text-align: center; }
.ticket__cal .cal-pick__list { margin: 6px auto 0; }
/* монограмма пары (примерка «Премьеры»: вместо чужого фото — на обложке и в билете) */
.monogram { display: none; position: absolute; inset: 0; place-items: center; align-content: center; grid-auto-flow: column; gap: .12em;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(64px, 20vw, 120px); line-height: 1; color: var(--gold, var(--accent)); }
.monogram i { font-style: italic; font-weight: 500; }
.monogram b { font-weight: 400; font-style: italic; font-size: .5em; opacity: .8; }

/* :fold — свёрнутый блок одной строкой (ux Н1) */
.s--fold { padding-top: 0; padding-bottom: 0; }
.s--fold + .s--fold .fold { border-top: 0; }
.fold { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fold__s { display: grid; grid-template-columns: 1fr 14px; align-items: center; column-gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; }
.fold__s::-webkit-details-marker { display: none; }
.fold__s .label { grid-column: 1; margin: 0 0 4px; }
.fold__t { grid-column: 1; font-family: var(--font-display); font-size: 26px; line-height: 1.15; }
.fold__s i { grid-column: 2; grid-row: 1 / span 2; position: relative; height: 14px; }
.fold__s i::before, .fold__s i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.fold__s i::after { transform: rotate(90deg); }
.fold[open] .fold__s i::after { transform: rotate(0); }
.fold__b { padding-bottom: 28px; }
.fold__b .wrap { padding: 0; max-width: none; }
.fold__b .s__head { display: none; }

/* =====================================================================
   ПРИМЕРКА (html.is-try): чужих лиц нет — кадр поднят к детали без людей (--try-f — какая доля кадра сверху видна),
   подпись «Здесь будет ваше фото», «слоты» с подсказками вместо чужих фактов
   ===================================================================== */
.hero__yours { display: none; }
html.hero-slot .hero__frame::before { display: none; }
html.hero-slot .hero__frame img, html.hero-slot .hero__bg img {
  height: calc(100% / var(--try-f, .3)) !important; object-position: 50% 0 !important; transform: none !important;
}
html.hero-slot .hero__yours {
  display: block; position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; pointer-events: none;
  font: 500 11px/1.4 var(--font-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .86);
}
html.hero-slot .hero__yours span { padding: 6px 10px; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* слоты фирменных блоков */
.slot-note { margin-top: 18px; font-size: 13px; color: var(--muted); font-style: italic; }
.facts.is-slot .fact__t, .facts.is-slot .fact__txt p { color: var(--muted); font-style: italic; }
.chap.is-slot .chap__ph img { height: calc(100% / var(--try-f, .3)) !important; object-position: 50% 0 !important; transform: none !important; }
.chap__yours { position: absolute; z-index: 2; top: max(24px, env(safe-area-inset-top)); left: var(--gutter); margin: 0; color: rgba(255, 255, 255, .82) !important; }
/* кадр-слот примерки — фотобумага, которая начинает проявляться (тёплое пятно, виньетка), без штриховки каркаса (И❌-8) */
.cs__fr.is-slot .cs__ph { display: flex; align-items: flex-end; justify-content: flex-start; padding: 8px 9px;
  background: radial-gradient(90% 70% at 38% 34%, rgba(226, 183, 120, .5), rgba(226, 183, 120, 0) 62%),
    radial-gradient(70% 60% at 72% 78%, rgba(160, 96, 60, .32), rgba(160, 96, 60, 0) 70%),
    linear-gradient(165deg, #5d4a35 0%, #3a3125 55%, #23211a 100%); box-shadow: inset 0 0 30px rgba(0, 0, 0, .45); }
.cs__slot { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(245, 228, 196, .72); }
.cs__fr.is-slot .cs__cap { color: rgba(239, 231, 210, .8); font-style: italic; }

/* финальная плашка примерки */
.s--trypanel { text-align: center; }
.s--trypanel .title { margin: 14px auto 0; max-width: 14ch; }
.s--trypanel .lead { margin-top: 22px; }
.trypanel__btns { display: grid; justify-items: center; gap: 10px; margin-top: 32px; }
.trypanel__btns .btn { min-width: min(100%, 300px); }
.trypanel__btns .link { font-size: 15px; color: inherit; }
html.is-trybar .dock__menu span { display: inline; }
/* примерка — короткая: 4–6 экранов (ux A0) */
html.is-try main .s { padding-top: clamp(52px, 10vw, 112px); padding-bottom: clamp(52px, 10vw, 112px); }
html.is-try .foot { padding: 72px 0 calc(110px + env(safe-area-inset-bottom)); }
html.is-try .s--trypanel { padding-bottom: 72px; }
html.is-try .answer-bg { display: none !important; }
html.is-try .chap.is-slot { min-height: 72vh; min-height: 72svh; }
/* примерка: демо-переключатель тем не нужен — внизу своя панель «‹ Темы · Хочу такое» */
html.is-trybar .tsw { display: none !important; }
html.is-try .cs__fr.is-slot .cs__ph { aspect-ratio: 4 / 5; }
html.is-try .cs__grid:has(> .is-slot:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; max-width: 760px; } /* три кадра — в ряд */
html.hero-slot .hero__yours span { display: inline-block; max-width: calc(100% - 16px); }

/* =====================================================================
   КОНСТРУКТОР (html.is-edit — холст редактора): без гостевой панели, переключателя тем, анимаций;
   касание блока выделяет его; пустые блоки — плашки «Добавьте …»; скрытые — полупрозрачно с меткой
   ===================================================================== */
[data-off] { display: none !important; }
html.is-edit .dock, html.is-edit .tsw, html.is-edit .hero__cue, html.is-edit .toast { display: none !important; }
html.is-edit, html.is-edit body { scroll-behavior: auto; }
html.is-edit .grain { animation: none !important; }
html.is-edit .hero { height: 100vh; height: 100svh; }
html.is-edit .hero__stage { --q: 0; }
html.is-edit [data-block-id] { cursor: pointer; }
html.is-edit input, html.is-edit textarea, html.is-edit select { pointer-events: none; }
html.is-edit img[data-ph] { transition: none; }
html.is-edit [data-field]:hover { outline: 1px dashed rgba(47, 107, 255, .55); outline-offset: 2px; }
img[data-user] { transform-origin: var(--fx, 50%) var(--fy, 50%) !important; }
.edit-ph { display: grid; gap: 6px; padding: 28px 20px; border: 1.5px dashed currentColor; border-radius: 6px; text-align: center; opacity: .72;
  font: 400 15px/1.45 "Golos Text", system-ui, sans-serif; }
.edit-ph b { font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.edit-ph--foot { margin-top: 18px; }
.s--empty { padding-top: 40px !important; padding-bottom: 40px !important; }
.edit-slot { display: grid; place-items: center; width: 100%; height: 100%; min-height: 140px; padding: 12px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(127, 127, 127, .14) 0 10px, rgba(127, 127, 127, .06) 10px 20px);
  color: inherit; font: 500 13px/1.3 "Golos Text", system-ui, sans-serif; opacity: .8; }
.is-hidden-block > :not(.edit-hidden) { opacity: .32; filter: grayscale(.5); }
.edit-hidden { position: relative; z-index: 5; width: max-content; max-width: calc(100% - 32px); margin: 0 auto 18px; padding: 7px 14px; border-radius: 999px;
  background: #1f1f1f; color: #fff; font: 500 12px/1.2 "Golos Text", system-ui, sans-serif; letter-spacing: .02em; }
#edit-hl { position: absolute; z-index: 95; pointer-events: none; box-shadow: inset 0 0 0 2px #2f6bff; border-radius: 2px; transition: all .2s var(--ease); }
#edit-hl b { position: absolute; top: 0; left: 0; padding: 5px 9px; background: #2f6bff; color: #fff; font: 600 11px/1 "Golos Text", system-ui, sans-serif; letter-spacing: .04em; border-radius: 0 0 4px 0; }
/* вариант «дата без слоя» для «Света» */
.s--date--plain .scratch { display: none !important; }
html[data-theme="svet"] .s--date--plain .bigdate { display: block; }
.chap__ph .edit-slot { align-content: start; padding-top: 22vh; color: #fff; font-size: 15px; }
.hero__frame .edit-slot { display: none; }
.cs__fr .cs__ph:has(> .cs__slot:empty) { background: repeating-linear-gradient(135deg, rgba(239, 231, 210, .05) 0 8px, transparent 8px 16px), #26271f; }
.edit-hidden button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.s--edit-add { padding: 32px 0 !important; }
.s--edit-add .label { margin-bottom: 12px; }
.edit-add { display: flex; flex-wrap: wrap; gap: 8px; }
.edit-add button { min-height: 44px; padding: 0 16px; border: 1.5px dashed currentColor; border-radius: 999px; background: none; color: inherit;
  font: 500 14px/1 "Golos Text", system-ui, sans-serif; opacity: .8; cursor: pointer; }
.group--multi .chips { margin-bottom: 0; }

/* ---------- Строка сути на обложке: 15 px строчными (И⚠️-5); «дата · время» и «место» — частями, «·» не висит (И❌-24) ---------- */
.hero__place.label { font-size: 15px; letter-spacing: .08em; text-transform: none; }
.hero__place .hp-a { white-space: nowrap; }
.hero__place.is-split .hp-dot { display: none; }
.hero__place.is-split .hp-b { display: block; }
@media (max-width: 359px) { .hero__place.label { font-size: 14px; } .hero__place .hp-a { white-space: normal; } }

/* «Удалить мой ответ?» — подтверждение строкой внутри карточки (И⚠️-3) */
.thanks__confirm { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line, rgba(0, 0, 0, .12)); }
.thanks__confirm-q { margin: 0 0 12px; }
.thanks__confirm-btns { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; }
html[data-theme="linia"] .thanks__confirm-btns { justify-content: flex-start; }
