/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */
:root {
  /* colors */
  --navy: #1a3a5c;
  --navy-deep: #14304d;
  --cream: #f7f4ee;
  --cream-alt: #fdfbf7;
  --burgundy: #5c1a2a;
  --muted: #8a94a6;
  --ink: #2a4f88; /* синяя тушь для акварельных орнаментов */
  --white: #ffffff;
  --border-navy: rgba(26, 58, 92, 0.3);

  /* fonts */
  /* У Pinyon Script нет кириллицы (загружается диапазон U+0-FF), поэтому
     русские имена рисует системный cursive — на разных устройствах разный.
     Так и было задумано в макете, оставлено осознанно. */
  --font-script: 'Pinyon Script', cursive;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Cormorant Garamond', serif;
  --font-caps: 'Jost', 'Montserrat', sans-serif;

  /* layout */
  --content-max: 430px;
  --tap-min: 44px;
  --gap: 0.85rem;

  /* timings — интро */
  --t-hint-fade: 500ms;
  --t-overlay: 800ms;
  --t-collapse: 300ms;
  --t-mute-fade: 400ms;
  --t-video-fallback: 3000ms;
  --t-rsvp-fade: 500ms;
  --t-reveal: 700ms;
}

/* ==========================================================================
   BASE
   ========================================================================== */
html, body {
  height: 100%;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body.is-locked {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

.app-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: var(--cream);
}

/* Desktop / wide viewports: center a phone-width column, tone background on the sides */
@media (min-width: 501px) {
  body {
    display: flex;
    justify-content: center;
    background: var(--navy-deep);
  }

  .app-shell {
    max-width: var(--content-max);
    width: 100%;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.35);
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

/* Убирает элемент с глаз, но оставляет его в разметке — так спрятана
   ловушка для спам-ботов в форме: человек её не видит и не заполнит. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--navy);
}

.section-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  min-width: var(--tap-min);
  padding: 0.75rem 2rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
}

/* ==========================================================================
   INTRO — двери
   ========================================================================== */
.intro {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--navy-deep);
  background-image: url('../assets/img/doors-fallback.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  cursor: pointer;
}

.intro.is-collapsing {
  opacity: 0;
  transition: opacity var(--t-collapse) ease;
}

.intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.intro__video--hidden {
  display: none;
}

/* Затемнение снизу под подсказку. Без него светлый текст пропадал: у нижнего
   края кадра белая стена, и надпись сливалась с ней. */
.intro::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20, 48, 77, 0.6), rgba(20, 48, 77, 0));
}

.intro__hint {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  z-index: 3;
  width: 100%;
  padding: 0 1.5rem;
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(247, 244, 238, 0.75);
  animation: intro-hint-pulse 2.4s ease-in-out infinite;
  transition: opacity var(--t-hint-fade) ease;
}

.intro__hint.is-hidden {
  animation: none;
  opacity: 0;
}

@keyframes intro-hint-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

.intro--hidden {
  display: none;
}

/* ==========================================================================
   INTRO OVERLAY — светло-песочная засветка при переходе к лендингу
   ========================================================================== */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--content-max);
  height: 100dvh;
  background: var(--cream-alt);
  opacity: 0;
  z-index: 40;
  pointer-events: none;
  transition: opacity var(--t-overlay) ease;
}

.intro-overlay.is-visible {
  opacity: 1;
}

.intro-overlay--done {
  display: none;
}

/* ==========================================================================
   MUTE TOGGLE
   ========================================================================== */
.mute-toggle {
  position: fixed;
  right: max(1rem, calc((100vw - var(--content-max)) / 2 + 1rem));
  bottom: 1rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(20, 48, 77, 0.35);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity var(--t-mute-fade) ease, transform var(--t-mute-fade) ease;
}

.mute-toggle.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ==========================================================================
   REDUCED MOTION — без резких движений, только fade
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .intro__hint {
    animation: none;
    opacity: 0.75;
  }

  .mute-toggle {
    transform: none;
  }

  .mute-toggle.is-visible {
    transform: none;
  }

  .hero__scroll-arrow {
    animation: none;
  }
}

/* ==========================================================================
   MAIN / SECTIONS
   ========================================================================== */
.main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  padding: 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--gap);
}

/* Добавляется JS-ом только когда IntersectionObserver доступен и
   prefers-reduced-motion не установлен — без JS секции остаются видимыми. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-reveal) ease, transform var(--t-reveal) ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HERO
   ========================================================================== */
/* Фото задаётся фоном через CSS, а не тегом <img>: если файла нет, секция
   просто останется кремовой — вместо значка битой картинки посреди имён. */
.section--hero {
  background-color: var(--cream);
  background-image: url('../assets/img/hero-bg.jpg');
  background-size: cover;
  /* кадр шире экрана, cover срезает бока — смещаем вправо, где стоит пара */
  background-position: 68% center;
  overflow: hidden;
}

/* фото приглушено почти до фона: оно должно угадываться, а не спорить с именами */
.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(247, 244, 238, 0.9);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  width: 100%;
}

.hero__eyebrow {
  max-width: 22ch;
}

.hero__names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.hero__name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 15vw, 4rem);
  line-height: 1.1;
  color: var(--navy);
}

.hero__amp {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.5rem, 7vw, 2rem);
  color: var(--navy);
  opacity: 0.75;
}

/* Тот же рукописный шрифт, что у имён, только мельче. Здесь именно cursive,
   а не var(--font-script): имена целиком кириллические и рисуются системным
   cursive, а в дате есть цифры — Pinyon подхватил бы их, и строка вышла бы
   набранной двумя разными шрифтами. Разрядки нет — рвёт связки начертания. */
.hero__date {
  font-family: cursive;
  font-weight: 400;
  font-size: clamp(1.7rem, 8vw, 2.2rem);
  line-height: 1.3;
  color: var(--navy);
}

.hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--navy);
}

.hero__scroll-text {
  font-family: var(--font-heading);
  font-style: italic;
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

.hero__scroll-arrow {
  font-size: 1.1rem;
  animation: hero-arrow-bounce 2s ease-in-out infinite;
}

@keyframes hero-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.section--countdown {
  background-color: var(--cream-alt);
}

.countdown__title {
  color: var(--navy);
}

.countdown__timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  width: 100%;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0.25rem;
  background: var(--white);
  border: 1px solid var(--border-navy);
  border-radius: 0.75rem;
}

.countdown__value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--navy);
}

.countdown__caption {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
}

.countdown__caption.is-today {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--burgundy);
}

/* Фото вертикальное. Пропорция задана через aspect-ratio, а не высотой:
   место под него держится ещё до загрузки, и таймер выше не дёргается. */
.countdown__photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  margin-inline: auto;
  border-radius: 0.75rem;
}

/* ==========================================================================
   LOCATION
   ========================================================================== */
.section--location {
  background-color: var(--cream);
}

.location__venue-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  color: var(--navy);
}

.location__address {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
}

.location__map {
  width: 100%;
  background-color: #ece7db;
  border-radius: 1rem;
  overflow: hidden;
}

.location__map-frame {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.location__map-footer {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
}

.location__map-btn {
  gap: 0.5rem;
  color: var(--navy);
}

/* ==========================================================================
   TIMELINE — Расписание дня
   ========================================================================== */
.section--timeline {
  background-color: var(--cream);
}

.timeline__title {
  color: var(--navy);
}

/* Боковые отступы больше вертикальных: внутрь рамки заходят листья,
   и текст должен начинаться за ними, а не по краю блока. */
.timeline {
  position: relative;
  width: 100%;
  padding: 2.5rem 2.75rem;
}

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

.timeline__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: var(--ink);
  pointer-events: none;
  /* края штрихов гуляют — линия перестаёт быть векторно-стерильной;
     смещение держим мелким, иначе фильтр съедает резкость штриха */
  filter: url(#tlInk) saturate(1.15);
}

/* Каждая сторона — своя система координат: листья позиционируются в % от неё,
   поэтому попадают ровно на линию при любой высоте блока. */
.timeline__edge {
  position: absolute;
}

.timeline__edge--top,
.timeline__edge--bottom {
  left: 50%;
  width: calc(100% + 20px);
  height: 34px;
  transform: translateX(-50%);
}

.timeline__edge--top {
  top: -6px;
}

.timeline__edge--bottom {
  bottom: -6px;
}

.timeline__edge--left,
.timeline__edge--right {
  top: 0;
  bottom: 0;
  width: 34px;
  height: 100%;
}

.timeline__edge--left {
  left: -6px;
}

.timeline__edge--right {
  right: -6px;
}

.timeline__stem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Зеркалим только стебель — листья остаются в своей системе координат
   (script.js сам переворачивает их проценты для этих сторон). */
.timeline__edge--bottom .timeline__stem {
  transform: scaleY(-1);
}

.timeline__edge--right .timeline__stem {
  transform: scaleX(-1);
}

/* Угловой завиток. Размер и вынос обязаны совпадать с CORNER_TRIM (46) и
   CORNER_PAD (26) в script.js — он рисует путь в этой же системе координат.
   Масштаб 1:1, поэтому петля остаётся круглой, а не расплывается в овал. */
.timeline__corner {
  position: absolute;
  width: 72px;
  height: 72px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  /* стебли рисуются в растянутом viewBox и на экране дают ~3.4px — угол в
     масштабе 1:1 должен быть такой же, иначе стык видно как утолщение */
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline__corner--tl {
  left: -26px;
  top: -26px;
}

.timeline__corner--tr {
  right: -26px;
  top: -26px;
  transform: scaleX(-1);
}

.timeline__corner--bl {
  left: -26px;
  bottom: -26px;
  transform: scaleY(-1);
}

.timeline__corner--br {
  right: -26px;
  bottom: -26px;
  transform: scale(-1, -1);
}

/* Лист крепится основанием (низ-центр) к точке на стебле:
   translate(-50%, -100%) ставит основание в (left; top),
   а transform-origin: 50% 100% вращает вокруг этого же основания. */
.timeline__leaf {
  position: absolute;
  width: 20px;
  height: 28px;
  overflow: visible;
  /* без border-box проценты в transform у внешнего <svg> считаются от viewBox */
  transform-box: border-box;
  transform-origin: 50% 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline__list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 0;
}

.timeline__meta {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--navy);
}

/* строка места сдвинута вправо от центра — по просьбе заказчика */
.timeline__place {
  position: relative;
  left: 6px;
}

.timeline__stage {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  /* нижняя граница подобрана под 320px: длинное «Выездная регистрация»
     должно уместиться между листьями, а не впритык к ним */
  font-size: clamp(1.15rem, 5vw, 1.6rem);
  color: var(--navy);
}

.timeline__divider {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  margin: 0.5rem 0;
}

/* ==========================================================================
   DRESS CODE
   ========================================================================== */
.section--dresscode {
  background-color: var(--cream-alt);
}

.dresscode__title {
  color: var(--navy);
}

/* PNG с вырезанным фоном — фигуры лежат прямо на фоне секции, без плашки.
   Пропорция задана явно, чтобы текст ниже не прыгал при загрузке. */
.dresscode__illustration {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1280 / 568;
  height: auto;
  margin-inline: auto;
}

.dresscode__text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 4.5vw, 1.25rem);
  color: var(--navy);
  max-width: 30ch;
}

/* ==========================================================================
   DETAILS — Детали
   ========================================================================== */
.section--details {
  background-color: var(--cream);
}

/* Короткие секции не растягиваем на весь экран: содержимого в них 200–350px,
   а 100dvh добавляет сверху и снизу по пол-экрана пустоты. */
.section--dresscode,
.section--details {
  min-height: auto;
  padding-block: 4rem;
}

.details__title {
  color: var(--navy);
}

/* Рамка без заливки — сквозь неё виден фон секции.
   Заголовок «Детали» остаётся снаружи: он сосед этого блока, а не потомок. */
.details__list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  width: 100%;
  margin-inline: auto;
  padding: 1.75rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-navy);
  border-radius: 0.75rem;
}

/* два тона в абзаце, как на образце: зачин плотный, продолжение светлее */
.details__item {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 4.4vw, 1.2rem);
  line-height: 1.5;
  color: rgba(26, 58, 92, 0.62);
}

.details__lead {
  color: var(--navy);
  font-weight: 600;
}

/* ==========================================================================
   RSVP — Подтвердите присутствие
   ========================================================================== */
.section--rsvp {
  background-color: var(--cream);
}

/* PNG с прозрачным фоном — ложится прямо на фон секции.
   Пропорция задана явно, чтобы заголовок ниже не прыгал при загрузке. */
.rsvp__rings {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 388 / 283;
  height: auto;
  margin-inline: auto;
}

.rsvp__title {
  color: var(--navy);
}

.rsvp__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(20, 48, 77, 0.12);
  text-align: left;
  transition: opacity var(--t-rsvp-fade) ease;
}

.rsvp__card.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.rsvp__card.is-removed {
  display: none;
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rsvp__label {
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--navy);
}

.rsvp__input,
.rsvp__textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background: var(--cream-alt);
  border: 1px solid var(--border-navy);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.rsvp__input:focus,
.rsvp__textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.rsvp__input::placeholder,
.rsvp__textarea::placeholder {
  color: var(--muted);
}

.rsvp__textarea {
  resize: vertical;
  min-height: 90px;
}

.rsvp__attend-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rsvp__attend-btn {
  min-height: var(--tap-min);
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--cream-alt);
  color: var(--navy);
  border: 1px solid var(--border-navy);
  border-radius: 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.rsvp__attend-btn.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}

.rsvp__field--guests {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  gap: 0;
  transition: opacity var(--t-rsvp-fade) ease, max-height var(--t-rsvp-fade) ease;
}

.rsvp__field--guests.is-visible {
  opacity: 1;
  max-height: 200px;
  pointer-events: auto;
  gap: 0.5rem;
}

.rsvp__stepper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream-alt);
  border: 1px solid var(--border-navy);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
}

.rsvp__stepper-caption {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--navy);
}

.rsvp__stepper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.rsvp__stepper-btn {
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp__stepper-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.rsvp__stepper-value {
  min-width: 2ch;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.rsvp__error {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--burgundy);
  text-align: center;
}

.rsvp__submit-btn {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.9rem 1.5rem;
  background: var(--muted);
  color: var(--cream-alt);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-caps);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
}

.rsvp__thanks {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--navy);
  opacity: 0;
  transition: opacity var(--t-rsvp-fade) ease;
}

.rsvp__thanks.is-visible {
  opacity: 1;
}

/* ==========================================================================
   CLOSING — финальная секция
   ========================================================================== */
.section--closing {
  background-color: var(--cream-alt);
}

.closing__filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.closing__card {
  position: relative;
  width: 100%;
  padding: 14px;
}

.closing__card-frame {
  position: absolute;
  inset: 0;
  background: var(--navy);
  border-radius: 1.75rem;
  filter: url('#wavyEdge');
}

.closing__card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2.5rem 1.75rem;
}

.closing__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.5rem, 11vw, 3.25rem);
  color: var(--navy);
  line-height: 1.1;
}

.closing__text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--navy);
  max-width: 28ch;
}

.closing__signature {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 2.75rem);
  color: var(--navy);
  line-height: 1.1;
}

/* больше не ссылка, поэтому без min-height под палец */
.closing__credit {
  padding: 0.5rem 1rem;
  font-size: 0.65rem;
}
