:root {
  --cream: #f8f3e9;
  --cream-deep: #efe5d5;
  --paper: #fcf9f2;
  --gold: #b28a4b;
  --gold-light: #d8bd8d;
  --ink: #332d25;
  --muted: #766c5f;
  --line: rgba(178, 138, 75, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(178, 138, 75, 0.16);
}

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  right: -210px;
  top: 30%;
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.65);
  filter: blur(70px);
  pointer-events: none;
}

a { color: inherit; }
button, input { font: inherit; }

.music-toggle {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(178, 138, 75, 0.28);
  border-radius: 100px;
  color: var(--ink);
  background: rgba(248, 243, 233, 0.82);
  backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 7px 28px rgba(63, 49, 30, 0.08);
}

.music-label { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.music-bars { display: flex; gap: 2px; align-items: center; height: 14px; }
.music-bars i { display: block; width: 2px; height: 5px; border-radius: 3px; background: var(--gold); }
.music-toggle.playing .music-bars i { animation: sound 1s ease-in-out infinite; }
.music-toggle.playing .music-bars i:nth-child(2) { animation-delay: -.35s; }
.music-toggle.playing .music-bars i:nth-child(3) { animation-delay: -.7s; }

@keyframes sound { 0%,100% { height: 4px; } 50% { height: 14px; } }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 47%),
    linear-gradient(155deg, var(--paper) 0%, var(--cream) 55%, var(--cream-deep) 130%);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(178, 138, 75, 0.12);
  transform: rotate(45deg);
}
.hero::before { left: -190px; top: 12%; }
.hero::after { right: -190px; bottom: 8%; }

.hero-content { position: relative; z-index: 2; width: 100%; }

.hero-ornament {
  position: absolute;
  left: 50%;
  width: 92px;
  height: 48px;
  transform: translateX(-50%);
  opacity: .7;
}
.hero-ornament::before, .hero-ornament::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 34px;
  height: 18px;
  border-top: 1px solid var(--gold);
  border-radius: 50%;
}
.hero-ornament::before { left: 10px; transform: rotate(25deg); }
.hero-ornament::after { right: 10px; transform: rotate(-25deg); }
.ornament-top { top: 7%; }
.ornament-bottom { bottom: 6%; transform: translateX(-50%) rotate(180deg); }

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

.couple-feature {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

.couple-feature-inner {
  position: relative;
  width: min(100%, 680px);
  margin: 0 auto;
}

.couple-photo {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #5c4b41;
}

.couple-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 24, 20, .04) 45%, rgba(31, 24, 20, .58) 100%),
    linear-gradient(90deg, rgba(31, 24, 20, .12), transparent 25%, transparent 75%, rgba(31, 24, 20, .12));
  pointer-events: none;
}

.couple-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
  filter: saturate(.88) contrast(1.03) brightness(1.03);
}

.couple-photo figcaption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 27px;
  left: 24px;
  color: #fffaf1;
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.couple-photo figcaption span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 250, 241, .76);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.couple-photo figcaption strong {
  display: block;
  font: 500 clamp(29px, 9vw, 44px)/1 var(--serif);
}

.couple-photo figcaption i {
  margin: 0 5px;
  color: var(--gold-light);
  font-weight: 400;
}

.couple-feature::after {
  content: "";
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 38px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}

@media (min-width: 681px) {
  .couple-feature { padding: 72px 28px; }
  .couple-feature-inner { box-shadow: 0 28px 80px rgba(59, 43, 27, .16); }
  .couple-feature::after { display: none; }
}

.monogram { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--gold); font: 500 20px var(--serif); }
.monogram i { width: 34px; height: 1px; background: var(--line); }

.hero-title { margin: 0; font: 500 clamp(62px, 19vw, 108px)/.72 var(--serif); letter-spacing: -.055em; }
.hero-title span { display: block; }
.hero-title em { display: block; margin: 13px 0 8px; color: var(--gold); font-size: .46em; font-weight: 400; line-height: 1; }

.hero-date { display: flex; align-items: center; justify-content: center; gap: 13px; margin-top: 44px; font: 500 13px var(--sans); letter-spacing: .15em; }
.hero-date i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.hero-note { margin: 20px 0 0; color: var(--muted); font: italic 20px var(--serif); }

.scroll-hint { position: absolute; z-index: 2; bottom: 28px; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 9px; transform: translateX(-50%); color: var(--muted); text-decoration: none; }
.scroll-hint span { font-size: 8px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.scroll-hint i { display: block; width: 1px; height: 24px; background: linear-gradient(var(--gold), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.55); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.section { position: relative; padding: 96px 22px; }
.section-inner { width: min(100%, 680px); margin: 0 auto; }
.section-inner.narrow { width: min(100%, 520px); }

.invitation { text-align: center; background: var(--paper); }
.invitation::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.section-kicker { margin: 0; font: 500 29px/1.2 var(--serif); }
.gold-symbol { margin: 30px auto; color: var(--gold); font-size: 12px; }
.invitation-copy { margin: 0; color: #50483e; font: 400 19px/1.8 var(--serif); }
.invitation-copy strong { color: var(--ink); font-size: 25px; font-weight: 600; }
.signature { margin: 32px 0 0; color: var(--gold); font: italic 18px var(--serif); }

.event-section { background: var(--cream-deep); overflow: hidden; }
.event-section::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -240px;
  top: -100px;
  border: 1px solid rgba(178, 138, 75, .22);
  border-radius: 50%;
}

/* ================================
   Родители
================================ */

.hosts-section {
  position: relative;
  padding-top: 105px;
  padding-bottom: 105px;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 255, 255, .75),
      transparent 55%
    ),
    var(--cream);
  overflow: hidden;
}

.hosts-section::before,
.hosts-section::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(178, 138, 75, .11);
  border-radius: 50%;
  pointer-events: none;
}

.hosts-section::before {
  top: -180px;
  left: -140px;
}

.hosts-section::after {
  right: -160px;
  bottom: -190px;
}


/* Карточка */

.hosts-card {
  position: relative;
  padding: 65px 28px 58px;
  border: 1px solid rgba(178, 138, 75, .3);
  background: rgba(252, 249, 242, .55);
  box-shadow: 0 25px 70px rgba(68, 51, 28, .07);
}

.hosts-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(178, 138, 75, .1);
  pointer-events: none;
}


/* Маленькая надпись */

.hosts-label {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}


/* Заголовок */

.hosts-title {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(45px, 13vw, 62px)/1 var(--serif);
}


/* Текст */

.hosts-text {
  margin: 25px auto 35px;
  color: var(--muted);
  font: italic 17px/1.65 var(--serif);
}


/* Монограмма */

.hosts-initials {
  display: flex;
  width: 92px;
  height: 92px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 auto 38px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  color: var(--ink);
  font: 500 25px var(--serif);
}

.hosts-initials em {
  color: var(--gold);
  font-size: 17px;
  font-weight: 400;
}


/* Родители */

.hosts-person {
  position: relative;
}

.hosts-role {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hosts-names {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(25px, 7vw, 33px)/1.15 var(--serif);
}

.hosts-names em {
  padding: 0 4px;
  color: var(--gold);
  font-weight: 400;
}


/* Разделитель */

.hosts-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 29px auto;
  color: var(--gold);
  font-size: 7px;
}

.hosts-separator i {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--line);
}


/* Подпись снизу */

.hosts-signature {
  margin: 39px 0 0;
  color: var(--muted);
  font: italic 17px var(--serif);
}


/* Верхний и нижний орнамент */

.hosts-decoration {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  transform: translateX(-50%);
  font-size: 7px;
}

.hosts-decoration i {
  display: block;
  width: 27px;
  height: 1px;
  background: var(--line);
}

.hosts-decoration-top {
  top: 25px;
}

.hosts-decoration-bottom {
  bottom: 25px;
}


/* Телефон */

@media (max-width: 480px) {
  .hosts-section {
    padding: 75px 18px;
  }

  .hosts-card {
    padding: 58px 20px 52px;
  }

  .hosts-text {
    font-size: 16px;
  }

  .hosts-initials {
    width: 82px;
    height: 82px;
  }
}

.section-heading { margin-bottom: 42px; text-align: center; }
.section-heading > span { color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.section-heading h2 { margin: 8px 0 0; font: 500 45px/1 var(--serif); }
.section-heading p { max-width: 360px; margin: 18px auto 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.date-card { width: min(100%, 420px); margin: 0 auto; padding: 24px 26px 29px; border: 1px solid var(--line); background: rgba(252,249,242,.62); box-shadow: 0 25px 70px rgba(68, 51, 28, .08); }
.date-card-top { display: flex; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.date-main { display: flex; align-items: center; justify-content: center; gap: 30px; padding-top: 17px; }
.date-number { font: 500 85px/.8 var(--serif); }
.date-meta { display: flex; flex-direction: column; gap: 6px; padding-left: 27px; border-left: 1px solid var(--line); }
.date-meta span { color: var(--muted); font-size: 11px; }
.date-meta strong { color: var(--gold); font: 500 27px var(--serif); }

.countdown { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 7px; width: min(100%, 480px); margin: 42px auto 0; text-align: center; }
.countdown div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.countdown strong { font: 500 clamp(26px, 9vw, 42px)/1 var(--serif); }
.countdown span { color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.countdown > i { width: 2px; height: 2px; border-radius: 50%; background: var(--gold); }

.location-section { padding: 78px 22px; background: var(--paper); }
.location-arch { width: min(100%, 460px); margin: 0 auto; padding: 1px; border-radius: 230px 230px 10px 10px; background: linear-gradient(145deg, var(--gold-light), rgba(178,138,75,.1)); box-shadow: 0 26px 80px rgba(68, 51, 28, .1); }
.location-content { padding: 88px 24px 55px; border-radius: 229px 229px 9px 9px; text-align: center; background: linear-gradient(180deg, #eee1cc 0%, #f8f2e7 60%); }
.location-label { margin: 0 0 15px; color: var(--gold); font-size: 9px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.location-content h2 { margin: 0; font: 500 46px/1 var(--serif); }
.restaurant-type { margin: 5px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.fine-line { width: 44px; height: 1px; margin: 27px auto; background: var(--gold); opacity: .6; }
.location-content address { margin-bottom: 30px; color: #514a40; font: normal 17px/1.6 var(--serif); }

.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 26px; border: 1px solid var(--gold); border-radius: 1px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:active { transform: scale(.98); }
.button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button-outline { color: var(--ink); background: rgba(255,255,255,.28); }
.button-gold { width: 100%; color: #fffaf1; background: var(--gold); box-shadow: 0 14px 35px rgba(135, 98, 41, .18); }

.hosts-section { text-align: center; background: var(--cream); }
.hosts-monogram { width: 92px; height: 92px; display: grid; place-items: center; margin: 0 auto 22px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font: 500 26px var(--serif); }
.hosts-monogram span { position: absolute; color: var(--gold-light); font-size: 14px; }
.hosts-names { margin: 0; font: 500 26px var(--serif); }
.hosts-family { margin: 4px 0 0; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.host-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 25px 0; color: var(--gold); font-size: 8px; }
.host-divider i { width: 34px; height: 1px; background: var(--line); }

.rsvp-section { background: var(--paper); }
.rsvp-form { padding: 29px 23px; border: 1px solid var(--line); background: var(--cream); }
.field { display: block; }
.field > span, fieldset legend { display: block; margin-bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.field input { width: 100%; height: 53px; padding: 0 16px; border: 1px solid rgba(178,138,75,.25); border-radius: 0; outline: none; color: var(--ink); background: rgba(255,255,255,.5); font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(178,138,75,.08); }
.field input::placeholder { color: #a39a8e; }
fieldset { display: grid; gap: 9px; margin: 25px 0 26px; padding: 0; border: 0; }
.radio-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 49px; padding: 0 14px; border: 1px solid rgba(178,138,75,.2); background: rgba(255,255,255,.34); cursor: pointer; font-size: 11px; }
.radio-card input { position: absolute; opacity: 0; }
.radio-dot { width: 16px; height: 16px; flex: 0 0 16px; border: 1px solid var(--gold-light); border-radius: 50%; transition: .2s; }
.radio-card:has(input:checked) { border-color: var(--gold); background: rgba(255,255,255,.68); }
.radio-card input:checked + .radio-dot { border: 5px solid var(--gold); }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 9px; text-align: center; }

.success-message { display: none; padding: 43px 25px; border: 1px solid var(--line); text-align: center; background: var(--cream); }
.success-message.show { display: block; animation: successIn .55s ease both; }
.success-message > span { display: grid; width: 48px; height: 48px; place-items: center; margin: 0 auto 18px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); }
.success-message h3 { margin: 0; font: 500 35px var(--serif); }
.success-message p { margin: 8px auto 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.success-message button { padding: 5px; border: 0; border-bottom: 1px solid var(--gold); color: var(--gold); background: transparent; font-size: 10px; cursor: pointer; }
@keyframes successIn { from { opacity: 0; transform: translateY(12px); } }

.footer { position: relative; padding: 83px 22px max(70px, env(safe-area-inset-bottom)); text-align: center; color: #f8f3e9; background: #373129; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(216,189,141,.18); }
.footer-ornament { position: relative; width: 8px; height: 8px; margin: 0 auto 24px; border: 1px solid var(--gold-light); transform: rotate(45deg); }
.footer p { margin: 0 0 14px; color: var(--gold-light); font-size: 9px; letter-spacing: .3em; }
.footer h2 { margin: 0; font: 500 38px var(--serif); }
.footer h2 em { color: var(--gold-light); font-weight: 400; }
.footer > span { display: block; margin-top: 17px; color: rgba(248,243,233,.62); font: italic 16px var(--serif); }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .1s; }
.hero .reveal:nth-child(3) { transition-delay: .2s; }
.hero .reveal:nth-child(4) { transition-delay: .3s; }
.hero .reveal:nth-child(5) { transition-delay: .4s; }
.hero .reveal:nth-child(6) { transition-delay: .5s; }

@media (max-height: 760px) and (max-width: 719px) {
  .hero { padding-top: 64px; padding-bottom: 75px; }
  .eyebrow { margin-bottom: 13px; }
  .hero-date { margin-top: 24px; }
  .hero-note { margin-top: 13px; }
  .ornament-top { top: 3%; }
  .ornament-bottom { bottom: 3%; }
}

@media (min-width: 720px) {
  .section { padding: 125px 32px; }
  .invitation-copy { font-size: 23px; }
  .section-kicker { font-size: 35px; }
  .section-heading h2 { font-size: 56px; }
  .rsvp-form { padding: 40px; }
  .button:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(65,49,29,.14); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==============================
   Окно открытия приглашения
   ============================== */

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(255, 255, 255, 0.95),
      transparent 50%
    ),
    #f8f3e9;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.welcome-modal::before {
  content: "";
  position: absolute;
  inset: 16px;

  border: 1px solid rgba(178, 138, 75, 0.3);

  pointer-events: none;
}

.welcome-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-modal__content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 500px;

  text-align: center;
}

.welcome-modal__kicker {
  margin: 0 0 32px;

  color: var(--gold);

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;

  text-transform: uppercase;
}

.welcome-modal h1 {
  margin: 0;

  color: var(--ink);

  font:
    500 clamp(58px, 18vw, 95px) / 0.8
    var(--serif);

  letter-spacing: -0.05em;
}

.welcome-modal h1 em {
  display: block;

  margin: 20px 0;

  color: var(--gold);

  font-size: 0.45em;
  font-weight: 400;
}

.welcome-modal__date {
  margin-top: 38px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25em;
}

.welcome-modal__button {
  min-width: 230px;
  min-height: 54px;

  margin-top: 42px;
  padding: 0 30px;

  border: 1px solid var(--gold);

  color: #fffaf1;
  background: var(--gold);

  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;

  letter-spacing: 0.16em;
  text-transform: uppercase;

  cursor: pointer;

  box-shadow:
    0 15px 40px rgba(135, 98, 41, 0.18);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.welcome-modal__button:hover {
  transform: translateY(-2px);

  box-shadow:
    0 18px 45px rgba(135, 98, 41, 0.25);
}

.welcome-modal__button:active {
  transform: scale(0.98);
}

.welcome-modal__hint {
  margin: 17px 0 0;

  color: var(--muted);

  font-size: 9px;
  letter-spacing: 0.08em;
}

body.modal-open {
  overflow: hidden;
}