/* ═══════════════════════════════════════
   ПЕРЕМЕННЫЕ — Закатная палитра
════════════════════════════════════════ */
:root {
  --coral:    #C8603A;
  --gold:     #D4A853;
  --cream:    #FDF6EE;
  --warm:     #FAF0E2;
  --sand:     #F0E2CC;
  --dark:     #2C1F14;
  --text:     #4A3728;
  --text-light: #8B6E5A;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Montserrat', sans-serif;
}

/* ═══════════════════════════════════════
   СБРОС И БАЗА
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════
   СЕКЦИИ
════════════════════════════════════════ */
.section-light { background: var(--cream);  padding: 100px 0; }
.section-warm  { background: var(--warm);   padding: 100px 0; }
.section-dark  {
  background: var(--dark);
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--coral);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.04em;
}
.section-title--light { color: var(--sand); }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════
   HERO
════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    160deg,
    #3D1C0E 0%,
    #7A2E14 25%,
    #C8603A 55%,
    #D4A853 80%,
    #F2D5A0 100%
  );
  overflow: hidden;
}

/* зернистость */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 40px 24px 120px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  flex-wrap: wrap;
}

.name-left, .name-right {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 40px rgba(0,0,0,0.25);
}

.hero-ampersand {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1;
}

.hero-date {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.75);
  margin-top: 28px;
  text-transform: uppercase;
}

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.hero-scroll:hover { color: rgba(255,255,255,0.9); }
.hero-scroll svg {
  width: 20px;
  height: 20px;
  animation: bounce 2s infinite;
}

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

/* ── Солнце ── */
#sun {
  position: absolute;
  right: 10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle,
    #FFD040 0%,
    #FFCA00 28%,
    #FFC000 52%,
    #FFB000 70%,
    #FF9800 84%,
    rgba(255,140,0,0) 100%
  );
  box-shadow:
    0 0 80px  60px rgba(255,200,0,.18),
    0 0 180px 120px rgba(255,160,0,.10),
    0 0 340px 180px rgba(255,120,0,.06);
  z-index: 1;
  pointer-events: none;
  animation: sun-pulse 3.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes sun-pulse {
  0%,100% {
    box-shadow:
      0 0 80px  60px rgba(255,200,0,.18),
      0 0 180px 120px rgba(255,160,0,.10),
      0 0 340px 180px rgba(255,120,0,.06);
  }
  50% {
    box-shadow:
      0 0 100px 75px rgba(255,200,0,.24),
      0 0 220px 150px rgba(255,160,0,.13),
      0 0 400px 220px rgba(255,120,0,.08);
  }
}

/* ── Ночной оверлей ── */
#nightOverlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 22, 0.82);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  will-change: opacity;
}

/* Волны */
.waves-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  pointer-events: none;
  z-index: 3;
  will-change: filter;
}
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.w1p { fill: rgba(255,255,255,0.07); }
.w2p { fill: rgba(90,173,204,0.18); }
.w3p { fill: #5AADCC; }
.wsp { fill: rgba(255,255,255,0.22); }

/* ═══════════════════════════════════════
   GUESTS — Уважаемые гости + полароиды
════════════════════════════════════════ */
.guests-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  text-align: center;
  max-width: 860px;
  margin: 0 auto 64px;
}


/* Полароидная галерея */
.polaroid-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 16px;
}

.polaroid-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.polaroid-item {
  opacity: 0;
  transform: rotate(var(--rot, 0deg)) translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 10px 28px rgba(74, 55, 40, 0.18));
  flex-shrink: 0;
}

.polaroid-item.visible {
  opacity: 1;
  transform: rotate(var(--rot, 0deg)) translateY(0);
}

.polaroid-item img {
  display: block;
  width: 200px;
  height: auto;
}

.polaroid-landscape img {
  width: 480px;
}


/* ═══════════════════════════════════════
   COUNTDOWN — обратный отсчёт (светлый фон)
════════════════════════════════════════ */
#countdown {
  position: relative;
  padding: 80px 0;
  background: var(--cream);
  overflow: hidden;
}

#countdown .container { position: relative; z-index: 1; }

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 32px);
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

/* увеличенный заголовок таймера */
.countdown-label-large {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  letter-spacing: 0.18em;
  margin-bottom: 36px;
}

.countdown-num {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 6.5vw, 3.8rem);
  font-weight: 300;
  color: var(--coral);
  line-height: 1;
  transition: transform 0.15s ease;
  letter-spacing: -0.02em;
}
.countdown-num.bump {
  transform: scale(1.15);
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

.countdown-sep {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 24px;
  user-select: none;
}

/* ═══════════════════════════════════════
   SCHEDULE — Таймлайн с кружочками
════════════════════════════════════════ */
.tl-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 480px;
  margin: 0 auto;
}

.tl-step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1), transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.tl-step.tl-visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-circle {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), filter 0.35s;
}
.tl-circle:hover {
  transform: scale(1.07);
  filter: drop-shadow(0 6px 18px rgba(212,168,83,0.45));
}

.tl-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}

.tl-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 22px;
}

.tl-time {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.tl-event {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.02em;
}

.tl-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.tl-connector-wrap {
  width: 88px;
  height: 120px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  position: relative;
  z-index: 0;
  overflow: visible;
  margin: -30px 0;
}

.tl-wave-svg {
  width: 88px;
  height: 120px;
  overflow: visible;
}

/* ═══════════════════════════════════════
   ORNAMENT DIVIDER
════════════════════════════════════════ */
.ornament-divider {
  padding: 16px 24px;
}
.ornament-divider--warm  { background: var(--warm); }
.ornament-divider--light { background: var(--cream); }

.ornament-divider svg {
  width: 100%;
  height: auto;
  max-width: 760px;
  display: block;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   DRESSCODE
════════════════════════════════════════ */
.dresscode-content {
  text-align: center;
}
.dresscode-intro {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 44px;
}
.dresscode-palette-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 40px;
}
.dresscode-palette-title em {
  font-style: italic;
  color: var(--coral);
}
.dresscode-colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.girls-colors {
  max-width: calc(4 * 120px + 3 * 20px);
  margin: 0 auto 48px;
}
.men-colors {
  margin: 0 auto;
}
.dresscode-colors img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.dresscode-men-title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 32px;
}

.color-circle {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.color-circle.visible {
  opacity: 1;
  transform: scale(1);
}


#dresscode {
  padding-bottom: 0;
}
.dresscode-people {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 3232 / 2002;
  margin: 60px auto 0;
  overflow: hidden;
}

.person-figure {
  position: absolute;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.person-figure.visible {
  opacity: 1;
  transform: translateX(0);
}
.person-figure img {
  display: block;
  width: 100%;
  height: 100%;
}

.person-figure:nth-child(1) { left: 0%;     top: 5.99%;  width: 32.74%; height: 94.01%; z-index: 1; }
.person-figure:nth-child(2) { left: 10.77%; top: 13.04%; width: 39.05%; height: 84.17%; z-index: 2; }
.person-figure:nth-child(3) { left: 26.30%; top: 5.99%;  width: 31.78%; height: 91.21%; z-index: 5; }
.person-figure:nth-child(4) { left: 39.94%; top: 0%;     width: 34.84%; height: 100%;   z-index: 4; }
.person-figure:nth-child(5) { left: 50.74%; top: 13.04%; width: 38.00%; height: 84.97%; z-index: 3; }
.person-figure:nth-child(6) { left: 64.74%; top: 11.84%; width: 35.27%; height: 85.36%; z-index: 2; }

/* ═══════════════════════════════════════
   LOCATION — фото ресторана
════════════════════════════════════════ */
.restaurant-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 44px;
  box-shadow: 0 18px 56px rgba(74, 55, 40, 0.22);
}

.restaurant-photo {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(6%) saturate(1.1) brightness(1.04);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.restaurant-photo-wrap:hover .restaurant-photo {
  transform: scale(1.03);
}

/* тонкое тёплое виньетирование по краям */
.restaurant-photo-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 55%,
    rgba(44, 31, 20, 0.18) 100%
  );
  pointer-events: none;
}

.location-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.location-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.location-card h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
}
.location-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.btn-location {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid var(--coral);
  color: var(--coral);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}
.btn-location:hover {
  background: var(--coral);
  color: #fff;
}

/* ═══════════════════════════════════════
   ORGANIZER
════════════════════════════════════════ */
.organizer-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.organizer-text {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 300;
  line-height: 2;
  color: var(--text);
  letter-spacing: 0.02em;
}

.organizer-phone {
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.3s;
}
.organizer-phone:hover { color: var(--coral); }

/* ═══════════════════════════════════════
   RSVP
════════════════════════════════════════ */
.rsvp-date {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.rsvp-subtitle {
  text-align: center;
  color: rgba(253,246,238,0.55);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-top: -40px;
  margin-bottom: 48px;
}

.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-label {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 14px 18px;
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-attendance {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}
.radio-label input[type="radio"] { display: none; }
.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
}
.radio-label input:checked + .radio-custom {
  border-color: var(--gold);
  background: var(--gold);
}
.radio-label input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--dark);
  border-radius: 50%;
}

/* Чекбоксы алкоголя */
.form-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.3);
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.checkbox-label input:checked + .checkbox-custom {
  border-color: var(--gold);
  background: var(--gold);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 8px;
  height: 12px;
  border: 2px solid var(--dark);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.btn-submit {
  padding: 16px;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}
.btn-submit:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.rsvp-success {
  text-align: center;
  padding: 48px 0;
}
.rsvp-success p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  line-height: 1.6;
}
.rsvp-success--sad p {
  color: rgba(253, 246, 238, 0.55);
}

/* ═══════════════════════════════════════
   CLOSING — До скорой встречи
════════════════════════════════════════ */
#closing {
  position: relative;
}

.closing-photo-wrap {
  position: relative;
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
}

.closing-photo {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.closing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 30%,
    rgba(28, 16, 8, 0.65) 100%
  );
}

.closing-text {
  background: #1C1008;
  text-align: center;
  padding: 64px 24px 80px;
}

.closing-farewell {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--sand);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.closing-names {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  color: rgba(212, 168, 83, 0.8);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
footer {
  background: #1C1008;
  height: 1px;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   АНИМАЦИИ ПОЯВЛЕНИЯ
════════════════════════════════════════ */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-up    { animation-name: fadeUp; }
.reveal-left  { animation-name: fadeLeft; }
.reveal-right { animation-name: fadeRight; }

.hero-subtitle   { animation-delay: 0.2s; }
.name-left       { animation-delay: 0.5s; }
.hero-ampersand  { animation-delay: 0.8s; }
.name-right      { animation-delay: 0.5s; }
.hero-date       { animation-delay: 1.1s; }
.hero-scroll     { animation-delay: 1.6s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ — планшеты
════════════════════════════════════════ */
@media (max-width: 768px) {
  .polaroid-item img      { width: 160px; }
  .polaroid-landscape img { width: 340px; }
  .polaroid-grid          { gap: 16px; }
  .polaroid-row           { gap: 16px; }
  .dresscode-colors img   { width: 90px; height: 90px; }
  .girls-colors           { max-width: calc(4 * 90px + 3 * 20px); }

}

/* ═══════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ — телефоны (9:16)
════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── База ─────────────────────────────── */
  .container { padding: 0 18px; }
  .section-light, .section-warm, .section-dark { padding: 60px 0; }
  .section-title { font-size: 1.85rem; margin-bottom: 36px; }

  /* ── Hero ─────────────────────────────── */
  #sun {
    width: 240px;
    height: 240px;
    right: -50px;
    top: auto;
  }
  .hero-content { padding: 28px 18px 90px; }
  .hero-subtitle { font-size: 1.3rem; margin-bottom: 20px; }
  .hero-names    { gap: 12px; }
  .hero-scroll   { margin-top: 40px; }

  /* ── Уважаемые гости ─────────────────── */
  .guests-text {
    font-size: 1rem;
    margin-bottom: 36px;
    line-height: 1.7;
  }
  .guests-text br { display: none; }

  /* ── Полароиды ───────────────────────── */
  .polaroid-mobile-hide  { display: none; }
  .polaroid-item         { filter: none; }
  .polaroid-grid { gap: 12px; }
  .polaroid-row  { gap: 12px; flex-wrap: wrap; }
  /* 2 фото в ряд: (100vw - 2×18px отступ - 12px gap) / 2 */
  .polaroid-item img      { width: calc(50vw - 30px); }
  /* горизонтальная — почти во всю ширину */
  .polaroid-landscape img { width: calc(100vw - 48px); max-width: 360px; }

  /* ── Волны hero ──────────────────────── */
  .waves-container       { height: 60px; bottom: -1px; }

  /* ── Таймер ──────────────────────────── */
  .countdown-sep         { display: none; }
  .countdown-grid        { gap: 8px; flex-wrap: nowrap; }
  .countdown-item        { min-width: 0; }
  .countdown-label-large { font-size: 0.78rem; letter-spacing: 0.14em; margin-bottom: 28px; }
  .countdown-num         { font-size: 2.4rem; }
  .countdown-num.bump    { transform: none; }
  .countdown-label       { font-size: 0.58rem; letter-spacing: 0.1em; }

  /* ── Таймлайн (Программа дня) ────────── */
  .tl-wrap               { max-width: 100%; }
  .tl-step               { gap: 14px; }
  .tl-circle             { width: 84px; height: 84px; }
  .tl-icon               { width: 84px; height: 84px; }
  .tl-connector-wrap     { width: 60px; height: 88px; margin: -24px 0; }
  .tl-wave-svg           { width: 60px; height: 88px; }
  .tl-info               { padding-top: 10px; gap: 4px; }
  .tl-time               { font-size: 1.3rem; }
  .tl-event              { font-size: 0.88rem; }
  .tl-desc               { font-size: 0.75rem; }

  /* ── Дресс-код ───────────────────────── */
  .dresscode-colors img  { width: 68px; height: 68px; }
  .dresscode-colors      { gap: 10px; }
  .girls-colors          { max-width: calc(4 * 68px + 3 * 10px); margin-bottom: 32px; }
  .men-colors            { max-width: calc(4 * 68px + 3 * 10px); }
  .dresscode-intro       { font-size: 1.2rem; margin-bottom: 32px; }
  .dresscode-palette-title { font-size: 1.1rem; margin-bottom: 28px; }
  .dresscode-men-title   { font-size: 1.1rem; margin-bottom: 24px; }

  /* ── Место проведения ────────────────── */
  .location-card         { padding: 0 4px; }
  .btn-location          { display: block; text-align: center; }

  /* ── Форма ───────────────────────────── */
  .form-attendance       { flex-direction: column; gap: 14px; }
  .form-checkboxes       { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rsvp-subtitle         { font-size: 0.78rem; margin-top: 12px; }

  /* ── Финал ───────────────────────────── */
  .closing-text          { padding: 44px 18px 60px; }
  #closing .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
