:root {
  --accent: #6B8F71;
  --accent-ink: color-mix(in oklab, var(--accent) 80%, #1d2a20);
  --accent-soft: color-mix(in oklab, var(--accent) 9%, #ffffff);
  --accent-softer: color-mix(in oklab, var(--accent) 5%, #fbfcfa);
  --bg: #F7F8F4;
  --card: #FFFFFF;
  --ink: #28312A;
  --muted: #6E7C71;
  --line: rgba(48, 66, 52, 0.14);
  --serif: 'Cormorant', 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Мягкий фоновый градиент — едва заметные зелёные «блики» */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(640px 460px at 10% 6%, color-mix(in oklab, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(720px 540px at 92% 26%, color-mix(in oklab, #DCD3B8 30%, transparent), transparent 72%),
    radial-gradient(680px 500px at 16% 78%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(560px 420px at 86% 92%, color-mix(in oklab, var(--accent) 11%, transparent), transparent 70%);
}

::selection { background: color-mix(in oklab, var(--accent) 25%, #ffffff); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.12;
  text-wrap: balance;
}

.section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 96px 24px;
}
#welcome.section { padding-top: 70px; }


/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px 40px;
  position: relative;
}

.hero .eyebrow { margin-bottom: 22px; font-size: 14px; }

.hero-names { line-height: 0; }
.names-img {
  width: min(620px, 90vw);
  height: auto;
  mix-blend-mode: multiply;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(28px, 4vh, 48px);
  width: 100%;
  max-width: 980px;
}

.hero-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.hero-date .d-num {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
}
.hero-date .d-year {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--muted);
  font-weight: 600;
}
.hero-date .d-label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 200px;
  line-height: 1.5;
  text-wrap: balance;
}
.hero-date .d-rule {
  width: 36px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
  margin-top: 12px;
}

/* —— Полароидный слайдер —— */
.photo-stack {
  position: relative;
  width: min(330px, 76vw);
  aspect-ratio: 1 / 1.22;
  margin: 14px auto 0;
}
.stack-card {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  border-radius: 6px;
  box-shadow: 0 24px 50px -26px rgba(40, 66, 48, 0.45);
}
.stack-card { border: 1px solid rgba(48, 66, 52, 0.08); }
.stack-card.s1 { transform: rotate(4.5deg) translate(7px, 3px); }
.stack-card.s2 { transform: rotate(-5deg) translate(-6px, 5px); }
.photo-swiper {
  position: absolute;
  inset: -18px;
  padding: 18px;
}
.photo-swiper .swiper-wrapper { align-items: stretch; }
.photo-swiper .swiper-slide {
  height: auto;
}
.polaroid {
  width: 100%;
  height: 100%;
  padding: 14px 14px 64px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 6px;
  transform: rotate(var(--rot, -2deg)) scale(0.96);
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.swiper-slide-active {
  z-index: 2;
}
.swiper-slide-active .polaroid {
  opacity: 1;
  transform: rotate(var(--rot, -2deg)) scale(1);
}
.polaroid img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
@media (prefers-reduced-motion: reduce) {
  .polaroid { transition: none; }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  font-family: var(--sans);
  backdrop-filter: blur(8px);
}
.slider-arrow:hover { background: var(--accent-soft); border-color: var(--accent); }
.slider-arrow-prev { left: -68px; }
.slider-arrow-next { right: -68px; }
.slider-dots {
  position: static;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.slider-dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border-radius: 50%;
  border: none;
  background: var(--line);
  opacity: 1;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.slider-dots .swiper-pagination-bullet-active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 680px) {
  .slider-arrow-prev { left: -18px; }
  .slider-arrow-next { right: -18px; }
}

.scroll-cue {
  margin-top: clamp(24px, 6vh, 60px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  text-decoration: none;
}
.scroll-cue-icon {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: scrollCueFloat 1.8s ease-in-out infinite;
}
@keyframes scrollCueFloat {
  0%, 100% { transform: translateY(-4px); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-icon { animation: none; }
}

/* ============ GREETING + DAYS ============ */
.greeting {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.greeting p { color: var(--muted); font-size: 18px; }
.greeting p strong { color: var(--ink); font-weight: 600; }

.tabs-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
  margin: 0 auto 44px;
}
.tab-btn {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 12px 26px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.tab-btn.active {
  background: var(--card);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px -6px rgba(40, 66, 48, 0.25);
}

.day-panel { display: none; max-width: 780px; margin: 0 auto; }
.day-panel.active { display: block; animation: panelIn 0.45s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .day-panel.active { animation: none; } }

.day-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 44px 48px;
  box-shadow: 0 24px 56px -40px rgba(40, 66, 48, 0.4);
}
.info-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.info-row { display: flex; align-items: center; gap: 16px; }
.info-row.top { align-items: flex-start; }
.info-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
}
.info-icon svg { width: 19px; height: 19px; }
.info-row.top .info-icon { margin-top: 2px; }
.info-text { display: flex; flex-direction: column; gap: 2px; }
.info-main { font-weight: 600; font-size: 16.5px; line-height: 1.45; }
.info-sub { font-size: 14px; color: var(--muted); }
.info-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link-pill.small { padding: 8px 18px; font-size: 13.5px; }
.day-desc { color: var(--muted); }
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}
.link-pill:hover { background: var(--accent); color: #ffffff; }

/* ============ RSVP ============ */
.rsvp-band { background: var(--accent-soft); }
.rsvp-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.rsvp-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.rsvp-copy p { color: var(--muted); max-width: 480px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 34px;
  border-radius: 999px;
  margin-top: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 12px 28px -12px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: var(--accent-ink);
  transform: translateY(-2px);
}

.qr-card {
  background: var(--card);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 56px -30px rgba(40, 66, 48, 0.3);
  justify-self: center;
  width: min(300px, 100%);
}
.qr-box { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; }
.qr-caption { font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ============ FAQ ============ */
.faq-head { text-align: center; margin-bottom: 52px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.faq-head p { color: var(--muted); max-width: 520px; }

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-item summary .faq-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--accent-ink);
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); background: var(--accent-soft); }
.faq-answer { padding: 0 4px 28px; color: var(--muted); max-width: 620px; }
.faq-sign {
  display: block;
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--accent-ink);
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 72px 24px 84px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.footer .f-names {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--accent-ink);
}
.footer .f-sub { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .scroll-cue { display: none; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-grid .photo-wrap { order: -1; display: flex; flex-direction: column; align-items: center; }
  .hero-dates-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
  .day-card { padding: 30px 22px; }
  .rsvp-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 20px; }
  #welcome.section { padding-top: 30px; }
  .qr-card {display: none;}
}
