/* ============================================================
   Дмитрий & Александра · 07.08.2026
   Минимализм / Refined · слоновая кость + пастель + золото
   Mobile-first
   ============================================================ */

:root {
  /* Палитра */
  --ivory: #faf7f2;
  --ivory-deep: #f3ede3;
  --ink: #3d3733;
  --ink-soft: #6e655d;
  --gold: #c2a05c;
  --gold-soft: #d8c294;
  --gold-line: rgba(194, 160, 92, 0.45);
  --blush: #e8c9c4;
  --lavender: #cdb8dd;
  --sky: #a9c3e2;
  --sage: #b3c4ab;
  --night: #2e2a27;
  --night-soft: #463f3a;

  /* Типографика */
  --font-display: "Cormorant", serif;
  --font-body: "Manrope", sans-serif;

  /* Ритм */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;

  --radius-card: 18px;
  --shadow-sm: 0 2px 8px rgba(61, 55, 51, 0.06);
  --shadow-md: 0 6px 24px rgba(61, 55, 51, 0.09), 0 2px 6px rgba(61, 55, 51, 0.05);
  --shadow-lg: 0 18px 50px rgba(61, 55, 51, 0.14), 0 4px 12px rgba(61, 55, 51, 0.06);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--ivory);
  /* лёгкая «бумажная» текстура + тёплые пастельные пятна */
  background-image:
    radial-gradient(ellipse 80% 50% at 15% 8%, rgba(232, 201, 196, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 45% at 90% 35%, rgba(205, 184, 221, 0.13), transparent 60%),
    radial-gradient(ellipse 75% 50% at 10% 70%, rgba(169, 195, 226, 0.12), transparent 60%),
    radial-gradient(ellipse 70% 45% at 88% 95%, rgba(179, 196, 171, 0.14), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2.5rem, 640px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ============ Падающие лепестки ============ */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -4vh;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  opacity: 0;
  animation: petal-fall linear infinite;
  will-change: transform;
}

@keyframes petal-fall {
  0%   { opacity: 0; transform: translate3d(0, -4vh, 0) rotate(0deg); }
  8%   { opacity: 0.7; }
  90%  { opacity: 0.55; }
  100% { opacity: 0; transform: translate3d(var(--drift, 6vw), 106vh, 0) rotate(var(--spin, 280deg)); }
}

/* ============ Появление при скролле ============ */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

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

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  .reveal { opacity: 1; transform: none; transition: none; }
  .petal { display: none; }
  html { scroll-behavior: auto; }
}

/* ============ Декоративные элементы (веточки, цветы, сердечки, искры) ============ */
.deco {
  position: absolute;
  color: var(--gold);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.deco--branch  { width: clamp(64px, 15vw, 110px); aspect-ratio: 100 / 180; }
.deco--floret  { width: clamp(40px, 10vw, 60px);  aspect-ratio: 1; animation: deco-spin 36s linear infinite; }
.deco--heart   { width: clamp(22px, 6vw, 32px);   aspect-ratio: 24 / 22; animation: deco-float 5.5s ease-in-out infinite alternate; }
.deco--sparkle { width: clamp(14px, 4vw, 20px);   aspect-ratio: 1; animation: deco-twinkle 3.4s ease-in-out infinite; }

@keyframes deco-twinkle {
  0%, 100% { opacity: 0.18; scale: 0.85; }
  50%      { opacity: 0.5;  scale: 1.1; }
}

@keyframes deco-float {
  from { translate: 0 0; }
  to   { translate: 0 -9px; }
}

@keyframes deco-spin {
  to { rotate: 360deg; }
}

/* герой */
.deco--hero-1 { top: 16%; right: 12%; }
.deco--hero-2 { bottom: 22%; left: 13%; animation-delay: -1.6s; }
.deco--hero-3 { top: 34%; left: 8%; rotate: -14deg; }

/* дорогие гости */
.deco--guests-1 { top: 4.5rem; right: -1.4rem; rotate: 24deg; }
.deco--guests-2 { top: 9rem; left: 1.6rem; }
.deco--guests-3 { bottom: 26rem; left: 1.2rem; rotate: -16deg; }

/* место проведения */
.deco--venue-1 { top: 3.5rem; left: 1.2rem; }
.deco--venue-2 { top: 7rem; right: 1.8rem; animation-delay: -1.1s; }
.deco--venue-3 { bottom: 2.5rem; right: -1.6rem; rotate: -22deg; scale: -1 1; }

/* наш день */
.deco--day-1 { bottom: 3rem; left: -1.5rem; rotate: -20deg; }
.deco--day-2 { top: 4.5rem; right: 1.6rem; rotate: 14deg; }
.deco--day-3 { top: 10rem; left: 1.8rem; animation-delay: -2.2s; }

/* программа дня */
.deco--timeline-1 { top: 4rem; right: 1.4rem; }
.deco--timeline-2 { bottom: 8rem; left: 1.6rem; animation-delay: -0.8s; }
.deco--timeline-3 { bottom: 3.5rem; right: 2rem; rotate: -12deg; }

/* дресс-код */
.deco--dresscode-1 { top: 4rem; left: -1.4rem; rotate: 18deg; scale: -1 1; }
.deco--dresscode-2 { bottom: 4rem; right: 1.4rem; }
.deco--dresscode-3 { top: 9rem; right: 1.8rem; animation-delay: -1.9s; }

/* анкета */
.deco--rsvp-1 { top: 4.5rem; left: 1.8rem; animation-delay: -0.5s; }
.deco--rsvp-2 { top: 8rem; right: 1.2rem; }
.deco--rsvp-3 { bottom: 4rem; left: 1.4rem; rotate: 12deg; }

/* отсчёт (тёмная секция) */
.deco--countdown-1 { top: 4rem; left: 11%; color: var(--gold-soft); opacity: 0.45; }
.deco--countdown-2 { top: 8rem; right: 13%; color: var(--gold-soft); opacity: 0.45; animation-delay: -1.7s; }
.deco--countdown-3 { bottom: 5rem; right: 9%; color: var(--gold-soft); opacity: 0.35; rotate: -14deg; }

/* контакты */
.deco--contacts-1 { top: 4rem; right: -1.4rem; rotate: 26deg; }
.deco--contacts-2 { top: 6rem; left: 1.6rem; rotate: -12deg; }
.deco--contacts-3 { bottom: 4rem; left: 2.2rem; animation-delay: -2.6s; }

/* ============ Орнаменты-разделители ============ */
.ornament,
.hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: var(--space-sm) auto var(--space-md);
}

.ornament .line,
.hero__ornament .line {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}

.ornament .line:last-child,
.hero__ornament .line:last-child {
  background: linear-gradient(90deg, var(--gold-line), transparent);
}

.ornament .diamond,
.hero__ornament .diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ornament--light .line { background: linear-gradient(90deg, transparent, rgba(216, 194, 148, 0.6)); }
.ornament--light .line:last-child { background: linear-gradient(90deg, rgba(216, 194, 148, 0.6), transparent); }
.ornament--light .diamond { background: var(--gold-soft); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 8vw, 5rem) 1.25rem;
  overflow: hidden;
}

/* тонкая двойная золотая рамка */
.hero__frame {
  position: absolute;
  inset: clamp(0.9rem, 3vw, 1.75rem);
  border: 1px solid var(--gold-line);
  pointer-events: none;
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(194, 160, 92, 0.22);
}

.hero__leaf {
  position: absolute;
  width: clamp(90px, 22vw, 170px);
  opacity: 0.5;
  pointer-events: none;
  animation: leaf-sway 7s ease-in-out infinite alternate;
}

.hero__leaf--tl {
  top: clamp(1.6rem, 4.5vw, 3rem);
  left: clamp(1.4rem, 4vw, 2.75rem);
  transform: rotate(-14deg);
}

.hero__leaf--br {
  bottom: clamp(1.6rem, 4.5vw, 3rem);
  right: clamp(1.4rem, 4vw, 2.75rem);
  transform: rotate(166deg);
  animation-delay: -3.5s;
}

@keyframes leaf-sway {
  from { translate: 0 0; }
  to   { translate: 0 10px; }
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero__eyebrow,
.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-xs);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 10.5vw, 4.6rem);
  line-height: 1.18;
  margin: 0 0 var(--space-md);
  letter-spacing: 0.02em;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero__date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.9rem 2.2rem;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.hero__date-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.22em;
}

.hero__date-sub {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__scroll {
  position: absolute;
  bottom: clamp(2rem, 6vw, 3.25rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-pulse 2.2s var(--ease-out) infinite;
}

@keyframes scroll-pulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============ Секции — общее ============ */
.section {
  padding: var(--space-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 8.5vw, 3.1rem);
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.015em;
}

.section__eyebrow--light { color: var(--gold-soft); }
.section__title--light { color: var(--ivory); }

/* ============ Дорогие гости ============ */
.guests__text {
  font-size: clamp(1.02rem, 3.6vw, 1.15rem);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto;
}

.guests__sign {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.4vw, 1.45rem);
  margin: var(--space-md) auto var(--space-lg);
  line-height: 1.5;
}

.guests__sign em {
  color: var(--gold);
  font-size: 1.18em;
}

/* фото в арке */
.photo-card {
  margin: 0 auto;
  max-width: 380px;
}

.photo-card img {
  width: 100%;
  border-radius: 999px 999px var(--radius-card) var(--radius-card);
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}

.photo-card--couple .photo-card__image {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  background: #fff;
}

.photo-card--couple img {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transform-origin: center top;
}

.photo-card figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: var(--space-sm);
}

.photo-card--wide {
  max-width: 640px;
}

.photo-card--wide img {
  border-radius: var(--radius-card);
}

/* ============ Место проведения ============ */
.venue__card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: left;
}

.venue__map {
  position: relative;
  display: block;
}

.venue__map img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.venue__map-hint {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.venue__details {
  padding: var(--space-md) var(--space-md) var(--space-md);
}

.venue__row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.8rem 0;
}

.venue__row + .venue__row {
  border-top: 1px solid rgba(194, 160, 92, 0.18);
}

.venue__label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.venue__value {
  font-size: 1.02rem;
  color: var(--ink);
}

.venue__value--name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.venue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: var(--space-sm);
}

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
              transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }

.btn--outline:hover { background: var(--gold); color: #fff; }

.btn--ghost {
  border-color: rgba(194, 160, 92, 0.35);
  color: var(--ink-soft);
}

.btn--ghost:hover { border-color: var(--gold); color: var(--ink); }

.btn--primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  padding: 1.05rem 2.6rem;
  box-shadow: 0 8px 22px rgba(194, 160, 92, 0.35);
}

.btn--primary:hover {
  background: #b3914e;
  box-shadow: 0 12px 28px rgba(194, 160, 92, 0.45);
}

.btn--small {
  font-size: 0.68rem;
  padding: 0.55rem 1rem;
  border-color: rgba(194, 160, 92, 0.45);
}

.btn--small:hover { border-color: var(--gold); }

.btn--filled {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.btn--filled:hover { background: #b3914e; color: #fff; }

/* ============ Календарь ============ */
.section--day { background: transparent; }

.calendar {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-md) var(--space-sm);
  max-width: 420px;
  margin: 0 auto;
}

.calendar__head,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
}

.calendar__head span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 0.7rem;
}

.calendar__grid span {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.calendar__grid span.off { visibility: hidden; }

.calendar__day--wedding {
  color: var(--ink) !important;
}

/* прозрачное сердечко за цифрой 7, бьётся как сердце */
.calendar__day--wedding::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 145%;
  aspect-ratio: 24 / 21;
  translate: -50% -52%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 20.5C5.2 15.2 2 11.2 2 7.3 2 4.4 4.4 2 7.3 2c1.9 0 3.6 1 4.7 2.6C13.1 3 14.8 2 16.7 2 19.6 2 22 4.4 22 7.3c0 3.9-3.2 7.9-10 13.2Z' fill='%23e8c9c4' fill-opacity='0.5' stroke='%23c2a05c' stroke-opacity='0.65' stroke-width='0.9'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: heart-beat 2.4s ease-in-out infinite;
}

.calendar__day--wedding i {
  position: relative;
  font-style: normal;
  font-weight: 600;
  z-index: 1;
}

@keyframes heart-beat {
  0%, 48%, 100% { scale: 1; }
  12%           { scale: 1.16; }
  24%           { scale: 1; }
  36%           { scale: 1.1; }
}

.day__quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.8vw, 1.6rem);
  line-height: 1.55;
  margin: var(--space-lg) auto 0;
}

.day__quote em { color: var(--gold); }

/* ============ Программа дня ============ */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 460px;
  text-align: left;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 88px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold-line) 12%, var(--gold-line) 88%, transparent);
}

.timeline__item {
  display: grid;
  grid-template-columns: 56px 64px 1fr;
  align-items: start;
  padding: 1.1rem 0;
}

.timeline__time {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--gold);
  text-align: right;
  line-height: 1.2;
  margin-top: 0.9rem;
}

.timeline__icon {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  border-radius: 50%;
  color: var(--gold);
}

.timeline__icon svg {
  width: 44px;
  height: 44px;
}

.timeline__body {
  padding-left: 0.85rem;
  margin-top: 0.85rem;
}

.timeline__body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.timeline__body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ============ Дресс-код ============ */
.dresscode__text {
  font-size: clamp(1rem, 3.6vw, 1.12rem);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 auto var(--space-md);
}

.palette {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: var(--space-lg);
}

.palette__chip {
  width: clamp(34px, 9vw, 46px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--chip);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out);
}

.palette__chip:hover { transform: translateY(-5px) scale(1.08); }

/* ============ Анкета ============ */
.rsvp__intro {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.08rem, 4vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 auto var(--space-lg);
}

.rsvp__form {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 5.5vw, 2.5rem);
  text-align: left;
  position: relative;
}

/* золотой кант сверху формы */
.rsvp__form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.field {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.field__label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.req { color: var(--gold); }

.field__hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}

.field__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid rgba(194, 160, 92, 0.3);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field__input::placeholder { color: #b5aca2; }

.field__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 160, 92, 0.15);
}

.field__input.field--error {
  border-color: #c96a5e;
  box-shadow: 0 0 0 3px rgba(201, 106, 94, 0.12);
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.choice-group--grid {
  flex-direction: row;
  flex-wrap: wrap;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  padding: 0.8rem 1.1rem;
  background: var(--ivory);
  border: 1px solid rgba(194, 160, 92, 0.3);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  user-select: none;
}

.choice__card::before {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
  transition: background 0.25s;
}

.choice input:checked + .choice__card {
  border-color: var(--gold);
  background: #fdf9f0;
  box-shadow: 0 0 0 3px rgba(194, 160, 92, 0.14);
}

.choice input:checked + .choice__card::before { background: var(--gold); }

.choice input:focus-visible + .choice__card {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.choice-group.field--error .choice__card { border-color: #c96a5e; }

.rsvp__submit {
  width: 100%;
  margin-top: 0.5rem;
}

.rsvp__success {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--ink);
  margin: var(--space-md) 0 0;
}

.rsvp__success em { color: var(--gold); }

/* ============ Обратный отсчёт ============ */
.section--countdown {
  background: var(--night);
  background-image:
    radial-gradient(ellipse 75% 60% at 20% 0%, rgba(194, 160, 92, 0.13), transparent 60%),
    radial-gradient(ellipse 70% 55% at 85% 100%, rgba(205, 184, 221, 0.09), transparent 60%);
  color: var(--ivory);
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.4rem, 2.5vw, 1.4rem);
  margin-bottom: var(--space-lg);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: clamp(52px, 16vw, 90px);
}

.countdown__num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 9.5vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.55);
}

.countdown__sep {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: rgba(216, 194, 148, 0.45);
  margin-top: clamp(0.3rem, 1.5vw, 0.6rem);
}

.rings {
  margin: 0 auto;
  max-width: 300px;
}

.rings img {
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, 0.45));
  animation: rings-float 6s ease-in-out infinite alternate;
}

@keyframes rings-float {
  from { translate: 0 0; }
  to   { translate: 0 -12px; }
}

/* ============ Контакты ============ */
.contacts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  max-width: 460px;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  padding: var(--space-md) var(--space-sm);
}

.contact-card__role {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.3rem;
}

.contact-card__name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
}

.contact-card__phone {
  display: inline-block;
  font-size: 1.02rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.04em;
}

.contact-card__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============ Футер ============ */
.footer {
  text-align: center;
  padding: var(--space-lg) 1.25rem calc(var(--space-lg) + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(194, 160, 92, 0.2);
}

.footer__leaf {
  width: 44px;
  margin: 0 auto var(--space-sm);
  opacity: 0.6;
}

.footer__names {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
}

.footer__names span {
  font-style: italic;
  color: var(--gold);
}

.footer__date {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--ink-soft);
  margin: 0;
}

/* ============================================================
   Десктоп
   ============================================================ */
@media (min-width: 760px) {
  .container { width: min(100% - 4rem, 760px); }

  .section { padding: 7.5rem 0; }

  .hero__title { letter-spacing: 0.04em; }

  /* место проведения — карта и детали рядом */
  .venue__card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }

  .venue__map img {
    height: 100%;
    aspect-ratio: auto;
  }

  .venue__details { padding: 2.2rem; }

  .timeline { max-width: 520px; }
  .timeline::before { left: 110px; }
  .timeline__item { grid-template-columns: 76px 68px 1fr; }

  .contacts { grid-template-columns: 1fr 1fr; max-width: 640px; }

  .choice-group--grid .choice { flex: 0 0 auto; }
}

@media (min-width: 1100px) {
  .container { width: min(100% - 4rem, 880px); }

  .photo-card { max-width: 420px; }

  .rsvp__form { padding: 3rem 3.5rem; }
}
