/* ================================================================
   СВАДЕБНЫЙ САЙТ — style.css
   Стиль "Pearl": тёмный / белый контраст, Cormorant Garamond
   ================================================================ */

:root {
  --bg:       #faf9f8;
  --dark:     #1c1c1c;
  --text:     #1c1c1c;
  --muted:    #888888;
  --border:   #e4e4e4;
  --white:    #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Open Sans', Arial, sans-serif;

  --ease:  0.3s ease;
  --max-w: 860px;
  --nav-h: 56px;
}

/* ── СБРОС ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.75; overflow-x: hidden; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }


/* ================================================================
   ЗАСТАВКА
   ================================================================ */

.intro-screen {
  position: fixed;
  inset: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  padding: 2rem 1.5rem;
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
}

.intro-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  align-self: end;
  padding-bottom: 1.6rem;
}

.intro-pretitle {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  animation: fadeDown 0.8s ease both;
}

.intro-monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 6rem);
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.4em;
  animation: fadeDown 0.9s ease 0.1s both;
}

.intro-vline {
  display: inline-block;
  width: 1px;
  height: 0.7em;
  background: rgba(255,255,255,0.35);
  vertical-align: middle;
  flex-shrink: 0;
}

.intro-photo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  width: fit-content;
  margin: 0 auto;
  animation: fadeUp 1s ease 0.25s both;
}

/* Прямоугольное фото, не круглое */
.intro-photo {
  width: clamp(160px, 46vw, 230px);
  height: clamp(210px, 61vw, 300px);
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: opacity 0.3s ease;
}
.intro-photo-btn:hover .intro-photo { opacity: 0.85; }

.intro-hint {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  animation: pulse 2.5s ease-in-out infinite;
}


/* ================================================================
   ОСНОВНАЯ ОБЁРТКА
   ================================================================ */

.main-wrapper { transition: opacity 1s ease; }
.main-hidden  { opacity: 0; visibility: hidden; }
.main-visible { opacity: 1; visibility: visible; }


/* ================================================================
   НАВИГАЦИЯ
   ================================================================ */

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease);
}

#header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-right: auto;
}

.nav-vline {
  display: inline-block;
  opacity: 0.4;
  margin: 0 0.1em;
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
  padding-bottom: 1px;
}
.nav-links a:hover { border-bottom-color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.music-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease);
}
.music-btn:hover { background: #f2f2f2; }
.music-icon { font-size: 0.95rem; color: var(--text); line-height: 1; }
.music-btn.muted .music-icon { color: var(--muted); }


/* ================================================================
   ГЕРОЙ
   ================================================================ */

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 6vh;
}

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

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo.revealed { animation: heroReveal 1.2s ease forwards; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.25) 45%,
    rgba(0,0,0,0.65) 100%
  );
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  animation: fadeUp 1.1s ease 0.3s both;
}

.hero-pretitle {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  flex-wrap: wrap;
}

.hero-vline {
  display: inline-block;
  width: 1px;
  height: 0.7em;
  background: rgba(255,255,255,0.45);
  flex-shrink: 0;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-scroll-label {
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.hero-scroll-line {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.35);
  animation: scrollPulse 2s ease-in-out infinite;
}


/* ================================================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
   ================================================================ */

.section { padding: 6rem 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.05;
  text-align: center;
  margin-bottom: 3rem;
}

.section-title-left {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.section-intro-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.section-date-big {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  text-align: center;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 3rem;
}


/* ================================================================
   ИСТОРИЯ
   ================================================================ */

.section-welcome { background: var(--bg); }

.welcome-body {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.welcome-body p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.welcome-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
  margin-top: 2rem;
  line-height: 1.6;
}


/* ================================================================
   ОБРАТНЫЙ ОТСЧЁТ
   ================================================================ */

.section-countdown { background: var(--bg); padding: 5rem 0 6rem; }

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

.cd-item { text-align: center; min-width: 76px; }

.cd-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.cd-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.cd-sep {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--muted);
  opacity: 0.35;
  padding-top: 0.1rem;
  line-height: 1;
  align-self: flex-start;
}


/* ================================================================
   ТЁМНАЯ КАРТОЧКА-АРКА
   ================================================================ */

.dark-arch-card {
  background: var(--dark);
  border-radius: 180px;
  padding: 4.5rem 3rem 4rem;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}

.arch-card-pretitle {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.arch-card-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 2.5rem;
  line-height: 1.05;
}


/* ================================================================
   МЕСТО
   ================================================================ */

.section-venue { background: var(--bg); }

.venue-block { margin-bottom: 2rem; }
.venue-block:last-child { margin-bottom: 0; }

.venue-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 2rem auto;
}

.venue-block-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.venue-block-address {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.2rem;
  line-height: 1.55;
}


/* ================================================================
   КНОПКИ
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.7rem 2.2rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-light {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.btn-light:hover {
  background: #f0f0f0;
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: #333;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.btn-dark:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.97);
  box-shadow: none;
}


/* ================================================================
   ПРОГРАММА
   ================================================================ */

.section-program { background: var(--bg); }

.timeline {
  max-width: 620px;
  margin: 0 auto;
}

.tl-item {
  padding: 1.6rem 0;
  border-top: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: 1px solid var(--border); }

.tl-main {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.85rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  font-style: italic;
}

.tl-time {
  font-style: normal;
  margin-right: 0.25em;
}

.tl-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
  line-height: 1.6;
}


/* ================================================================
   ДРЕСС-КОД
   ================================================================ */

.section-dresscode { background: var(--bg); padding-bottom: 0; }

.dresscode-col {
  margin-bottom: 2.5rem;
  text-align: left;
}
.dresscode-col:last-child { margin-bottom: 0; }

.dresscode-who {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.dresscode-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.dresscode-colors {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}


/* ================================================================
   ПАЛИТРА ЦВЕТОВ
   ================================================================ */

.section-palette {
  background: var(--bg);
  padding: 2rem 0 3.5rem;
}

.palette-label {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted, #888);
  text-align: center;
  margin-bottom: 1.6rem;
}

.palette-circles {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.35rem, 1.2vw, 1rem);
}

.palette-circle {
  width: clamp(38px, 9vw, 72px);
  height: clamp(38px, 9vw, 72px);
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.palette-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}


/* ================================================================
   ПОДАРКИ
   ================================================================ */

.section-gifts { background: var(--bg); }

.gifts-body {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.gifts-body p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}


/* ================================================================
   КОНТАКТЫ
   ================================================================ */

.section-contacts { background: var(--bg); }

.contacts-inner { max-width: 560px; }

.contacts-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.contacts-icons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 7rem;
}

.contact-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--text);
  transition: opacity var(--ease);
}
.contact-icon-link:hover { opacity: 0.45; }

.contacts-closing {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-align: center;
}


/* ================================================================
   RSVP
   ================================================================ */

.section-rsvp {
  background: var(--dark);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.rsvp-arch-wrapper {
  background: var(--white);
  border-radius: 180px;
  padding: 5rem 2rem 6rem;
  max-width: 620px;
  margin: 0 auto;
}

.rsvp-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  text-align: center;
  margin-bottom: 1rem;
}

.rsvp-intro {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.rsvp-form { max-width: 440px; margin: 0 auto; }

/* Группа поля */
.form-group { margin-bottom: 2rem; }

/* Метки */
.form-group label,
.form-group legend {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: 0;
  text-transform: none;
}

.form-group fieldset { border: none; padding: 0; }

/* Поля ввода — только нижняя граница */
.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.45rem 0;
  border: none;
  border-bottom: 1px solid #cccccc;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  border-radius: 0;
  transition: border-color var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--text);
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
  color: #c0c0c0;
}

.form-group textarea {
  resize: none;
  min-height: 56px;
  line-height: 1.6;
}

/* Select */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 0.75rem;
}
.form-group select { cursor: pointer; color: var(--text); }

/* Чекбоксы */
.checkbox-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cb-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--text) !important;
  cursor: pointer;
  margin-bottom: 0;
}

.cb-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--dark);
}

/* Радио-кнопки */
.radio-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--text) !important;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  border-radius: 0;
}
.radio-label:hover { background: none; }

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--dark);
}

.radio-label input[type="radio"]:checked + span { font-weight: 600 !important; }

.form-submit { margin-top: 2.5rem; text-align: center; }
.form-submit .btn { min-width: 160px; }

.form-message {
  display: none;
  margin-top: 1.2rem;
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  text-align: center;
  border-radius: 4px;
}
.form-message.success { display: block; background: #f2faf2; color: #2d6a2d; border: 1px solid #c0dfc0; }
.form-message.error   { display: block; background: #fef5f5; color: #9b2c2c; border: 1px solid #f2c4c4; }


/* ================================================================
   ПОДВАЛ
   ================================================================ */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 3rem 1.5rem;
}

.footer-names {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-vline {
  display: inline-block;
  opacity: 0.3;
  margin: 0 0.15em;
  font-weight: 300;
}

.footer-date {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}


/* ================================================================
   АНИМАЦИИ
   ================================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-item:nth-child(1) { transition-delay: 0s; }
.tl-item:nth-child(2) { transition-delay: 0.07s; }
.tl-item:nth-child(3) { transition-delay: 0.14s; }
.tl-item:nth-child(4) { transition-delay: 0.21s; }
.tl-item:nth-child(5) { transition-delay: 0.28s; }
.tl-item:nth-child(6) { transition-delay: 0.35s; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.85; }
}
@keyframes heroReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 0.6;  transform: scaleY(1);   transform-origin: top; }
}


/* ================================================================
   АДАПТИВНОСТЬ
   ================================================================ */

@media (max-width: 720px) {
  .burger { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 0.85rem 1.5rem; font-size: 0.78rem; }

  .dark-arch-card,
  .rsvp-arch-wrapper {
    border-radius: 90px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .cd-sep { display: none; }
  .countdown-grid { gap: 1.2rem; }
  .cd-item { min-width: 60px; }

  .section { padding: 4.5rem 0; }
  .section-dresscode { padding-bottom: 0; }
}

@media (max-width: 420px) {
  .dark-arch-card,
  .rsvp-arch-wrapper { border-radius: 50px; }
  .hero-names { font-size: 2.2rem; }
}


/* ================================================================
   PEARL BEAD — orbits the Location arch card
   ================================================================ */

.pearl-orbit-wrapper {
  position: relative;
}

/* Невидимый трекер нулевого размера — движется по пути */
.pearl-orbit-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  offset-rotate: 0deg;
  animation: pearl-orbit 14s linear infinite;
  pointer-events: none;
  z-index: 30;
  will-change: offset-distance;
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Визуальная бусинка — центрируется на трекере через top/left: -16px */
.pearl-bead {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(
      ellipse 55% 45% at 33% 26%,
      rgba(255, 255, 255, 1)   0%,
      rgba(255, 255, 255, 0.7) 25%,
      transparent              55%
    ),
    radial-gradient(
      ellipse 40% 35% at 68% 74%,
      rgba(255, 255, 255, 0.35) 0%,
      transparent               60%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(200, 215, 230, 0.18) 0%,
      transparent               65%
    ),
    radial-gradient(
      circle at 50% 50%,
      #f9f8f6  0%,
      #eae7e3 28%,
      #d2cdc7 55%,
      #b8b3ac 75%,
      #9e9890  90%,
      #857f78 100%
    );
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.6),
    0 2px 6px  rgba(0, 0, 0, 0.35),
    inset 0 1px 4px rgba(255, 255, 255, 0.5);
}

.pearl-bead::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 28%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.5)  12%,
    transparent               28%
  );
}

@keyframes pearl-orbit {
  from { offset-distance: 0%; }
  to   { offset-distance: 100%; }
}


/* ================================================================
   DRESS CODE SLIDER
   ================================================================ */

.dc-slider {
  position: relative;
  margin-top: 1.6rem;
  width: 306px;
  margin-left: auto;
  margin-right: auto;
  user-select: none;
}

.dc-track {
  position: relative;
  width: 210px;
  height: 290px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.dc-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.55s ease;
  display: block;
}

.dc-slide.active { opacity: 1; }

.dc-btn {
  position: absolute;
  top: 145px;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  padding: 0;
  line-height: 1;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.dc-btn:hover  { background: rgba(0, 0, 0, 0.75); }
.dc-btn:active { transform: translateY(-50%) scale(0.9); }

.dc-prev { left: 0; }
.dc-next { right: 0; }

.dc-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 2px;
}

.dc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.dc-dot.active {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.3);
}

@media (max-width: 720px) {
  .dc-slider { width: 274px; }
  .dc-track  { width: 180px; height: 250px; }
  .dc-btn    { top: 125px; }
}
