/* ============================================================
   Приглашение на юбилей
   Чистая типографика, спокойные поверхности, ничего лишнего.
   Моушн: Emil Kowalski · Принципы: Apple Design
   ============================================================ */

:root {
  /* ── Цвет ── */
  --bg: #15120F;
  --surface: #1D1916;
  --surface-2: #252019;

  --border: rgba(255, 246, 232, 0.09);
  --border-strong: rgba(255, 246, 232, 0.16);

  --text: #F6F2EB;
  --text-2: #A9A199;
  --text-3: #776F66;

  --gold: #D4B26A;
  --gold-2: #F0DEAF;

  --danger: #E09A88;

  /* ── Радиусы ── */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-full: 999px;

  /* ── Кривые ── */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* ── Длительности ── */
  --d-press: 160ms;
  --d-fast: 200ms;
  --d-reveal: 560ms;

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --pad: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

/* ============================================================
   ФОН — праздничный: тёплое свечение, шары, конфетти
   ============================================================ */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(115% 58% at 50% -12%, #3C2B1C 0%, #251D17 42%, var(--bg) 76%),
    radial-gradient(75% 45% at 88% 108%, rgba(150, 74, 92, 0.4), transparent 66%),
    radial-gradient(70% 42% at 6% 92%, rgba(212, 178, 106, 0.18), transparent 68%);
}

.bg__balloons,
.bg__confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ── Воздушные шары ── */

.balloon {
  position: absolute;
  bottom: -36vh;
  width: var(--w, 64px);
  opacity: var(--o, 0.22);
  /* Размытие по глубине: дальние шары мягче, текст остаётся чётким */
  filter: blur(var(--blur, 1.2px));
  animation: balloonRise var(--dur, 44s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.balloon svg { display: block; width: 100%; height: auto; }

@keyframes balloonRise {
  0%   { transform: translate3d(0, 0, 0) rotate(var(--r, -5deg)); }
  50%  { transform: translate3d(var(--dx, 34px), -62vh, 0) rotate(calc(var(--r, -5deg) * -1)); }
  100% { transform: translate3d(0, -128vh, 0) rotate(var(--r, -5deg)); }
}

/* ── Конфетти ── */

.confetti-piece {
  position: absolute;
  top: -8vh;
  width: var(--w, 7px);
  height: var(--h, 12px);
  background: var(--c, #D4B26A);
  border-radius: 1.5px;
  opacity: 0;
  animation: confettiFall var(--dur, 13s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

@keyframes confettiFall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: var(--o, 0.75); }
  85%  { opacity: var(--o, 0.75); }
  100% { transform: translate3d(var(--dx, 50px), 120vh, 0) rotate(var(--rot, 620deg)); opacity: 0; }
}

/* ============================================================
   ЭКРАН ПОДТВЕРЖДЕНИЯ
   ============================================================ */

.confirm {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 10, 9, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}
.confirm.is-open { opacity: 1; }

.confirm__inner {
  width: 100%;
  max-width: 400px;
  padding: 38px 26px 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  transform: scale(0.96) translateY(12px);
  transition: transform 420ms var(--ease-out);
}
.confirm.is-open .confirm__inner { transform: none; }

.confirm__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 9vw, 42px);
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--gold-2);
}

.confirm__text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 24px;
}

.confirm__list {
  margin: 0 0 26px;
  padding: 16px 0 6px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.confirm__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 0;
}
.confirm__row dt {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  white-space: nowrap;
}
.confirm__row dd {
  margin: 0;
  font-size: 14.5px;
  color: var(--text);
  text-align: right;
}

.confirm .btn--gold { letter-spacing: 0.3em; }

.confirm__hint {
  font-size: 12px;
  color: var(--text-3);
  margin: 14px 0 0;
}

/* ============================================================
   ТИПОГРАФИКА
   ============================================================ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(27px, 8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 16px;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--gold); }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.lead {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.muted {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 14px;
  text-wrap: pretty;
}

.accent { color: var(--gold); }

.rule {
  border: 0;
  height: 1px;
  width: 56px;
  background: var(--border-strong);
  margin: 26px auto;
}

.venue-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 7.4vw, 34px);
  line-height: 1.2;
  color: var(--text);
  margin: 10px 0 6px;
}

/* ============================================================
   ОБЛОЖКА
   ============================================================ */

.cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.cover.is-open {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.cover__inner { max-width: 420px; width: 100%; }

.cover__inner > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
.cover.is-ready .cover__inner > * { opacity: 1; transform: none; }
.cover.is-ready .cover__inner > *:nth-child(1) { transition-delay: 60ms; }
.cover.is-ready .cover__inner > *:nth-child(2) { transition-delay: 130ms; }
.cover.is-ready .cover__inner > *:nth-child(3) { transition-delay: 200ms; }
.cover.is-ready .cover__inner > *:nth-child(4) { transition-delay: 270ms; }
.cover.is-ready .cover__inner > *:nth-child(5) { transition-delay: 340ms; }
.cover.is-ready .cover__inner > *:nth-child(6) { transition-delay: 410ms; }
.cover.is-ready .cover__inner > *:nth-child(7) { transition-delay: 480ms; }

.cover__kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.cover__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(46px, 15vw, 82px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.cover__age {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 6px;
}
.cover__age-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(46px, 13vw, 72px);
  line-height: 1;
  color: var(--gold);
}
.cover__age-word {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cover__date {
  font-family: var(--font-display);
  font-size: clamp(19px, 5.2vw, 24px);
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 30px;
}

.cover__hint {
  font-size: 12.5px;
  color: var(--text-3);
  margin: 16px 0 0;
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px 34px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--d-press) var(--ease-out),
    background-color var(--d-fast) ease,
    border-color var(--d-fast) ease,
    color var(--d-fast) ease,
    box-shadow var(--d-fast) ease;
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: var(--gold);
  color: #1A1509;
}
.btn--gold:hover { background: var(--gold-2); }
.btn--gold:disabled { opacity: 0.55; cursor: wait; transform: none; }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

.btn--block { width: 100%; }

.btn__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(26, 21, 9, 0.25);
  border-top-color: #1A1509;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   СТРАНИЦА
   ============================================================ */

.page {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
}
.page.is-shown { opacity: 1; transform: none; }

.wrap {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--pad) 90px;
}

.section {
  padding: 62px 0;
  border-top: 1px solid var(--border);
}
.section:first-child { border-top: none; padding-top: 80px; }

.section .lead,
.section .muted { max-width: 46ch; }

.section--final { text-align: center; }
.section--final .lead,
.section--final .muted { margin-left: auto; margin-right: auto; }

/* ============================================================
   ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--d-reveal) var(--ease-out),
    transform var(--d-reveal) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   ФОТО ВО ВЕСЬ ЭКРАН С ТЕКСТОМ
   ============================================================ */

.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 0 24px 76px;
}

.hero-full__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  /* Та же цветокоррекция, что и в галерее — фото живёт в палитре сайта */
  filter: saturate(0.82) contrast(1.06) brightness(0.88) sepia(0.12);
}

/* Затемнение: сверху под плашку, снизу — плавный переход в фон страницы */
.hero-full__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(21, 18, 15, 0.8) 0%,
      rgba(21, 18, 15, 0.28) 30%,
      rgba(21, 18, 15, 0.55) 66%,
      var(--bg) 100%);
}

.hero-full__content {
  position: relative;
  max-width: 460px;
  text-align: center;
}

.hero-full__kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.hero-full__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 14vw, 80px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 10px;
}

.hero-full__date {
  font-family: var(--font-display);
  font-size: clamp(18px, 5vw, 23px);
  letter-spacing: 0.08em;
  color: rgba(246, 242, 235, 0.82);
  margin: 0;
}

/* Текст приглашения прямо на фотографии */
.hero-full__text {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 242, 235, 0.18);
}

.hero-full__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 6.6vw, 30px);
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 12px;
}

.hero-full__lead {
  font-size: 15.5px;
  line-height: 1.66;
  color: rgba(246, 242, 235, 0.85);
  margin: 0 0 10px;
  text-wrap: pretty;
}
.hero-full__lead--soft { color: rgba(246, 242, 235, 0.6); margin-bottom: 0; }

/* ============================================================
   ДЕТАЛИ
   ============================================================ */

.details {
  display: grid;
  /* minmax(0, 1fr) вместо 1fr: «1fr» = minmax(auto, 1fr), и длинное слово
     в ячейке растягивает колонку — тогда блоки становятся разной ширины */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail {
  min-width: 0;
  padding: 20px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.detail__icon {
  display: block;
  width: 20px;
  height: 20px;
  margin-bottom: 14px;
}
.detail__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.detail__value {
  display: block;
  font-size: 16px;
  color: var(--text);
  margin-top: 6px;
}

/* ============================================================
   ОТСЧЁТ
   ============================================================ */

.count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.count__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 6px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.count__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 9vw, 40px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.count__label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============================================================
   КАЛЕНДАРЬ
   ============================================================ */

.calendar {
  margin: 6px 0 18px;
  padding: 20px 16px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.calendar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.calendar__month {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--text);
  text-transform: capitalize;
}

.calendar__year {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-3);
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.calendar__dow {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  padding-bottom: 8px;
  font-weight: 500;
}

.calendar__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  border-radius: 50%;
}
.calendar__day--empty { visibility: hidden; }
.calendar__day--weekend { color: var(--text-3); }

.calendar__day--event {
  background: var(--gold);
  color: #1A1509;
  font-weight: 600;
}

.calendar__legend {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
}
.calendar__legend b { color: var(--text); font-weight: 500; }

/* ============================================================
   ПРОГРАММА
   ============================================================ */

.timeline { margin-top: 4px; }

.timeline__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.timeline__item:last-child { border-bottom: none; padding-bottom: 0; }

.timeline__time {
  flex: 0 0 48px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.timeline__body { flex: 1 1 auto; min-width: 0; }

/* Фото этапа — то же, что на образце: картинка рядом с пунктом */
.timeline__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.timeline__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Та же цветокоррекция, что у остальных фотографий */
  filter: saturate(0.85) contrast(1.05) brightness(0.92) sepia(0.1);
}

.timeline__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 5px;
}

.timeline__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
}

/* ============================================================
   ЧТО МОЖЕТ ПОНАДОБИТЬСЯ
   ============================================================ */

.bring {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.bring__card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.bring__card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Та же цветокоррекция, что у остальных фотографий */
  filter: saturate(0.85) contrast(1.05) brightness(0.92) sepia(0.1);
}

.bring__body { padding: 14px 14px 16px; }

.bring__title {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 4px;
}

.bring__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* Фото места — тот же приём, что у остальных снимков сайта */
.venue-photo {
  margin: 22px 0 24px;
}
.venue-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  filter: saturate(0.88) contrast(1.05) brightness(0.94) sepia(0.1);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}

/* ============================================================
   ПАЛИТРА
   ============================================================ */

.palette {
  display: grid;
  /* Всегда три колонки: подписи вроде «изумрудный» помещаются в одну строку,
     и кружки остаются одинаковыми на любом экране */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 16px;
  max-width: 420px;
  margin: 24px auto 0;
}
.palette__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.palette__dot {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
}
.palette__name {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

/* ============================================================
   КАРТОЧКА АНКЕТЫ
   ============================================================ */

.card {
  padding: 32px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.card .display { text-align: center; }
.card > .muted { text-align: center; margin-left: auto; margin-right: auto; }

/* ============================================================
   ФОРМА
   ============================================================ */

.form { margin-top: 28px; }
.field { margin-bottom: 22px; }

.field__label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-bottom: 9px;
}
.field__note { font-weight: 400; color: var(--text-3); }

.field__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 14px 15px;
  outline: none;
  transition: border-color var(--d-fast) ease, box-shadow var(--d-fast) ease;
}
.field__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 178, 106, 0.15);
}
.field__input--area { resize: vertical; line-height: 1.6; }

select.field__input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A9A199' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
}
select.field__input option { background: #201C18; color: var(--text); }

.field__error { font-size: 13px; color: var(--danger); margin-top: 7px; }
.field__error:empty { display: none; }
.field.has-error .field__input { border-color: var(--danger); }

.options { display: flex; flex-wrap: wrap; gap: 9px; }

.option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  padding: 11px 17px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--d-press) var(--ease-out),
    background-color var(--d-fast) ease,
    border-color var(--d-fast) ease,
    color var(--d-fast) ease;
}
.option:hover { border-color: var(--gold); color: var(--text); }
.option:active { transform: scale(0.98); }

.option input { position: absolute; opacity: 0; pointer-events: none; }

.option__mark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--d-fast) ease;
}
.options--check .option__mark { border-radius: 5px; }

.option__mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: #1A1509;
  transform: scale(0);
  transition: transform var(--d-fast) var(--ease-out);
}

.option:has(input:checked),
.option.is-checked {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A1509;
}
.option:has(input:checked) .option__mark,
.option.is-checked .option__mark { border-color: rgba(26, 21, 9, 0.45); }
.option:has(input:checked) .option__mark::after,
.option.is-checked .option__mark::after { transform: scale(1); }

.notice {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: rgba(212, 178, 106, 0.08);
  color: var(--gold-2);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
}

.form__error {
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(224, 154, 136, 0.4);
  background: rgba(224, 154, 136, 0.1);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  margin-bottom: 18px;
}

.success { text-align: center; padding: 30px 16px; animation: fadeUp 480ms var(--ease-out); }
.success__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 10px;
  color: var(--text);
}
.success__text { font-size: 15px; color: var(--text-2); margin: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   ОБРАЗЫ: ДЕВОЧКИ И МАЛЬЧИКИ
   ============================================================ */

.looks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.looks__item { min-width: 0; }

.looks__item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  filter: saturate(0.92) contrast(1.05) brightness(0.95) sepia(0.06);
}

.looks__label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 12px 0 0;
}

.looks__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  text-align: center;
  margin: 6px 0 0;
}

/* Слово, выделенное золотом внутри текста */
.gold { color: var(--gold); }

/* ============================================================
   СТИХИ
   ============================================================ */

/* white-space: pre-line сохраняет переносы строк из конфига,
   но убирает лишние пробелы — получается ровный столбик строк */
.poem {
  white-space: pre-line;
  font-family: var(--font-display);
  font-size: 17.5px;
  line-height: 1.72;
  color: var(--text-2);
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   ФИНАЛ
   ============================================================ */

.final-photo {
  margin: 0 auto 30px;
  max-width: 330px;
}
.final-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  filter: saturate(0.82) contrast(1.06) brightness(0.9) sepia(0.12);
}

.signature {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--text-2);
  margin: 0 0 6px;
}

.signature-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(30px, 9vw, 40px);
  color: var(--gold-2);
  margin: 0;
}

.final-line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}

/* ============================================================
   КНОПКА МУЗЫКИ
   ============================================================ */

.music {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(29, 25, 22, 0.8);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform var(--d-press) var(--ease-out),
    border-color var(--d-fast) ease;
}
.music:hover { border-color: var(--gold); }
.music:active { transform: scale(0.94); }
.music svg { width: 17px; height: 17px; fill: var(--gold); }
.music svg line { stroke: var(--gold); stroke-width: 2; }
.music .music__off { display: none; }
.music.is-muted .music__on { display: none; }
.music.is-muted .music__off { display: block; }

/* ============================================================
   БОЛЬШИЕ ЭКРАНЫ И УЗКИЕ ТЕЛЕФОНЫ
   ============================================================ */

@media (min-width: 720px) {
  :root { --pad: 32px; }
  .wrap { padding-bottom: 110px; }
  .section { padding: 80px 0; }
  .section:first-child { padding-top: 100px; }
  .card { padding: 44px 40px; }
  .lead { font-size: 17.5px; }
  .details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .count { gap: 7px; }
  .count__cell { padding: 16px 4px 13px; }
  .option { font-size: 13.5px; padding: 10px 14px; }
  .details { grid-template-columns: minmax(0, 1fr); }
  .palette { gap: 20px 10px; }
  .palette__name { font-size: 9.5px; letter-spacing: 0.04em; }
  .timeline__item { gap: 12px; }
  .timeline__time { flex-basis: 42px; font-size: 13px; }
  .timeline__thumb { width: 58px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .cover__inner > *,
  .page {
    transform: none !important;
    transition-property: opacity !important;
    transition-duration: 300ms !important;
    transition-delay: 0ms !important;
  }
  .cover.is-open { transform: none; }
  .confirm__inner { transform: none; }
  .bg__balloons, .bg__confetti { display: none; }
  .btn:active, .option:active, .music:active { transform: none; }
}
