/* =================================================================
   Айдан & Диана — приглашение на свадьбу · 6 сентября 2026
   Стиль: казахский орнамент + золото · тёмная и светлая темы
   Мобильный приоритет
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Marcellus&family=Great+Vibes&family=Jost:wght@300;400;500&display=swap');

/* ---------- ТЕМЫ ---------- */
:root,
[data-theme="dark"] {
  --bg:        #0b0a07;
  --bg-2:      #14100a;
  --panel:     #181308;
  --panel-2:   #211910;
  --line:      rgba(205, 169, 104, 0.22);
  --line-soft: rgba(205, 169, 104, 0.11);

  --gold:        #cda968;
  --gold-bright: #f1da9f;
  --gold-deep:   #927239;
  --cream:       #efe6d3;
  --ivory:       #fbf6ec;
  --muted:       #bcad8c;
  --muted-2:     #8b7d63;

  --glow-op:   0.55;
  --grain-op:  0.05;
  --grain-blend: overlay;
  --media-bri: 0.92;

  /* стекло (glassmorphism) */
  --glass-bg:  rgba(255, 248, 230, 0.055);
  --glass-brd: rgba(205, 169, 104, 0.28);
  --glass-hi:  rgba(255, 255, 255, 0.14);
  --glass-sh:  0 26px 50px -26px rgba(0, 0, 0, 0.75);
  --glass-blur: 8px;
  /* aurora */
  --aur-1: rgba(205, 169, 104, 0.26);
  --aur-2: rgba(168, 98, 110, 0.20);
  --aur-3: rgba(48, 96, 80, 0.20);
  --aur-4: rgba(150, 120, 62, 0.24);
  --aur-op: 0.95;
}

[data-theme="light"] {
  --bg:        #f2ead9;
  --bg-2:      #f7f0e2;
  --panel:     #fdfaf2;
  --panel-2:   #ffffff;
  --line:      rgba(138, 104, 46, 0.32);
  --line-soft: rgba(138, 104, 46, 0.16);

  --gold:        #9a7a34;   /* читаемое золото на кремовом */
  --gold-bright: #7d5a14;   /* насыщенная бронза — акцентный текст */
  --gold-deep:   #6a4d12;   /* тёмный конец градиента кнопок/линий */
  --cream:       #34291a;   /* основной текст — эспрессо (высокий контраст) */
  --ivory:       #221a0d;   /* заголовки — почти тёмный */
  --muted:       #6a5b41;
  --muted-2:     #9a8a6a;

  --glow-op:   0.5;
  --grain-op:  0.035;
  --grain-blend: multiply;
  --media-bri: 1;

  --glass-bg:  rgba(255, 253, 247, 0.62);
  --glass-brd: rgba(138, 104, 46, 0.26);
  --glass-hi:  rgba(255, 255, 255, 0.9);
  --glass-sh:  0 24px 46px -28px rgba(110, 80, 30, 0.40);
  --glass-blur: 8px;
  --aur-1: rgba(214, 178, 104, 0.42);
  --aur-2: rgba(206, 150, 150, 0.26);
  --aur-3: rgba(150, 178, 150, 0.24);
  --aur-4: rgba(228, 204, 146, 0.42);
  --aur-op: 0.6;
}

:root {
  --grad-gold:   linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 40%, var(--gold-deep) 100%);
  --grad-gold-h: linear-gradient(90deg, transparent, var(--gold), transparent);

  --f-display:   'Cormorant Garamond', serif;
  --f-accent:    'Marcellus', serif;
  --f-sans:      'Jost', sans-serif;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);   /* чёткий expo-out */
  --ease-back:   cubic-bezier(0.34, 1.56, 0.64, 1); /* лёгкий overshoot */
  --max:         640px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--f-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.6s var(--ease), color 0.6s var(--ease);
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--gold); color: var(--bg); }

/* доступность: видимый фокус для клавиатуры (UX-чеклист) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px;
}
.opt input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* зерно */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: var(--grain-op); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   ВЫБОР ЯЗЫКА — стартовый экран
   ============================================================ */
.lang-gate {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: grid; place-items: center; text-align: center;
  padding: 30px;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
.lang-gate.done { opacity: 0; visibility: hidden; }
.lang-gate__inner { animation: fadeUp 1s var(--ease) 0.1s both; }
.lang-gate__mono { width: 96px; height: 96px; margin: 0 auto 8px; color: var(--gold); }
.lang-gate__mono .ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) 0.3s forwards; }
.lang-gate .ornament { width: 180px; margin: 18px auto 6px; color: var(--gold); opacity: 0.9; }
.lang-gate__label {
  font-family: var(--f-accent); letter-spacing: 0.4em; text-transform: uppercase;
  font-size: 0.7rem; color: var(--muted); margin: 24px 0 22px;
}
.lang-gate__btns { display: flex; flex-direction: column; gap: 14px; max-width: 260px; margin: 0 auto; }
.lang-btn {
  font-family: var(--f-display); font-size: 1.5rem; color: var(--cream);
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); cursor: pointer; position: relative; overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.lang-btn span { position: relative; z-index: 2; }
.lang-btn::before {
  content: ''; position: absolute; inset: 0; z-index: 1; background: var(--grad-gold);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.lang-btn:hover { color: var(--bg); border-color: transparent; transform: translateY(-2px); }
.lang-btn:hover::before { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ ФОНА
   ============================================================ */
.atmosphere { position: fixed; inset: 0; z-index: -2; overflow: hidden; }

/* AURORA — живой меш-градиент (Aurora UI) */
.aurora {
  position: fixed; inset: -25%; z-index: -3; pointer-events: none;
  opacity: var(--aur-op); will-change: transform;
  background:
    radial-gradient(38% 38% at 22% 26%, var(--aur-1), transparent 62%),
    radial-gradient(34% 34% at 80% 18%, var(--aur-2), transparent 62%),
    radial-gradient(44% 44% at 72% 78%, var(--aur-3), transparent 62%),
    radial-gradient(40% 40% at 28% 76%, var(--aur-4), transparent 62%);
  filter: blur(34px) saturate(1.15);
  animation: auroraFlow 22s ease-in-out infinite alternate;
  transition: filter 1.8s var(--ease-out), opacity 1.8s var(--ease-out);
  will-change: transform;
}
/* фон «дышит» под активным блоком — меняет оттенок и характер */
body[data-scene="hero"]    .aurora { filter: blur(34px) saturate(1.15) hue-rotate(0deg); }
body[data-scene="count"]   .aurora { filter: blur(34px) saturate(1.3) hue-rotate(-14deg) brightness(1.05); }
body[data-scene="venue"]   .aurora { filter: blur(38px) saturate(1.1) hue-rotate(10deg); opacity: calc(var(--aur-op) * 0.85); }
body[data-scene="gallery"] .aurora { filter: blur(34px) saturate(1.35) hue-rotate(-26deg) brightness(1.08); }
body[data-scene="rsvp"]    .aurora { filter: blur(36px) saturate(1.2) hue-rotate(22deg); }
body[data-scene="footer"]  .aurora { filter: blur(40px) saturate(1.25) hue-rotate(4deg); opacity: 1; }
.aurora::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(30% 30% at 60% 40%, var(--aur-1), transparent 60%),
    radial-gradient(28% 28% at 35% 55%, var(--aur-3), transparent 60%);
  mix-blend-mode: screen; opacity: 0.7;
  animation: auroraFlow2 28s ease-in-out infinite alternate;
}
@keyframes auroraFlow {
  0%   { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1.05); }
  100% { transform: translate3d(3%, 2%, 0) rotate(7deg) scale(1.18); }
}
@keyframes auroraFlow2 {
  0%   { transform: translate3d(2%, 3%, 0) scale(1.1); }
  100% { transform: translate3d(-2%, -3%, 0) scale(1.25); }
}

.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--glow-op); }
.glow--1 { top: -10%; left: -20%; width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(201,168,106,0.22), transparent 70%); }
.glow--2 { bottom: -15%; right: -25%; width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(155,125,68,0.18), transparent 70%); }

.petals { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -8%; width: 12px; height: 12px;
  background: var(--grad-gold); border-radius: 80% 0 80% 0; opacity: 0;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0); opacity: 0; }
  10% { opacity: 0.6; } 90% { opacity: 0.4; }
  100% { transform: translateY(110vh) rotate(540deg); opacity: 0; }
}

/* прогресс прокрутки */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--grad-gold);
  z-index: 9998; box-shadow: 0 0 10px rgba(201,168,106,0.6);
}

/* ============================================================
   ПАНЕЛЬ УПРАВЛЕНИЯ (тема + язык)
   ============================================================ */
.controls {
  position: fixed; top: 14px; right: 14px; z-index: 9000;
  display: flex; gap: 8px; align-items: center;
  opacity: 0; transform: translateY(-10px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.controls.show { opacity: 1; transform: translateY(0); }
.ctrl {
  height: 38px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 80%, transparent);
  backdrop-filter: blur(8px); border-radius: 999px; color: var(--gold);
  font-family: var(--f-accent); letter-spacing: 0.08em; font-size: 0.72rem;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.ctrl--theme { width: 38px; }
.ctrl--theme svg { width: 17px; height: 17px; }
.ctrl--lang { padding: 0 14px; gap: 6px; }
.ctrl--lang b { color: var(--gold-bright); font-weight: 400; }
.ctrl--lang span { opacity: 0.45; }
.ctrl:hover { border-color: var(--gold); }
.ctrl .moon { display: none; }
[data-theme="light"] .ctrl .sun { display: none; }
[data-theme="light"] .ctrl .moon { display: block; }

/* ============================================================
   ОРНАМЕНТ-РАЗДЕЛИТЕЛЬ
   ============================================================ */
.ornament { display: block; color: var(--gold); }
.ornament--div { width: 200px; height: 28px; margin: 20px auto 0; }

/* угловой орнамент */
.kz-corner {
  position: absolute; width: clamp(80px, 22vw, 130px); color: var(--gold);
  opacity: 0; animation: fadeIn 2s var(--ease) 0.7s forwards;
}
.kz-corner--tl { top: 14px; left: 14px; }
.kz-corner--tr { top: 14px; right: 14px; transform: scaleX(-1); }
.kz-corner--bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.kz-corner--br { bottom: 14px; right: 14px; transform: scale(-1); }

/* ============================================================
   СЕКЦИИ / ТИПОГРАФИКА
   ============================================================ */
.section { position: relative; padding: clamp(70px, 13vw, 120px) 22px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 520px; margin: 0 auto; }

.eyebrow {
  font-family: var(--f-accent); text-transform: uppercase; letter-spacing: 0.5em;
  font-size: 0.66rem; color: var(--gold); display: inline-block;
}
.section-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 9vw, 3rem); line-height: 1.08; margin: 12px 0 0;
  overflow-wrap: break-word; padding: 0 6px;
}
.section-title em { font-style: italic; color: var(--gold-bright); }
.section-head { text-align: center; margin-bottom: clamp(36px, 9vw, 60px); }

/* кнопки */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-accent); text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.72rem; padding: 16px 36px; border-radius: 999px; cursor: pointer;
  border: none; overflow: hidden; color: var(--bg); background: var(--grad-gold);
  box-shadow: 0 10px 30px -8px rgba(201,168,106,0.45);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn span, .btn svg { position: relative; z-index: 2; }
.btn svg { width: 15px; height: 15px; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold));
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -8px rgba(201,168,106,0.6); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--gold); border: 1px solid var(--line); box-shadow: none;
}
.btn--ghost::before { background: rgba(201,168,106,0.10); }
.btn--ghost:hover { color: var(--gold-bright); box-shadow: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 90px 24px 80px; overflow: hidden;
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(201,168,106,0.12), transparent 55%),
    radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--bg) 75%, transparent), transparent 60%);
}
.hero__inner { max-width: 460px; }
.hero__mono {
  position: relative;
  width: 70px; height: 70px; margin: 0 auto 24px; color: var(--gold);
  opacity: 0; transform: translateY(20px); animation: heroReveal 1.2s var(--ease) 0.3s forwards;
}
.hero__mono::after {
  content: ''; position: absolute; inset: -38%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(201,168,106,0.30), transparent 65%);
  animation: breathe 4.5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(0.8); opacity: 0.4; } 50% { transform: scale(1.14); opacity: 0.85; } }
.hero__eyebrow { opacity: 0; transform: translateY(20px); animation: heroReveal 1.2s var(--ease) 0.5s forwards; }
.hero__names {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.4rem, 19vw, 5.4rem); line-height: 0.98; margin: 14px 0 6px;
}
/* градиент-заливку вешаем на КАЖДЫЙ дочерний спан — иначе текст прозрачный */
.hero__names .n {
  display: inline-block; opacity: 0; transform: translateY(40px);
  animation: heroReveal 1.3s var(--ease) forwards;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--gold) 145%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
}
.hero__names .amp {
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 5vw, 22px);
  font-family: 'Great Vibes', cursive; font-size: 0.62em; color: var(--gold-bright);
  line-height: 1; margin: 2px 0; -webkit-text-fill-color: var(--gold-bright);
  text-shadow: 0 2px 18px rgba(232, 207, 154, 0.4);
  opacity: 0; transform: translateY(40px); animation: heroReveal 1.3s var(--ease) 0.85s forwards;
}
.hero__names .amp::before, .hero__names .amp::after {
  content: ''; height: 1px; width: clamp(28px, 13vw, 62px); display: block;
}
.hero__names .amp::before { background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.hero__names .amp::after  { background: linear-gradient(90deg, var(--gold-deep), transparent); }
.hero__names .n1 { animation-delay: 0.65s; }
.hero__names .n2 { animation-delay: 1.05s; }
.hero__sub {
  font-size: 1rem; color: var(--muted); max-width: 380px; margin: 20px auto 0;
  opacity: 0; transform: translateY(20px); animation: heroReveal 1.2s var(--ease) 1.3s forwards;
}
.hero__date {
  display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-accent);
  letter-spacing: 0.26em; text-transform: uppercase; font-size: 0.86rem; color: var(--gold-bright);
  margin: 26px 0 34px; opacity: 0; transform: translateY(20px);
  animation: heroReveal 1.2s var(--ease) 1.5s forwards;
}
.hero__date::before, .hero__date::after { content: ''; width: 28px; height: 1px; background: var(--gold-deep); }
.hero__cta { opacity: 0; transform: translateY(20px); animation: heroReveal 1.2s var(--ease) 1.7s forwards; }
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-accent); letter-spacing: 0.28em; font-size: 0.58rem; text-transform: uppercase;
  color: var(--muted-2); display: flex; flex-direction: column; align-items: center; gap: 9px;
  opacity: 0; animation: fadeIn 1.5s ease 2.2s forwards;
}
.hero__scroll .bar { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll .bar::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
  background: var(--gold-bright); animation: scrollDot 2s ease-in-out infinite;
}
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollDot { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.count-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 480px; margin: 0 auto; }
.count-cell {
  position: relative; text-align: center; padding: clamp(18px, 5vw, 28px) 4px;
  border: 1px solid var(--glass-brd); border-radius: 16px; overflow: hidden;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  box-shadow: var(--glass-sh), inset 0 1px 0 var(--glass-hi);
}
.count-cell::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad-gold-h); }
.count-num {
  font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1; color: var(--ivory); font-variant-numeric: tabular-nums;
}
.count-label { font-family: var(--f-accent); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.56rem; color: var(--gold); margin-top: 10px; }

/* ============================================================
   VENUE
   ============================================================ */
.venue { max-width: 480px; margin: 0 auto; }
.venue__media {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
}
.venue__media img {
  width: 100%; height: 100%; object-fit: cover; filter: brightness(var(--media-bri));
  transition: transform 1.4s var(--ease);
}
.venue__media:hover img { transform: scale(1.05); }
.venue__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,9,8,0.55));
}
.venue__info {
  margin-top: 18px; padding: 24px 22px;
  border: 1px solid var(--glass-brd); border-radius: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  box-shadow: var(--glass-sh), inset 0 1px 0 var(--glass-hi);
}
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.info-row:first-child { padding-top: 0; }
.info-ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold);
}
.info-ico svg { width: 19px; height: 19px; }
.info-row h4 { font-family: var(--f-accent); font-weight: 400; font-size: 1.02rem; color: var(--ivory); }
.info-row p { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.venue__cta { margin-top: 28px; display: flex; justify-content: center; }
.gis-btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px 14px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.gis-btn:hover { border-color: var(--gold); transform: translateY(-3px); }
.gis-logo { width: 34px; height: 34px; flex: 0 0 34px; }
.gis-btn__txt { text-align: left; line-height: 1.25; }
.gis-btn__txt b { display: block; font-family: var(--f-accent); font-weight: 400; font-size: 0.95rem; color: var(--ivory); letter-spacing: 0.04em; }
.gis-btn__txt small { color: var(--muted); font-size: 0.72rem; }
.gis-btn__arrow { color: var(--gold); }

/* ============================================================
   RSVP
   ============================================================ */
.rsvp { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.rsvp__deadline {
  text-align: center; font-family: var(--f-accent); letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 0.7rem; color: var(--gold); margin-bottom: 38px;
}
.form { max-width: 440px; margin: 0 auto; }
.field { margin-bottom: 24px; }
.field > label {
  display: block; font-family: var(--f-accent); letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.66rem; color: var(--muted); margin-bottom: 11px;
}
.field input[type="text"], .field textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px;
  color: var(--ivory); font-family: var(--f-sans); font-weight: 300; font-size: 1rem; padding: 15px 18px;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--panel); }
.field textarea { resize: vertical; min-height: 92px; }

.options { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; cursor: pointer; flex: 1 1 calc(50% - 5px); min-width: 130px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 14px 14px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: var(--panel-2); font-size: 0.9rem; color: var(--muted); transition: all 0.35s var(--ease);
}
.opt:hover span { border-color: var(--line); color: var(--cream); }
.opt input:checked + span {
  border-color: var(--gold); background: rgba(201,168,106,0.10); color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.opt svg { width: 16px; height: 16px; }

.stepper {
  display: inline-flex; align-items: center; border: 1px solid var(--line-soft);
  border-radius: 10px; overflow: hidden; background: var(--panel-2);
}
.stepper button {
  width: 52px; height: 52px; background: transparent; border: none; cursor: pointer;
  color: var(--gold); font-size: 1.4rem; font-family: var(--f-display); transition: background 0.3s var(--ease);
}
.stepper button:hover { background: rgba(201,168,106,0.10); }
.stepper input {
  width: 60px; text-align: center; background: transparent; border: none; color: var(--ivory);
  font-family: var(--f-display); font-size: 1.6rem;
}
.field__hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 8px; }

.rsvp__submit { text-align: center; margin-top: 32px; }
.rsvp__submit .btn { padding: 17px 50px; }
.form[data-attending="no"] .when-coming { display: none; }

.rsvp__success {
  text-align: center; max-width: 440px; margin: 0 auto;
  padding: clamp(36px, 9vw, 60px) 26px; border: 1px solid var(--glass-brd); border-radius: 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  box-shadow: var(--glass-sh), inset 0 1px 0 var(--glass-hi);
  display: none;
}
.rsvp__success.show { display: block; animation: fadeUp 0.8s var(--ease); }
.rsvp__success .check { width: 70px; height: 70px; margin: 0 auto 22px; color: var(--gold); }
.rsvp__success .check circle { stroke-dasharray: 232; stroke-dashoffset: 232; animation: draw2 0.8s var(--ease) forwards; }
.rsvp__success .check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw2 0.5s var(--ease) 0.6s forwards; }
.rsvp__success h3 { font-family: var(--f-display); font-size: 2.2rem; color: var(--ivory); }
.rsvp__success p { color: var(--muted); margin-top: 10px; }
@keyframes draw2 { to { stroke-dashoffset: 0; } }

/* ============================================================
   GALLERY
   ============================================================ */
/* масонри через CSS-колонки — вертикальные фото стыкуются без пустот */
.gallery-grid { column-count: 2; column-gap: 10px; max-width: 480px; margin: 0 auto; }
.gphoto {
  position: relative; display: block; width: 100%; margin: 0 0 10px;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  overflow: hidden; border-radius: 12px; cursor: pointer; border: 1px solid var(--line-soft);
}
.gphoto img { width: 100%; height: auto; display: block; filter: brightness(var(--media-bri)); transition: transform 1s var(--ease); }
.gphoto:hover img { transform: scale(1.06); }
.gphoto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10,9,8,0.45)); opacity: 0; transition: opacity 0.5s var(--ease); }
.gphoto:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 9500; background: rgba(6,5,4,0.94);
  display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s; backdrop-filter: blur(6px);
}
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); transform: scale(0.96); transition: transform 0.4s var(--ease); }
.lightbox.show img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  color: var(--gold); width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: all 0.3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(201,168,106,0.15); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { text-align: center; padding: clamp(70px, 14vw, 110px) 24px 56px; position: relative; }
.footer__mono { width: 60px; height: 60px; color: var(--gold); margin: 0 auto 22px; }
.footer .ornament--div { margin-bottom: 26px; }
.footer__hash {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.8rem, 8vw, 2.8rem);
  background: linear-gradient(180deg, var(--ivory), var(--gold) 150%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer__date { font-family: var(--f-accent); letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.74rem; color: var(--gold); margin-top: 16px; }
.footer__credit {
  margin-top: 36px; color: var(--gold); font-family: 'Great Vibes', cursive;
  font-size: 1.5rem; letter-spacing: 0.02em;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(42px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* направления появления */
.reveal[data-anim="left"]   { transform: translateX(-48px); }
.reveal[data-anim="right"]  { transform: translateX(48px); }
.reveal[data-anim="scale"]  { transform: scale(0.9); }
.reveal[data-anim="up"]     { transform: translateY(58px); }
/* 3D-появление */
.reveal[data-anim="flip"]   { transform: perspective(1100px) rotateX(38deg) translateY(46px); transform-origin: 50% 100%; }
.reveal[data-anim="flipL"]  { transform: perspective(1100px) rotateY(-34deg) translateX(40px); transform-origin: 100% 50%; }
.reveal[data-anim="flipR"]  { transform: perspective(1100px) rotateY(34deg) translateX(-40px); transform-origin: 0% 50%; }
.reveal[data-anim="rise"]   { transform: perspective(1100px) rotateX(22deg) translateY(70px) scale(0.94); transform-origin: 50% 100%; }
.reveal[data-anim="flip"], .reveal[data-anim="flipL"], .reveal[data-anim="flipR"], .reveal[data-anim="rise"] {
  transition: opacity 1s var(--ease-out), transform 1.05s var(--ease-out);
}
.reveal[data-anim="left"].in, .reveal[data-anim="right"].in,
.reveal[data-anim="scale"].in, .reveal[data-anim="up"].in,
.reveal[data-anim="flip"].in, .reveal[data-anim="flipL"].in,
.reveal[data-anim="flipR"].in, .reveal[data-anim="rise"].in { transform: none; }

/* каскад */
.reveal[data-delay="1"] { transition-delay: 0.10s; }
.reveal[data-delay="2"] { transition-delay: 0.20s; }
.reveal[data-delay="3"] { transition-delay: 0.30s; }
.reveal[data-delay="4"] { transition-delay: 0.40s; }
.reveal[data-delay="5"] { transition-delay: 0.50s; }
.reveal[data-delay="6"] { transition-delay: 0.60s; }

/* ============================================================
   LITE-РЕЖИМ (телефоны): убираем дорогие для GPU эффекты,
   сохраняя вид. Класс .lite ставится в <head> до отрисовки.
   ============================================================ */
/* зерно-блендинг и большие «glow» — выключаем */
html.lite body::after { display: none; }
html.lite .glow { display: none; }

/* aurora: статичная, без анимации и блендинг-слоя */
html.lite .aurora { inset: 0; animation: none !important; filter: blur(26px) saturate(1.1); opacity: 0.55; will-change: auto; }
html.lite .aurora::after { display: none; }
html.lite body[data-scene] .aurora { filter: blur(26px) saturate(1.1); }   /* без посценовой смены фильтра */

/* стекло без backdrop-filter — сплошной полупрозрачный фон (выглядит как карточка, но дёшево) */
html.lite .count-cell,
html.lite .venue__info,
html.lite .rsvp__success {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: linear-gradient(160deg, var(--panel), var(--bg-2)) !important;
}
html.lite .ctrl, html.lite .dot::after, html.lite .auto-hint {
  -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panel);
}

/* выключаем бесконечные декоративные анимации (постоянная нагрузка) */
html.lite .hero__names { animation: none !important; filter: none !important; }
html.lite .hero__names .n::after { animation: none !important; opacity: 0; }
html.lite .hero__mono { animation: heroReveal 1.2s var(--ease) 0.3s forwards !important; }
html.lite .hero__mono::after { animation: none !important; opacity: 0.45; }
html.lite .hero__scroll .bar::after { animation: none; }
html.lite .petals, html.lite .spark { display: none !important; }
html.lite .count-cell:hover { transform: none; }   /* на тач-устройствах hover не нужен */

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

/* чуть просторнее на крупных экранах, но макет остаётся «мобильным» по центру */
@media (min-width: 700px) {
  .hero__names { font-size: 6rem; }
}

/* ============================================================
   ДОП. АНИМАЦИИ
   ============================================================ */
/* мягкое золотое сияние имён */
.hero__names { animation: nameGlow 6s ease-in-out 2.4s infinite; }
@keyframes nameGlow {
  0%, 100% { filter: drop-shadow(0 1px 4px rgba(201,168,106,0)); }
  50%      { filter: drop-shadow(0 2px 24px rgba(232,207,154,0.30)); }
}

/* блик-проблеск по золотым буквам */
.hero__names .n { position: relative; background-size: 100% 100%; }
.hero__names .n::after {
  content: attr(data-txt); position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.85) 50%, transparent 65%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 250% 100%; background-position: 220% 0;
  animation: shine 6s ease-in-out 3s infinite;
}
@keyframes shine { 0% { background-position: 220% 0; } 40%, 100% { background-position: -120% 0; } }

/* перелистывание цифр отсчёта */
.count-num.flip { animation: flipNum 0.55s var(--ease); }
@keyframes flipNum {
  0%   { transform: translateY(-45%) scale(0.96); opacity: 0; filter: blur(1px); }
  100% { transform: translateY(0) scale(1); opacity: 1; filter: none; }
}

/* золотые искры в hero */
.spark {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 7px var(--gold-bright);
  opacity: 0; pointer-events: none; z-index: -1;
  animation: twinkle ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 0.9; transform: scale(1); } }

/* плавная отрисовка орнамента при появлении */
.reveal .ornament svg [stroke] { stroke-dasharray: 220; stroke-dashoffset: 220; }
.reveal.in .ornament svg [stroke] { animation: drawOrn 1.6s var(--ease) 0.2s forwards; }
@keyframes drawOrn { to { stroke-dashoffset: 0; } }

/* кнопка звука */
.ctrl--sound { width: 38px; }
.ctrl--sound svg { width: 17px; height: 17px; }
.ctrl--sound .off { display: none; }
.ctrl--sound[data-on="false"] .on { display: none; }
.ctrl--sound[data-on="false"] .off { display: block; }
.ctrl--sound[data-on="true"] { color: var(--gold-bright); border-color: var(--gold); }
.ctrl--sound[data-on="true"]::after {
  content: ''; position: absolute; inset: -4px; border-radius: 999px;
  border: 1px solid var(--gold); opacity: 0; animation: soundPulse 2.4s ease-out infinite;
}
.ctrl { position: relative; }
@keyframes soundPulse { 0% { opacity: 0.5; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.5); } }

/* парящая монограмма */
.hero__mono { animation: heroReveal 1.2s var(--ease) 0.3s forwards, monoFloat 6s ease-in-out 1.6s infinite; }
@keyframes monoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* акцентное слово в заголовке — мягкое золотое мерцание при появлении */
.section-title em { display: inline-block; }
.reveal.in .section-title em, .section-head.reveal.in .section-title em {
  animation: emPop 0.9s var(--ease-back) 0.15s both;
}
@keyframes emPop { 0% { transform: translateY(8px) scale(0.94); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* лифт карточек отсчёта при наведении */
.count-cell { transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out); }
.count-cell:hover { transform: translateY(-6px); border-color: rgba(201,168,106,0.45); }

/* кнопка авто-прокрутки */
.ctrl--auto { width: 38px; }
.ctrl--auto svg { width: 16px; height: 16px; }
.ctrl--auto .ic-pause { display: none; }
.ctrl--auto[data-on="true"] { color: var(--gold-bright); border-color: var(--gold); }
.ctrl--auto[data-on="true"] .ic-play { display: none; }
.ctrl--auto[data-on="true"] .ic-pause { display: block; }

/* подсказка авто-прокрутки */
.auto-hint {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(14px);
  z-index: 8000; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); color: var(--gold-bright);
  font-family: var(--f-accent); letter-spacing: 0.12em; font-size: 0.68rem; text-transform: uppercase;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), visibility 0.5s;
  cursor: pointer;
}
.auto-hint.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.auto-hint svg { width: 14px; height: 14px; }

/* ============================================================
   НАВИГАЦИЯ ПО БЛОКАМ (точки)
   ============================================================ */
.dots {
  position: fixed; right: 14px; top: 50%; transform: translateY(-50%);
  z-index: 8500; display: flex; flex-direction: column; gap: 16px; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.dots.show { opacity: 1; visibility: visible; }
.dots::before {
  content: ''; position: absolute; top: -4px; bottom: -4px; left: 50%; width: 1px;
  transform: translateX(-50%); background: var(--line-soft); z-index: -1;
}
.dot {
  position: relative; width: 9px; height: 9px; padding: 0; border-radius: 50%;
  border: 1px solid var(--gold-deep); background: transparent; cursor: pointer;
  transition: transform 0.45s var(--ease-back), background 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.dot:hover { border-color: var(--gold); transform: scale(1.25); }
.dot.active {
  background: var(--grad-gold); border-color: transparent; transform: scale(1.45);
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.7);
}
.dot::after {
  content: attr(data-label); position: absolute; right: 20px; top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; font-family: var(--f-accent); font-size: 0.58rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-bright); pointer-events: none;
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--glass-brd);
  background: color-mix(in srgb, var(--panel) 80%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.dot:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 420px) { .dots { right: 9px; gap: 13px; } .dot::after { display: none; } }

/* активный блок — заголовок чуть «оживает» */
@keyframes sceneTitleGlow { 0%,100% { text-shadow: 0 0 0 transparent; } 50% { text-shadow: 0 6px 26px rgba(201,168,106,0.22); } }

/* ============================================================
   ПОЛНОЭКРАННЫЕ БЛОКИ (показ по одному)
   ============================================================ */
#countdown, .gallery-cyl {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
}

/* ============================================================
   3D-ЦИЛИНДР ГАЛЕРЕИ
   ============================================================ */
.cyl {
  position: relative; width: 100%;
  height: clamp(330px, 56vh, 500px);
  perspective: 1250px; margin: 10px 0 8px;
}
.cyl-stage {
  position: absolute; inset: 0; transform-style: preserve-3d;
  --step: 72deg; --radius: clamp(180px, 50vw, 280px);
  transform: rotateY(var(--rot, 0deg));
  transition: transform 1.05s cubic-bezier(0.34, 1, 0.32, 1);
}
.cyl-face {
  position: absolute; top: 0; left: 50%;
  width: clamp(190px, 56vw, 250px); height: 100%;
  margin: 0; transform-origin: center center;
  transform: translateX(-50%) rotateY(calc(var(--i) * var(--step))) translateZ(var(--radius));
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--glass-brd);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,0.7);
  opacity: 0.28; filter: brightness(0.45) saturate(0.85) blur(1px);
  transition: opacity 1s var(--ease-out), filter 1s var(--ease-out), box-shadow 1s var(--ease-out);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.cyl-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cyl-face::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10,9,8,0.5));
  opacity: 0; transition: opacity 1s var(--ease-out);
}
.cyl-face.is-front {
  opacity: 1; filter: none; cursor: pointer;
  box-shadow: 0 36px 80px -22px rgba(0,0,0,0.75), 0 0 60px -12px rgba(201,168,106,0.35);
}
.cyl-face.is-front::after { opacity: 1; }
.cyl-count {
  text-align: center; margin-top: 16px;
  font-family: var(--f-display); font-size: 1.5rem; color: var(--gold-bright);
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.cyl-count .cyl-sep { color: var(--muted-2); margin: 0 8px; font-size: 1.1rem; }
#cylCur { color: var(--ivory); }

/* финальная подсказка «дальше свободно» */
.auto-hint--free { bottom: auto; top: 76px; }

/* ============================================================
   ИНТЕРАКТИВНЫЙ 3D-НАКЛОН (мышь + гироскоп)
   ============================================================ */
.count-grid { perspective: 900px; }
.gallery-grid { perspective: 1300px; }
.venue { perspective: 1300px; }
[data-tilt] {
  transition: transform 0.28s var(--ease-out), box-shadow 0.4s var(--ease-out);
  transform-style: preserve-3d; will-change: transform;
}
.count-cell[data-tilt], .gphoto[data-tilt] { backface-visibility: hidden; }
/* блик при активном наклоне */
[data-tilt].tilting { box-shadow: 0 30px 60px -24px rgba(0,0,0,0.7), 0 0 40px -10px rgba(201,168,106,0.25); }
.gphoto[data-tilt]::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  transition: opacity 0.4s var(--ease-out); mix-blend-mode: overlay;
}
.gphoto[data-tilt].tilting::before { opacity: 1; }
