/* ===== DESIGN TOKENS ===== */
:root {
  /* Color Palette — Old Russian / Slavic */
  --color-red-deep: #8B1A1A;
  --color-red: #A52A2A;
  --color-red-light: #C0392B;
  --color-cream: #F5E6D3;
  --color-cream-light: #FAF0E6;
  --color-cream-dark: #E8D5BD;
  --color-gold: #C9A84C;
  --color-gold-light: #D4AF37;
  --color-dark: #2C1810;
  --color-dark-text: #3E2723;
  --color-white-warm: #FFF8F0;

  /* Fonts */
  --font-display: 'Yeseva One', 'Georgia', serif;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;
  --font-accent: 'Kelly Slab', 'Georgia', serif;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-dark-text);
  background: var(--color-cream);
  overflow-x: hidden;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

::selection {
  background: rgba(165, 42, 42, 0.25);
  color: var(--color-dark);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== SLAVIC ORNAMENT PATTERNS ===== */

/* Repeating slavic border pattern using CSS */
.slavic-border {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M0 10 L10 0 L20 10 L10 20 Z' fill='%238B1A1A' opacity='0.3'/%3E%3Cpath d='M20 10 L30 0 L40 10 L30 20 Z' fill='%23C9A84C' opacity='0.3'/%3E%3Cpath d='M40 10 L50 0 L60 10 L50 20 Z' fill='%238B1A1A' opacity='0.3'/%3E%3Cpath d='M60 10 L70 0 L80 10 L70 20 Z' fill='%23C9A84C' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  height: 20px;
}

/* Slavic ornament top/bottom patterns */
.slavic-ornament-top,
.slavic-ornament-bottom {
  color: var(--color-gold);
  max-width: 300px;
  margin: 0 auto;
  opacity: 0.7;
}

/* ===== FALLING LEAVES ===== */
.falling-leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.leaf {
  position: absolute;
  top: -50px;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: leafFall linear infinite;
}

.leaf-1 { left: 10%; animation-duration: 15s; animation-delay: 0s; font-size: 1.2rem; }
.leaf-2 { left: 30%; animation-duration: 18s; animation-delay: 3s; font-size: 1.8rem; }
.leaf-3 { left: 55%; animation-duration: 12s; animation-delay: 7s; font-size: 1rem; }
.leaf-4 { left: 75%; animation-duration: 20s; animation-delay: 2s; font-size: 1.4rem; }
.leaf-5 { left: 90%; animation-duration: 16s; animation-delay: 5s; font-size: 1.6rem; }

@keyframes leafFall {
  0% {
    transform: translateY(-10vh) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% {
    transform: translateY(110vh) rotate(720deg) translateX(80px);
    opacity: 0;
  }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--color-red-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10 Q70 30 90 30 Q70 30 70 50 Q70 30 60 10' fill='none' stroke='%23C9A84C' stroke-width='0.8' opacity='0.15'/%3E%3Cpath d='M60 10 Q50 30 30 30 Q50 30 50 50 Q50 30 60 10' fill='none' stroke='%23C9A84C' stroke-width='0.8' opacity='0.15'/%3E%3Cpath d='M60 70 Q70 90 90 90 Q70 90 70 110 Q70 90 60 70' fill='none' stroke='%23C9A84C' stroke-width='0.8' opacity='0.15'/%3E%3Cpath d='M60 70 Q50 90 30 90 Q50 90 50 110 Q50 90 60 70' fill='none' stroke='%23C9A84C' stroke-width='0.8' opacity='0.15'/%3E%3Ccircle cx='60' cy='60' r='3' fill='%23C9A84C' opacity='0.1'/%3E%3C/svg%3E");
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: var(--space-8);
  color: var(--color-cream);
}

.hero-torn-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20 Q30 0 60 15 Q90 30 120 10 Q150 25 180 5 Q210 20 240 12 Q270 28 300 8 Q330 22 360 14 Q390 30 420 6 Q450 18 480 10 Q510 26 540 8 Q570 22 600 14 Q630 28 660 6 Q690 20 720 12 Q750 30 780 8 Q810 22 840 14 Q870 26 900 6 Q930 18 960 10 Q990 28 1020 8 Q1050 22 1080 14 Q1110 28 1140 6 Q1170 20 1200 12 L1200 40 L0 40 Z' fill='%23F5E6D3'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  z-index: 2;
}

/* Slavic corner ornaments */
.slavic-corner {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.35;
}

.slavic-corner::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-gold);
}

.slavic-corner::after {
  content: '❦';
  position: absolute;
  font-size: 24px;
  color: var(--color-gold);
}

.slavic-corner--tl { top: 24px; left: 24px; }
.slavic-corner--tl::before { border-right: none; border-bottom: none; }
.slavic-corner--tl::after { top: -4px; left: -4px; }
.slavic-corner--tr { top: 24px; right: 24px; }
.slavic-corner--tr::before { border-left: none; border-bottom: none; }
.slavic-corner--tr::after { top: -4px; right: -4px; }
.slavic-corner--bl { bottom: 70px; left: 24px; }
.slavic-corner--bl::before { border-right: none; border-top: none; }
.slavic-corner--bl::after { bottom: -4px; left: -4px; transform: rotate(180deg); }
.slavic-corner--br { bottom: 70px; right: 24px; }
.slavic-corner--br::before { border-left: none; border-top: none; }
.slavic-corner--br::after { bottom: -4px; right: -4px; transform: rotate(180deg); }

/* ===== HERO MANDALA ANIMATION ===== */
.hero-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 90vh);
  height: min(90vw, 90vh);
  pointer-events: none;
  z-index: 0;
}

.mandala-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--color-gold);
}

.mandala-outer {
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  animation: mandalaRotate 120s linear infinite;
}

.mandala-inner {
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  opacity: 0.22;
  animation: mandalaRotateReverse 90s linear infinite;
}

.mandala-ring-1 {
  animation: mandalaPulse 8s ease-in-out infinite;
}

.mandala-ring-2 {
  animation: mandalaPulse 6s ease-in-out infinite 2s;
}

.mandala-ring-3 {
  animation: mandalaPulse 10s ease-in-out infinite 1s;
}

.mandala-ring-4 {
  animation: mandalaPulse 7s ease-in-out infinite 3s;
}

@keyframes mandalaRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes mandalaRotateReverse {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes mandalaPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* Golden Particles Canvas */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  padding: var(--space-12) var(--space-8);
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-6);
  font-weight: 400;
}

.hero-names {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  color: var(--color-cream);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.amp {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
  font-size: 0.65em;
  display: inline-block;
  margin: 0 var(--space-2);
  vertical-align: middle;
}

.hero-date-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.ornament-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.6;
}

.hero-date {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
}

.hero-city {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-cream-dark);
  letter-spacing: 0.1em;
}

.scroll-indicator {
  position: absolute;
  bottom: 60px;
  color: var(--color-gold);
  opacity: 0.6;
  animation: scrollBounce 2s infinite;
  transition: opacity var(--transition-interactive);
}

.scroll-indicator:hover { opacity: 1; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  text-align: center;
  color: var(--color-cream);
  margin-bottom: var(--space-10);
  position: relative;
  padding-bottom: var(--space-4);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--color-gold);
}

.section-title--dark {
  color: var(--color-red-deep);
}

.section-title--dark::after {
  background: var(--color-red);
}

/* ===== SECTION ORNAMENT ===== */
.section-ornament {
  text-align: center;
  margin-bottom: var(--space-6);
  color: var(--color-gold);
}

.ornament-svg {
  width: 150px;
  height: 30px;
}

.slavic-pattern-header {
  text-align: center;
  margin-bottom: var(--space-6);
  color: var(--color-gold);
}

.slavic-header-svg {
  width: clamp(250px, 50vw, 400px);
  height: auto;
  margin: 0 auto;
}

/* ===== COUNTDOWN ===== */
.countdown {
  background: var(--color-red-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='%23C9A84C' stroke-width='0.5' opacity='0.1'/%3E%3Ccircle cx='40' cy='40' r='10' fill='none' stroke='%23C9A84C' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
  padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
  text-align: center;
  color: var(--color-cream);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(var(--space-4), 3vw, var(--space-8));
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(201, 168, 76, 0.1);
  border: 2px solid var(--color-gold);
  border-radius: 12px;
  padding: var(--space-6) var(--space-8);
  min-width: 100px;
  position: relative;
  overflow: hidden;
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.countdown-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-cream-dark);
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
}

/* ===== TORN EDGE DIVIDERS ===== */
.torn-divider {
  height: 40px;
  position: relative;
  z-index: 2;
}

.torn-divider--cream {
  background: var(--color-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 L0 20 Q30 0 60 15 Q90 30 120 10 Q150 25 180 5 Q210 20 240 12 Q270 28 300 8 Q330 22 360 14 Q390 30 420 6 Q450 18 480 10 Q510 26 540 8 Q570 22 600 14 Q630 28 660 6 Q690 20 720 12 Q750 30 780 8 Q810 22 840 14 Q870 26 900 6 Q930 18 960 10 Q990 28 1020 8 Q1050 22 1080 14 Q1110 28 1140 6 Q1170 20 1200 12 L1200 40 Z' fill='%238B1A1A'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.torn-divider--red {
  background: var(--color-red-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 L0 20 Q30 0 60 15 Q90 30 120 10 Q150 25 180 5 Q210 20 240 12 Q270 28 300 8 Q330 22 360 14 Q390 30 420 6 Q450 18 480 10 Q510 26 540 8 Q570 22 600 14 Q630 28 660 6 Q690 20 720 12 Q750 30 780 8 Q810 22 840 14 Q870 26 900 6 Q930 18 960 10 Q990 28 1020 8 Q1050 22 1080 14 Q1110 28 1140 6 Q1170 20 1200 12 L1200 40 Z' fill='%23F5E6D3'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.torn-divider--red-bottom {
  background: var(--color-cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 L0 20 Q30 0 60 15 Q90 30 120 10 Q150 25 180 5 Q210 20 240 12 Q270 28 300 8 Q330 22 360 14 Q390 30 420 6 Q450 18 480 10 Q510 26 540 8 Q570 22 600 14 Q630 28 660 6 Q690 20 720 12 Q750 30 780 8 Q810 22 840 14 Q870 26 900 6 Q930 18 960 10 Q990 28 1020 8 Q1050 22 1080 14 Q1110 28 1140 6 Q1170 20 1200 12 L1200 40 Z' fill='%238B1A1A'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

/* ===== STORY / TIMELINE ===== */
.story {
  background: var(--color-cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Ctext x='40' y='55' font-size='24' fill='%238B1A1A' opacity='0.055' font-family='serif'%3E%E2%9D%A7%3C/text%3E%3Ctext x='150' y='120' font-size='20' fill='%23C9A84C' opacity='0.06' font-family='serif'%3E%E2%9C%A6%3C/text%3E%3Ctext x='25' y='170' font-size='18' fill='%238B1A1A' opacity='0.05' font-family='serif'%3E%E2%9D%96%3C/text%3E%3Ctext x='120' y='42' font-size='16' fill='%23C9A84C' opacity='0.05' font-family='serif'%3E%E2%9C%A3%3C/text%3E%3Ctext x='170' y='185' font-size='22' fill='%238B1A1A' opacity='0.05' font-family='serif'%3E%E2%9D%A5%3C/text%3E%3Ctext x='85' y='105' font-size='14' fill='%23C9A84C' opacity='0.05' font-family='serif'%3E%E2%9C%B5%3C/text%3E%3Cpath d='M5 85 Q15 73 25 85 Q15 97 5 85' fill='%238B1A1A' opacity='0.045'/%3E%3Cpath d='M185 60 Q195 48 205 60 Q195 72 185 60' fill='%23C9A84C' opacity='0.05'/%3E%3C/svg%3E");
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-8);
  position: relative;
}

.story-intro {
  text-align: center;
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-dark-text);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  opacity: 0.8;
}

.story-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.timeline-path {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100%;
  color: var(--color-red);
  opacity: 0.3;
  z-index: 0;
}

/* Hearts-and-dashes line between dots */
.timeline-hearts-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.timeline-hearts-line .thl-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-hearts-line .thl-dash {
  width: 2px;
  height: 10px;
  background: var(--color-red);
  opacity: 0.3;
  border-radius: 1px;
}

.timeline-hearts-line .thl-gap {
  height: 6px;
}

.timeline-hearts-line .thl-heart {
  font-size: 13px;
  line-height: 1;
  color: var(--color-red);
  opacity: 0.45;
  flex-shrink: 0;
  width: auto;
}

.timeline-hearts-line .thl-heart--gold {
  color: var(--color-gold);
  font-size: 15px;
  opacity: 0.5;
}

/* Reveal animation for hearts line */
.timeline-hearts-line .thl-segment {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-hearts-line .thl-segment.visible {
  opacity: 1;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-10);
  z-index: 1;
}

.timeline-item--left { justify-content: flex-start; padding-right: 55%; }
.timeline-item--right { justify-content: flex-end; padding-left: 55%; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-red);
  border: 3px solid var(--color-cream);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-red);
  z-index: 2;
}

.timeline-card {
  background: var(--color-white-warm);
  border: 2px solid var(--color-gold);
  border-radius: 12px;
  padding: var(--space-6);
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.1);
  width: 100%;
  transition: transform 300ms var(--ease-out);
}

.timeline-card:hover {
  transform: translateY(-4px);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-red-deep);
  margin-bottom: var(--space-2);
}

.timeline-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

.timeline-text {
  font-size: var(--text-base);
  color: var(--color-dark-text);
  line-height: 1.7;
}

/* ===== PITER / GALLERY ===== */
.piter {
  background: var(--color-red-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath d='M80 20 Q100 40 120 20 Q100 40 120 60 Q100 40 80 60 Q100 40 80 20' fill='none' stroke='%23C9A84C' stroke-width='0.6' opacity='0.08'/%3E%3Cpath d='M40 80 Q60 100 40 120 Q60 100 80 120 Q60 100 80 80 Q60 100 40 80' fill='none' stroke='%23C9A84C' stroke-width='0.6' opacity='0.08'/%3E%3C/svg%3E");
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-8);
  color: var(--color-cream);
}

.piter-text {
  text-align: center;
  font-size: var(--text-lg);
  max-width: 700px;
  margin: 0 auto var(--space-12);
  line-height: 1.8;
  color: var(--color-cream-dark);
}

.piter-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 900px;
  margin: 0 auto;
}

.piter-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--color-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.piter-gallery-item--large {
  grid-column: span 2;
}

.piter-gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.piter-gallery-item--large img {
  height: 350px;
}

.piter-gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== TIMING ===== */
.timing {
  background: var(--color-cream);
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-8);
}

.timing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.timing-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-white-warm);
  border: 2px solid var(--color-gold);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.08);
  position: relative;
  overflow: hidden;
}

.timing-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-red), var(--color-gold), var(--color-red));
}

.timing-time {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-red-deep);
  margin-bottom: var(--space-2);
}

.timing-desc {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--color-dark-text);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timing-details {
  font-size: var(--text-sm);
  color: var(--color-dark-text);
  opacity: 0.7;
}

/* ===== LOCATION ===== */
.location {
  background: var(--color-red-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='%23C9A84C' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-8);
  color: var(--color-cream);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

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

.location-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.location-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.location-address {
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  color: var(--color-cream-dark);
}

.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  border-radius: 50px;
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive);
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-dark);
  border: 2px solid var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-cream);
  color: var(--color-red-deep);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
}

.location-map {
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--color-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ===== DETAILS ===== */
.details {
  background: var(--color-cream);
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-8);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.details-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-white-warm);
  border: 2px solid var(--color-gold);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.08);
  transition: transform 300ms var(--ease-out);
}

.details-card:hover {
  transform: translateY(-4px);
}

.details-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.details-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-red-deep);
  margin-bottom: var(--space-3);
}

.details-text {
  font-size: var(--text-base);
  color: var(--color-dark-text);
  line-height: 1.7;
}

/* ===== CLOSING ===== */
.closing {
  background: var(--color-red-deep);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10 Q70 30 90 30 Q70 30 70 50 Q70 30 60 10' fill='none' stroke='%23C9A84C' stroke-width='0.8' opacity='0.12'/%3E%3Cpath d='M60 10 Q50 30 30 30 Q50 30 50 50 Q50 30 60 10' fill='none' stroke='%23C9A84C' stroke-width='0.8' opacity='0.12'/%3E%3Cpath d='M60 70 Q70 90 90 90 Q70 90 70 110 Q70 90 60 70' fill='none' stroke='%23C9A84C' stroke-width='0.8' opacity='0.12'/%3E%3Cpath d='M60 70 Q50 90 30 90 Q50 90 50 110 Q50 90 60 70' fill='none' stroke='%23C9A84C' stroke-width='0.8' opacity='0.12'/%3E%3Ccircle cx='60' cy='60' r='3' fill='%23C9A84C' opacity='0.08'/%3E%3C/svg%3E");
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-8);
  text-align: center;
  color: var(--color-cream);
}

.closing-ornament {
  margin-bottom: var(--space-8);
  color: var(--color-gold);
}

.closing-ornament-svg {
  width: 250px;
  height: 60px;
  margin: 0 auto;
}

.closing-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-cream);
  margin-bottom: var(--space-6);
  line-height: 1.3;
}

.closing-text {
  font-size: var(--text-lg);
  color: var(--color-cream-dark);
  margin-bottom: var(--space-8);
}

.countdown-mini {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
}

.countdown-mini-sep {
  opacity: 0.4;
  font-weight: 300;
}

.countdown-mini-item {
  font-variant-numeric: tabular-nums;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-dark);
  color: var(--color-cream);
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.footer-names {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.footer-date {
  font-size: var(--text-sm);
  color: var(--color-cream-dark);
  margin-bottom: var(--space-6);
}

.footer-attr {
  font-size: var(--text-xs);
  opacity: 0.5;
}

.footer-attr a {
  transition: opacity var(--transition-interactive);
}

.footer-attr a:hover {
  opacity: 0.8;
}

/* ===== HERO PHOTO ===== */
.hero-photo-frame {
  margin-bottom: var(--space-6);
}

.hero-photo-border {
  width: 130px;
  height: 130px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.15), 0 8px 24px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
  background: rgba(201, 168, 76, 0.08);
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.85;
  transition: opacity 400ms var(--ease-out);
}

.hero-photo-frame:hover .hero-photo-img {
  opacity: 1;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
  background: rgba(201, 168, 76, 0.08);
}

/* ===== TIMELINE PHOTO CARDS ===== */
.timeline-card--photo {
  padding: var(--space-3);
}

.timeline-photo-wrap {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: var(--color-cream-dark);
  aspect-ratio: 4/3;
}

.timeline-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-dark-text);
  opacity: 0.5;
  font-style: italic;
  text-align: center;
  padding: var(--space-4);
  min-height: 140px;
}

/* ===== RSVP FORM ===== */
.rsvp-form {
  max-width: 420px;
  margin: 0 auto var(--space-10);
}

.rsvp-form-group {
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
}

.rsvp-input {
  flex: 1;
  padding: var(--space-3) var(--space-6);
  border: 2px solid var(--color-gold);
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}

.rsvp-input::placeholder {
  color: var(--color-cream-dark);
  opacity: 0.6;
}

.rsvp-input:focus {
  border-color: var(--color-cream);
  background: rgba(255,255,255,0.15);
}

.btn--rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  border-radius: 50px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  border: 2px solid var(--color-gold);
  cursor: pointer;
  transition: background var(--transition-interactive), color var(--transition-interactive), transform var(--transition-interactive);
  white-space: nowrap;
}

.btn--rsvp:hover {
  background: var(--color-cream);
  color: var(--color-red-deep);
  transform: translateY(-2px);
}

.btn--rsvp:active {
  transform: translateY(0);
}

.btn--rsvp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rsvp-message {
  text-align: center;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-gold);
  min-height: 1.6em;
}

.rsvp-message--error {
  color: #ff9a9a;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: revealFade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes revealFade {
  to { opacity: 1; }
}

/* ===== LEAFLET CUSTOMIZATION ===== */
.leaflet-container {
  font-family: var(--font-body);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .hero-names {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .slavic-corner {
    width: 40px;
    height: 40px;
  }

  .timeline-item--left,
  .timeline-item--right {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 20px;
    transform: none;
  }

  .timeline-path {
    left: 20px;
    transform: none;
  }

  .timeline-hearts-line {
    left: 20px;
    transform: none;
  }

  .piter-gallery {
    grid-template-columns: 1fr;
  }

  .piter-gallery-item--large {
    grid-column: span 1;
  }

  .piter-gallery-item img,
  .piter-gallery-item--large img {
    height: 220px;
  }

  .location-content {
    grid-template-columns: 1fr;
  }

  .location-map {
    height: 280px;
  }

  .countdown-item {
    min-width: 70px;
    padding: var(--space-4) var(--space-4);
  }

  .countdown-mini {
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-lg);
  }

  .timing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .falling-leaves {
    display: none;
  }

  .hero-photo-border {
    width: 100px;
    height: 100px;
  }

  .rsvp-form-group {
    flex-direction: column;
  }

  .btn--rsvp {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .timing-grid {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== KIDS SECTION ===== */
.kids {
  background: #F5E6D3;
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.kids-ornament {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 10px;
}

.kids-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: #6b4a2a;
  font-style: italic;
  margin: -10px 0 50px;
  opacity: 0.85;
}

.kids-stage {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

/* ---- two photos side by side ---- */
.kids-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.kids-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.kids-photo-frame {
  width: 200px;
  height: 250px;
  border-radius: 4px;
  overflow: hidden;
  border: 4px solid #C9A84C;
  box-shadow: 4px 4px 0 #8B1A1A, 0 8px 24px rgba(0,0,0,0.18);
  background: #e8d5bc;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}

.kids-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M5,5 Q15,2 25,5 Q35,8 45,5' stroke='%23C9A84C' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3Cpath d='M5,55 Q15,52 25,55 Q35,58 45,55' stroke='%23C9A84C' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
  z-index: 1;
}

.kids-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kids-name {
  font-family: 'Yeseva One', serif;
  font-size: 1.1rem;
  color: #8B1A1A;
  letter-spacing: 0.05em;
}

/* ---- hearts divider between photos ---- */
.kids-hearts-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #C9A84C;
  font-size: 0.95rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.kids-hearts-divider span:first-child,
.kids-hearts-divider span:nth-child(5),
.kids-hearts-divider span:last-child {
  color: #8B1A1A;
  font-size: 1.1rem;
}

/* ---- button ---- */
.kids-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #8B1A1A;
  color: #F5E6D3;
  border: none;
  border-radius: 4px;
  padding: 14px 36px;
  font-family: 'Yeseva One', serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 3px 3px 0 #C9A84C;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.kids-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(201,168,76,0.15) 100%);
  pointer-events: none;
}

.kids-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #C9A84C;
}

.kids-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #C9A84C;
}

.kids-btn-icon {
  font-size: 1.3rem;
}

/* ---- together result ---- */
.kids-together {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  animation: kidsTogetherReveal 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
}

.kids-together.visible {
  display: flex;
}

@keyframes kidsTogetherReveal {
  0%   { opacity: 0; transform: scale(0.7) rotate(-3deg); }
  60%  { transform: scale(1.06) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.kids-together-frame {
  position: relative;
  width: 260px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  overflow: hidden;
  border: 5px solid #C9A84C;
  box-shadow: 0 0 0 3px #8B1A1A, 0 12px 40px rgba(139,26,26,0.3);
}

.kids-photo--together {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.kids-together-caption {
  font-family: 'Yeseva One', serif;
  font-size: 1.3rem;
  color: #8B1A1A;
  letter-spacing: 0.04em;
}

/* ---- sparkles ---- */
.kids-sparkles {
  position: absolute;
  inset: -30px;
  pointer-events: none;
  z-index: 10;
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #C9A84C;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: sparklePop 0.8s ease-out forwards;
  transform-origin: center;
}

@keyframes sparklePop {
  0%   { transform: scale(0) rotate(0deg);   opacity: 1; }
  50%  { transform: scale(1.3) rotate(180deg); opacity: 1; }
  100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

/* ---- state: merged (photos shrink/fade, together appears) ---- */
.kids-photos.merging .kids-photo-frame {
  transform: scale(0.85);
}

.kids-photos.merged {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  visibility: hidden;
}

/* ---- reset button ---- */
.kids-btn--reset {
  background: #F5E6D3;
  color: #8B1A1A;
  border: 2px solid #8B1A1A;
  box-shadow: 3px 3px 0 #C9A84C;
  font-size: 0.9rem;
  padding: 10px 24px;
}

@media (max-width: 480px) {
  .kids-photos { flex-direction: column; gap: 24px; }
  .kids-hearts-divider { flex-direction: row; }
  .kids-photo-frame { width: 160px; height: 200px; }
  .kids-together-frame { width: 200px; }
  .kids-photo--together { height: 220px; }
}
