/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9a84c;
  --gold-light: #f0d080;
  --gold-pale: #fdf6e3;
  --cream: #fffdf7;
  --text: #3a2e1e;
  --text-light: #7a6a50;
  --white: #ffffff;
  --radius: 20px;
  --shadow: 0 8px 40px rgba(180,140,60,0.13);
  --shadow-lg: 0 20px 60px rgba(180,140,60,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* =============================================
   PARTICLES (конфетти)
   ============================================= */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0.7; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* =============================================
   MUSIC BUTTON
   ============================================= */
.music-btn {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 9999;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.music-btn:hover { transform: scale(1.12); box-shadow: var(--shadow-lg); }

/* =============================================
   ANIMATE IN
   ============================================= */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.8s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(160deg, #fffcf0 0%, #fdf3d0 40%, #fff8e8 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(240,208,128,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

.year {
  font-size: clamp(72px, 22vw, 130px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #b8860b, var(--gold), #f0d080, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(180,140,60,0.3));
}

.subtitle-line {
  font-size: clamp(18px, 5vw, 28px);
  font-style: italic;
  color: var(--text-light);
  font-weight: 400;
  -webkit-text-fill-color: var(--text-light);
}

.hero-desc {
  font-size: clamp(15px, 4vw, 18px);
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-date {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.date-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
  text-align: left;
}

.date-icon { font-size: 24px; flex-shrink: 0; }

.date-card div { display: flex; flex-direction: column; }
.date-card strong { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; }
.date-card span { font-size: 16px; font-weight: 500; color: var(--text); }

.cta-btn {
  display: inline-block;
  padding: 18px 44px;
  background: linear-gradient(135deg, var(--gold), #e8b84b);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(201,168,76,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  letter-spacing: 0.02em;
}
.cta-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 40px rgba(201,168,76,0.55); }

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.scroll-arrow {
  font-size: 20px;
  animation: bounce 1.6s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 20px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 7vw, 42px);
  color: var(--text);
  margin-bottom: 10px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-light);
}

/* =============================================
   SLIDESHOW
   ============================================= */
.slideshow-section {
  padding: 64px 0 80px;
  background: var(--white);
  position: relative;
  z-index: 1;
}

.slideshow-wrapper {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/10;
  background: #f5eed8;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  flex-direction: column;
}

.slide.active { opacity: 1; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(58,46,30,0.75));
  color: var(--white);
  padding: 24px 20px 16px;
  font-size: 15px;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  text-align: center;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1.5px solid var(--gold);
  font-size: 22px;
  color: var(--gold);
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
  line-height: 1;
}
.slide-btn:hover { background: var(--gold); color: var(--white); }
.slide-btn.prev { left: 24px; }
.slide-btn.next { right: 24px; }

.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.dot.active { background: var(--gold); transform: scale(1.3); }

/* =============================================
   ANNIVERSARY SECTION
   ============================================= */
.anniversary-section {
  padding: 72px 24px;
  background: linear-gradient(135deg, #fdf6e3, #fffcf0);
  text-align: center;
}

.anniversary-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.big-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 30vw, 180px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #d4a017, var(--gold-light), #c9a84c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 16px rgba(180,140,60,0.25));
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 4px 16px rgba(180,140,60,0.25)); }
  50% { filter: drop-shadow(0 6px 28px rgba(180,140,60,0.5)); }
}

.anniversary-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 6vw, 32px);
  margin-bottom: 14px;
  color: var(--text);
}

.anniversary-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-light);
}

.anniversary-text em { color: var(--gold); font-style: italic; }

/* =============================================
   REGISTER SECTION
   ============================================= */
.register-section {
  padding: 72px 20px;
  background: var(--white);
}

.register-inner {
  max-width: 520px;
  margin: 0 auto;
}

.register-form {
  background: var(--cream);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.submit-btn {
  padding: 16px;
  background: linear-gradient(135deg, var(--gold), #e8b84b);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,168,76,0.5); }
.submit-btn:active { transform: scale(0.98); }

/* Успешная регистрация */
.success-msg {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeUp 0.6s ease;
}
.success-msg.show { display: block; }

.success-icon { font-size: 60px; margin-bottom: 16px; }

.success-msg h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 10px;
}
.success-msg p { color: var(--text-light); font-size: 16px; margin-bottom: 24px; }

.another-btn {
  padding: 12px 30px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 15px;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.another-btn:hover { background: var(--gold); color: var(--white); }

/* =============================================
   ATTENDEES
   ============================================= */
.attendees-section {
  padding: 64px 20px;
  background: linear-gradient(160deg, #fffcf0 0%, #fdf3d0 100%);
}

.attendees-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attendee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease forwards;
  border-left: 4px solid var(--gold);
}

.attendee-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.attendee-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.attendee-time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-light);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-top: 1px solid rgba(201,168,76,0.2);
}

.footer-gold {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.footer p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 6px;
}

.footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.footer-small { font-size: 13px !important; }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(20, 15, 5, 0.93);
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: lbFadeIn 0.25s ease;
}
.lightbox.open { display: flex; }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lb-inner {
  position: relative;
  max-width: min(92vw, 900px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lb-img {
  width: 100%;
  max-height: 75svh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: lbImgIn 0.3s ease;
}
@keyframes lbImgIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-caption {
  color: rgba(255,255,255,0.85);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 16px;
  text-align: center;
  padding: 0 16px;
}

.lb-close {
  position: fixed;
  top: 16px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 100001;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }

.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 100001;
  line-height: 1;
}
.lb-btn:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* Курсор-лупа на слайдах */
.slide img { cursor: zoom-in; }

/* =============================================
   TABLET / DESKTOP
   ============================================= */
@media (min-width: 600px) {
  .hero-date {
    flex-direction: row;
    justify-content: center;
  }
  .date-card { flex: 1; max-width: 200px; }
}

@media (min-width: 768px) {
  .anniversary-inner {
    flex-direction: row;
    text-align: left;
  }
  .big-number { flex-shrink: 0; }
}
