/* static/css/style.css */
/* ======================================
   LUXURY WEDDING FINAL CSS
   header height == tab height + RSVP form
   + Envelope Gate Animation
====================================== */

:root{
  --bg1:#0b0b14;
  --bg2:#1a1031;
  --card: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.65);
  --accent:#b79cff;
  --shadow: 0 14px 60px rgba(0,0,0,.35);
  --radius: 22px;
  --header-h: 54px;
}

*{box-sizing:border-box}

html,body{
  height:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1400px 900px at 10% 8%, rgba(183,156,255,.12), transparent 58%),
    radial-gradient(1200px 760px at 90% 14%, rgba(111,91,255,.10), transparent 56%),
    radial-gradient(900px 560px at 50% 100%, rgba(183,156,255,.08), transparent 62%),
    linear-gradient(145deg, #07070d 0%, #0d0b18 32%, #16102a 68%, #1a1031 100%);
  background-attachment: fixed;
  position:relative;
  overflow-x:hidden;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:-12%;
  pointer-events:none;
  z-index:-1;
}

/* главный «живой» luxury glow */
body::before{
  background:
    radial-gradient(38% 34% at 18% 24%, rgba(183,156,255,.16), transparent 62%),
    radial-gradient(28% 28% at 82% 18%, rgba(111,91,255,.14), transparent 64%),
    radial-gradient(24% 22% at 52% 78%, rgba(183,156,255,.10), transparent 68%),
    radial-gradient(18% 18% at 30% 86%, rgba(255,255,255,.035), transparent 70%);
  filter: blur(26px) saturate(112%);
  opacity:.95;
  transform:translate3d(0,0,0) scale(1.06);
  animation: luxuryGlowFloat 22s ease-in-out infinite alternate;
}

/* мягкий световой "шелк" поверх */
body::after{
  background:
    linear-gradient(115deg,
      transparent 0%,
      rgba(255,255,255,.018) 18%,
      transparent 34%,
      rgba(183,156,255,.035) 52%,
      transparent 68%,
      rgba(255,255,255,.015) 84%,
      transparent 100%
    );
  opacity:.55;
  mix-blend-mode:screen;
  transform:translate3d(0,0,0) scale(1.08);
  animation: luxurySheen 18s ease-in-out infinite alternate;
}

@keyframes luxuryGlowFloat{
  0%{
    transform:translate3d(-2%, -1%, 0) scale(1.06) rotate(0deg);
    filter:blur(26px) saturate(110%);
  }
  50%{
    transform:translate3d(2%, 1.5%, 0) scale(1.12) rotate(1.2deg);
    filter:blur(30px) saturate(118%);
  }
  100%{
    transform:translate3d(-1%, 2%, 0) scale(1.08) rotate(-1deg);
    filter:blur(28px) saturate(114%);
  }
}

@keyframes luxurySheen{
  0%{
    transform:translate3d(-3%, 0, 0) scale(1.08) rotate(0deg);
    opacity:.40;
  }
  50%{
    transform:translate3d(2%, -1%, 0) scale(1.12) rotate(1deg);
    opacity:.60;
  }
  100%{
    transform:translate3d(4%, 1%, 0) scale(1.10) rotate(-1deg);
    opacity:.48;
  }
}

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

body::before{
  box-shadow:
    inset 0 0 120px rgba(255,255,255,.02),
    inset 0 0 220px rgba(183,156,255,.03);
}

/* ======================================
   ENVELOPE GATE — LUXURY
====================================== */

.site-hidden{
  display:none;
}

.envelope-overlay{
  position:fixed;
  inset:0;
  z-index:20000;
  background:
    radial-gradient(900px 480px at 50% 32%, rgba(183,156,255,.22), transparent 58%),
    radial-gradient(700px 380px at 50% 20%, rgba(255,255,255,.06), transparent 62%),
    rgba(5,5,12,.78);
  backdrop-filter: blur(14px) saturate(118%);
}

.envelope-stage{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.envelope-card{
  width:min(540px, 92vw);
  border-radius:28px;
  border:1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    radial-gradient(120% 120% at 50% 0%, rgba(183,156,255,.10), transparent 60%),
    rgba(255,255,255,.04);
  box-shadow:
    0 30px 100px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 0 40px rgba(183,156,255,.04);
  padding:22px 22px 18px;
  position:relative;
  overflow:hidden;
}

.envelope-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(120deg,
      transparent 0%,
      rgba(255,255,255,.035) 18%,
      transparent 36%,
      rgba(183,156,255,.05) 54%,
      transparent 72%,
      rgba(255,255,255,.03) 100%);
  pointer-events:none;
}

.envelope{
  width:min(370px, 82vw);
  height:250px;
  margin:2px auto 18px;
  position:relative;
  cursor:pointer;
  transform-origin:center;
  animation: envFloat 3.4s ease-in-out infinite;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.34));
}

@keyframes envFloat{
  0%{ transform:translateY(0px) scale(1); }
  50%{ transform:translateY(-8px) scale(1.008); }
  100%{ transform:translateY(0px) scale(1); }
}

/* задняя часть */
.env-back{
  position:absolute;
  inset:0;
  border-radius:22px;
  overflow:hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.05) 45%, rgba(183,156,255,.10) 100%);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -20px 40px rgba(0,0,0,.16),
    0 16px 40px rgba(0,0,0,.22);
}

.env-back::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 30%),
    radial-gradient(90% 80% at 50% 0%, rgba(183,156,255,.10), transparent 58%);
  pointer-events:none;
}

/* нижняя лицевая часть */
.env-front{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:64%;
  border-radius:0 0 22px 22px;
  overflow:hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.11), rgba(183,156,255,.12) 55%, rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  clip-path: polygon(0 100%, 50% 22%, 100% 100%, 100% 0, 0 0);
  z-index:4;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 -8px 25px rgba(0,0,0,.12);
}

.env-front::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(70% 80% at 50% 10%, rgba(183,156,255,.10), transparent 65%);
  pointer-events:none;
}

/* внутренний карман — главное, он обрезает письмо */
.env-pocket{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  height:62%;
  border-radius:0 0 18px 18px;
  overflow:hidden;
  z-index:2;
  pointer-events:none;
}

.env-pocket::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:0 0 18px 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.10));
  box-shadow:
    inset 0 16px 20px rgba(0,0,0,.10),
    inset 0 -8px 18px rgba(0,0,0,.16);
}

/* клапан */
.env-flap{
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:59%;
  border-radius:22px 22px 12px 12px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(183,156,255,.18) 65%, rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.14);
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform .72s cubic-bezier(.22,.88,.2,1);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.22));
  z-index:5;
  backface-visibility:hidden;
}

.env-flap::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 42%),
    linear-gradient(135deg, transparent 0%, rgba(255,255,255,.04) 48%, transparent 100%);
  pointer-events:none;
}

/* письмо */
.env-letter{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  height:138px;              /* фиксированная высота => не вылезает */
  max-height:138px;
  border-radius:16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08)),
    rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 10px 26px rgba(0,0,0,.18);
  transform: translateY(30px);
  transition:
    transform .72s cubic-bezier(.22,.88,.2,1),
    opacity .45s ease;
  opacity:.98;
  z-index:3;
  overflow:hidden;
}

.env-letter::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), transparent 34%),
    radial-gradient(140% 100% at 50% 0%, rgba(183,156,255,.10), transparent 60%);
  pointer-events:none;
}

.letter-topline{
  height:10px;
  margin:16px 16px 12px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(183,156,255,.36), rgba(255,255,255,.10));
}

.letter-line{
  height:8px;
  margin:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
}

.letter-line.short{
  width:58%;
}

/* печать */
.seal{
  position:absolute;
  right:18px;
  bottom:16px;
  width:48px;
  height:48px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  color:#fff;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 45%),
    linear-gradient(145deg, rgba(157,98,255,.46), rgba(94,42,179,.42));
  border:1px solid rgba(214,184,255,.44);
  box-shadow:
    0 14px 34px rgba(122,74,220,.30),
    inset 0 1px 0 rgba(255,255,255,.20);
  animation: sealPulse 2.2s ease-in-out infinite;
  z-index:6;
}

.seal::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:inherit;
  border:1px solid rgba(183,156,255,.18);
  opacity:.8;
}

@keyframes sealPulse{
  0%{ transform:scale(1); box-shadow:0 14px 34px rgba(122,74,220,.26), inset 0 1px 0 rgba(255,255,255,.20); }
  50%{ transform:scale(1.06); box-shadow:0 18px 44px rgba(122,74,220,.36), 0 0 26px rgba(183,156,255,.22), inset 0 1px 0 rgba(255,255,255,.22); }
  100%{ transform:scale(1); box-shadow:0 14px 34px rgba(122,74,220,.26), inset 0 1px 0 rgba(255,255,255,.20); }
}

/* hover */
.envelope:hover .env-flap{
  transform: rotateX(24deg);
}

.envelope:hover .env-letter{
  transform: translateY(24px);
}

/* подписи */
.envelope-text{
  text-align:center;
}

.envelope-title{
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:14px;
  color:rgba(255,255,255,.88);
  text-shadow:0 4px 14px rgba(0,0,0,.22);
}

.envelope-sub{
  margin-top:8px;
  font-size:18px;
  color:rgba(255,255,255,.90);
}

/* открытие */
.envelope-overlay.opened{
  animation: overlayFade .9s ease forwards;
}

@keyframes overlayFade{
  0%{ opacity:1; }
  100%{ opacity:0; }
}

.envelope-overlay.opened .envelope{
  animation:none;
  transform:scale(.985);
}

.envelope-overlay.opened .env-flap{
  transform: rotateX(172deg);
}

.envelope-overlay.opened .env-letter{
  transform: translateY(-6px); /* выходит красиво, но не вылезает */
  opacity:1;
}

/* мобильная версия */
@media (max-width: 600px){
  .envelope-card{
    padding:18px 16px 16px;
    border-radius:24px;
  }

  .envelope{
    width:min(340px, 84vw);
    height:228px;
    margin-bottom:16px;
  }

  .env-letter{
    left:16px;
    right:16px;
    bottom:16px;
    height:124px;
    max-height:124px;
  }

  .seal{
    width:44px;
    height:44px;
    right:16px;
    bottom:14px;
  }

  .envelope-sub{
    font-size:17px;
  }
}

/* ===============================
   HEADER
=============================== */

.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:9999;
  height: var(--header-h);
  background:rgba(10,10,20,.55);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
}

.topbar .container{
  padding:0 16px;
  width:100%;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height: var(--header-h);
  padding:0;
}

.topbar-spacer{ height: var(--header-h); }

.brand{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:15px;
  line-height:1;
  letter-spacing:.2px;
  white-space:nowrap;
}

/* ===============================
   NAV
=============================== */

.nav{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:nowrap;
  position:relative;
  height: var(--header-h);
}

.navlink{
  text-decoration:none;
  color:rgba(255,255,255,.72);
  padding:8px 12px;
  border-radius:14px;
  border:1px solid transparent;
  transition:.2s;
  font-size:13px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:36px;
}

.navlink:hover{
  color:#fff;
  background:rgba(255,255,255,.06);
}

.navlink.active{
  color:#fff;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.15);
}

.nav-cta{
  border-color:rgba(183,156,255,.45);
  background:rgba(183,156,255,.18);
}

.nav-cta.active{
  border-color:rgba(183,156,255,.85);
  background:rgba(183,156,255,.32);
}

.nav-indicator{
  position:absolute;
  left:0;
  bottom:6px;
  height:2px;
  width:40px;
  border-radius:999px;
  background:rgba(183,156,255,.95);
  box-shadow:0 0 18px rgba(183,156,255,.55);
  opacity:0;
  transition:
    transform .25s cubic-bezier(.2,.9,.2,1),
    width .25s cubic-bezier(.2,.9,.2,1),
    opacity .2s ease,
    height .18s ease;
}

.nav-indicator.cta{
  height:3px;
  box-shadow:0 0 24px rgba(183,156,255,.9);
}

@keyframes navPulse{
  0%{filter:brightness(1)}
  50%{filter:brightness(1.25)}
  100%{filter:brightness(1)}
}

.nav-indicator.pulse{
  animation:navPulse 1.8s ease-in-out infinite;
}

/* --- Mobile nav icons support (HTML: .nav-ico + .nav-txt) --- */
.nav-ico{
  width:18px;
  height:18px;
  display:none;
  align-items:center;
  justify-content:center;
}

.nav-ico svg{
  width:18px;
  height:18px;
  display:block;
  fill: rgba(255,255,255,.86);
}

.navlink.active .nav-ico svg{
  fill:#fff;
}

/* ===============================
   LAYOUT
=============================== */

.container{
  max-width:1000px;
  margin:0 auto;
  padding:18px 16px 60px;
}

.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:0 14px 60px rgba(0,0,0,.35);
  backdrop-filter:blur(10px);
}

.page{
  padding:22px;
  margin-top:16px;
}

section[id]{scroll-margin-top: calc(var(--header-h) + 18px);}

.badge{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

h1{
  margin:14px 0 6px;
  font-size:clamp(30px,3.6vw,44px);
}

h2{
  margin:10px 0 8px;
  font-size:20px;
}

.subtitle{ color:var(--muted); margin:0 0 18px; }
.muted{ color:var(--muted); }

.big{
  margin:0;
  font-size:26px;
  font-weight:800;
  color:var(--accent);
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:18px;
}

.panel{
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:16px;
  background:rgba(0,0,0,.12);
}

/* ===============================
   BUTTONS
=============================== */

.hero-actions{
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(183,156,255,.55);
  background:linear-gradient(135deg, rgba(183,156,255,.25), rgba(111,91,255,.18));
  color:#fff;
  text-decoration:none;
  font-weight:700;
  transition:.25s;
}

.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(183,156,255,.85);
}

/* ===============================
   FORMS
=============================== */

input, select, textarea{
  width:100%;
  color:var(--text);
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:12px;
  outline:none;
}

input:focus, select:focus, textarea:focus{
  border-color:rgba(183,156,255,.6);
  box-shadow:0 0 0 4px rgba(183,156,255,.12);
}

/* ===============================
   LUX LOCATION CARDS
=============================== */

.lux-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:18px;
}

.lux-card{
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
}

.lux-hero{
  position:relative;
  min-height:320px;
  background-size:cover;
  background-position:center;
  overflow:hidden;
}

.lux-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.70) 70%, rgba(0,0,0,.82) 100%),
    radial-gradient(600px 260px at 30% 0%, rgba(183,156,255,.20), transparent 60%);
  pointer-events:none;
}

.lux-top{
  position:absolute;
  top:10px;
  left:14px;
  right:14px;
  display:flex;
  align-items:center;      /* выравнивание по вертикали */
  justify-content:space-between;
}

.lux-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;  /* центр текста внутри чипа */

  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.30);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.lux-time{
  position:absolute;
  right:14px;
  top:0;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(183,156,255,.50);
  background:rgba(183,156,255,.16);
  font-weight:800;
}

.lux-bottom{
  position:absolute;
  bottom:6px;   /* было 14 → опускаем ниже */
  left:18px;
  right:18px;
}

.lux-title{
  margin:0 0 6px;
  font-size:22px;
  line-height:1.2;
}

.lux-sub{
  color:rgba(255,255,255,.78);
  margin-bottom:10px;
  font-size:14px;
}

.lux-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:6px;
  flex-wrap:wrap; /* чтобы на мобильных красиво переносилось */
}

.lux-meta .lux-sub{
  margin:0;
}

.lux-meta .btn{
  white-space:nowrap;
  padding:8px 16px;
  font-size:13px;
}

/* ===============================
   MAP
=============================== */

.map{
  width:100%;
  overflow:hidden;
  border-radius:16px;
  margin-top:12px;
  border:1px solid rgba(255,255,255,.10);
}

.map iframe{
  display:block;
  width:100%!important;
  height:420px;
  border:0;
}

/* ===============================
   GALLERY
=============================== */

.gallery{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}

.gitem{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.12);
}

.gitem img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

/* ===============================
   MUSIC BUTTON
=============================== */

.music-fab{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:10000;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(10,10,20,.55);
  backdrop-filter:blur(12px);
  color:#fff;
  cursor:pointer;
  box-shadow:0 16px 50px rgba(0,0,0,.35);
  transition:.25s;
}

.music-fab:hover{
  transform:translateY(-2px);
  border-color:rgba(183,156,255,.55);
}

.music-fab.on{
  border-color:rgba(183,156,255,.85);
  background:rgba(183,156,255,.22);
}

.music-fab-text{
  font-size:13px;
  color:rgba(255,255,255,.86);
}

/* ===============================
   FOOTER
=============================== */

.footer{
  margin-top:24px;
  text-align:center;
  color:var(--muted);
}

/* ===============================
   RSVP (милая анкета)
=============================== */

.rsvp-form label{ display:block; margin-top:10px; }

.rsvp-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.rsvp-divider{
  height:1px;
  background:rgba(255,255,255,.10);
  margin:16px 0;
}

.rsvp-check{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  user-select:none;
}

.rsvp-check input{
  width:auto;
  transform:translateY(1px);
}

.rsvp-hidden{ display:none !important; }

.rsvp-soft{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.10);
  border-radius:16px;
  padding:14px;
  margin-top:10px;
}

.rsvp-alc{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(4, minmax(160px,1fr));
  gap:12px;
}

.rsvp-alc-col{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  border-radius:16px;
  padding:12px;
}

.rsvp-alc-title{
  font-weight:800;
  margin-bottom:8px;
  color:rgba(255,255,255,.88);
}

/* ===============================
   MOBILE
=============================== */

@media (max-width:900px){
  .grid{grid-template-columns:1fr}
  .lux-grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr 1fr}

  .rsvp-grid-2{ grid-template-columns:1fr; }
  .rsvp-alc{ grid-template-columns:1fr 1fr; }

  /* ✅ фикс: шапка остаётся в одну строку */
  .topbar{ height: var(--header-h); }
  .topbar-inner{ height: var(--header-h); padding:0; gap:10px; }
  .topbar-spacer{height:76px;}

  /* ✅ nav: одна строка, иконки вместо текста */
  .brand{ font-size:13px; }

  .nav{
    flex-wrap:nowrap !important;
    height: var(--header-h) !important;
    gap:6px;
    overflow:hidden;
  }

  .navlink{
    padding:8px 10px;
    height:36px;
  }

  .nav-ico{ display:inline-flex; }
  .nav-txt{ display:none; }

  .nav-cta{
    padding:8px 10px;
  }

  .envelope{ height:220px; }
}

@media (max-width:520px){
  .gallery{grid-template-columns:1fr}
  .rsvp-alc{ grid-template-columns:1fr; }
  .music-fab-text{display:none;}

  /* чуть компактнее иконки */
  .navlink{ padding:8px 9px; }
  .nav-ico, .nav-ico svg{ width:17px; height:17px; }
}

/* =========================
   COUNTDOWN (no-jitter)
========================= */

.countdown-wrap{
  margin-top:18px;
  margin-bottom:18px;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(600px 260px at 10% 10%, rgba(183,156,255,.25), transparent 60%),
    radial-gradient(600px 260px at 90% 0%, rgba(111,91,255,.18), transparent 60%),
    rgba(0,0,0,.14);
  box-shadow:0 20px 70px rgba(0,0,0,.35);
}

.countdown-title{
  text-align:center;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:12px;
  color:rgba(255,255,255,.75);
  margin-bottom:12px;
}

.countdown{
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.cd-item{
  min-width:120px;
  padding:18px 14px 16px;
  text-align:center;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 14px 50px rgba(0,0,0,.28);
  position:relative;
  overflow:hidden;
}

.cd-item::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(240px 140px at 30% 10%, rgba(183,156,255,.20), transparent 60%),
    radial-gradient(240px 140px at 80% 90%, rgba(183,156,255,.10), transparent 60%);
  opacity:.95;
  pointer-events:none;
}

/* ✅ фиксируем ширину цифр и используем tabular-nums -> ничего не прыгает */
.cd-num{
  position:relative;
  font-weight:900;
  font-size:52px;
  line-height:1;
  color:#fff;
  text-shadow:0 14px 30px rgba(0,0,0,.35);

  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;

  display:inline-block;
  width: 3ch;
  min-width: 3ch;
  text-align:center;

  transform: translateZ(0);
  will-change: transform, opacity;
}

.cd-lbl{
  position:relative;
  margin-top:8px;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.7);
}

.countdown-sub{
  margin-top:12px;
  text-align:center;
}

/* =========================
   MOBILE: строго 2x2
========================= */
@media (max-width:520px){
  .countdown{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
    justify-items:stretch;
    align-items:stretch;
  }
  .cd-item{
    min-width:0;
    width:100%;
    padding:14px;
    border-radius:16px;
  }
  .cd-num{
    position:relative;
    font-weight:900;
    font-size:52px;
    line-height:1;
    color:#fff;
    text-shadow:0 14px 30px rgba(0,0,0,.35);

    /* одинаковая ширина цифр */
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;

    display:inline-block;
    width:3ch;          /* одинаково для всех */
    min-width:3ch;
    text-align:center;

    transform: translateZ(0);
    will-change: transform, opacity;
  }
}

/* ===============================
   HOME ILLUSTRATION
=============================== */

.home-illustration{
  display:flex;
  justify-content:center;
  margin:26px 0 22px;
}

.home-illustration img{
  max-width:420px;
  width:100%;
  height:auto;
  filter: drop-shadow(0 40px 70px rgba(0,0,0,.45));
  transition:transform .35s ease;
}

.home-illustration img:hover{
  transform:translateY(-6px) scale(1.03);
}

@media (max-width:600px){
  .home-illustration img{
    max-width:260px;
  }
}

/* ===============================
   DRESS CODE (HARD FIX)
=============================== */

/* 5 кружочков строго в одну линию */
.dc-swatches{
  margin-top:14px;
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  justify-content:center !important;
  align-items:center !important;
  gap:12px !important;
  width:100%;
  overflow:hidden; /* чтобы ничего не ломало ряд */
}

.dc-swatch{
  width:56px !important;
  height:56px !important;
  border-radius:999px !important;
  overflow:hidden !important;
  border:1px solid rgba(255,255,255,.18) !important;
  background:rgba(255,255,255,.06) !important;
  box-shadow:0 14px 40px rgba(0,0,0,.25) !important;
  flex:0 0 56px !important; /* ключевое: не растягиваться */
}

.dc-swatch img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

.dc-swatch-fallback{
  display:block !important;
  width:100% !important;
  height:100% !important;
  background:rgba(183,156,255,.30);
}

/* контейнер “конвейера” */
.dc-marquee{
  margin-top:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.10);
  overflow:hidden !important;
  position:relative;

  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

/* лента — строго горизонтальная, без переносов */
.dc-track{
  display:inline-flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:14px !important;
  padding:14px !important;
  white-space:nowrap !important;
  will-change: transform;
  animation: dcMarqueeRight 22s linear infinite;
}

@keyframes dcMarqueeRight{
  0%{ transform: translateX(0%); }
  100%{ transform: translateX(-50%); }
}

/* карточки — фикс ширина, не занимают 100% */
.dc-card{
  height:240px !important;      /* общая высота карточки */
  width:auto !important;        /* ширина пусть определяется картинкой */
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 !important;
}

.dc-card img{
  height:100% !important;       /* ✅ все одной высоты */
  width:auto !important;        /* ✅ пропорции сохраняются */
  object-fit:contain !important;/* не режем и не тянем */
  display:block !important;
}

/* мобилка — можно уменьшить, но остаётся горизонтально */
@media (max-width:600px){
  .dc-swatch{
    width:48px !important;
    height:48px !important;
    flex:0 0 48px !important;
  }
  .dc-card{
    height:210px !important;
    width:auto !important;
    flex:0 0 auto !important;
  }
  .dc-track{
    animation-duration: 18s;
  }
}

/* ===============================
   FAQ ACCORDION
=============================== */

.faq{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.faq-item{
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 45px rgba(0,0,0,.22);
  transition:.2s;
}

.faq-item[open]{
  background:rgba(255,255,255,.06);
  border-color:rgba(183,156,255,.24);
}

/* ===============================
   QUESTION
=============================== */

.faq-q{
  list-style:none;
  cursor:pointer;
  padding:14px 16px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;

  color:rgba(255,255,255,.92);
  font-weight:800;
  font-size:14px;
  letter-spacing:.02em;

  user-select:none;
}

.faq-q::-webkit-details-marker{
  display:none;
}

.faq-q:hover{
  background:rgba(255,255,255,.04);
}

.faq-qtext{
  min-width:0;
}

/* ===============================
   PLUS / MINUS ICON
=============================== */

.faq-icon{
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:999px;

  border:1px solid rgba(183,156,255,.40);
  background:rgba(183,156,255,.12);

  position:relative;
}

.faq-icon::before,
.faq-icon::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:12px;
  height:2px;
  background:rgba(255,255,255,.9);
  transform:translate(-50%,-50%);
  border-radius:999px;
}

.faq-icon::after{
  transform:translate(-50%,-50%) rotate(90deg);
  transition:.22s;
}

.faq-item[open] .faq-icon::after{
  opacity:0; /* превращаем + в − */
}

/* ===============================
   ANSWER
=============================== */

.faq-a{
  padding:0 16px 14px;
  border-top:1px solid rgba(255,255,255,.08);
  animation:faqFade .22s ease;
}

/* выравнивание текста по ширине */
.faq-a p{
  margin:12px 0 0;
  color:rgba(255,255,255,.82);
  line-height:1.7;

  text-align:justify;
  text-justify:inter-word;
  hyphens:auto;
}

.faq-a ul,
.faq-a ol{
  margin:10px 0 0 18px;
  line-height:1.7;

  text-align:justify;
  text-justify:inter-word;
  hyphens:auto;
}

@keyframes faqFade{
  from{
    opacity:0;
    transform:translateY(-4px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ===============================
   MOBILE (FAQ)
=============================== */

@media (max-width:520px){

  .faq-q{
    font-size:13px;
  }

  /* на маленьких экранах justify выглядит плохо */
  .faq-a p,
  .faq-a ul,
  .faq-a ol{
    text-align:left;
    hyphens:manual;
  }
}

/* =========================
   PROGRAM — ZIGZAG ROADMAP (WOW) — FIXED + MOBILE ALT
   - desktop/tablet: zigzag snake
   - mobile: NO snake, alternating left/right cards with logo opposite
========================= */
.snake{
  --midW: 140px;
  --rowH: 160px;
  --gap: 18px;

  --cardW: 300px;
  --cardMinH: 108px;

  position: relative;
  display: grid;
  gap: var(--gap);
  margin-top: 18px;
}

/* непрерывная змейка на всю высоту: 6 рядов */
.snake-bg{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: var(--midW);
  height: calc(6 * var(--rowH) + 5 * var(--gap));
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 18px rgba(183,156,255,.20));
}

.snake-path{
  fill: none;
  stroke: rgba(183,156,255,.70);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(183,156,255,.26));
  stroke-dasharray: 12 16;
  animation: stDash 2.4s linear infinite;
}

@keyframes stDash{
  to{ stroke-dashoffset: -28; }
}

.st-item{
  display: grid;
  grid-template-columns: 1fr var(--midW) 1fr;
  align-items: center;
  min-height: var(--rowH);
  position: relative;
  z-index: 1;
}

.st-mid{
  position: relative;
  height: var(--rowH);
  display: grid;
  place-items: center;
}

.st-node{
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;

  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(220px 140px at 30% 30%, rgba(255,255,255,.10), transparent 60%),
    rgba(0,0,0,.24);
  box-shadow:
    0 20px 70px rgba(0,0,0,.42),
    0 0 0 8px rgba(183,156,255,.14);

  z-index: 2;
}

.st-ico{
  display: block;
  font-size: 18px;
  line-height: 1;
  transform: translateY(1px);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
}

.st-step{
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.86);
  backdrop-filter: blur(6px);
}

.st-card{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 16px 18px;
  background:
    radial-gradient(640px 260px at 12% 12%, rgba(183,156,255,.18), transparent 56%),
    rgba(255,255,255,.04);
  box-shadow: 0 18px 70px rgba(0,0,0,.34);
  transition: transform .18s ease, box-shadow .18s ease;

  width: var(--cardW);
  min-height: var(--cardMinH);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.st-time{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  font-weight: 900;
  letter-spacing: .02em;
  width: fit-content;
}

.st-title{
  margin-top: 12px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.15;
}

.st-left .st-card{
  justify-self: end;
  text-align: right;
  align-items: flex-end;
}

.st-right .st-card{
  justify-self: start;
  text-align: left;
  align-items: flex-start;
}

.st-item:hover .st-card{
  transform: translateY(-2px);
  box-shadow: 0 26px 90px rgba(0,0,0,.42);
}

.st-item:hover .st-node{
  box-shadow:
    0 26px 88px rgba(0,0,0,.52),
    0 0 0 9px rgba(183,156,255,.22),
    0 0 48px rgba(183,156,255,.28);
}

@media (max-width: 840px){
  .snake{
    --midW: 120px;
    --rowH: 150px;
    --cardW: 280px;
  }
  .snake-bg{
    height: calc(6 * var(--rowH) + 5 * var(--gap));
  }
}

/* =========================
   MOBILE: remove snake, alternate sides
   odd:  logo left + card right
   even: card left + logo right
========================= */
@media (max-width: 720px){
  .snake{
    --rowH: 126px;      /* ровная сетка по высоте */
    --gap: 14px;
    --cardMinH: 92px;

    /* карточки уже, но одинаковой ширины */
    --mCardW: min(72vw, 260px);
  }

  /* УБИРАЕМ ЗМЕЮ */
  .snake-bg{ display:none; }
  .snake-path{ display:none; }

  /* 2 колонки: left + right (под лого и под карточку) */
  .st-item{
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    align-items: center;
    min-height: var(--rowH);
  }

  /* центрируем «среднюю» ячейку — теперь она просто контейнер лого */
  .st-mid{
    height: var(--rowH);
    width: 100%;
    display: grid;
    place-items: center;
  }

  .st-node{
    width: 44px;
    height: 44px;
  }

  /* карточка: одинаковая ширина везде */
  .st-card{
    width: var(--mCardW);
    max-width: var(--mCardW);
    padding: 14px 16px;
  }

  .st-title{
    font-size: 16px;
    margin-top: 10px;
  }

  .st-time{
    height: 32px;
    padding: 0 10px;
    font-size: 14px;
  }

  /* СБРОС desktop-правил */
  .st-left .st-card,
  .st-right .st-card{
    justify-self: unset;
    text-align: left;
    align-items: flex-start;
  }

  /* =========================
     ЧЕРЕДОВАНИЕ ПО ПОРЯДКУ
     odd (1,3,5...): logo left, card right
     even(2,4,6...): card left, logo right
  ========================= */

  /* ODD: лого слева, карточка справа */
  .snake .st-item:nth-child(odd) .st-mid{ grid-column: 1; justify-items: center; }
  .snake .st-item:nth-child(odd) .st-card{
    grid-column: 2;
    justify-self: start;
    text-align: left;
    align-items: flex-start;
  }

  /* EVEN: карточка слева, лого справа */
  .snake .st-item:nth-child(even) .st-card{
    grid-column: 1;
    justify-self: end;
    text-align: right;
    align-items: flex-end;
  }
  .snake .st-item:nth-child(even) .st-mid{ grid-column: 2; justify-items: center; }
}

/* ===============================
   CHECKBOXES — LUX CUSTOM
=============================== */

/* базовый чекбокс */
.rsvp-form input[type="checkbox"]{
  -webkit-appearance:none;
  appearance:none;

  width:20px;
  height:20px;
  min-width:20px;
  min-height:20px;

  border-radius:7px;
  border:1px solid rgba(255,255,255,.22);

  background:
    radial-gradient(120px 80px at 30% 20%, rgba(183,156,255,.18), transparent 60%),
    rgba(0,0,0,.18);

  box-shadow:
    0 10px 30px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.10);

  cursor:pointer;
  position:relative;
  display:inline-block;
  vertical-align:middle;

  transition:
    transform .12s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

/* hover */
.rsvp-form input[type="checkbox"]:hover{
  border-color: rgba(183,156,255,.55);
  box-shadow:
    0 12px 36px rgba(0,0,0,.28),
    0 0 0 4px rgba(183,156,255,.10),
    inset 0 1px 0 rgba(255,255,255,.12);
}

/* focus */
.rsvp-form input[type="checkbox"]:focus-visible{
  outline:none;
  border-color: rgba(183,156,255,.75);
  box-shadow:
    0 12px 36px rgba(0,0,0,.28),
    0 0 0 4px rgba(183,156,255,.18),
    0 0 22px rgba(183,156,255,.22),
    inset 0 1px 0 rgba(255,255,255,.12);
}

/* галочка */
.rsvp-form input[type="checkbox"]::after{
  content:"";
  position:absolute;

  left:50%;
  top:50%;

  width:9px;
  height:5px;

  border-left:2px solid rgba(255,255,255,.95);
  border-bottom:2px solid rgba(255,255,255,.95);

  transform: translate(-50%, -55%) rotate(-45deg) scale(0.2);
  transform-origin:center;

  opacity:0;

  transition:
    transform .14s ease,
    opacity .12s ease;

  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

/* checked состояние */
.rsvp-form input[type="checkbox"]:checked{
  border-color: rgba(183,156,255,.85);

  background:
    radial-gradient(140px 90px at 30% 20%, rgba(255,255,255,.10), transparent 62%),
    linear-gradient(135deg, rgba(183,156,255,.45), rgba(111,91,255,.24));

  box-shadow:
    0 14px 42px rgba(0,0,0,.30),
    0 0 0 4px rgba(183,156,255,.16),
    0 0 26px rgba(183,156,255,.24),
    inset 0 1px 0 rgba(255,255,255,.14);
}

/* показываем галочку */
.rsvp-form input[type="checkbox"]:checked::after{
  opacity:1;
  transform: translate(-50%, -55%) rotate(-45deg) scale(1);
}

/* клик */
.rsvp-form input[type="checkbox"]:active{
  transform: scale(.96);
}

/* disabled */
.rsvp-form input[type="checkbox"]:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}

/* выравнивание строк */
.rsvp-check{
  display:flex;
  align-items:center;
  gap:10px;
}

/* чекбоксы внутри карточек алкоголя */
.rsvp-alc-col label{
  display:flex;
  align-items:center;
  gap:10px;
  margin:8px 0;
  cursor:pointer;
  user-select:none;
}

/* ===============================
   HOME V2 — CENTER TOP + 2 COLS + COUNTDOWN (CLEAN)
=============================== */

.home-hero-v2{
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* ===============================
   HERO BANNER — FULL WIDTH
=============================== */

.hero-banner{
  width:100%;
  padding:18px 18px 16px;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.11);
  background:
    radial-gradient(900px 340px at 50% 0%, rgba(183,156,255,.16), transparent 62%),
    rgba(0,0,0,.12);
  box-shadow: 0 22px 90px rgba(0,0,0,.32);
  backdrop-filter: blur(14px);
  text-align:center;
}

.typed-wrap{
  width:100%;
  display:flex;
  justify-content:center;
}

/* ===============================
   TERMINAL TYPING — NO GHOST (stable)
=============================== */

#heroTyped.typed-terminal{
  position:relative;
  display:inline-block;
  width:min(100%, 78ch);
  margin:0 auto;
  text-align:center;

  font-family:"Marck Script", cursive; /* ✅ кириллица */
  font-size:clamp(18px, 2vw, 28px);    /* ✅ поменьше */
  line-height:1.22;
  color:rgba(255,255,255,.95);
  text-shadow:0 10px 24px rgba(0,0,0,.30);
}

#heroTyped .typed-lines{
  display:flex;
  flex-direction:column;
  align-items:center;
}

#heroTyped .line{
  display:block;
}

#heroTyped .line.empty{
  height:0.85em; /* ровный отступ */
}

/* подпись чуть выделяем */
#heroTyped .line.sig{
  margin-top:0.25em;
  font-size:1.15em;
  color:rgba(255,255,255,.98);
  text-shadow:0 14px 30px rgba(0,0,0,.34);
}

/* курсор = размером с букву */
#heroTyped .typed-caret{
  position:absolute;
  width:.14em;
  height:1em;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  animation: caretBlink .75s step-end infinite;
}

/* мигает */
@keyframes caretBlink{
  0%,100%{opacity:1}
  50%{opacity:0}
}

/* на подписи не мигаем */
#heroTyped.is-signing .typed-caret{
  animation:none;
  opacity:1;
}

/* в конце скрываем */
#heroTyped.is-done .typed-caret{
  display:none;
}

/* ===============================
   MID: CALENDAR LEFT + IMAGE RIGHT
=============================== */

.home-mid{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:18px;
  align-items:end;
}

/* ===============================
   CALENDAR (smaller + glowing date)
=============================== */

.wedding-calendar{
  padding:12px 12px 14px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(520px 220px at 20% 0%, rgba(183,156,255,.12), transparent 60%),
    rgba(0,0,0,.10);
  box-shadow: 0 18px 70px rgba(0,0,0,.24);
}

.cal-title{
  text-align:center;
  font-weight:900;
  font-size:18px;
  margin-bottom:10px;
  color:rgba(255,255,255,.92);
}

.cal-grid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:7px;
}

.cal-week span{
  display:grid;
  place-items:center;
  height:24px;
  font-size:11px;
  color:rgba(255,255,255,.62);
}

.cal-days span{
  display:grid;
  place-items:center;
  height:46px;
  border-radius:14px;
  font-size:15px;
  color:rgba(255,255,255,.92);
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.04);
}

.cal-empty{
  background:transparent !important;
  border-color:transparent !important;
}

/* glowing wedding date */
.cal-wedding{
  position:relative;
  font-weight:900;
  background:
    radial-gradient(120px 80px at 50% 30%, rgba(255,255,255,.18), transparent 65%),
    linear-gradient(180deg, rgba(140,110,255,.22), rgba(87,66,180,.18)) !important;
  border-color:rgba(183,156,255,.34) !important;
  box-shadow:
    0 0 18px rgba(183,156,255,.28),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  animation: weddingPulse 2.2s ease-in-out infinite;
}

.cal-wedding::before{
  content:"";
  position:absolute;
  inset:-7px;
  border-radius:18px;
  background: radial-gradient(circle, rgba(183,156,255,.30) 0%, rgba(183,156,255,0) 70%);
  z-index:-1;
  animation: weddingAura 2.2s ease-in-out infinite;
}

@keyframes weddingPulse{
  0%,100%{ transform:scale(1); filter:brightness(1); }
  50%{ transform:scale(1.05); filter:brightness(1.12); }
}
@keyframes weddingAura{
  0%,100%{ opacity:.55; transform:scale(.95); }
  50%{ opacity:1; transform:scale(1.08); }
}

/* ===============================
   ILLUSTRATION + MOON GLOW (bigger)
=============================== */

#home .home-illustration{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:flex-end;
  margin:0;
}

#home .home-illustration::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  width:72%;
  height:40px;
  border-radius:999px;
  background: radial-gradient(closest-side, rgba(200,185,255,.55), rgba(183,156,255,.18) 45%, transparent 78%);
  filter: blur(9px);
  animation: moonGlow 3.6s ease-in-out infinite;
  pointer-events:none;
}

#home .home-illustration::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:62%;
  height:140px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(120,104,255,.18) 0%, rgba(120,104,255,0) 72%);
  filter: blur(24px);
  pointer-events:none;
}

@keyframes moonGlow{
  0%,100%{ opacity:.72; transform:translateX(-50%) scale(1); }
  50%{ opacity:1; transform:translateX(-50%) scale(1.08); }
}

#home .home-illustration img{
  position:relative;
  z-index:1;
  max-width:720px;
  width:100%;
  height:auto;
  filter:
    drop-shadow(0 40px 75px rgba(0,0,0,.44))
    drop-shadow(0 0 18px rgba(183,156,255,.10));
}

/* ===============================
   COUNTDOWN IN COVER
=============================== */

#home .countdown-wrap{
  margin-top:20px;
  margin-bottom:0;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 980px){
  .home-mid{
    grid-template-columns: 1fr;
    gap:16px;
  }
  #home .home-illustration img{
    max-width:520px;
  }
  .wedding-calendar{
    max-width:520px;
    margin:0 auto;
  }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .cal-wedding, .cal-wedding::before, #home .home-illustration::before{
    animation:none !important;
  }
}

@media (max-width: 640px){
  .home-mid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .wedding-calendar{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:14px;
    border-radius:18px;
  }

  .cal-grid{
    gap:6px;
  }

  .cal-week span{
    height:24px;
    font-size:11px;
  }

  .cal-days span{
    height:44px;
    border-radius:12px;
    font-size:15px;
  }
}

/* =========================
   SECTION HEADERS — LUXURY
========================= */
.page-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:10px;
  margin:0 auto 26px;
}

.page-head .badge{
  margin:0 auto;
}

.section-title{
  margin:0;
  font-size:clamp(28px, 4.6vw, 46px);
  line-height:1.06;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-align:center;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.98) 0%,
    rgba(237,228,255,.94) 45%,
    rgba(183,156,255,.88) 100%
  );
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  text-shadow:
    0 2px 16px rgba(183,156,255,.16),
    0 0 36px rgba(183,156,255,.10);
}

.section-subtitle{
  max-width:760px;
  margin:0 auto;
  text-align:center;
  font-size:clamp(15px, 1.8vw, 19px);
  line-height:1.65;
  color:rgba(255,255,255,.76);
}

.page-head-home{
  margin-bottom:30px;
}

/* чтобы старые локальные subtitle не конфликтовали */
#dresscode .section-subtitle,
#faq .section-subtitle,
#rsvp .section-subtitle,
#locations .section-subtitle,
#program .section-subtitle,
#home .section-subtitle{
  max-width:760px;
}

/* если в секции раньше был свой h2 слева, теперь всё центрируем */
#faq > h2,
#faq > .subtitle{
  text-align:center;
}

/* чуть благороднее бейджи во всех блоках */
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 30px rgba(0,0,0,.18);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
  color:rgba(255,255,255,.78);
}

/* мобильная версия */
@media (max-width: 720px){
  .page-head{
    gap:8px;
    margin-bottom:20px;
  }

  .section-title{
    font-size:clamp(24px, 7vw, 34px);
    letter-spacing:.05em;
    line-height:1.08;
  }

  .section-subtitle{
    max-width:95%;
    font-size:15px;
    line-height:1.55;
  }

  .badge{
    padding:8px 14px;
    font-size:11px;
    letter-spacing:.1em;
  }
}

/* =========================
   FIREWORKS
========================= */

#fireworks{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:0;
  transition:opacity .6s;
  z-index:9999;
}

#fireworks.active{
  opacity:1;
}

.rsvp-thanks{
  margin-top:12px;
  opacity:0;
  transform:translateY(6px);
  transition:.5s;
  pointer-events:none;
}

.rsvp-thanks.show{
  opacity:1;
  transform:translateY(0);
}

.rsvp-thanks{
  margin-top:12px;
  opacity:0;
  transition:opacity .4s ease;
}

.rsvp-thanks.show{
  opacity:1;
}

.faq-a a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(183,156,255,.5);
  transition: all .25s ease;
}

.faq-a a:hover{
  color: #fff;
  border-bottom: 1px solid var(--accent);
  text-shadow: 0 0 6px rgba(183,156,255,.6);
}
