/* ✅ ГЛОБАЛЬНЫЙ Playfair Display */
* {
  font-family: "Playfair Display", serif !important;
}

/* HERO */
.hero {
  padding: 80px 0 56px;
}
.hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.hero-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
}
.hero-names {
  margin-top: 12px;
  font-size: 40px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-date {
  margin-top: 10px;
  font-size: 16px;
}
.hero-sub {
  margin-top: 14px;
  font-size: 14px;
  color: #555;
}
.hero .btn-primary {
  margin-top: 24px;
}

/* ТАЙМЛАЙН */
.timeline {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
}
.timeline-item + .timeline-item {
  border-top: 1px solid var(--muted);
  margin-top: 16px;
  padding-top: 16px;
}
.timeline-time {
  font-weight: 600;
  font-size: 14px;
}
.timeline-content h3 {
  font-size: 16px;
  margin-top: 4px;
}
.timeline-content p {
  font-size: 14px;
  color: #555;
}

/* ЛОКАЦИИ */
.locations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.location-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}
.location-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.location-card p {
  font-size: 14px;
  color: #555;
}
.link-map {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}
.link-map:hover {
  text-decoration: underline;
}

/* ДРЕСС-КОД */
.dresscode-content {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  color: #444;
}
.dresscode-content p + p {
  margin-top: 8px;
}

/* RSVP */
.section-rsvp {
  margin-top: 56px;
}
.rsvp-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 18px 24px;
  box-shadow: var(--shadow-soft);
}
.form-row {
  margin-bottom: 14px;
}
.form-row-inline {
  display: flex;
  gap: 12px;
}
.form-row-inline > label {
  flex: 1;
}
label {
  font-size: 13px;
  display: block;
}
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
  font-family: "Playfair Display", serif;
}
textarea {
  resize: vertical;
}
.form-note {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

/* ✨ ОБЛОЖКА */
.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  position: relative;
}

.cover-top-label {
  margin-bottom: -40px; /* или -8px, если нужно ещё подтянуть */
}

.cover-top-line {
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.cover-top-initials {
  margin-top: 6px;
  font-size: 56px;
}

.cover-inner {
  width: 320px;
  height: 380px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  margin: 0 auto;
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 2;
}

.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease 0.4s;
}

.cover-hint {
  margin-top: 16px;
  font-size: 15\px;
  color: #777;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ✅ ЛИСТАЙТЕ НИЖЕ ⬇️ СТАТИЧНЫЙ */
.cover-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: #111111 !important;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease 1s;
  pointer-events: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
  white-space: nowrap;
  z-index: 3;
  
  
}

/* СВАДЬБА 26.02.26 — по центру фото, другим шрифтом */
.cover-date-hint {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%); /* точный центр по X и Y */
  font-size: 45px;
  font-family: "Great Vibes", cursive !important; /* рукописный */
  line-height: 1;
  color: #111111;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease 0.4s;
  z-index: 3;
  white-space: nowrap;
}

.cover.cover--open .cover-date-hint {
  opacity: 1 !important;
}


.cover-scroll-hint::after {
  content: " ↓";
  font-size: 18px;
  display: inline-block;
  margin-left: 6px;
  font-weight: 300;
}

.cover.cover--open .cover-scroll-hint {
  opacity: 1 !important;
}

/* ✅ РОСТ ИЗ ЦЕНТРА — ТОЛЬКО width/height */
.cover-inner.cover--open {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* ✅ ТЕКСТ ПРОПАДАЕТ */
.cover.cover--open .cover-top-label,
.cover.cover--open .cover-hint {
  display: none !important;
}

/* IMG ИСЧЕЗАЕТ */
.cover-inner.cover--open .cover-photo {
  opacity: 0 !important;
}

/* ✅ COVER БЕЗ ПРЫЖКОВ */
.cover.cover--open {
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh !important;
}

/* ✅ HERO */
.cover.cover--open + .hero {
  padding-top: 0 !important;
  padding-bottom: 20px !important;
  margin-top: 0 !important;
}

/* ✅ СКРЫТЫЙ СКРОЛЛБАР */
::-webkit-scrollbar {
  display: none !important;
}
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* ✅ ФИКС reveal прыжков */
.cover.cover--open ~ * .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* АДАПТИВ */
@media (min-width: 768px) {
  .hero {
    padding: 100px 0 72px;
  }
  .hero-names {
    font-size: 48px;
  }
  .hero-date {
    font-size: 18px;
  }
  .timeline {
    padding: 26px 24px;
  }
  .locations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .cover-inner {
    width: 400px;
    height: 500px;
  }
  
  .cover-inner.cover--open {
    width: 90vw !important;
    max-width: 1000px !important;
    height: 80vh !important;
    border-radius: 24px !important;
    background-position: top center !important;
    background-size: cover !important;
  }
  
  .cover.cover--open + .hero {
    padding-top: 20px !important;
  }
  
  .cover-scroll-hint {
    font-size: 15px;
    bottom: 24px;
  }
}

@media (max-width: 767px) {
  .cover-inner {
    width: 320px;
    height: 380px;
  }
  
  .cover.cover--open + .hero {
    padding-top: 40px !important;
    padding-bottom: 16px !important;
  }
  
  .cover-scroll-hint {
    font-size: 16px;
    bottom: 16px;
  }
}

/* ✅ ФИНАЛЬНЫЙ ФИКС ОТПУСКА */
@media (max-width: 767px) {
  .cover.cover--open {
    margin-top: -8px !important;
  }
  
  .page:has(.cover.cover--open) {
    padding-top: 0 !important;
  }
}
