/* ─── ПЕРЕМЕННЫЕ ─────────────────────────────────────────────── */
:root {
  --cream:   #F0EDD1;
  --green:   #BDCC6D;
  --olive:   #6B7845;
  --olive-dark: #4a5530;
  --text:    #2e3520;
  --text-light: #7a8460;
  --white:   #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--cream); color: var(--text); font-family: var(--font-body); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.hidden { display: none !important; }

/* ─── ОБЛОЖКА ────────────────────────────────────────────────── */
#cover {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(189,204,109,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(107,120,69,0.20) 0%, transparent 60%),
    linear-gradient(160deg, #e8e6c4 0%, #f0edd1 40%, #d8ddb0 100%);
  background-size: cover;
}

/* фото обложки — когда загрузят */
.cover-bg.has-photo {
  background-image: url('../assets/cover.jpg');
  background-size: cover;
  background-position: center;
}
.cover-bg.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 35, 18, 0.45);
}

/* листья / лепестки */
.cover-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cover-petals span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50% 0;
  background: var(--olive);
  opacity: 0.18;
  animation: float 8s ease-in-out infinite;
}
.cover-petals span:nth-child(1) { top: 10%; left: 8%;  animation-duration: 9s;  animation-delay: 0s;   transform: rotate(30deg); }
.cover-petals span:nth-child(2) { top: 20%; left: 80%; animation-duration: 11s; animation-delay: 1s;   transform: rotate(80deg); width:12px; height:12px; }
.cover-petals span:nth-child(3) { top: 70%; left: 12%; animation-duration: 8s;  animation-delay: 2s;   transform: rotate(150deg); }
.cover-petals span:nth-child(4) { top: 80%; left: 85%; animation-duration: 10s; animation-delay: 0.5s; transform: rotate(200deg); width:6px; height:6px; }
.cover-petals span:nth-child(5) { top: 40%; left: 5%;  animation-duration: 12s; animation-delay: 3s;   width:10px; height:10px; }
.cover-petals span:nth-child(6) { top: 55%; left: 90%; animation-duration: 7s;  animation-delay: 1.5s; transform: rotate(45deg); }
.cover-petals span:nth-child(7) { top: 88%; left: 40%; animation-duration: 9s;  animation-delay: 4s;   width:14px; height:14px; opacity:0.12; }
.cover-petals span:nth-child(8) { top: 5%;  left: 50%; animation-duration: 13s; animation-delay: 2.5s; width:7px; height:7px; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(30deg); }
  50%       { transform: translateY(-18px) rotate(50deg); }
}

.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem;
  animation: coverFadeIn 1.2s var(--ease-out) both;
}

@keyframes coverFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cover-ornament {
  color: var(--olive);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  animation: spin 20s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.cover-subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.5rem;
}

.cover-names {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--olive-dark);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}
.cover-names span {
  font-style: italic;
  font-size: 0.6em;
  color: var(--olive);
}

.cover-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--olive);
  margin-bottom: 2rem;
}

.cover-divider {
  width: 60px;
  height: 1px;
  background: var(--olive);
  opacity: 0.4;
  margin-bottom: 2.5rem;
}

.open-btn {
  position: relative;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--olive);
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
  overflow: hidden;
}
.open-btn:hover { background: var(--olive-dark); transform: scale(1.02); }

.open-btn-ring {
  position: absolute;
  inset: -4px;
  border: 1px solid var(--olive);
  border-radius: 4px;
  opacity: 0.5;
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.06); opacity: 0.15; }
}

/* Анимация закрытия обложки */
#cover.closing {
  animation: coverClose 0.9s var(--ease-out) forwards;
}
@keyframes coverClose {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); pointer-events: none; }
}

/* ─── ВИДЕО-ЭКРАН ────────────────────────────────────────────── */
#video-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #1a1e0f;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.6s ease both;
}

#wedding-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

#video-placeholder {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: fadeIn 1s ease both;
}
.vp-inner { padding: 2rem; }
.vp-ornament { color: var(--green); font-size: 1.5rem; margin-bottom: 1rem; animation: spin 20s linear infinite; }
.vp-subtitle { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--green); margin-bottom: 1.5rem; }
.vp-names { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 7rem); font-weight: 300; color: var(--cream); line-height: 1.05; letter-spacing: 0.06em; margin-bottom: 1rem; }
.vp-names span { font-style: italic; font-size: 0.6em; color: var(--green); }
.vp-date { font-size: 0.8rem; letter-spacing: 0.35em; color: var(--green); }

#skip-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(240,237,209,0.6);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(240,237,209,0.2);
  border-radius: 2px;
  transition: color 0.3s, border-color 0.3s;
}
#skip-btn:hover { color: var(--cream); border-color: rgba(240,237,209,0.5); }

#video-screen.closing {
  animation: fadeOut 0.7s ease forwards;
}

/* ─── ОБЩИЕ СЕКЦИИ ───────────────────────────────────────────── */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}
.section-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.ornament {
  color: var(--olive);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  display: block;
  animation: spin 20s linear infinite;
}
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  color: var(--olive-dark);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.section-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.divider {
  width: 50px;
  height: 1px;
  background: var(--olive);
  opacity: 0.35;
  margin: 1.5rem auto;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero-section { background: var(--cream); padding-top: 6rem; padding-bottom: 6rem; }
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--olive-dark);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.hero-names em { font-style: italic; font-size: 0.6em; color: var(--olive); display: block; }
.hero-date {
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--olive);
  margin-bottom: 1rem;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.countdown-item span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 300;
  color: var(--olive-dark);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}
.countdown-item small {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}
.countdown-sep {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--olive);
  opacity: 0.5;
  padding-bottom: 0.6rem;
}

/* ─── ПРОГРАММА ──────────────────────────────────────────────── */
.program-section { background: #e8e6c4; }

.timeline {
  margin-top: 2.5rem;
  position: relative;
  text-align: left;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
  position: relative;
}
.timeline-item:nth-child(even) .timeline-time  { grid-column: 3; text-align: left; }
.timeline-item:nth-child(even) .timeline-dot   { grid-column: 2; grid-row: 1; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 1; grid-row: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-time    { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-dot     { grid-column: 2; }
.timeline-item:nth-child(odd) .timeline-content { grid-column: 3; }

.timeline-time {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--olive);
  font-weight: 400;
  padding-top: 2px;
}
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--olive);
  border: 2px solid #e8e6c4;
  outline: 1px solid var(--olive);
  margin-top: 5px;
  justify-self: center;
}
.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--olive-dark);
  margin-bottom: 0.3rem;
}
.timeline-content p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── ЛОКАЦИЯ ────────────────────────────────────────────────── */
.location-section { background: var(--cream); }
.location-card {
  background: var(--white);
  border: 1px solid rgba(107,120,69,0.15);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  box-shadow: 0 4px 24px rgba(74,85,48,0.06);
}
.location-icon svg {
  width: 32px;
  height: 32px;
  color: var(--olive);
}
.location-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--olive-dark);
}
.location-address {
  font-size: 0.88rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.btn-outline {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-dark);
  border: 1px solid var(--olive);
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover { background: var(--olive); color: var(--white); }

/* ─── ДРЕСС-КОД ──────────────────────────────────────────────── */
.dresscode-section { background: #e8e6c4; }

.palette {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.swatch-color {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(74,85,48,0.15);
  transition: transform 0.3s;
}
.swatch:hover .swatch-color { transform: scale(1.08); }
.swatch-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--olive-dark);
}
.swatch-pantone {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-light);
  text-transform: uppercase;
}
.dresscode-note {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ─── ПОЖЕЛАНИЯ ──────────────────────────────────────────────── */
.wishes-section { background: var(--cream); }
.wishes-quote {
  max-width: 520px;
  margin: 0 auto;
  border-left: 2px solid var(--olive);
  padding: 1.5rem 2rem;
  text-align: left;
}
.wishes-quote p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  font-style: italic;
}
.wishes-quote p + p { margin-top: 1rem; }

/* ─── ВАЖНАЯ ИНФО ────────────────────────────────────────────── */
.info-section { background: #e8e6c4; }
.info-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid rgba(107,120,69,0.15);
  border-radius: 4px;
  padding: 1.2rem 1.8rem;
  min-width: 220px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 12px rgba(74,85,48,0.06);
}
.info-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(74,85,48,0.12); }
.info-card-icon svg { width: 28px; height: 28px; color: var(--olive); }
.info-card-title { font-family: var(--font-display); font-size: 1rem; color: var(--olive-dark); }
.info-card-desc { font-size: 0.78rem; color: var(--text-light); margin-top: 0.2rem; }

/* ─── RSVP ───────────────────────────────────────────────────── */
.rsvp-section {
  background: var(--olive-dark);
  padding: 0;
}

.rsvp-inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 5rem 2rem 5rem;
  text-align: center;
}

/* заголовок-шапка */
.rsvp-header {
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.rsvp-header-deco svg {
  width: 70px;
  height: 70px;
  margin-bottom: 0.5rem;
}
.rsvp-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 10vw, 4.8rem);
  color: var(--cream);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.rsvp-deadline {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,237,209,0.45);
}
.rsvp-deadline span { color: var(--green); }

/* поля формы */
.rsvp-form { text-align: left; }

.rsvp-field {
  margin-bottom: 2.8rem;
  position: relative;
}

.rsvp-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: rgba(240,237,209,0.5);
  margin-bottom: 1rem;
}

.rsvp-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(240,237,209,0.18);
  padding: 0.5rem 0 0.7rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--cream);
  transition: border-color 0.3s;
  outline: none;
  resize: none;
}
.rsvp-input::placeholder { color: rgba(240,237,209,0.22); font-style: italic; }
.rsvp-input:focus { border-bottom-color: var(--green); }

.rsvp-textarea {
  display: block;
  line-height: 1.7;
  min-height: 80px;
}

.rsvp-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--green);
  transition: width 0.4s var(--ease-out);
}
.rsvp-input:focus ~ .rsvp-underline { width: 100%; }

/* радио-кнопки */
.rsvp-radio-group {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0.4rem;
}
.rsvp-radio-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
}
.rsvp-radio-item input[type="radio"] { display: none; }

.rsvp-radio-circle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(240,237,209,0.35);
  position: relative;
  transition: border-color 0.25s;
}
.rsvp-radio-circle::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.2s, transform 0.2s;
}
.rsvp-radio-item input:checked ~ .rsvp-radio-circle {
  border-color: var(--green);
}
.rsvp-radio-item input:checked ~ .rsvp-radio-circle::after {
  opacity: 1;
  transform: scale(1);
}

.rsvp-radio-text {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(240,237,209,0.75);
  transition: color 0.2s;
}
.rsvp-radio-item input:checked ~ .rsvp-radio-circle + .rsvp-radio-text,
.rsvp-radio-item input:checked ~ .rsvp-radio-text {
  color: var(--cream);
}

/* кнопка */
.rsvp-submit-wrap { margin-top: 1rem; }

.btn-submit {
  width: 100%;
  padding: 1.15rem;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid rgba(240,237,209,0.3);
  border-radius: 0;
  transition: color 0.5s ease, border-color 0.5s ease, letter-spacing 0.5s ease, box-shadow 0.5s ease;
}
.btn-submit:hover {
  color: var(--green);
  border-color: rgba(189,204,109,0.6);
  box-shadow: 0 0 28px rgba(189,204,109,0.08);
  letter-spacing: 0.32em;
}
.btn-submit:active { opacity: 0.7; }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.rsvp-message {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  font-size: 0.82rem;
  text-align: center;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}
.rsvp-message.success { color: var(--green); border-color: rgba(189,204,109,0.25); background: rgba(189,204,109,0.07); }
.rsvp-message.error   { color: #f09090; border-color: rgba(220,80,80,0.2); background: rgba(220,80,80,0.07); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--olive-dark);
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(240,237,209,0.1);
}
.footer-ornament { color: var(--green); font-size: 1rem; margin-bottom: 1rem; }
.footer p { font-size: 0.78rem; letter-spacing: 0.25em; color: rgba(240,237,209,0.5); text-transform: uppercase; }
.footer-sub { margin-top: 0.4rem; font-style: italic; letter-spacing: 0.15em !important; text-transform: none !important; font-family: var(--font-display); font-size: 0.9rem !important; }

/* ─── SCROLL ANIMATIONS ──────────────────────────────────────── */

/* Base — invisible until observed */
[data-anim] {
  will-change: transform, opacity, filter;
}

/* up: мягкий подъём с еле заметным размытием */
[data-anim="up"] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(2px);
  transition:
    opacity   1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter    1.1s var(--ease-out);
}
[data-anim="up"].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* from-left: нежный въезд слева */
[data-anim="from-left"] {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity   1.0s var(--ease-out),
    transform 1.0s var(--ease-out);
}
[data-anim="from-left"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* from-right: нежный въезд справа */
[data-anim="from-right"] {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity   1.0s var(--ease-out),
    transform 1.0s var(--ease-out);
}
[data-anim="from-right"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* scale: мягкое масштабирование для свотчей */
[data-anim="scale"] {
  opacity: 0;
  transform: scale(0.82) translateY(16px);
  transition:
    opacity   1.0s var(--ease-out),
    transform 1.0s var(--ease-out);
}
[data-anim="scale"].is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* spin-in: для орнаментов ✦ */
[data-anim="spin-in"] {
  opacity: 0;
  transform: scale(0.4) rotate(-180deg);
  transition:
    opacity   1.1s var(--ease-out),
    transform 1.1s var(--ease-out);
}
[data-anim="spin-in"].is-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* reveal: clip-path для заголовков секций */
[data-anim="reveal"] {
  clip-path: inset(0 0 110% 0);
  transform: translateY(10px);
  transition:
    clip-path 1.1s var(--ease-out),
    transform 1.1s var(--ease-out);
}
[data-anim="reveal"].is-visible {
  clip-path: inset(0 0 0% 0);
  transform: translateY(0);
}

/* line: для разделителя — медленно растёт */
[data-anim="line"] {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.3s var(--ease-out);
}
[data-anim="line"].is-visible {
  transform: scaleX(1);
}

/* pop: для точек таймлайна — мягкий, без резкого bounce */
[data-anim="pop"] {
  opacity: 0;
  transform: scale(0.1);
  transition:
    opacity   0.7s var(--ease-out),
    transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1);
}
[data-anim="pop"].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* stagger delays — чуть просторнее */
[data-delay="1"] { transition-delay: 0.18s; }
[data-delay="2"] { transition-delay: 0.34s; }
[data-delay="3"] { transition-delay: 0.50s; }
[data-delay="4"] { transition-delay: 0.66s; }
[data-delay="5"] { transition-delay: 0.82s; }

/* ─── TIMELINE LINE DRAW ─────────────────────────────────────── */
.timeline { position: relative; }
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(107,120,69,0.12);
  transform: translateX(-50%);
  overflow: hidden;
}
.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to bottom, var(--olive) 0%, rgba(107,120,69,0.3) 100%);
  transition: height 2.4s var(--ease-out);
}
.timeline-line-fill.is-drawn { height: 100%; }

/* ─── UTILITIES ──────────────────────────────────────────────── */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ─── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .timeline-line { left: 12px; transform: none; }
  .timeline-item {
    grid-template-columns: 24px 1fr;
    gap: 0.8rem;
  }
  .timeline-item:nth-child(odd) .timeline-time,
  .timeline-item:nth-child(even) .timeline-time {
    display: none;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }
  .countdown { gap: 0.3rem; }
  .countdown-sep { font-size: 1.5rem; padding-bottom: 0.4rem; }
  .info-card { min-width: 100%; }
  .palette { gap: 1.5rem; }
  .swatch-color { width: 65px; height: 65px; }
  .wishes-quote { padding: 1rem 1.2rem; }
}
