/* ============================================
   WEDDING INVITATION — Вадим & Дарья
   ============================================ */

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

:root {
  --gold:        #c9a84c;
  --gold-light:  #e8cc80;
  --gold-dark:   #9a7430;
  --cream:       #f8f3e8;
  --ivory:       #fdfaf4;
  --dark:        #1a1712;
  --dark-mid:    #2e2a22;
  --text-dark:   #2c2416;
  --text-soft:   #6b5e46;
  --font-script: 'Cormorant Garamond', serif;
  --font-display:'Playfair Display', serif;
  --font-body:   'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ─────────────────────────────────────────
   ENVELOPE SCREEN
───────────────────────────────────────── */
#envelope-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #2a2318 0%, #0f0d09 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#envelope-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Background floating particles */
.env-bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-light);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float linear infinite;
}

@keyframes particle-float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Wrapper */
#envelope-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  cursor: pointer;
}

/* ── Envelope ── */
#envelope {
  position: relative;
  width: min(380px, 90vw);
  height: min(260px, 62vw);
  perspective: 800px;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.7));
  transition: transform 0.3s ease, filter 0.3s ease;
}

#envelope:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 30px 80px rgba(201,168,76,0.3));
}

/* Back layer */
.env-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #3a2f1a, #2b2113);
  border-radius: 4px;
  border: 1px solid rgba(201,168,76,0.3);
}

/* Body */
.env-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #e8dfc8 0%, #d4c8a8 50%, #c8ba94 100%);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.4);
}

/* Diamond lining inside envelope */
.env-diamond-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 18px,
      rgba(201,168,76,0.12) 18px,
      rgba(201,168,76,0.12) 19px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 18px,
      rgba(201,168,76,0.12) 18px,
      rgba(201,168,76,0.12) 19px
    );
}

/* Triangle lines on corners */
.env-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.env-line-left {
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 min(260px, 62vw) min(190px, 45vw);
  border-color: transparent transparent rgba(185,165,115,0.35) transparent;
}
.env-line-right {
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 0 min(260px, 62vw) min(190px, 45vw);
  border-color: transparent transparent rgba(185,165,115,0.35) transparent;
  transform: scaleX(-1);
}

/* Couple preview text on envelope */
.env-couple-preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 20px;
}
.env-names-preview {
  font-family: var(--font-script);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 300;
  color: var(--dark-mid);
  letter-spacing: 0.12em;
  line-height: 1;
}
.env-date-preview {
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 2vw, 0.7rem);
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 0.4em;
}

/* ── Flap ── */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  transform-origin: top center;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
}

.env-flap-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #d4c8a8 0%, #c8ba94 100%);
  clip-path: polygon(0% 0%, 50% 100%, 100% 0%);
  border-top: 1px solid rgba(201,168,76,0.4);
  border-left: 1px solid rgba(201,168,76,0.4);
  border-right: 1px solid rgba(201,168,76,0.4);
}

/* Open state: flap rotates back (unfolds) */
#envelope.open .env-flap {
  transform: rotateX(-180deg);
}

/* ── Wax Seal ── */
.env-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -20%);
  width: clamp(70px, 18vw, 100px);
  height: clamp(70px, 18vw, 100px);
  z-index: 20;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.5s ease;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}
.env-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Seal moves up when opening */
#envelope.open .env-seal {
  transform: translate(-50%, -120%) scale(0.6);
  opacity: 0;
}

/* Tap hint */
.tap-hint {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(201,168,76,0.7);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: hint-pulse 2.5s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.tap-hint.hide {
  opacity: 0;
  transition: opacity 0.4s;
}

/* ─────────────────────────────────────────
   INVITATION — MAIN
───────────────────────────────────────── */
#invitation {
  opacity: 1;
  transition: opacity 0.8s ease;
}
#invitation.hidden {
  display: none;
}

/* ─────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  /* Убрали затемнение, так как фото и так темное */
}

.hero-photo-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 30%, #3a2f1a 0%, #1a1712 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10,8,5,0.3) 0%,
      rgba(10,8,5,0.1) 40%,
      rgba(10,8,5,0.5) 80%,
      rgba(10,8,5,0.95) 100%
    );
  z-index: 1;
}



.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invite-label {
  font-family: var(--font-body);
  font-size: clamp(0.5rem, 1.8vw, 0.7rem);
  font-weight: 300;
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ── Diagonal names layout ── */
.names-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  position: relative;
  margin-bottom: 2.5rem;
}

.name {
  font-family: var(--font-script);
  font-size: clamp(4.5rem, 18vw, 7.5rem);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  letter-spacing: 0.05em;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 40px rgba(201,168,76,0.18);
  white-space: nowrap;
}
.name-groom {
  animation-delay: 0.5s;
  text-align: left;
  margin-left: 0;
}
.name-bride {
  animation-delay: 0.8s;
  text-align: right;
  margin-right: 0;
}

.and-symbol {
  font-family: var(--font-script);
  font-size: clamp(5rem, 20vw, 9rem);
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-weight: 300;
  line-height: 0.6;
  text-align: right;
  padding-right: 35%;
  margin: -10px 0;
}

.hero-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.65rem, 2.5vw, 1rem);
  letter-spacing: 0.5em;
  color: rgba(255, 255, 255, 0.8);
}

.hero-date-sep {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2em;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  animation: fade-in 1s ease 2s forwards;
}
.scroll-arrow {
  font-size: 1.2rem;
  color: var(--gold-light);
  animation: scroll-bounce 2s ease-in-out infinite;
  display: block;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(8px); opacity: 1; }
}

/* ─────────────────────────────────────────
   DOVES DIVIDER
───────────────────────────────────────── */
.divider-section {
  background: var(--ivory);
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 1rem;
}
.doves-img {
  width: min(200px, 50vw);
  opacity: 0.85;
  animation: gentle-float 4s ease-in-out infinite;
}
@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ─────────────────────────────────────────
   INVITE TEXT SECTION
───────────────────────────────────────── */
.invite-text-section {
  background: var(--ivory);
  padding: 1rem 1.5rem 5rem;
  display: flex;
  justify-content: center;
}

.invite-card {
  max-width: 500px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.dear-guests {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.guest-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(135deg, #c9a84c 0%, #e8d48b 40%, #c9a84c 70%, #a07840 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  text-shadow: none;
}

.invite-body {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 2.5vw, 0.95rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 380px;
}

/* Date Calendar */
.date-calendar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
}

.calendar-month {
  font-family: var(--font-script);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dark);
  text-transform: capitalize;
  margin-bottom: 0.5rem;
}

.calendar-days {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
}

.cal-day {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  color: rgba(44, 36, 22, 0.4);
  font-weight: 400;
}

.cal-heart-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(80px, 20vw, 130px);
  height: clamp(80px, 20vw, 130px);
}

.cal-heart-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  fill: #e8e8e8; /* Закрашенное светло-серым */
  stroke: none;
}

.cal-day-main {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--text-dark); /* черная */
  z-index: 2;
  margin-top: -10%; /* Поднимаем цифру чуть выше, так как визуальный центр сердца выше математического */
}

.calendar-year {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

/* Venue */
.venue-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.venue-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.venue-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 1.4rem);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.1em;
}

.venue-photo-frame {
  width: min(320px, 85vw);
  border-radius: 160px 160px 0 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 4px solid var(--cream);
  outline: 1px solid rgba(201,168,76,0.25);
}

.venue-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.venue-photo:hover {
  transform: scale(1.04);
}

.venue-address-link {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 400;
  color: var(--gold);
  text-decoration: none;
  line-height: 1.5;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-bottom: 1px solid transparent;
}

.venue-address-link:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-dark);
}

/* ─────────────────────────────────────────
   PROGRAM SECTION
───────────────────────────────────────── */
.program-section {
  background: var(--dark);
  padding: 5rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.program-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: 0.02em;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 1rem auto 0;
}

/* Timeline */
.timeline {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 118px;
  top: 15px;
  bottom: 0px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 24px 1fr;
  align-items: flex-start;
  gap: 0 1rem;
  padding: 1.5rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-time {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-align: right;
  padding-top: 2px;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 2px var(--gold-dark), 0 0 12px rgba(201,168,76,0.4);
  flex-shrink: 0;
  margin-top: 3px;
  justify-self: center;
}

.timeline-content {
  padding-bottom: 0.5rem;
}

.tl-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}

.tl-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 3vw, 1.1rem);
  font-weight: 300;
  color: rgba(248, 243, 232, 0.8);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   RSVP SECTION
───────────────────────────────────────── */
.rsvp-section {
  background: var(--ivory);
  padding: 5rem 1.5rem 5rem;
  display: flex;
  justify-content: center;
}

.rsvp-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.rsvp-doves {
  width: min(120px, 30vw);
  opacity: 0.7;
}

.rsvp-card .section-title {
  color: var(--text-dark);
  margin-bottom: 2rem;
}
.rsvp-card .section-title::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.rsvp-text {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.7;
}

/* Guest Form Styles */
.guest-form {
  width: 100%;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-question {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  font-weight: 400;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding-bottom: 0.5rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.custom-radio, .custom-checkbox {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s ease;
}
.custom-radio:hover, .custom-checkbox:hover {
  opacity: 0.8;
}

.custom-radio input, .custom-checkbox input {
  display: none;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.custom-radio input:checked + .radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--gold-dark);
  border-radius: 50%;
}

.drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.checkbox-mark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold-dark);
  border-radius: 4px;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.custom-checkbox input:checked + .checkbox-mark::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold-dark);
  font-size: 14px;
}

.rsvp-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 3rem;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  align-self: center;
  margin-top: 1rem;
}
.rsvp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.5);
}

/* ─────────────────────────────────────────
   CLOSING SECTION
───────────────────────────────────────── */
.closing-section {
  background: var(--ivory);
  padding: 5rem 1.5rem 6rem;
  display: flex;
  justify-content: center;
}

.closing-card {
  max-width: 800px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-section .section-title {
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.photo-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.closing-photo {
  width: clamp(150px, 40vw, 240px);
  height: clamp(190px, 50vw, 300px);
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border: 8px solid #fff;
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.closing-photo:nth-child(2) {
  transform: rotate(4deg) translateY(10px);
}

.closing-photo:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  z-index: 2;
  position: relative;
}

.footer-seal {
  margin-top: 2rem;
}
.footer-seal-img {
  width: min(80px, 20vw);
  border-radius: 50%;
  opacity: 0.85;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.footer-names {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 10vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
  line-height: 1.2;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.5em;
  color: var(--text-soft);
  text-transform: uppercase;
  padding-bottom: 1.5rem;
  margin-top: 2rem;
  opacity: 0.8;
}

/* ─────────────────────────────────────────
   DRESSCODE TABS & COLLAGE
───────────────────────────────────────── */
.dresscode-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dresscode-tab {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-soft);
  cursor: pointer;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.dresscode-tab:hover {
  color: var(--text-dark);
}
.dresscode-tab.active {
  color: var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
}

.dresscode-content {
  display: none;
  width: 100%;
}
.dresscode-content.active {
  display: block;
  animation: fade-in 0.6s ease;
}

.dresscode-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.5rem);
  width: 100%;
  max-width: 600px;
  margin: 1.5rem auto 0;
}


.dc-img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 4px solid #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dc-img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  z-index: 2;
  position: relative;
}

/* ─────────────────────────────────────────
   ANIMATIONS HELPERS
───────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────
   DETAILS SECTION
───────────────────────────────────────── */
.details-section {
  background: var(--cream);
  padding: 4rem 1.5rem 5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.details-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.2), transparent);
}

.details-card {
  max-width: 600px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.details-card .section-title {
  margin-bottom: 2.5rem;
  color: var(--text-dark);
}
.details-card .section-title::after {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-text {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-soft);
}

.organizer-frame {
  margin-top: 4rem;
  padding: 1.5rem;
  position: relative;
  max-width: 550px;
  width: 95%;
  border: clamp(30px, 8vw, 40px) solid transparent;
  border-image: url('images/organizer-frame.svg') 32 fill stretch;
  background: transparent;
}

.org-frame-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #4a4535;
}

.guest-message-input {
  width: 100%;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
  text-align: left;
}

.guest-message-input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.9);
}

.guest-message-input::placeholder {
  color: rgba(92, 74, 74, 0.6);
  font-style: italic;
}

/* ─────────────────────────────────────────
   COUNTDOWN SECTION
───────────────────────────────────────── */
.countdown-section {
  position: relative;
  background-color: #050505;
  padding: 0;
  text-align: center;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.countdown-section::after {
  content: '';
  position: absolute;
  top: -5%;
  bottom: -5%;
  left: -5%;
  right: -5%;
  background-image: url('images/countdown_bg.jpg');
  background-size: contain;
  background-position: center 25%;
  background-repeat: no-repeat;
  z-index: 0;
}

.countdown-section::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}

.countdown-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 3rem 2rem 5rem;
}

.countdown-label {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: clamp(0.6rem, 2vw, 0.85rem);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.countdown-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.countdown-num {
  font-family: var(--font-display); /* Playfair Display — красивый шрифт */
  font-size: clamp(3rem, 11vw, 6rem);
  font-weight: 400;
  font-style: normal;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(201,168,76,0.15);
}

.countdown-unit-label {
  font-family: var(--font-body);
  font-size: clamp(0.45rem, 1.3vw, 0.6rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4.5rem);
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  padding-top: 0.1em;
  line-height: 0.9;
  align-self: flex-start;
  letter-spacing: 0;
  text-shadow: 0 0 20px rgba(201,168,76,0.2);
}

/* ─────────────────────────────────────────
   DRESS CODE SECTION
───────────────────────────────────────── */
.dresscode-section {
  background: linear-gradient(160deg, #fdf6f0 0%, #f5ede8 50%, #ede8f5 100%);
  padding: 5rem 2rem;
}

.dresscode-card {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.dresscode-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-style: italic;
  font-weight: 300;
  color: #b07a7a;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.dresscode-illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto 2rem;
  display: block;
  border-radius: 12px;
}

.dresscode-desc {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 300;
  color: #7a6a6a;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 3rem;
}

.palette {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5rem 0.5rem;
  justify-items: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.palette-swatch {
  width: clamp(70px, 14vw, 100px);
  height: clamp(70px, 14vw, 100px);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.palette-swatch:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

.swatch-name {
  font-family: var(--font-body);
  font-size: 0.45rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(80,60,60,0.75);
  text-align: center;
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-transform: uppercase;
}

.dresscode-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(180,150,130,0.2);
  border-radius: 50px;
  padding: 0.9rem 2rem;
  max-width: 420px;
  margin: 2.5rem auto 0;
  backdrop-filter: blur(4px);
}

.dresscode-note-icon {
  color: #c9a84c;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dresscode-note p {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 300;
  color: #7a6a6a;
  margin: 0;
}

/* Section title used in dress code */
.dresscode-card .section-title {
  color: #5c4a4a;
}
.dresscode-card .section-title::after {
  background: linear-gradient(90deg, transparent, #b07a7a, transparent);
}
