/* ============================================================
   ПАЛИТРА «СВЕЧНАЯ РОСКОШЬ»
   Собрана из мудборда: тёмная свечная база, бордо/вино,
   свечное золото, кремовый айвори. Меняешь тут — меняется весь сайт.
   ============================================================ */
:root {
  --bg:      #14100E;  /* Ночь — основной фон           */
  --bg-alt:  #1A1310;  /* Тёмная умбра — чередование    */
  --surface: #3A1A1E;  /* Бордо — карточки/блоки        */
  --surface-2: #2A1517;/* Тёмный бордо — карточки-фон   */
  --wine:    #7C2733;  /* Вино — главный акцент         */
  --wine-deep:#5F2221; /* Глубокое вино                 */
  --gold:    #C6A15E;  /* Свечное золото — 2-й акцент   */
  --gold-soft:#E0C48E; /* Светлое золото (hover)        */
  --ink:     #ECE4D6;  /* Айвори — основной текст       */
  --muted:   #AE9F8C;  /* Приглушённый текст            */
  --line:    #4A3B34;  /* Тонкие линии/обводки          */

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script:  'Jar Banks', 'Marck Script', 'Caveat', cursive;

  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 48px);
}

/* ------------------------------------------------------------
   Каллиграфия JAR BINKS (поддерживает кириллицу).
   Файл шрифта: assets/fonts/JarBanks.ttf
   Используется во всех декоративных рукописных заголовках (--font-script).
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Jar Banks';
  src: url('assets/fonts/JarBanks.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   БАЗА
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Мягкая тёплая виньетка по всей странице */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(124,39,51,0.10) 0%, transparent 55%),
              radial-gradient(140% 120% at 50% 120%, rgba(0,0,0,0.55) 0%, transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Плёночное зерно поверх страницы */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Фоновая музыка: кнопка + подсказка */
.music {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.music__hint {
  max-width: 178px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: right;
  color: var(--ink);
  text-shadow: 0 2px 10px rgba(0,0,0,0.65);
  background: rgba(20,16,14,0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 16px 16px 4px 16px;
  padding: 11px 16px 9px;
  transition: opacity .4s ease, transform .4s ease;
}
/* Прячем подсказку, когда музыка играет */
.music:has(.music-toggle.is-playing) .music__hint {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
.music-toggle {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(20,16,14,0.68);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease;
}
.music-toggle:hover { border-color: var(--gold); transform: scale(1.06); }
.music-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.music-toggle__bars {
  display: flex; align-items: flex-end; gap: 2.5px; height: 16px;
}
.music-toggle__bars span {
  width: 2.5px; height: 5px;
  background: var(--gold);
  border-radius: 1px;
}
.music-toggle.is-playing .music-toggle__bars span {
  animation: eq 0.9s ease-in-out infinite;
}
.music-toggle.is-playing .music-toggle__bars span:nth-child(2) { animation-delay: .15s; }
.music-toggle.is-playing .music-toggle__bars span:nth-child(3) { animation-delay: .30s; }
.music-toggle.is-playing .music-toggle__bars span:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%,100% { height: 5px; } 50% { height: 15px; } }
@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-playing .music-toggle__bars span { animation: none; height: 11px; }
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}
.container--narrow { max-width: 640px; }
.center { text-align: center; }

/* ============================================================
   ТИПОГРАФИКА / ОБЩИЕ ЭЛЕМЕНТЫ
   ============================================================ */
.overline {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.overline--gold { color: var(--gold); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 24px;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 16px;
}
.lead em { color: var(--ink); font-style: italic; }
.lead strong { color: var(--gold); font-weight: 500; }

.section {
  padding-block: clamp(72px, 12vw, 128px);
  position: relative;
}
.section:nth-of-type(even) { background: var(--bg-alt); }

/* Золотой разделитель с ромбом по центру */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px auto 30px;
  max-width: 220px;
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line));
}
.rule::after { background: linear-gradient(90deg, var(--line), transparent); }
.rule span {
  width: 6px; height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  flex: 0 0 auto;
}
.rule--gold::before { background: linear-gradient(90deg, transparent, var(--gold)); }
.rule--gold::after  { background: linear-gradient(90deg, var(--gold), transparent); }

/* Кнопки */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 1px;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
  cursor: pointer;
}
.btn--solid {
  background: var(--wine);
  color: var(--ink);
  border: 1px solid var(--wine);
}
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: #221410; }
.btn--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.nav--scrolled {
  background: rgba(20, 16, 14, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(198,161,94,0.18);
  padding-block: 12px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--ink);
}
.nav__brand span { color: var(--gold); font-style: italic; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}
.nav__links a {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .25s ease;
}
.nav__links a:hover { color: var(--gold); }
.nav__cta {
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 1px;
}
.nav__cta:hover { border-color: var(--gold); }
@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================================
   ОБЛОЖКА (HERO)
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--pad);
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  background: url("MAIN.jpg") center 30% / cover no-repeat;
  filter: brightness(0.46) saturate(0.82) contrast(1.03) blur(2px);
  transform: scale(1.08);
}
/* Тёмный градиент + центральное затемнение под текст — чтобы имена читались */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 62% at 50% 44%,
        rgba(16,12,11,0.90) 0%,
        rgba(16,12,11,0.55) 46%,
        rgba(16,12,11,0.16) 72%,
        transparent 88%),
    linear-gradient(180deg,
        rgba(16,12,11,0.60) 0%,
        rgba(16,12,11,0.30) 32%,
        rgba(16,12,11,0.78) 84%,
        var(--bg) 100%);
}
/* Тёплое свечение за именами */
.hero__glow {
  position: absolute;
  left: 50%; top: 46%;
  width: 80vw; max-width: 620px; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(198,161,94,0.22) 0%, rgba(124,39,51,0.10) 38%, transparent 66%);
  animation: candle 6s ease-in-out infinite;
}
@keyframes candle {
  0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.06); }
}
.hero__inner { position: relative; z-index: 2; }
.hero__invited {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1rem, 3vw, 1.55rem);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: 0 3px 20px rgba(0,0,0,0.5);
}
/* Большой каллиграфический заголовок (обложка + дресс-код) */
.script-title {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--gold);
  line-height: 0.9;
}
.hero__script {
  font-size: clamp(4.4rem, 19vw, 9.5rem);
  margin-bottom: 2px;
  text-shadow: 0 6px 34px rgba(0,0,0,0.6);
}
.hero__names {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.9rem, 6.5vw, 3.7rem);
  letter-spacing: 0.02em;
  line-height: 1.02;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--ink);
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero__amp {
  color: var(--gold);
  font-style: italic;
  font-size: 0.66em;
  margin-block: -6px;
}
.hero__date {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}
.hero__date-num {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  letter-spacing: 0.05em;
  color: var(--ink);
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
.hero__date-city {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-top: 8px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
.hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1px solid rgba(198,161,94,0.5);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(16px); opacity: 0; }
  100% { opacity: 0; }
}

/* ============================================================
   ОБРАТНЫЙ ОТСЧЁТ (бордовая полоса)
   ============================================================ */
.countdown-section {
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(124,39,51,0.55) 0%, transparent 62%),
    linear-gradient(180deg, rgba(20,13,12,0.80), rgba(20,13,12,0.88)),
    url("background.jpg") center 45% / cover no-repeat;
  border-block: 1px solid rgba(198,161,94,0.14);
}
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 6vw, 64px);
  margin-top: 30px;
}
.countdown__item { display: flex; flex-direction: column; align-items: center; }
.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* ============================================================
   ДАТА
   ============================================================ */
.date-card {
  display: inline-block;
  margin-top: 12px;
  padding: 44px clamp(30px, 8vw, 80px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(198,161,94,0.06);
}
.date-card__weekday {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.date-card__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.date-card__month, .date-card__year {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 92px;
}
.date-card__month { text-align: right; }
.date-card__year { text-align: left; }
.date-card__day {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 5.5rem);
  line-height: 1;
  color: var(--ink);
  padding-inline: 22px;
  border-inline: 1px solid var(--line);
}
.date-card__time {
  margin-top: 22px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   ПРОГРАММА (TIMELINE)
   ============================================================ */
.timeline {
  max-width: 640px;
  margin: 50px auto 0;
  position: relative;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 10px; bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.timeline__item {
  position: relative;
  padding-bottom: 40px;
}
.timeline__item:last-child { padding-bottom: 0; }
/* Золотой квадрат-маркер */
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px; top: 8px;
  width: 11px; height: 11px;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
}
.section:nth-of-type(even) .timeline__item::before { box-shadow: 0 0 0 4px var(--bg-alt); }
.timeline__time {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.timeline__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.timeline__body p { color: var(--muted); }

/* ============================================================
   ГДЕ (VENUE)
   ============================================================ */
.venue__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 50px;
}
.venue__card {
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
  transition: border-color .3s ease, transform .3s ease;
}
.venue__card:hover { border-color: rgba(198,161,94,0.4); transform: translateY(-4px); }
.venue__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.venue__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.92);
  transition: transform .6s ease;
}
.venue__card:hover .venue__photo img { transform: scale(1.05); }
.venue__photo--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background:
    radial-gradient(120% 120% at 50% 20%, rgba(124,39,51,0.28), transparent 62%),
    linear-gradient(180deg, #2A1517, #1B0F10);
}
.venue__placeholder-name {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--gold);
}
.venue__placeholder-hint {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.venue__content { padding: 30px 30px 34px; }
.venue__card h3 {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}
.venue__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.venue__addr { color: var(--muted); margin-bottom: 14px; }
.venue__note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ============================================================
   ДРЕСС-КОД: референсы образов (Для неё / Для него)
   ============================================================ */
.dress-refs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.4vw, 22px);
  margin: 50px auto 0;
  max-width: 860px;
}
.dress-refs__frame {
  margin: 0;
  padding: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.dress-refs__frame img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.95);
}
.dress-refs__frame:hover {
  transform: translateY(-5px);
  border-color: rgba(198,161,94,0.45);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.dresscode__help {
  max-width: 560px;
  margin: 42px auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--muted);
  line-height: 1.6;
}
.dresscode__help strong { color: var(--gold); font-style: normal; font-weight: 500; }

/* Декоративная подпись «late night» в программе */
.latenight {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold);
  margin-left: 10px;
  vertical-align: baseline;
  white-space: nowrap;
}

/* ============================================================
   ДРЕСС-КОД
   ============================================================ */
.dresscode .script-title { font-size: clamp(3.2rem, 12vw, 6.4rem); margin-bottom: 22px; }
.lead--narrow { max-width: 620px; margin-left: auto; margin-right: auto; }

.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 4vw, 34px);
  margin: 40px 0 8px;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.swatch__dot {
  width: clamp(46px, 12vw, 64px);
  height: clamp(46px, 12vw, 64px);
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 6px 16px rgba(0,0,0,0.4);
}
.swatch__name {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   FAQ / АККОРДЕОН
   ============================================================ */
.accordion { margin-top: 44px; }
.accordion__item {
  border-top: 1px solid var(--line);
  padding: 6px 0;
}
.accordion__item:last-child { border-bottom: 1px solid var(--line); }
.accordion__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  transition: color .25s ease;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform .3s ease;
}
.accordion__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion__item summary:hover { color: var(--gold); }
.accordion__item p {
  padding: 0 40px 22px 0;
  color: var(--muted);
}
.accordion__item p a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .25s ease, color .25s ease;
}
.accordion__item p a:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(124,39,51,0.42) 0%, transparent 60%),
    linear-gradient(180deg, rgba(20,13,12,0.86), rgba(20,13,12,0.92)),
    url("11.jpg") center 32% / cover no-repeat;
  border-block: 1px solid rgba(198,161,94,0.14);
}
.rsvp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 34px 0 22px;
}
.rsvp__phone { color: var(--muted); font-size: 0.95rem; }
.rsvp__phone a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }
.rsvp__phone a:hover { border-color: var(--gold); }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 44px;
}
.contacts__person {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 32px 24px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.contacts__role {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.contacts__name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.contacts__link {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .25s ease, color .25s ease;
}
.contacts__link:hover { border-color: var(--gold); color: var(--gold-soft); }
.contacts__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.contacts__links .contacts__link {
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 0.86rem;
}

/* ============================================================
   ДО СКОРОЙ ВСТРЕЧИ (финал)
   ============================================================ */
.farewell {
  position: relative;
  padding-block: clamp(80px, 13vw, 140px);
  text-align: center;
  background:
    radial-gradient(120% 130% at 50% 100%, rgba(124,39,51,0.34) 0%, transparent 58%),
    linear-gradient(180deg, rgba(16,12,11,0.72) 0%, rgba(16,12,11,0.86) 55%, rgba(14,10,9,0.93) 100%),
    url("10.jpg") center 28% / cover no-repeat;
  border-top: 1px solid rgba(198,161,94,0.16);
  overflow: hidden;
}
.farewell__glow {
  position: absolute;
  left: 50%; bottom: -20%;
  width: 70vw; max-width: 560px; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(198,161,94,0.16) 0%, transparent 62%);
  pointer-events: none;
}
.farewell__names {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  color: var(--ink);
  margin-bottom: 6px;
  text-shadow: 0 3px 22px rgba(0,0,0,0.65);
}
.farewell__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold);
  margin-bottom: 18px;
  text-shadow: 0 3px 22px rgba(0,0,0,0.65);
}
.farewell__date {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ
   ============================================================ */
.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease;
}
.reveal-fade.is-visible { opacity: 1; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade { opacity: 1; transform: none; transition: none; }
  .hero__scroll span, .hero__glow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ (телефоны)
   Фото — во всю ширину экрана, крупнее, без тесноты.
   Десктоп не трогаем — правила только для ширины ≤ 680px.
   ============================================================ */
@media (max-width: 680px) {
  /* Меньше боковых полей — контент и фото становятся шире */
  :root { --pad: 16px; }

  body { font-size: 16px; }

  /* Секции чуть компактнее по высоте */
  .section { padding-block: clamp(54px, 15vw, 84px); }

  /* --- ОБЛОЖКА: дата ближе к именам --- */
  .hero__date { margin-top: 38px; }

  /* --- ОТСЧЁТ: гарантированно 4 в ряд, без переносов --- */
  .countdown { gap: clamp(10px, 4vw, 22px); margin-top: 24px; }
  .countdown__num { font-size: clamp(2.1rem, 13vw, 3.4rem); }

  /* --- ДАТА: карточка не вылезает за край экрана --- */
  .date-card { padding: 32px 20px; }
  .date-card__row { gap: 10px; }
  .date-card__month,
  .date-card__year { width: auto; font-size: 1rem; }
  .date-card__day { padding-inline: 14px; font-size: clamp(3rem, 17vw, 4.2rem); }

  /* --- ПРОГРАММА: подпись «late night» на своей строке --- */
  .timeline { margin-top: 36px; }
  .latenight { display: block; margin: 4px 0 0; }

  /* --- ГДЕ: фото площадок во ВСЮ ШИРИНУ экрана --- */
  .venue__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 36px;
    margin-inline: calc(var(--pad) * -1);   /* во всю ширину экрана (без выхода за край) */
  }
  .venue__card {
    border-inline: 0;
    border-radius: 0;
  }
  .venue__content { padding: 26px var(--pad) 30px; }

  /* --- ДРЕСС-КОД: 3 в ряд, как на десктопе; по нажатию фото открывается крупно --- */
  .dress-refs {
    gap: 8px;
    margin-top: 30px;
  }

  /* --- FAQ: вопросы помельче, чтобы помещались --- */
  .accordion__item summary { font-size: 1.15rem; padding-right: 34px; }
  .accordion__item p { padding-right: 0; }

  /* --- ОБЛОЖКА: на телефоне кадрируем на пару (сдвиг к паре справа)
         и чуть подсветляем, чтобы вас было видно, а не только башню --- */
  .hero__photo {
    background-position: 70% 45%;
    filter: brightness(0.62) saturate(0.85) contrast(1.03) blur(1px);
    transform: scale(1.05);
  }
  .hero::after {
    background:
      radial-gradient(ellipse 105% 72% at 50% 50%,
          rgba(16,12,11,0.80) 0%,
          rgba(16,12,11,0.44) 46%,
          rgba(16,12,11,0.12) 72%,
          transparent 88%),
      linear-gradient(180deg,
          rgba(16,12,11,0.46) 0%,
          rgba(16,12,11,0.22) 32%,
          rgba(16,12,11,0.74) 84%,
          var(--bg) 100%);
  }

  /* --- ФИНАЛ: детский рисунок внизу теперь видно (светлее градиент,
         кадр по самому рисунку, а не по фону сверху) --- */
  .farewell {
    background:
      radial-gradient(120% 120% at 50% 46%,
          rgba(16,12,11,0.66) 0%,
          rgba(16,12,11,0.30) 38%,
          transparent 66%),
      linear-gradient(180deg,
          rgba(16,12,11,0.42) 0%,
          rgba(16,12,11,0.34) 42%,
          rgba(14,10,9,0.66) 100%),
      url("10.jpg") center 44% / cover no-repeat;
  }
}

/* ============================================================
   ЛАЙТБОКС — фото дресс-кода открываются крупно по нажатию
   ============================================================ */
.dress-refs__frame { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10,7,6,0.92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(92vw, 680px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: scale(0.96);
  transition: transform .35s ease;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(20,16,14,0.7);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold-soft); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__img { transition: none; }
  .lightbox__img { transform: none; }
}
