/* Локальные шрифты: положите файлы в папку fonts/ (имена ниже — при необходимости переименуйте файлы) */
@font-face {
  font-family: "ST Rome";
  src:
    url("fonts/ST-Rome.woff2") format("woff2"),
    url("fonts/ST-Rome.woff") format("woff"),
    url("fonts/ST-Rome.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "kirlik2";
  src:
    url("fonts/kirlik2.woff2") format("woff2"),
    url("fonts/kirlik2.woff") format("woff"),
    url("fonts/kirlik2.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Токены: серый текстурированный фон (референс priglasi), типографика как в макете приглашения --- */

:root {
  --bg: #c9c9c5;
  --bg-mid: #d2d2ce;
  --bg-deep: #bdbdb8;
  --ink: rgb(230, 216, 202);
  --ink-soft: rgb(208, 194, 180);
  --gold: #9a7b4f;
  --gold-light: #c4a574;
  --cream: #e8e8e4;
  --cream-warm: #eceae6;
  /* Фон страницы: фото под полупрозрачными слоями */
  --bg-photo: url("fon.jpeg");
  /* Колонка .shell — одна подложка: цвет (RGB) и прозрачность настраиваются отдельно */
  --shell-backing-rgb: 115, 36, 71;
  --shell-backing-opacity: 0.83;
  --shell-border-radius: 14px;
  --line: rgba(40, 40, 38, 0.1);
  --shadow-soft: 0 14px 48px rgba(30, 30, 28, 0.12);
  /* Крупные заголовки секций, акцентные подписи */
  --font-display: "ST Rome", Georgia, "Times New Roman", serif;
  --font-serif: "ST Rome", Georgia, "Times New Roman", serif;
  --font-sans: "kirlik2", system-ui, sans-serif;
  --font-script: "ST Rome", Georgia, "Times New Roman", serif;
  /* Заголовки секций (референс «ТАЙМИНГ»): крем + широкий трекинг */
  --section-heading-color: #f2e6d4;
  --section-heading-spacing: 0.22em;
  /* Кнопки: нежный белый полупрозрачный залив */
  --btn-surface: rgba(255, 255, 255, 0.14);
  --btn-surface-hover: rgba(255, 255, 255, 0.24);
  --shell-max: 32rem;
  --shell-max-lg: 36rem;
  /* Карточки секций внутри колонки */
  --block-frame-radius: 14px;
  --block-frame-border: 1px solid rgba(255, 255, 255, 0.28);
  --block-frame-bg: rgba(255, 255, 255, 0.06);
  --block-frame-gap: 0.75rem;
  /* Текстура «бумаги» для карточки контента (SVG noise, тот же принцип что у .grain) */
  --shell-texture-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='sn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.58' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23sn)' opacity='0.11'/%3E%3C/svg%3E");
  --timing-red: #b71c1c;
  --font-timing: "ST Rome", Georgia, "Times New Roman", serif;
}

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

html {
  font-size: 125%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg-mid);
  background-image:
    /* «Смятость»: неровный свет и мягкие складки поверх базового градиента */
    radial-gradient(ellipse 115% 72% at 78% 8%, rgba(255, 255, 255, 0.2), transparent 52%),
    radial-gradient(ellipse 90% 65% at 8% 92%, rgba(35, 35, 32, 0.06), transparent 48%),
    radial-gradient(ellipse 70% 50% at 45% 55%, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(
      154deg,
      transparent 0%,
      rgba(255, 255, 255, 0.055) 18%,
      transparent 24%,
      transparent 38%,
      rgba(32, 30, 28, 0.04) 44%,
      rgba(255, 255, 255, 0.04) 49%,
      transparent 55%,
      transparent 68%,
      rgba(255, 255, 255, 0.045) 74%,
      transparent 82%
    ),
    linear-gradient(
      72deg,
      transparent 25%,
      rgba(40, 38, 35, 0.028) 42%,
      rgba(255, 255, 255, 0.06) 48%,
      transparent 58%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 42%),
    radial-gradient(ellipse 100% 55% at 50% 0%, rgba(255, 255, 255, 0.22), transparent 58%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.018) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(
      168deg,
      rgba(201, 201, 197, 0.5) 0%,
      rgba(210, 210, 206, 0.5) 38%,
      rgba(201, 201, 197, 0.55) 72%,
      rgba(196, 196, 192, 0.5) 100%
    ),
    var(--bg-photo);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, auto, cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body.body--ice-intro {
  overflow: hidden;
  touch-action: none;
}

/* Вступление: «лёд» first_animate.jpg, трескается по тапам */
.ice-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-right, 0px))
    max(1.25rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background: #0b1218;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.ice-intro--shake {
  animation: ice-intro-shake 0.28s ease-out;
}

@keyframes ice-intro-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(2px, -1px) rotate(0.2deg);
  }
  55% {
    transform: translate(-2px, 1px) rotate(-0.25deg);
  }
}

.ice-intro__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

.ice-intro__hint {
  position: relative;
  z-index: 4;
  margin: 0 0 0.75rem;
  max-width: 20rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.ice-intro__skip {
  position: relative;
  z-index: 4;
  margin-bottom: 0.25rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.ice-intro__skip:hover,
.ice-intro__skip:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.ice-intro--out {
  pointer-events: none;
  animation: ice-intro-fade 0.55s ease forwards;
}

@keyframes ice-intro-fade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ice-intro {
    display: none !important;
  }
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.72;
  mix-blend-mode: multiply;
  /* Двухслойный шум: крупнее «волокно» + мельче зерно, как у мятой бумаги */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.48' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.08' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)' opacity='0.14'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='0.09'/%3E%3C/svg%3E");
  background-size: auto;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(
      118deg,
      rgba(255, 255, 255, 0) 0 48px,
      rgba(255, 255, 255, 0.05) 50px,
      rgba(40, 38, 36, 0.04) 53px,
      rgba(255, 255, 255, 0) 56px,
      rgba(255, 255, 255, 0) 198px
    ),
    repeating-linear-gradient(
      -34deg,
      rgba(255, 255, 255, 0) 0 72px,
      rgba(35, 33, 31, 0.035) 74px,
      rgba(255, 255, 255, 0.045) 77px,
      rgba(255, 255, 255, 0) 80px,
      rgba(255, 255, 255, 0) 248px
    );
}

.shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  max-width: var(--shell-max);
  /* Не width: 100% при боковых margin — суммарная ширина > 100vw, body обрезает и пропадает правый зазор */
  min-width: 0;
  box-sizing: border-box;
  /* На узком экране поля + safe-area, иначе колонка на всю ширину и фон body не виден */
  margin: max(0.75rem, env(safe-area-inset-top, 0px))
    max(clamp(0.75rem, 4vw, 1.15rem), env(safe-area-inset-right, 0px))
    max(1.25rem, env(safe-area-inset-bottom, 0px))
    max(clamp(0.75rem, 4vw, 1.15rem), env(safe-area-inset-left, 0px));
  padding: 0.75rem clamp(0.85rem, 3.5vw, 1.15rem) 4rem;
  --line: rgba(255, 255, 255, 0.16);
  background: rgba(var(--shell-backing-rgb), var(--shell-backing-opacity));
  border-radius: var(--shell-border-radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(42, 16, 20, 0.12);
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.58;
  mix-blend-mode: multiply;
  background-image: var(--shell-texture-noise);
}

.shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(48, 18, 22, 0.034) 0 1px,
    transparent 1px 3px
  );
}

.shell > * {
  position: relative;
  z-index: 1;
}

/* Секции внутри .shell — карточки с полупрозрачной рамкой */
.shell > header.hero,
.shell > section.block,
.shell > footer.footer-sign {
  box-sizing: border-box;
  max-width: 100%;
  border: var(--block-frame-border);
  border-radius: var(--block-frame-radius);
  background: var(--block-frame-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.shell > header.hero {
  padding: 3.5rem clamp(0.65rem, 2.8vw, 1.1rem) 2.5rem;
  margin-top: 0;
}

.shell > section.block {
  margin-top: var(--block-frame-gap);
  padding: 2.25rem clamp(0.5rem, 3.2vw, 1.1rem);
  border-top: none;
  min-width: 0;
}

.shell > footer.footer-sign {
  margin-top: var(--block-frame-gap);
  padding: 2.5rem clamp(0.65rem, 2.8vw, 1.1rem) 1rem;
}

@media (min-width: 768px) {
  body {
    background-color: var(--bg-mid);
    background-image:
      radial-gradient(ellipse 100% 68% at 72% 4%, rgba(255, 255, 255, 0.22), transparent 50%),
      radial-gradient(ellipse 85% 58% at 6% 94%, rgba(28, 28, 26, 0.08), transparent 46%),
      radial-gradient(ellipse 65% 48% at 42% 48%, rgba(255, 255, 255, 0.05), transparent 40%),
      linear-gradient(
        152deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 20%,
        transparent 26%,
        transparent 40%,
        rgba(22, 21, 20, 0.05) 46%,
        rgba(255, 255, 255, 0.035) 51%,
        transparent 57%,
        transparent 70%,
        rgba(255, 255, 255, 0.04) 76%,
        transparent 84%
      ),
      linear-gradient(
        68deg,
        transparent 22%,
        rgba(25, 24, 22, 0.035) 40%,
        rgba(255, 255, 255, 0.055) 47%,
        transparent 56%
      ),
      linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
      radial-gradient(ellipse 90% 50% at 50% -5%, rgba(255, 255, 255, 0.2), transparent 55%),
      repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.016) 0 1px, transparent 1px 3px),
      linear-gradient(
        165deg,
        rgba(184, 184, 179, 0.5) 0%,
        rgba(210, 210, 206, 0.5) 35%,
        rgba(206, 206, 202, 0.55) 70%,
        rgba(181, 181, 176, 0.5) 100%
      ),
      var(--bg-photo);
    background-size: auto, auto, auto, auto, auto, auto, auto, auto, auto, cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }

  .shell {
    max-width: var(--shell-max-lg);
    padding: 2rem 2rem 5rem;
    background: rgba(var(--shell-backing-rgb), var(--shell-backing-opacity));
    margin: max(1.5rem, env(safe-area-inset-top, 0px)) auto
      max(2rem, env(safe-area-inset-bottom, 0px));
    border-radius: var(--shell-border-radius);
    box-shadow: 0 14px 48px rgba(42, 16, 20, 0.16);
    border: 1px solid var(--line);
  }
}

@media (min-width: 1100px) {
  .shell {
    margin-top: max(2.5rem, env(safe-area-inset-top, 0px));
  }
}

/* Музыка */
.music-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(236, 236, 232, 0.94);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(61, 52, 40, 0.1);
  transition: transform 0.2s, background 0.2s;
}

.music-toggle:hover:not(:disabled) {
  transform: scale(1.05);
  background: #fff;
}

.music-toggle--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.music-toggle__icon--off {
  display: none;
}

.music-toggle.is-playing .music-toggle__icon--on {
  display: none;
}

.music-toggle.is-playing .music-toggle__icon--off {
  display: inline;
  font-size: 1.1rem;
}

.music-toggle__icon--on {
  font-size: 1.25rem;
}

/* Герой */
.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.hero__hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.hero__hint--desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .hero__hint--desktop-only {
    display: block;
  }
}

.hero__names {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.hero__name {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2.35rem, 7.5vw, 3.5rem);
  letter-spacing: 0.02em;
  text-transform: none;
  text-indent: 0;
  color: var(--ink);
  line-height: 1.12;
}

.hero__name--second {
  margin-top: 0.5rem;
}

.hero__date {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 1.5rem 0 0;
}

.hero__manifesto {
  max-width: 22.5rem;
  margin: 2rem auto 2.35rem;
  padding: 0 0.35rem;
  text-wrap: pretty;
}

.hero__manifesto p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(0.88rem, 2.65vw, 1.03rem);
  line-height: 1.62;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin: 0 0 1.05em;
}

.hero__manifesto p:last-child {
  margin-bottom: 0;
}

.hero__manifesto-accent {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cream-warm);
}

.hero__scroll {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.hero__chevron {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  50% {
    transform: rotate(45deg) translateY(6px);
  }
}

/* Блоки */
.block {
  padding: 2.25rem 0;
}

/* Появление секций при прокрутке (классы ставит app.js) */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 1.15rem, 0);
    transition:
      opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .scroll-reveal.scroll-reveal--visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.text-lead {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.65;
  text-align: center;
  margin: 0 0 1.25rem;
}

.text-accent {
  text-align: center;
  margin: 0;
  font-size: 0.98rem;
}

.text-accent strong {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15em;
  letter-spacing: 0.06em;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.muted-gap {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Заголовки секций — сериф, капитель, широкий трекинг (как «ТАЙМИНГ») */
.heading-script,
.timing-paper__title,
.gifts-heading,
.heading-side {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 3.45vw, 1.88rem);
  text-align: center;
  line-height: 1.26;
  letter-spacing: var(--section-heading-spacing);
  text-transform: uppercase;
  color: var(--section-heading-color);
  margin: 0 0 1rem;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 0.35rem;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}

.timing-paper__title {
  margin: 0 0 2.35rem;
}

@media (max-width: 540px) {
  .heading-script,
  .timing-paper__title,
  .gifts-heading,
  .heading-side {
    letter-spacing: 0.12em;
    font-size: clamp(0.92rem, 3.65vw, 1.32rem);
    line-height: 1.28;
    padding-inline: 0.15rem;
  }

  .block--rsvp .heading-script {
    font-size: clamp(0.82rem, 3.35vw, 1.12rem);
    letter-spacing: 0.08em;
    line-height: 1.32;
  }
}

.music-note-inline {
  color: var(--gold);
  font-size: 1.1em;
}

/* Календарь: сетка 7 колонок, неделя с понедельника */
.block--calendar {
  padding-top: 1.5rem;
  overflow: visible;
}

.calendar-grid {
  width: 100%;
  max-width: 19.5rem;
  margin: 0 auto 1.75rem;
  overflow: visible;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem;
  margin-bottom: 0.45rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.calendar-weekdays span {
  padding: 0.15rem 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem 0.2rem;
  overflow: visible;
}

.calendar-cell {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  aspect-ratio: 1;
  max-height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  opacity: 0.88;
  border-radius: 2px;
}

.calendar-cell--empty {
  pointer-events: none;
  visibility: hidden;
}

.calendar-cell--wedding {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.02rem;
  opacity: 1;
  position: relative;
  z-index: 0;
  overflow: visible;
}

.calendar-cell--wedding .calendar-cell__num {
  position: relative;
  z-index: 1;
}

.calendar-cell__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 135%;
  height: 135%;
  min-width: 2.35rem;
  min-height: 2.35rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}

/* non-scaling-stroke ломал согласованность getTotalLength() и dash — оставляем обычный stroke */
.calendar-cell__ring-path {
  shape-rendering: geometricPrecision;
}

.calendar-caption {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  text-align: center;
  margin: 0;
  letter-spacing: 0.04em;
}

/* Локация */
.label-upper {
  font-family: var(--font-sans);
  font-weight: 500;
  text-align: center;
  text-transform: lowercase;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.label-upper.small-gap {
  margin-top: 2rem;
}

.address {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  text-align: center;
  line-height: 1.45;
  margin: 0 0 1rem;
}

.venue-quote {
  font-size: 1.5rem;
  color: var(--font-serif);
}

.btn-map {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--btn-surface);
  border: 1px solid var(--timing-red);
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.btn-map:hover {
  border-color: #9a1515;
  color: var(--timing-red);
  background: var(--btn-surface-hover);
  transform: translateY(-1px);
}

/* Тайминг — тот же фон, что у колонки; только сетка по центру и красные стрелки */
.timing-paper {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.block--timing {
  padding: 1rem 0 2rem;
}

.timing-paper__body {
  background: transparent;
  margin: 0;
  padding: 0;
  color: var(--ink);
}

.timing-step {
  max-width: 20.5rem;
  margin: 0 auto;
  text-align: center;
}

.timing-step__visual {
  position: relative;
  width: 100%;
  max-width: 16.5rem;
  margin: 0 auto 1.2rem;
}

.timing-step__stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(42, 16, 20, 0.06);
  transform: translate(8px, 8px);
}

.timing-step__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 4px 20px rgba(44, 40, 37, 0.1);
}

.timing-step__heading {
  font-family: var(--font-timing);
  font-weight: 600;
  font-size: clamp(0.95rem, 3vw, 1.08rem);
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  line-height: 1.4;
  color: var(--ink);
}

.timing-step__time {
  margin-right: 0.4em;
  font-weight: 700;
}

.timing-step__label {
  font-weight: 700;
}

.timing-step__desc {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  color: var(--ink-soft);
  max-width: 18.5rem;
  margin: 0 auto;
}

.timing-step__connector {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 4.75rem;
  padding: 0.85rem 0 0.15rem;
  margin-bottom: 0.15rem;
}

.timing-step__arrow {
  width: 2.85rem;
  height: 5.5rem;
  flex-shrink: 0;
  color: var(--timing-red);
  opacity: 0.95;
}

.timing-step--last .timing-step__desc {
  margin-bottom: 0;
}

.timing-paper__footnote {
  font-size: 0.82rem;
  max-width: 20rem;
  margin: 1.5rem auto 0;
  line-height: 1.45;
}

.timing-paper__footnote strong {
  font-weight: 600;
  color: var(--ink-soft);
}

.footnote {
  margin-top: 1.25rem;
}

/* Dress code */
.label-en {
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
}

.dress-code {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  text-align: center;
  color: var(--gold);
  margin: 0 0 1rem;
  visibility: hidden;
}

.dress-swipe-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.15rem 0 0;
  margin-bottom: 0;
  padding: 0;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

.dress-swipe-hint[hidden] {
  display: none;
}

.dress-swipe-hint:not([hidden]) {
  display: flex;
}

.dress-swipe-hint__visual {
  display: flex;
  justify-content: center;
}

/* Мини-сцена: подложка «следующего» кадра + палец тянет верхнее фото */
.dress-swipe-hint__stage {
  position: relative;
  width: 5.75rem;
  height: 3.35rem;
}

.dress-swipe-hint__peek {
  position: absolute;
  left: 0;
  top: 50%;
  width: 3rem;
  height: 2.28rem;
  margin-top: -1.14rem;
  border-radius: 3px;
  background: linear-gradient(165deg, #c9bfb6 0%, #8e8278 100%);
  opacity: 0.52;
  z-index: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dress-swipe-hint__drag {
  position: absolute;
  left: 0.38rem;
  top: 50%;
  width: 3.05rem;
  height: 2.5rem;
  margin-top: -1.2rem;
  z-index: 1;
  transform: translateX(0);
  will-change: transform;
}

.dress-swipe-hint__photo {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2.95rem;
  height: 2.2rem;
  border-radius: 3px;
  background: linear-gradient(
    148deg,
    #f0ebe6 0%,
    #cbbfb2 42%,
    #8e8074 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 4px 12px rgba(42, 22, 18, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.dress-swipe-hint__finger {
  position: absolute;
  right: -0.18rem;
  bottom: -0.2rem;
  width: 0.72rem;
  height: 1.55rem;
  border-radius: 48%;
  background: linear-gradient(100deg, #edd9cf 0%, #cea38f 50%, #b88972 100%);
  box-shadow: 0 3px 8px rgba(42, 22, 18, 0.28);
  transform-origin: 50% 88%;
  transform: rotate(0deg);
  will-change: transform;
}

.dress-swipe-hint__finger::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0.42rem;
  width: 0.42rem;
  height: 0.52rem;
  border-radius: 50%;
  background: linear-gradient(100deg, #e8d2c6, #c49a84);
  box-shadow: -1px 1px 2px rgba(42, 22, 18, 0.12);
}

.dress-swipe-hint__text {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
  max-width: 16rem;
}

@media (prefers-reduced-motion: no-preference) {
  .dress-swipe-hint__drag {
    animation: dress-hint-finger-drag 2.35s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  }

  .dress-swipe-hint__finger {
    animation: dress-hint-finger-tilt 2.35s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  }
}

/* Сдвиг «снимка» вправо и возврат — палец двигается вместе с группой */
@keyframes dress-hint-finger-drag {
  0%,
  14% {
    transform: translateX(0);
  }
  48% {
    transform: translateX(1.15rem);
  }
  62% {
    transform: translateX(1.05rem);
  }
  88%,
  100% {
    transform: translateX(0);
  }
}

/* Лёгкий наклон пальца в сторону жеста, как при удержании кадра */
@keyframes dress-hint-finger-tilt {
  0%,
  14% {
    transform: rotate(0deg);
  }
  48% {
    transform: rotate(-12deg);
  }
  62% {
    transform: rotate(-9deg);
  }
  88%,
  100% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dress-swipe-hint__drag,
  .dress-swipe-hint__finger {
    animation: none;
  }
}

.dress-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

/* Мобилка: окна друг под другом — шире и крупнее */
@media (max-width: 767px) {
  .dress-examples {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .dress-examples {
    max-width: 26rem;
    gap: 1.25rem;
  }
}

.dress-card {
  margin: 0;
  text-align: center;
}

.dress-card__ph {
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  background: linear-gradient(145deg, var(--bg-deep), #ddd3c4);
  border: 1px solid var(--line);
  margin-bottom: 0.5rem;
}

.dress-card__ph--women {
  background: linear-gradient(160deg, #e8d8ce 0%, #d4b8a8 100%);
}

.dress-card__ph--men {
  background: linear-gradient(160deg, #d8d4ce 0%, #a8a098 100%);
}

.dress-card__ph--has-photos {
  display: flex;
  flex-flow: row nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 0;
  padding: 0;
  background: #0f0f0f06 !important;
}

.dress-card__ph--has-photos .dress-card__img {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  display: block;
}

.dress-card figcaption {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* Подарки / организатор */
.block--gifts,
.block--organizer {
  position: relative;
}

.gifts-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.gifts-item {
  padding: 1rem 1.05rem;
  border: var(--block-frame-border);
  border-radius: calc(var(--block-frame-radius) - 2px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gifts-item p {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.58;
}

.gifts-item a {
  color: var(--section-heading-color);
  text-decoration: underline;
  text-decoration-color: rgba(242, 230, 212, 0.45);
  text-underline-offset: 0.18em;
}

.gifts-item a:hover {
  text-decoration-color: var(--section-heading-color);
}

.gifts-age-note {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.88;
}

.organizer-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.55rem;
  text-align: center;
  margin: 1rem 0 0.35rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.organizer-role {
  margin: 0 0 0.9rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.4;
}

.organizer-phone {
  text-align: center;
  margin: 0 0 0.2rem;
}

.organizer-phone a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 400;
}

.organizer-phone a:hover {
  text-decoration: underline;
}

.organizer-phone-hint {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.35;
}

.organizer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.organizer-links__btn {
  margin: 0;
}

.media-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 22rem;
  margin: 1.5rem auto 0;
}

.media-links .btn-primary.media-links__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .media-links {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    max-width: 36rem;
  }

  .media-links .btn-primary.media-links__btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 1.5rem auto 0;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
  background: var(--btn-surface);
  border: 1px solid var(--timing-red);
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-primary:hover {
  border-color: #9a1515;
  color: var(--timing-red);
  background: var(--btn-surface-hover);
}

/* Счётчик — волны внутри карточки */
.block--countdown {
  text-align: center;
  padding: 0 clamp(0.35rem, 2vw, 0.85rem) 1.5rem;
}

/* Повторяющаяся волна: золото + лёгкий бордовый контур */
.countdown-card {
  --countdown-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 18' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%239a7b4f' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round' d='M0 9 Q12 3 24 9 T48 9 T72 9 T96 9'/%3E%3Cpath fill='none' stroke='%23b71c1c' stroke-width='0.85' stroke-linecap='round' opacity='0.38' d='M0 12 Q12 6 24 12 T48 12 T72 12 T96 12'/%3E%3C/svg%3E");
  position: relative;
  max-width: 21rem;
  margin: 1.75rem auto 0;
  padding: 2.35rem 1.35rem 2.85rem;
  text-align: center;
  background: transparent;
}

.countdown-card::before,
.countdown-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
  background-image: var(--countdown-wave);
  background-repeat: repeat-x;
  background-size: 96px 18px;
  background-position: center top;
}

.countdown-card::before {
  top: -10px;
}

.countdown-card::after {
  bottom: 0.85rem;
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .countdown-card {
    max-width: 22.5rem;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }
}

.countdown-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  max-width: 18rem;
  margin: 0 auto 0.35rem;
  font-size: 0.65rem;
  text-transform: lowercase;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.countdown-labels--en {
  margin-top: 0.75rem;
  font-size: 0.58rem;
  text-transform: capitalize;
}

.countdown-digits {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 5vw, 1.65rem);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.countdown-sep {
  margin: 0 0.15rem;
  color: var(--gold-light);
  font-weight: 400;
}

.countdown-caption {
  font-size: 1.9rem;
  text-transform: lowercase;
  color: var(--ink-soft);
  margin: 0 0 0.65rem;
}

.countdown-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin: 0 0 0.1rem;
}

/* RSVP */
.rsvp-deadline {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 1.5rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.rsvp-label {
  margin-bottom: 1.25rem;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  text-align: center;
  max-width: 100%;
  overflow-wrap: break-word;
}

.rsvp-form {
  max-width: 22rem;
  margin: 0 auto;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0 0 1.25rem;
  text-align: center;
}

.field {
  display: block;
  margin-bottom: 1.15rem;
}

.field__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.field__hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 4rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(154, 123, 79, 0.35);
  outline-offset: 1px;
}

/* Обертка: у <fieldset hidden> в Safari часто не скрывается блок — используем div + !important */
.rsvp-drinks-wrap[hidden],
.rsvp-drinks-wrap.rsvp-drinks-wrap--hidden {
  display: none !important;
}

.field--radios,
.field--drinks {
  border: none;
  padding: 0;
  margin: 0 0 1.15rem;
}

.field--radios legend,
.field--drinks legend {
  padding: 0;
}

.radio-row,
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  line-height: 1.4;
}

.radio-row input,
.check-row input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
}

/* Кастомное оформление присутствия: «чекбокс» с крупной галочкой + пара для второго варианта */
.field--attendance .radio-row--attend {
  position: relative;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.field--attendance .attend-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.field--attendance .attend-ui {
  position: relative;
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.08rem;
}

.field--attendance .attend-frame {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 2.5px solid rgba(154, 123, 79, 0.55);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field--attendance .radio-row--attend-yes input:checked + .attend-ui .attend-frame {
  border-color: #6d907a;
  box-shadow: 0 0 0 1px rgba(109, 144, 122, 0.2);
}

.field--attendance .radio-row--attend-no input:checked + .attend-ui .attend-frame {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(154, 123, 79, 0.2);
}

.field--attendance .attend-check {
  position: absolute;
  left: -0.35rem;
  top: -0.55rem;
  width: 2.65rem;
  height: 2.35rem;
  color: #2f2a25;
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.2s,
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
}

.field--attendance .radio-row--attend-yes input:checked + .attend-ui .attend-check {
  opacity: 1;
  transform: scale(1);
}

.field--attendance .attend-dash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.85rem;
  height: 2.5px;
  margin: -1.25px -0.425rem;
  border-radius: 1px;
  background: #2f2a25;
  opacity: 0;
  transform: scaleX(0.6);
  transition:
    opacity 0.2s,
    transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
}

.field--attendance .radio-row--attend-no input:checked + .attend-ui .attend-dash {
  opacity: 1;
  transform: scaleX(1);
}

.field--attendance .radio-row--attend:focus-within .attend-frame {
  box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.28);
}

.field--attendance .radio-row--attend-yes input:focus-visible + .attend-ui .attend-frame,
.field--attendance .radio-row--attend-no input:focus-visible + .attend-ui .attend-frame {
  box-shadow:
    0 0 0 3px rgba(109, 144, 122, 0.35),
    0 0 0 1px rgba(154, 123, 79, 0.15);
}

.field--attendance .attend-text {
  flex: 1;
  min-width: 0;
}

/* Напитки: те же кастомные «чекбоксы», чуть меньше присутствия; текст чуть крупнее базового .check-row */
.field--drinks .check-row--drink {
  position: relative;
  align-items: flex-start;
  gap: 0.72rem;
  margin-bottom: 0.72rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

.field--drinks .drink-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.field--drinks .drink-ui {
  position: relative;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.06rem;
}

.field--drinks .drink-frame {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 2px solid rgba(154, 123, 79, 0.55);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field--drinks .check-row--drink input:checked + .drink-ui .drink-frame {
  border-color: #6d907a;
  box-shadow:
    0 0 0 1px rgba(109, 144, 122, 0.22),
    0 0 12px rgba(109, 144, 122, 0.2),
    0 3px 10px rgba(109, 144, 122, 0.12);
}

.field--drinks .drink-check {
  position: absolute;
  left: -0.28rem;
  top: -0.45rem;
  width: 2.12rem;
  height: 1.88rem;
  color: #2f2a25;
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.2s,
    transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
}

.field--drinks .check-row--drink input:checked + .drink-ui .drink-check {
  opacity: 1;
  transform: scale(1);
}

.field--drinks .check-row--drink:focus-within .drink-frame {
  box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.28);
}

.field--drinks .check-row--drink input:focus-visible + .drink-ui .drink-frame {
  box-shadow:
    0 0 0 3px rgba(109, 144, 122, 0.35),
    0 0 0 1px rgba(154, 123, 79, 0.15);
}

.field--drinks .drink-text {
  flex: 1;
  min-width: 0;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--btn-surface);
  border: 1px solid var(--timing-red);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-submit:hover {
  border-color: #9a1515;
  color: var(--timing-red);
  background: var(--btn-surface-hover);
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.form-message--ok {
  color: #2d6a4f;
}

.form-message--error {
  color: #9b2226;
}

/* Подпись */
.footer-sign {
  text-align: center;
  padding: 2.5rem 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.footer-sign__end {
  display: block;
  width: 100%;
  max-width: 17.5rem;
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 8px;
}

.footer-sign__names {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-top: 0.5rem;
}

