/* ============================================================
   OLD MONEY WEDDING — style.css
   Palette: Parchment / Bottle Green / Bronze
   Fonts: Playfair Display (headings) + Lato (body)
   ============================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root,
[data-theme="light"] {
  /* Surfaces */
  --color-bg: #f5f0e8;
  --color-surface: #fdfaf5;
  --color-surface-offset: #ede8dc;
  --color-divider: #cdc5b2;
  --color-border: #b8af9a;

  /* Text */
  --color-text: #1a1a1a;
  --color-text-muted: #5a5446;
  --color-text-faint: #9e9585;

  /* Accents */
  --color-accent: #1d3a2f;
  /* bottle green */
  --color-accent-hover: #142a22;
  --color-bronze: #8b6914;
  --color-bronze-light: #c4971e;

  /* Fonts */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
  --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(3.5rem, 1rem + 8vw, 9rem);

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

  /* Borders: no rounding > 4px per Old Money spec */
  --radius: 0px;
  --radius-sm: 2px;

  /* Transitions */
  --transition: 200ms ease;

  /* Content width */
  --content: 1100px;
  --content-narrow: 720px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.08);
  --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.1);
}

/* ── DARK THEME ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --color-bg: #0f0e0b;
  --color-surface: #181612;
  --color-surface-offset: #1e1c17;
  --color-divider: #2e2b23;
  --color-border: #3a3730;
  --color-text: #e8e0d0;
  --color-text-muted: #a09484;
  --color-text-faint: #6a6258;
  --color-accent: #4a7c59;
  --color-accent-hover: #3d6649;
  --color-bronze: #c9993a;
  --color-bronze-light: #e0b55a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f0e0b;
    --color-surface: #181612;
    --color-surface-offset: #1e1c17;
    --color-divider: #2e2b23;
    --color-border: #3a3730;
    --color-text: #e8e0d0;
    --color-text-muted: #a09484;
    --color-text-faint: #6a6258;
    --color-accent: #4a7c59;
    --color-accent-hover: #3d6649;
    --color-bronze: #c9993a;
    --color-bronze-light: #e0b55a;
  }
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 400;
}

p,
li {
  text-wrap: pretty;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

::selection {
  background: rgba(139, 105, 20, 0.2);
  color: var(--color-text);
}

:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */

/* Small caps helper */
.caps {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── LAYOUT HELPERS ─────────────────────────────────────────── */
.section-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section--tinted {
  background-color: var(--color-surface);
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s ease;
}

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--space-8);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Logo */
.logo {
  color: var(--color-text);
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--transition), opacity var(--transition);
}

.logo:hover {
  color: var(--color-accent);
}

/* Nav */
.main-nav ul {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-bronze);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
  flex-shrink: 0;
  transition: color var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-border);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  background: transparent;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition);
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  color: var(--color-surface);
}

.btn-submit {
  margin-top: var(--space-4);
  width: 100%;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-bg);
}

/* CSS noise overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

[data-theme="dark"] .hero-noise {
  opacity: 0.06;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-20) var(--space-8) var(--space-12);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero-pre {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.12em;
  text-align: center;
}

.hero-ampersand {
  font-style: italic;
  font-weight: 300;
  color: var(--color-bronze);
  font-size: 0.75em;
}

/* Кольца между именами */
.hero-rings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 0.18em;
  position: relative;
  top: -0.05em;
}

.rings-svg {
  width: clamp(44px, 5.5vw, 80px);
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(180, 140, 40, 0.25));
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: var(--color-bronze);
  margin: var(--space-8) auto;
  opacity: 0.6;
}

.hero-date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.hero-place {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
}

/* ── COUNTDOWN ──────────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.countdown-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-accent);
  line-height: 1;
  min-width: 2.5ch;
  text-align: center;
}

.countdown-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-bronze);
  opacity: 0.5;
  line-height: 1;
  padding-bottom: var(--space-5);
  /* align with numbers, not labels */
}

/* ── SECTION HEADERS ────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-rule {
  flex: 1;
  height: 1px;
  background-color: var(--color-divider);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: nowrap;
}

/* ── STORY ──────────────────────────────────────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-1);
}

.story-item {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  transition: border-color var(--transition);
}

.story-item:hover {
  border-color: var(--color-bronze);
}

.story-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-bronze);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  min-width: 1.5ch;
}

.story-heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.story-body p {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 52ch;
}

/* ── DETAILS CARDS ──────────────────────────────────────────── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-1);
  margin-bottom: var(--space-10);
}

.detail-card {
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  text-align: center;
  transition: border-color var(--transition);
}

.detail-card:hover {
  border-color: var(--color-bronze);
}

.detail-icon {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-bronze);
}

.detail-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.detail-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.detail-sub {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
}

.rsvp-note {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.rsvp-note strong {
  font-weight: 400;
  color: var(--color-accent);
}

/* ── TIMELINE ────────────────────────────────────────────────── */
.timeline {
  max-width: var(--content-narrow);
  margin: 0 auto;
  list-style: none;
  position: relative;
}

/* vertical spine */
.timeline::before {
  content: '';
  position: absolute;
  left: 6.5rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-divider);
}

.timeline-item {
  display: grid;
  grid-template-columns: 6rem 1px 1fr;
  gap: 0 var(--space-8);
  align-items: start;
  padding-bottom: var(--space-12);
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-time {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-bronze);
  text-align: right;
  padding-top: 2px;
  line-height: 1.3;
}

.timeline-line {
  width: 1px;
  background: var(--color-accent);
  position: relative;
  align-self: stretch;
}

/* dot on the spine */
.timeline-line::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border: 1px solid var(--color-accent);
  background: var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-bg);
}

.section--tinted .timeline-line::before,
[data-theme="dark"] .timeline-line::before {
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-surface);
}

.timeline-content {
  padding-left: var(--space-2);
  padding-bottom: var(--space-8);
}

.timeline-heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.timeline-desc {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  max-width: 48ch;
}

.timeline-place {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ── VENUES / MAPS ──────────────────────────────────────────── */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.venue-card {
  border: 1px solid var(--color-divider);
  background: var(--color-bg);
  overflow: hidden;
}

.venue-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.venue-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-bronze);
  opacity: 0.6;
  line-height: 1;
  flex-shrink: 0;
}

.venue-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.venue-addr {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
}

.map-wrap {
  position: relative;
  width: 100%;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  border: none;
  filter: saturate(0.6) contrast(0.9);
  transition: filter 0.3s ease;
}

.map-wrap iframe:hover {
  filter: saturate(0.9) contrast(1);
}

/* ── RSVP FORM ──────────────────────────────────────────────── */
/* ── VENUE ACTIONS (route buttons) ─────────────────────────── */
.venue-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.btn-route {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-route--navi {
  border-color: var(--color-bronze);
  color: var(--color-bronze);
}

.btn-route--navi:hover {
  background: var(--color-bronze);
  color: var(--color-bg);
}

.btn-route--maps {
  border-color: var(--color-green);
  color: var(--color-green);
}

.btn-route--maps:hover {
  background: var(--color-green);
  color: var(--color-bg);
}

[data-theme="dark"] .venue-actions {
  background: var(--color-surface);
  border-top-color: var(--color-border);
}

@media (max-width: 400px) {
  .venue-actions {
    flex-direction: column;
  }

  .btn-route {
    flex: unset;
    width: 100%;
  }
}

.btn-route--full {
  flex: 1;
  width: 100%;
}


.rsvp-intro {
  text-align: center;
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
  line-height: 1.8;
}

.rsvp-intro strong {
  font-weight: 400;
  color: var(--color-accent);
}

.rsvp-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.field-label span[aria-hidden] {
  color: var(--color-bronze);
}

.field-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 300;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.field-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.field-input::placeholder {
  color: var(--color-text-faint);
  font-weight: 300;
}

.field-input--narrow {
  width: 120px;
}

.field-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field-hint {
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

/* Radio group */
.field-radio-group {
  border: none;
  padding: 0;
}

.field-radio-group legend {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  float: left;
  width: 100%;
}

.radio-options {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  clear: both;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.radio-label:hover {
  color: var(--color-text);
}

.radio-label input[type="radio"] {
  width: 14px;
  height: 14px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* RSVP success */
.rsvp-success {
  text-align: center;
  padding: var(--space-12) var(--space-8);
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
}

.rsvp-success[hidden] {
  display: none;
}

.success-icon {
  display: flex;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.success-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.success-text {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 42ch;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-accent);
  color: #e8e0d0;
  padding-block: var(--space-16);
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.footer-logo {
  opacity: 0.7;
  color: #e8e0d0;
  margin-bottom: var(--space-4);
}

.footer-names {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: #f5f0e8;
  letter-spacing: 0.04em;
}

.footer-date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 224, 208, 0.65);
}

.footer-rule {
  width: 60px;
  height: 1px;
  background: rgba(232, 224, 208, 0.3);
  margin: var(--space-2) 0;
}

.footer-quote {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 300;
  font-style: italic;
  color: rgba(232, 224, 208, 0.8);
  line-height: 1.8;
}

.footer-ref {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  font-style: normal;
  letter-spacing: 0.1em;
  color: rgba(232, 224, 208, 0.5);
}

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

/* Hero fade-in sequence */
.fade-in {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.5s;
}

.delay-3 {
  transition-delay: 0.8s;
}

.delay-4 {
  transition-delay: 1.1s;
}

/* Scroll fade-in (opacity only, no translate per spec) */
.fade-in-scroll {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
}

/* ── ДРЕСС-КОД ──────────────────────────────────────────────── */

/* ---- Карточка в деталях торжества ---- */
.detail-card--dresscode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.detail-sub--dresscode {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.detail-swatches {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
}

.detail-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.detail-swatch-item span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-swatch {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.detail-swatch--white { background: #f2ede4; border: 1px solid var(--color-divider); }
.detail-swatch--beige { background: #c8a97a; }
.detail-swatch--red   { background: #9b2828; }

/* ---- Секция «Пожелания к образу» ---- */
.dresscode-body {
  max-width: var(--content-narrow);
  margin: 0 auto;
  text-align: center;
}

.dresscode-lead {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.65;
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.dresscode-note {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.dresscode-swatches {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
}

.swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.swatch {
  position: relative;
  width: 64px;
  height: 64px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.swatch--white { background: #f2ede4; border: 1px solid var(--color-divider); }
.swatch--beige { background: #c8a97a; }
.swatch--red   { background: #9b2828; }

/* Общий стиль перечёркивания (SVG внутри .swatch и .detail-swatch) */
.swatch-cross {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.swatch-cross line {
  stroke: rgba(255,255,255,0.85);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.detail-swatch--white .swatch-cross line,
.swatch--white .swatch-cross line {
  stroke: rgba(0,0,0,0.35);
}

.swatch-item span {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */

/* Tablet & below */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 var(--space-5);
    height: 56px;
  }

  .main-nav ul {
    gap: var(--space-5);
  }

  .nav-link {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .section-inner {
    padding: 0 var(--space-5);
  }

  .hero-inner {
    padding: var(--space-16) var(--space-5) var(--space-10);
  }

  .timeline {
    max-width: 100%;
  }

  .timeline::before {
    left: 4.5rem;
  }

  .timeline-item {
    grid-template-columns: 4rem 1px 1fr;
    gap: 0 var(--space-5);
  }

  .countdown {
    gap: var(--space-4);
  }

  .countdown-sep {
    display: none;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
    padding: 0 var(--space-4);
  }

  /* Mobile nav toggle via hamburger — hidden on small screens */
  .main-nav.open {
    display: block;
    position: fixed;
    inset: 56px 0 0;
    background: var(--color-bg);
    z-index: 99;
    padding: var(--space-8);
    border-top: 1px solid var(--color-divider);
  }

  .main-nav.open ul {
    flex-direction: column;
    gap: var(--space-6);
    align-items: flex-start;
  }

  .main-nav.open .nav-link {
    font-size: var(--text-sm);
  }

  /* Hamburger button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-divider);
    background: none;
    cursor: pointer;
    color: var(--color-text-muted);
  }

  .menu-toggle span {
    display: block;
    width: 16px;
    height: 1px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 5.5rem);
  }

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

  .story-item {
    flex-direction: column;
    gap: var(--space-3);
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    display: block;
    padding-bottom: var(--space-8);
    border-left: 1px solid var(--color-divider);
    padding-left: var(--space-6);
    margin-left: var(--space-2);
  }

  .timeline-line {
    display: none;
  }

  .timeline-time {
    text-align: left;
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
  }

  .countdown {
    gap: var(--space-3);
  }

  .section-title {
    font-size: var(--text-lg);
    white-space: normal;
    text-align: center;
  }

  .section-header {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .section-rule {
    width: 60px;
    flex: none;
  }

  