/* =============================================
   WEDDING SITE — АЛЕКСАНДР & ЮЛИЯ
   Стиль: яркий, праздничный, радостный
   ============================================= */

/* ---- Переменные ---- */
:root {
  --yellow:  #FFD166;
  --green:   #06D6A0;
  --purple:  #9B5DE5;
  --pink:    #F15BB5;
  --blue:    #00BBF9;
  --white:   #FFFFFF;
  --dark:    #1A1A2E;
  --gray:    #6b7280;
  --light:   #F9FAFB;
  --radius:  16px;
  --shadow:  0 8px 32px rgba(0,0,0,0.10);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
}
.btn-outline {
  background: transparent;
  border: 2.5px solid var(--purple);
  color: var(--purple);
}
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* =============================================
   НАВИГАЦИЯ
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
  overflow: visible; /* позволяет верёвке/шару выглядывать ниже */
}
#navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.10); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
/* маленький крючок под логотипом — визуальная подсказка, что шар висит здесь */
.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 4px;
  background: rgba(155,93,229,0.45);
  border-radius: 1px;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-weight: 600;
  color: var(--dark);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--purple);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--purple); }
.nav-links a:hover::after { width: 100%; }

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
}

/* =============================================
   ГЕРОЙ
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fff9f0 0%, #f0f4ff 40%, #fdf0ff 100%);
  padding: 9rem 1.5rem 4rem; /* отступ сверху — место для большого диско-шара */
}

.confetti-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  opacity: 0.8;
  animation: confettiFall linear infinite;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.hero-deco {
  position: absolute;
  font-size: 5rem;
  opacity: 0.18;
  animation: float 6s ease-in-out infinite;
}
.hero-deco--left  { left: 3%; top: 20%; animation-delay: 0s; }
.hero-deco--right { right: 3%; bottom: 20%; animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-20px) rotate(5deg); }
}

.hero-content { position: relative; z-index: 1; }

.hero-pre {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-names {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 50%, var(--yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.amp {
  display: inline-block;
  font-style: italic;
  font-size: 0.7em;
  vertical-align: middle;
  margin: 0 0.2em;
}
.hero-date {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.countdown-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow);
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 4px solid var(--purple);
}
.countdown-block:nth-child(2) { border-color: var(--pink); }
.countdown-block:nth-child(3) { border-color: var(--green); }
.countdown-block:nth-child(4) { border-color: var(--yellow); }

.cd-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.cd-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}

/* =============================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
   ============================================= */
.section { padding: 6rem 1.5rem; }
.section--alt { background: linear-gradient(180deg, #f8f4ff 0%, #f0f9ff 100%); }

.container { max-width: 1000px; margin: 0 auto; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* =============================================
   ИСТОРИЯ — ТАЙМЛАЙН
   ============================================= */
.timeline {
  position: relative;
  padding: 2rem 0;
  margin-top: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--purple), var(--pink), var(--yellow));
  border-radius: 99px;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-right: calc(50% + 2.5rem);
  margin-bottom: 3rem;
  position: relative;
}
.timeline-item--right {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2.5rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--purple);
  z-index: 1;
}
.timeline-item--right .timeline-dot { box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--pink); }

.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 320px;
  border-left: 4px solid var(--purple);
}
.timeline-item--right .timeline-card { border-left: none; border-right: 4px solid var(--pink); }

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}
.timeline-item--right .timeline-year { color: var(--pink); }
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.timeline-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }

/* =============================================
   ПРОГРАММА
   ============================================= */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}
.schedule-item {
  display: grid;
  grid-template-columns: 80px 56px 1fr;
  align-items: center;
  gap: 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.schedule-item:hover { transform: translateX(6px); }
.schedule-time {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple);
  text-align: right;
}
.schedule-icon {
  font-size: 2rem;
  text-align: center;
}
.schedule-info h3 { font-weight: 700; margin-bottom: 0.2rem; }
.schedule-info p { color: var(--gray); font-size: 0.9rem; }

/* =============================================
   МЕСТО — КАРТА
   ============================================= */
.venue-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}
.venue-info {
  text-align: center;
}
.venue-icon { font-size: 3rem; margin-bottom: 1rem; }
.venue-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.venue-desc { color: var(--gray); margin-bottom: 1.5rem; line-height: 1.7; }
.venue-btns { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

.venue-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 350px;
  position: relative;
  background: #e8e8f0;
}
.venue-map iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}
.map-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: absolute;
  inset: 0;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f0f0ff, #fff0f5);
}
.map-fallback p { font-size: 1.1rem; color: var(--gray); }

/* =============================================
   ГАЛЕРЕЯ
   ============================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  background: #eee;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 1rem; right: 1rem; font-size: 2rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* =============================================
   ВИДЕОПРИГЛАШЕНИЕ
   ============================================= */
.video-wrap {
  max-width: 800px;
  margin: 2rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  background: #000;
  position: relative;
}
.invite-video {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: contain;
  background: #000;
}
.invite-video::-webkit-media-controls-panel {
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.video-btn-wrap {
  text-align: center;
  margin-top: 1.8rem;
}

/* =============================================
   ИСТОРИЯ В ЦИФРАХ
   ============================================= */
:root {
  --blue-bar:   #5b8dee;
  --purple-bar: #b07fe8;
}

/* Сетка stat-карточек */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2.5rem 0;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 3px solid var(--purple);
}
.stat-card:nth-child(2) { border-color: var(--pink); }
.stat-card:nth-child(3) { border-color: var(--green); }
.stat-card:nth-child(4) { border-color: var(--yellow); }
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Кто пишет больше */
.stats-who { margin-bottom: 2.5rem; }
.stats-who-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.stats-who-name {
  font-weight: 700;
  font-size: 0.9rem;
}
.who-alex  { color: #5b8dee; }
.who-yulia { color: #9b5de5; }
.stats-usage-bar {
  height: 16px;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  background: #eee;
}
.usage-seg { height: 100%; transition: width 1s ease; }
.usage-alex  { background: #5b8dee; }
.usage-yulia { background: #9b5de5; }
.stats-note {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--gray);
}

/* График */
.stats-chart-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--dark);
}
.stats-chart-wrap { margin-bottom: 2.5rem; }
.stats-chart {
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--dark);
}
.bar-alex  { opacity: 0.85; transition: opacity .2s; }
.bar-yulia { opacity: 0.85; transition: opacity .2s; }
.bar-alex:hover, .bar-yulia:hover { opacity: 1; }
.chart-label {
  font-family: var(--font-body);
  font-size: 11px;
  fill: var(--gray);
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
}
.legend-dot {
  width: 12px; height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.legend-alex  { background: #5b8dee; }
.legend-yulia { background: #9b5de5; }

/* Блок нецензурной лексики */
.swear-block {
  margin-top: 1rem;
}
.swear-total-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.swear-total-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #fff0f5, #fff);
  border: 1.5px solid #f9c6d6;
  border-radius: var(--radius);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
}
.swear-total-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}
.swear-total-label {
  font-size: 0.85rem;
  color: var(--gray);
  text-align: center;
}
.swear-winner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.swear-winner-crown { font-size: 1.8rem; }
.swear-winner-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}
.swear-winner-sub {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Два столбца медиа + слова */
.stats-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}
.stats-col-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}
.stats-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.stats-bar-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.stats-bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  width: 100px;
  flex-shrink: 0;
  text-align: right;
}
.stats-bar-track {
  flex: 1;
  height: 24px;
  background: #f0f0f5;
  border-radius: 6px;
  overflow: hidden;
}
.stats-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5b8dee, #9b5de5);
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  min-width: fit-content;
  white-space: nowrap;
}
.stats-bar-fill--alt {
  background: linear-gradient(90deg, #9b5de5, #f15bb5);
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1.5rem; }
  .stats-bar-label { width: 80px; font-size: 0.75rem; }
}

/* =============================================
   АНКЕТА ГОСТЯ — GOOGLE FORMS
   ============================================= */
.gform-wrap {
  max-width: 760px;
  margin: 2rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 1040px;
  position: relative;
  background: var(--white);
}
.gform-wrap iframe {
  width: 100%;
  min-height: 1280px;
  border: none;
  display: block;
}

/* =============================================
   КООРДИНАТОР
   ============================================= */
.coordinator-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: linear-gradient(135deg, #f5f0ff 0%, #fff0f8 100%);
  border-radius: calc(var(--radius) * 1.5);
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(155,93,229,0.15);
  max-width: 760px;
  margin: 2rem auto 0;
}
.coordinator-avatar {
  flex-shrink: 0;
  background: var(--white);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(155,93,229,0.2);
}
.coordinator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.coordinator-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.coordinator-text {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}
.coordinator-phone {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}
.coordinator-phone a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}
.coordinator-phone a:hover {
  text-decoration: underline;
}
.coordinator-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.tg-icon {
  font-style: normal;
  font-size: 1.1em;
  transform: rotate(45deg);
  display: inline-block;
}

/* =============================================
   ВЗРЫВ КОНФЕТТИ (burst анимация)
   ============================================= */
@keyframes burst {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.3);
    opacity: 0;
  }
}

/* =============================================
   RSVP (устаревшие стили — оставлены для совместимости)
   ============================================= */
.rsvp-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 2rem auto 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(155,93,229,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  text-align: center;
  color: var(--green);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  max-width: 750px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-question:hover { background: #f9f5ff; }
.faq-question[aria-expanded="true"] { color: var(--purple); }
.faq-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding: 0 1.5rem 1.2rem;
}
.faq-answer p { color: var(--gray); line-height: 1.7; margin: 0 0 0.75rem; }
.faq-answer p:last-of-type { margin-bottom: 0; }
.dresscode-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.dresscode-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f7f5f2;
  border: 1px solid #e5e0d8;
  border-radius: 999px;
  padding: 0.3rem 0.75rem 0.3rem 0.45rem;
  font-size: 0.85rem;
  color: var(--dark);
  font-weight: 500;
}
.dresscode-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

/* =============================================
   ФУТЕР
   ============================================= */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--dark);
  color: rgba(255,255,255,0.8);
}
.footer-hearts {
  font-size: 1.8rem;
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
}
.footer strong { color: var(--white); }
.footer-small {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   АДАПТИВНОСТЬ
   ============================================= */
@media (max-width: 768px) {
  .burger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 1rem 0;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 0.8rem 1.5rem;
  }

  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item--right {
    padding-left: 60px;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot { left: 20px; }
  .timeline-card,
  .timeline-item--right .timeline-card {
    border-left: 4px solid var(--purple);
    border-right: none;
    max-width: 100%;
  }

  .venue-wrap { grid-template-columns: 1fr; }
  .venue-map { order: -1; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .coordinator-card { flex-direction: column; text-align: center; padding: 2rem; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-names { font-size: 2.8rem; }
  .countdown { gap: 0.6rem; }
  .countdown-block { min-width: 60px; padding: 0.7rem 0.8rem; }
  .cd-num { font-size: 1.8rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
