/* =========================================================
   Приглашение на свадьбу — в стиле сайта L'Amour Studio:
   облачный фон слоновой кости, жемчужные карточки с двойной золотой рамкой,
   надзаголовки-капители, шрифт с засечками, золотые кнопки и линии со светом.
   Страница рассчитана на телефон; на компьютере это узкая колонка по центру.
   ========================================================= */

:root {
  --bg: #FBF7F1;
  --taupe: #6F5A4D;
  --taupe-2: #8A766A;
  --text: #7C6C62;
  --gold: #B8955E;
  --gold-3: #9A7845;
  --gold-line: rgba(184, 149, 94, .42);
  --gold-grad: linear-gradient(120deg, #A9884F 0%, #CBAE78 32%, #EAD7AE 50%, #C4A570 68%, #A2814A 100%);
  --col: 460px;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Great Vibes", "Marck Script", cursive;
  --arabic: "Amiri", "Times New Roman", serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --radius: 24px;
  --shadow: 0 30px 60px -34px rgba(122, 92, 52, .34), 0 6px 18px -10px rgba(122, 92, 52, .14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
/* блоки, которые пара выключила в кабинете, скрываются полностью, даже если у них свой display */
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--lg { width: 46px; height: 46px; stroke-width: 1.1; color: var(--gold); }

/* ---------- Общие элементы (как на сайте) ---------- */

.invite {
  width: min(100%, var(--col));
  margin: 0 auto;
  padding-bottom: 0;
  overflow-x: clip;
}

/* как на референсе: крупный золотой заголовок капителью, под ним небольшая подпись */
.eyebrow {
  font-family: var(--serif);
  font-size: clamp(30px, 9vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #A6844C 0%, #C9A86F 30%, #E2C995 48%, #B8955E 70%, #A6844C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--taupe);
}
.text {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}

/* золотой текст с переливом — как «открыть» на главном экране сайта */
.gold-text {
  font-family: var(--serif);
  font-style: italic;
  /* цвет золота меняется в кабинете (палитра) — main.js задаёт --gold-text-grad */
  background: var(--gold-text-grad, linear-gradient(100deg, #A6844C 0%, #C9A86F 25%, #EBD8AF 42%, #C6A46B 58%, #A6844C 80%, #C9A86F 100%));
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-flow 7s linear infinite;
  padding: 0 .06em;
}
@keyframes gold-flow { to { background-position: -250% 0; } }

/* разделитель: линии с искоркой посередине */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px auto 4px;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.divider::after { transform: scaleX(-1); }
.divider .icon { width: 16px; height: 16px; stroke-width: 1.3; }

/* жемчужная карточка с двойной золотой рамкой */
.card {
  position: relative;
  margin: 0 16px;
  padding: 46px 28px 42px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 253, 248, .94), rgba(250, 244, 234, .9));
  box-shadow: var(--shadow);
}
.card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--gold-line);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

.block { position: relative; padding: 18px 26px; text-align: center; }
/* текст держится по центру, чтобы не заходить под гирлянды роз по бокам */
.block > .text { max-width: 290px; margin-left: auto; margin-right: auto; }

/* кнопки как на сайте */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 24px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s;
}
.btn--gold {
  color: #fff;
  background: var(--gold-grad);
  background-size: 200% 100%;
  box-shadow: 0 16px 30px -16px rgba(150, 112, 58, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
  text-shadow: 0 1px 1px rgba(120, 88, 40, .25);
}
.btn--gold::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg);
  animation: shine 5.5s ease-in-out 2.5s infinite;
  z-index: -1;
}
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn--gold:hover { transform: translateY(-2px); }
.btn--ghost {
  color: var(--taupe);
  background: rgba(255, 253, 249, .6);
  border: 1px solid var(--gold-line);
}
.btn--ghost:hover { color: #fff; background: var(--gold); border-color: transparent; transform: translateY(-2px); }

/* тонкая золотая линия со светом между блоками */
.line {
  position: relative;
  height: 1px;
  margin: 46px auto;
  width: 82%;
  background: linear-gradient(90deg, transparent, rgba(196, 163, 104, .4) 22%, rgba(226, 199, 142, .8) 50%, rgba(196, 163, 104, .4) 78%, transparent);
}
.line::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 55%;
  height: 40px;
  translate: -50% -50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 236, 196, .55), transparent 75%);
  filter: blur(4px);
  animation: line-breathe 6s ease-in-out infinite alternate;
}
.line span {
  position: absolute;
  inset: -1px 0;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.line span::before {
  content: "";
  position: absolute;
  top: 0;
  left: -18%;
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 249, 232, .95), transparent);
  animation: line-glint 8s ease-in-out infinite;
}
@keyframes line-breathe { from { opacity: .45; } to { opacity: .95; } }
@keyframes line-glint { 0%, 60% { left: -18%; } 100% { left: 100%; } }

/* ---------- 1. Обложка ---------- */

/* без overflow: hidden — букеты свисают ниже обложки на карточку */
.cover {
  position: relative;
  aspect-ratio: 720 / 1280;
}
.cover__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* низ видео растворяется в облачном фоне */
  -webkit-mask: linear-gradient(180deg, #000 82%, transparent 100%);
  mask: linear-gradient(180deg, #000 82%, transparent 100%);
}

.cover__text {
  position: absolute;
  left: 0;
  right: 0;
  top: 12.5%;
  text-align: center;
}
.cover__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5em;
  padding-left: .5em;
  text-transform: uppercase;
  color: var(--gold-3);
  text-shadow: 0 0 12px rgba(255, 248, 232, 1), 0 0 3px rgba(255, 248, 232, 1);
}
/* имена тёмным шрифтом с засечками, «&» — золотым переливом, как заголовок сайта */
.cover__names {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(38px, 11vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--taupe);
  /* светлое свечение, чтобы текст читался на небе */
  filter: drop-shadow(0 0 10px rgba(255, 248, 232, .95)) drop-shadow(0 0 2px rgba(255, 248, 232, .9));
}
.cover__names .gold-text { font-size: .8em; }
/* шрифт имён «Рукописный» из кабинета */
.names-script .cover__names,
.names-script .final__names { font-family: var(--script); font-style: normal; font-weight: 400; letter-spacing: 0; }
.names-script .cover__names { font-size: clamp(40px, 12vw, 54px); }
.names-script .final__names { font-size: 32px; }
.cover__date {
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .32em;
  padding-left: .32em;
  color: var(--taupe);
  text-shadow: 0 0 12px rgba(255, 248, 232, 1), 0 0 3px rgba(255, 248, 232, 1);
}

/* «Листайте» с бегущей золотой точкой, как было на сайте */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 4;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  /* светлая матовая подложка — надпись читается и на тёмном костюме, и на цветах */
  background: rgba(255, 251, 244, .78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px -12px rgba(90, 60, 30, .4), inset 0 0 0 1px var(--gold-line);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .4em;
  padding-left: calc(16px + .4em);
  text-transform: uppercase;
  color: var(--taupe);
}
/* маленькая золотая стрелка вниз, мягко покачивается */
.scroll-hint i {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.3px solid var(--gold-3);
  border-bottom: 1.3px solid var(--gold-3);
  rotate: 45deg;
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 50% { translate: 0 3px; } }

/* букеты в нижних углах поверх видео; z-index выше карточки, чтобы ветки лежали на ней */
.bouquet {
  position: absolute;
  bottom: -13%;
  z-index: 3;
  width: 50%;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(90, 60, 30, .18));
}
/* пульсация идёт от угла, где букет «растёт» */
.bouquet--left { left: -14%; transform-origin: 0 100%; }
.bouquet--right { right: -14%; transform-origin: 100% 100%; }

.js .bouquet { opacity: 0; }
/* букеты выплывают из углов, потом мягко «дышат» — чуть увеличиваются и возвращаются */
.is-opened .bouquet--left { animation: bouquet-in-left 2s var(--ease) .3s forwards, bouquet-pulse 3.6s ease-in-out 2.3s infinite; }
.is-opened .bouquet--right { animation: bouquet-in-right 2s var(--ease) .45s forwards, bouquet-pulse 3.6s ease-in-out 4.1s infinite; }
@keyframes bouquet-in-left { from { opacity: 0; transform: translate(-18%, 10%) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes bouquet-in-right { from { opacity: 0; transform: translate(18%, 10%) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes bouquet-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.045); }
}

/* ---------- Облачный фон с гирляндами роз (всё ниже обложки) ---------- */

/* верхний край фона — прозрачные облака: заходит на низ видео и мягко его растворяет.
   Фон из трёх частей: верх с цветами, бесшовная середина (повторяется на любую длину)
   и облака внизу — так он не растягивается, какой бы длины ни была страница */
.garden {
  --top-h: calc(min(100vw, var(--col)) * 1828 / 1080);
  position: relative;
  z-index: 2;
  margin-top: -40%;
  padding-top: 30%;
  background: url("images/bg-garden-top.webp") center top / 100% auto no-repeat;
}
.garden::before {
  content: "";
  position: absolute;
  inset: calc(var(--top-h) - 2px) 0 0;
  z-index: -1;
  background:
    url("images/bg-garden-bottom.webp") center bottom / 100% auto no-repeat,
    url("images/bg-garden-mid.jpg") center top / 100% auto repeat-y;
}

/* голуби у блоков, медленно парят */
.dove {
  position: absolute;
  z-index: 3;
  height: auto;
  pointer-events: none;
  filter: sepia(.12) brightness(1.03) drop-shadow(0 8px 10px rgba(90, 60, 30, .15));
  animation: dove-float 6s ease-in-out infinite alternate;
}
.dove--welcome { left: -6%; bottom: -12%; width: 26%; scale: -1 1; }
.dove--schedule { right: -2%; bottom: -4%; width: 24%; animation-delay: -2s; }
.dove--rsvp { right: 2%; top: -18%; width: 22%; animation-delay: -4s; }
.dove--final-a { left: 6%; top: -8%; width: 22%; scale: -1 1; animation-delay: -1s; }
.dove--final-b { right: 4%; top: 2%; width: 17%; animation-delay: -3s; }
/* гирлянды роз по краям — только там, где сбоку свободно и они не заходят на текст и карточки;
   z-index: -1 держит их под содержимым блока, концы гирлянды мягко растворяются */
.garland {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  object-fit: cover;
  filter: drop-shadow(0 10px 14px rgba(90, 60, 30, .12));
}
.garland--schedule {
  top: 90px; left: -22px;
  width: 122px; height: 405px;
  object-position: 50% 25%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 80%, transparent);
}
.garland--final-l,
.garland--final-r {
  bottom: 0;
  width: 140px; height: 234px;
  object-position: 50% 55%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 38%);
          mask-image: linear-gradient(to bottom, transparent, #000 38%);
}
.garland--final-l { left: -28px; }
.garland--final-r { right: -28px; }
/* выплывают сбоку, а не снизу */
.js .garland--schedule[data-reveal]:not(.is-in),
.js .garland--final-l[data-reveal]:not(.is-in) { transform: translateX(-24px); }
.js .garland--final-r[data-reveal]:not(.is-in) { transform: translateX(24px); }

@keyframes dove-float {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-10px) rotate(-3deg); }
}

/* ---------- 2. Обращение ---------- */

/* белая карточка с двойной золотой рамкой, как на референсе */
.welcome {
  margin: 0 30px;
  padding: 44px 26px 40px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(253, 249, 242, .95));
}
.welcome::before { inset: 10px; border-radius: 2px; border-color: rgba(184, 149, 94, .65); }
.welcome::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(184, 149, 94, .35);
  border-radius: 1px;
  pointer-events: none;
}
.bismillah {
  font-family: var(--arabic);
  font-size: 28px;
  line-height: 1.6;
  color: var(--gold-3);
}
.lines {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  color: var(--taupe);
}
.lines .gold-text { font-size: 1.25em; font-weight: 500; }

/* ---------- 3. Таймер ---------- */

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.timer[hidden] { display: none; }
.timer__cell {
  position: relative;
  padding: 16px 4px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .95), rgba(250, 244, 234, .9));
  box-shadow: 0 18px 30px -22px rgba(122, 92, 52, .45);
}
.timer__cell::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--gold-line);
  border-radius: 11px;
}
.timer b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  color: var(--taupe);
  font-variant-numeric: lining-nums tabular-nums;
}
.timer b.tick { animation: tick .6s var(--ease); }
@keyframes tick { from { opacity: .2; transform: translateY(-5px); } }
.timer span { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* золотая стираемая наклейка, как на лотерейном билете: рисуется в main.js на canvas */
.scratch {
  position: absolute;
  inset: 5px;
  z-index: 2;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  border-radius: 11px;
  cursor: grab;
  touch-action: none; /* палец стирает слой, а не листает страницу */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  filter: drop-shadow(0 3px 5px rgba(122, 92, 52, .25)) brightness(1) blur(0);
  transition: opacity .45s var(--ease), filter .45s var(--ease);
}
.scratch:active { cursor: grabbing; }
.scratch:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* слой рассыпается: в main.js остаток фольги превращается в хлопья, а сам холст гаснет со вспышкой */
.scratch.is-gone { opacity: 0; filter: drop-shadow(0 3px 5px rgba(122, 92, 52, 0)) brightness(1.5) blur(2px); pointer-events: none; }
.timer__cell.is-revealed { animation: cell-pop 1.1s var(--ease); }
@keyframes cell-pop {
  0%  { transform: scale(.96); }
  35% { transform: scale(1.05); box-shadow: 0 0 0 1px rgba(203, 174, 120, .6), 0 0 28px 5px rgba(234, 215, 174, .95), 0 18px 30px -22px rgba(122, 92, 52, .45); }
  100% { transform: none; }
}
/* блик пробегает по нетронутой наклейке — подсказывает, что её можно стереть */
.timer__cell.has-foil:not(.is-touched)::after {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 3;
  border-radius: 11px;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 252, 240, .75) 50%, transparent 62%) -150% 0 / 250% 100% no-repeat;
  mix-blend-mode: soft-light;
  animation: foil-shine 4.2s ease-in-out infinite;
}
.timer__cell:nth-child(2)::after { animation-delay: .25s; }
.timer__cell:nth-child(3)::after { animation-delay: .5s; }
.timer__cell:nth-child(4)::after { animation-delay: .75s; }
@keyframes foil-shine {
  0%, 55% { background-position: -150% 0; }
  85%, 100% { background-position: 250% 0; }
}
/* холст для хлопьев фольги и искр — общий на весь таймер, выходит за его края */
.timer { position: relative; -webkit-user-select: none; user-select: none; }
.scratch-fx { position: absolute; z-index: 5; pointer-events: none; }
.timer-hint {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--taupe-2);
  transition: opacity .6s var(--ease);
}
.js .countdown .timer-hint.is-done { opacity: 0; }

/* ---------- 4. Программа дня ---------- */

/* облака над заголовком: сомкнуты, пока блок внизу экрана, и при прокрутке расходятся
   за края экрана (сдвиг задаёт main.js); без скрипта их нет, чтобы не закрыть текст */
.sky-curtain { display: none; }
.js .sky-curtain {
  display: block;
  position: absolute;
  top: -36px;
  left: 0;
  right: 0;
  z-index: 5;
  height: 190px;
  pointer-events: none;
}
.sky-curtain.is-gone { visibility: hidden; }
.sky-curtain__cloud {
  position: absolute;
  top: 0;
  width: 80%;
  height: auto;
  will-change: translate, scale;
  filter: drop-shadow(0 18px 24px rgba(160, 120, 80, .14));
  /* пока облака на месте, они чуть покачиваются */
  animation: cloud-bob 7s ease-in-out infinite alternate;
}
.sky-curtain__cloud--l { left: -16%; }
.sky-curtain__cloud--r { right: -16%; top: 26px; animation-delay: -3.5s; }
@keyframes cloud-bob { to { transform: translateY(-6px); } }

.timeline {
  position: relative;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-line), var(--gold), var(--gold-line));
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  min-height: 62px;
}
.timeline time {
  text-align: right;
  padding-right: 14px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--taupe);
}
.timeline p { text-align: left; padding-left: 14px; font-size: 14.5px; line-height: 1.35; }
.dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #F2E7D6);
  box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(255, 250, 240, .9), 0 0 12px rgba(214, 180, 120, .5);
}

/* ---------- 5. Место ---------- */

/* здание дома торжеств: тёплое сияние за ним и мягкая тень под ступенями */
.venue { position: relative; margin: 20px -8px 0; }
.venue::before {
  content: "";
  position: absolute;
  inset: 4% 6% 14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 196, .85), rgba(255, 236, 196, 0));
}
.venue img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 16px rgba(122, 92, 52, .16));
}
.venue figcaption { margin-top: 14px; }
.venue__kind { display: block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.venue__name { display: block; margin-top: 2px; font-family: var(--serif); font-size: 34px; font-style: italic; font-weight: 500; line-height: 1.15; }
.address { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14.5px; color: var(--taupe-2); }
.address .icon { width: 18px; height: 18px; color: var(--gold); }
.map {
  position: relative;
  margin: 22px auto 0;
  padding: 8px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .95), rgba(250, 244, 234, .9));
  box-shadow: var(--shadow), inset 0 0 0 1px var(--gold-line);
}
.map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 15px;
  background: #EFE6D8;
}

/* ---------- 6. Пожелания ---------- */

/* горизонтальные карточки: иконка слева, текст справа — как на референсе */
.wishes__grid { display: grid; gap: 14px; margin: 22px 12px 0; }
.wishes .card { margin: 0; padding: 22px 22px 22px 18px; border-radius: 14px; }
.wishes .card::before { inset: 6px; border-radius: 10px; }
.wish { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; text-align: left; }
.wish .icon--lg { width: 44px; height: 44px; margin: 0 auto; }
.wish h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; color: var(--taupe); }
.wish p { margin-top: 4px; font-size: 13.5px; line-height: 1.55; }

/* ---------- 7. Ответ гостя ---------- */

.rsvp .btn { min-width: 260px; }

/* ---------- 8. Финал ---------- */

.final { position: relative; padding: 70px 0 190px; text-align: center; }
.final__title { font-size: 19px; padding: 0 16px; }
.final__title .gold-text { font-weight: 500; font-size: 1.5em; }
.final__names { margin-top: 4px; font-family: var(--serif); font-size: 22px; letter-spacing: .04em; color: var(--taupe); }
/* фото пары в арке — как арки на обложке: жемчужная рамка и тонкая золотая линия внутри */
.final__photo {
  --arch: 50% 50% 16px 16px / 37% 37% 16px 16px;
  position: relative;
  width: min(72%, 300px);
  margin: 30px auto 0;
  padding: 8px;
  background: linear-gradient(180deg, #FFFDF8, #F8F0E3);
  border-radius: var(--arch);
  box-shadow: var(--shadow);
}
.final__photo::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold-line);
  border-radius: var(--arch);
  pointer-events: none;
}
.final__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 964;
  object-fit: cover;
  border-radius: var(--arch);
}

/* ---------- Заставка: видео конверта ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 1.4s ease, visibility 1.4s;
}
.js .intro { display: flex; }
.intro.is-open { opacity: 0; visibility: hidden; }

/* кадр видео в пропорциях телефона: на телефоне на весь экран, на компьютере колонкой по центру */
.intro__stage {
  position: relative;
  width: min(100vw, 56.25svh);
  height: 100svh;
  padding: 0;
  border: 0;
  /* первый кадр конверта под видео: пока ролик стартует, не мелькает пустой фон */
  background: url("images/envelope-poster.jpg") center / cover no-repeat;
  cursor: pointer;
  container-type: size;
  overflow: hidden;
}
.intro__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* инициалы на печати: положение и размер каждый кадр задаёт скрипт по данным
   отслеживания печати в видео — надпись всегда ровно в центре круга */
.intro__initials {
  position: absolute;
  left: 49.4%;
  top: 50.1%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  font-family: var(--script);
  font-size: 5.6cqh;
  line-height: 1;
  white-space: nowrap;
  color: #E2C08A;
  /* лёгкое тиснение: тёмная тень снизу, светлый блик сверху */
  text-shadow: 0 1px 1px rgba(60, 10, 15, .65), 0 -1px 0 rgba(255, 230, 190, .25), 0 0 10px rgba(255, 210, 150, .25);
  will-change: left, top, font-size;
  pointer-events: none;
}
/* у рукописного шрифта визуальный центр букв выше центра строки — чуть опускаем */
.intro__initials span { display: block; translate: 0 .06em; }

.intro__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe);
  text-shadow: 0 0 10px rgba(255, 252, 245, 1), 0 0 3px rgba(255, 252, 245, 1);
  animation: hint-fade 2.4s ease-in-out infinite;
  transition: opacity .5s ease;
}
@keyframes hint-fade { 50% { opacity: .45; } }

/* после нажатия уходит только подсказка; инициалы остаются на печати до конца видео */
.intro.is-playing .intro__hint { opacity: 0; animation: none; }
.intro.is-playing .intro__stage { cursor: default; }

/* ---------- Появление при прокрутке ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* надписи на обложке появляются после открытия конверта */
.js [data-show] { opacity: 0; transform: translateY(16px); }
.is-opened [data-show] { animation: show 1.4s var(--ease) forwards; }
.is-opened .cover__names { animation-delay: .25s; }
.is-opened .cover__date { animation-delay: .5s; }
.is-opened .scroll-hint { animation-delay: 1.2s; }
@keyframes show { to { opacity: 1; transform: none; } }

/* ---------- Лепестки ---------- */

.petals {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none;
}

/* ---------- Кнопка музыки ---------- */

/* золотая круглая кнопка в правом нижнем углу колонки приглашения */
.music {
  position: fixed;
  right: max(16px, calc(50vw - var(--col) / 2 + 16px));
  bottom: 18px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 14px 26px -12px rgba(130, 96, 45, .8), inset 0 1px 0 rgba(255, 255, 255, .45);
  cursor: pointer;
  animation: show 1s var(--ease) both;
}
.music[hidden] { display: none; }
/* «эквалайзер» из четырёх полосок: прыгают, пока играет музыка */
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music__bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  transform-origin: bottom;
  animation: bars 1s ease-in-out infinite alternate;
}
.music__bars i:nth-child(2) { animation-delay: -.3s; }
.music__bars i:nth-child(3) { animation-delay: -.6s; }
.music__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bars { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
/* выключено — полоски замирают низкими */
.music[aria-pressed="false"] .music__bars i { animation: none; transform: scaleY(.25); }

/* ---------- Форма ответа ---------- */

.dialog {
  width: min(92vw, 420px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFDF8, #FAF4EA);
  color: var(--text);
  box-shadow: 0 30px 70px -20px rgba(70, 50, 30, .45);
}
.dialog::backdrop { background: rgba(70, 55, 40, .35); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-in .6s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.form { position: relative; padding: 36px 26px 28px; text-align: center; }
.form::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--gold-line);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.dialog__close {
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  font-size: 26px;
  color: var(--taupe-2);
  cursor: pointer;
}
.field { display: block; margin-top: 16px; padding: 0; border: 0; text-align: left; font-size: 14px; }
.field > span, .field legend { display: block; margin-bottom: 6px; padding: 0; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); }
.field input[type="text"], .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--taupe);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(184, 149, 94, .45); outline-offset: 1px; }
.choice label { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 15px; color: var(--taupe); cursor: pointer; }
.choice input { accent-color: var(--gold); width: 18px; height: 18px; }
.form .btn--gold { width: 100%; margin-top: 22px; }
.form__thanks { margin-top: 10px; font-size: 15px; }
.form__thanks .gold-text { display: block; margin-bottom: 4px; font-size: 40px; font-weight: 500; }
.form.is-sent .field, .form.is-sent .btn--gold { display: none; }

/* ---------- Узкие телефоны ---------- */

@media (max-width: 360px) {
  .title { font-size: 31px; }
  .timer b { font-size: 30px; }
  .timeline time { font-size: 22px; }
  .garland--schedule, .garland--final-l { translate: -12px 0; }
  .garland--final-r { translate: 12px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-show], .js .bouquet { opacity: 1; transform: none; }
}
