/* ===== Watercolor Botanical — Dusty Blue & Gold ===== */
:root {
  --white: #FFFFFF;
  --cream: #FAFBFD;
  --blue-50: #EEF3F7;
  --blue-100: #D8E3EC;
  --blue-200: #A4B5C4;
  --blue-300: #8DA4B8;
  --blue-400: #7A8DA3;
  --blue-500: #5F7389;
  --gold: #C9A962;
  --gold-light: #E8D5A3;
  --gold-dark: #A68B4B;
  --text: #3D4F5F;
  --text-muted: #7A8B9A;
  --shadow: 0 8px 32px rgba(122, 141, 163, 0.12);
  --shadow-sm: 0 4px 16px rgba(122, 141, 163, 0.1);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --font-display: 'Comfortaa', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
  --transition: 0.3s ease;
  --site-max: 1100px;
  --site-wide: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 1.6vw, 16px);
}

@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

.site {
  width: 100%;
  max-width: var(--site-wide);
  margin: 0 auto;
  background: var(--white);
  box-shadow: var(--shadow);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-400);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

/* ===== Botanical SVG backgrounds ===== */
.hero__botanical,
.footer__botanical {
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.hero__botanical--tl {
  top: 0;
  left: 0;
  width: clamp(180px, 35vw, 320px);
  height: clamp(180px, 35vw, 320px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'%3E%3Cdefs%3E%3ClinearGradient id='w1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23A4B5C4' stop-opacity='0.55'/%3E%3Cstop offset='100%25' stop-color='%237A8DA3' stop-opacity='0.15'/%3E%3C/linearGradient%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23C9A962'/%3E%3Cstop offset='100%25' stop-color='%23E8D5A3'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='60' cy='80' rx='45' ry='28' fill='url(%23w1)' transform='rotate(-25 60 80)'/%3E%3Cellipse cx='100' cy='50' rx='38' ry='22' fill='%238DA4B8' opacity='0.35' transform='rotate(-40 100 50)'/%3E%3Cpath d='M20 120 Q50 60 90 40 Q70 80 95 110' fill='none' stroke='url(%23g1)' stroke-width='0.8' opacity='0.7'/%3E%3Cpath d='M40 140 Q80 90 130 70' fill='none' stroke='%23C9A962' stroke-width='0.6' opacity='0.5'/%3E%3Cpath d='M70 30 C90 50 95 75 80 100 C65 80 55 55 70 30' fill='%237A8DA3' opacity='0.25'/%3E%3Cpath d='M110 90 C125 70 150 65 170 80 C150 85 130 95 110 90' fill='none' stroke='%23C9A962' stroke-width='0.7'/%3E%3Ccircle cx='55' cy='65' r='1.5' fill='%23C9A962' opacity='0.8'/%3E%3Ccircle cx='75' cy='45' r='1' fill='%23E8D5A3'/%3E%3Ccircle cx='95' cy='75' r='1.2' fill='%23C9A962' opacity='0.6'/%3E%3C/svg%3E");
}

.hero__botanical--br {
  bottom: 0;
  right: 0;
  width: clamp(160px, 30vw, 280px);
  height: clamp(160px, 30vw, 280px);
  transform: scale(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 320'%3E%3Cdefs%3E%3ClinearGradient id='w2' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%238DA4B8' stop-opacity='0.5'/%3E%3Cstop offset='100%25' stop-color='%23A4B5C4' stop-opacity='0.1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='200' cy='220' rx='50' ry='30' fill='url(%23w2)' transform='rotate(20 200 220)'/%3E%3Cpath d='M150 250 Q200 200 260 180' fill='none' stroke='%23C9A962' stroke-width='0.7' opacity='0.6'/%3E%3Cpath d='M180 200 C200 180 230 175 250 190 C225 195 200 210 180 200' fill='%237A8DA3' opacity='0.2'/%3E%3Ccircle cx='210' cy='210' r='1.5' fill='%23C9A962'/%3E%3Ccircle cx='240' cy='195' r='1' fill='%23E8D5A3' opacity='0.8'/%3E%3C/svg%3E");
}

.hero__gold-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cline x1='0' y1='120' x2='800' y2='80' stroke='%23C9A962' stroke-width='0.4' opacity='0.25'/%3E%3Cline x1='0' y1='400' x2='800' y2='350' stroke='%23C9A962' stroke-width='0.3' opacity='0.2'/%3E%3Ccircle cx='650' cy='100' r='1.5' fill='%23C9A962' opacity='0.5'/%3E%3Ccircle cx='120' cy='380' r='1' fill='%23E8D5A3' opacity='0.6'/%3E%3C/svg%3E");
  background-size: cover;
}

.footer__botanical {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 80px;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 80'%3E%3Cpath d='M0 60 Q125 10 250 40 Q375 70 500 30' fill='none' stroke='%23C9A962' stroke-width='0.6' opacity='0.4'/%3E%3Cellipse cx='80' cy='45' rx='20' ry='12' fill='%23A4B5C4' opacity='0.3'/%3E%3Cellipse cx='420' cy='35' rx='18' ry='10' fill='%238DA4B8' opacity='0.25'/%3E%3C/svg%3E");
}

/* ===== Music Button ===== */
.music-btn {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 1rem));
  right: max(1rem, env(safe-area-inset-right, 1rem));
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--white);
  color: var(--gold-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.music-btn:hover {
  transform: scale(1.06);
  box-shadow: var(--shadow);
}

.music-btn.playing {
  animation: pulse 2s infinite;
}

.music-icon { width: 22px; height: 22px; }
.music-icon--off { display: none; }
.music-btn:not(.playing) .music-icon--on { display: none; }
.music-btn:not(.playing) .music-icon--off { display: block; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(201, 169, 98, 0); }
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blue-100);
  transform: translateY(-100%);
  transition: transform var(--transition);
}

.nav.visible { transform: translateY(0); }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-400);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__list {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0 0.5rem;
}

.nav__list.open { display: flex; }

.nav__list a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  display: block;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.nav__list a:hover {
  color: var(--blue-400);
  background: var(--blue-50);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--site-wide);
    left: 50%;
    right: auto;
    padding: 0.85rem 2rem;
    transform: translateX(-50%) translateY(0);
  }

  .nav.visible { transform: translateX(-50%) translateY(0); }
  .nav__burger { display: none; }

  .nav__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    padding: 0;
  }
}

/* ===== Hero — фото крупно слева ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding:
    max(5rem, calc(4rem + env(safe-area-inset-top, 0px)))
    0
    clamp(2rem, 5vw, 3rem);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--site-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.hero__photo {
  margin: 0;
  width: 100%;
}

.hero__photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 5px;
  background: linear-gradient(145deg, var(--gold-light), var(--blue-200), var(--gold));
  box-shadow: var(--shadow);
}

.hero__photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 4px);
  display: block;
}

.hero__copy {
  padding: 0.5rem 0 1rem;
}

.hero__tag {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--blue-400);
  margin-bottom: 1.25rem;
}

.hero__polygon-wrap {
  position: relative;
  width: min(240px, 70vw);
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
}

.hero__polygon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--gold);
  opacity: 0.85;
}

.hero__polygon-inner {
  position: absolute;
  inset: 18%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__names {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  font-weight: 700;
  color: var(--blue-500);
  line-height: 1.35;
  text-align: center;
}

.hero__names span {
  display: block;
  font-size: 0.75em;
  color: var(--gold);
  font-weight: 500;
  margin: 0.15em 0;
}

.hero__text {
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.hero__facts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero__facts div {
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.hero__facts dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 0.15rem;
}

.hero__facts dd {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .hero__photo-frame img {
    aspect-ratio: 3 / 4;
    max-height: min(78vh, 720px);
  }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 0 clamp(2rem, 5vw, 4rem);
  }
}

/* ===== Story — боковой заголовок + рельса ===== */
.story-section {
  background: var(--blue-50);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.story-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--site-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.story-section__aside h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--blue-500);
  line-height: 1.2;
}

.story-rail {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--blue-200);
}

.story-rail__stop {
  position: relative;
  padding-bottom: 2rem;
}

.story-rail__stop:last-child { padding-bottom: 0; }

.story-rail__stop::before {
  content: '';
  position: absolute;
  left: calc(-1.75rem - 6px);
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-300);
}

.story-rail__stop--finale::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.2);
}

.story-rail__stop time {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
}

.story-rail__stop h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-500);
  margin: 0.2rem 0 0.35rem;
}

.story-rail__stop p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
}

@media (min-width: 768px) {
  .story-section__inner {
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }

  .story-section__aside {
    position: sticky;
    top: 5rem;
  }
}

/* ===== Countdown — полоса ===== */
.countdown-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.35rem clamp(1rem, 4vw, 2rem);
  background: linear-gradient(90deg, var(--blue-400), var(--blue-300));
  color: var(--white);
  text-align: center;
}

.countdown-band__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.9;
}

.countdown-band__nums {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
}

.countdown-band__nums strong {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-right: 0.2rem;
}

.countdown-band__dot {
  color: var(--gold-light);
  opacity: 0.8;
}

@media (min-width: 640px) {
  .countdown-band {
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
  }
}

/* ===== Schedule — дата слева, список справа ===== */
.schedule-section {
  background: var(--white);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.schedule-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.schedule-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--blue-100);
}

.schedule-date__day {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 700;
  color: var(--blue-400);
  line-height: 1;
}

.schedule-date__month {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-500);
  margin-top: 0.25rem;
}

.schedule-date__year {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.schedule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--blue-100);
}

.schedule-list li:last-child { border-bottom: none; }

.schedule-list__time {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-align: right;
  min-width: 52px;
  padding-top: 0.15rem;
}

.schedule-list h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 0.2rem;
}

.schedule-list p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.schedule-list__item--main {
  background: var(--blue-50);
  margin: 0 -1rem;
  padding: 1.1rem 1rem;
  border-radius: var(--radius-sm);
  border-bottom: none;
}

.schedule-list__item--main .schedule-list__time {
  color: var(--blue-500);
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .schedule-section__inner {
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
  }

  .schedule-date {
    position: sticky;
    top: 5rem;
  }
}

/* ===== Practical — асимметричная сетка ===== */
.practical-section {
  background: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.practical-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: var(--site-wide);
  margin: 0 auto;
}

.practical-grid > div {
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--blue-100);
}

.practical-grid h2,
.practical-grid h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 0.5rem;
}

.practical-grid h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

.practical-grid h3 { font-size: 1rem; }

.practical-grid p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.practical-grid__lead {
  font-size: 1rem !important;
  color: var(--text) !important;
}

.practical-grid__hero {
  background: linear-gradient(135deg, var(--white), var(--blue-50));
  border-color: var(--blue-200);
}

.practical-grid__transfer {
  border-color: var(--gold);
  border-width: 1.5px;
}

.practical-grid__contacts a {
  color: var(--blue-400);
}

@media (min-width: 640px) {
  .practical-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .practical-grid__hero {
    grid-column: span 2;
  }

  .practical-grid__contacts {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .practical-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .practical-grid__hero { grid-column: span 2; grid-row: span 1; }
  .practical-grid__dress { grid-row: span 2; }
  .practical-grid__contacts { grid-column: span 3; }
}

/* ===== RSVP — текст слева, форма справа ===== */
.rsvp-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.rsvp-section__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--site-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  align-items: start;
}

.rsvp-intro__deadline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.65rem;
}

.rsvp-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 0.75rem;
}

.rsvp-intro p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 380px;
}

.rsvp-card {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--blue-100);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .rsvp-section__inner {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
  }

  .rsvp-intro {
    position: sticky;
    top: 5rem;
    padding-top: 1rem;
  }
}

.rsvp-form { max-width: none; margin: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 520px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .form-row .form-group { margin-bottom: 1.5rem; }
}

.form-group {
  margin-bottom: 1.5rem;
  border: none;
}

.form-group legend,
.form-group label,
.form-group__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-400);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--blue-100);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.toggle-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.toggle-pill { cursor: pointer; }
.toggle-pill input { position: absolute; opacity: 0; pointer-events: none; }

.toggle-pill span {
  display: block;
  text-align: center;
  padding: 1rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.toggle-pill:hover span { border-color: var(--blue-200); }
.toggle-pill input:checked + span {
  color: var(--gold-dark);
  background: rgba(201, 169, 98, 0.12);
  border-color: var(--gold);
}

.chip-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip-select__item { cursor: pointer; }
.chip-select__item input { position: absolute; opacity: 0; pointer-events: none; }

.chip-select__item span {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1.5px solid var(--blue-100);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.chip-select__item:hover span { border-color: var(--blue-200); }
.chip-select__item input:checked + span {
  color: var(--blue-500);
  background: var(--blue-50);
  border-color: var(--blue-300);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--submit {
  width: 100%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  box-shadow: var(--shadow-sm);
}

.btn--submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success__circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--gold);
  background: rgba(201, 169, 98, 0.12);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
  line-height: 1.7;
}

.form-success__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  background: var(--white);
  color: var(--text-muted);
  border-top: 1px solid var(--blue-100);
  overflow: hidden;
}

.footer__names {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--blue-500);
  margin-bottom: 0.35rem;
}

.footer__date {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.footer__love {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.footer__demo {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue-100);
}

.footer__demo p {
  font-size: 0.78rem;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer__links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__top {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer__top:hover { color: var(--blue-400); }

.footer__legal {
  max-width: 560px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--blue-100);
}

.footer__legal p {
  font-size: 0.7rem;
  line-height: 1.8;
  opacity: 0.75;
}

.footer__copy {
  margin-top: 0.5rem;
  opacity: 0.6 !important;
}

/* ===== Form consent ===== */
.form-group--consent {
  padding: 1.15rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--blue-100);
}

.consent-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-400);
  margin-bottom: 0.85rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.checkbox-label--legal {
  align-items: flex-start !important;
  font-size: 0.78rem !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important;
  margin-bottom: 0.75rem;
}

.checkbox-label--legal:last-child { margin-bottom: 0; }
.checkbox-label--legal a { color: var(--blue-400); text-decoration: underline; }
.checkbox-label--legal input { margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }

.checkbox-label--demo {
  padding-top: 0.75rem;
  margin-top: 0.35rem;
  border-top: 1px dashed var(--blue-100);
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--blue-100);
  box-shadow: 0 -4px 24px rgba(122, 141, 163, 0.12);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  max-width: min(100%, var(--site-wide));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.cookie-banner__text {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.cookie-banner__text a {
  color: var(--blue-400);
  text-decoration: underline;
}

.btn--cookie {
  background: var(--white);
  color: var(--blue-500);
  border: 1.5px solid var(--blue-300);
  padding: 0.7rem 1.5rem;
  align-self: center;
}

.btn--cookie:hover {
  background: var(--blue-50);
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
  }
  .btn--cookie { flex-shrink: 0; }
}

body:has(.cookie-banner:not([hidden])) { padding-bottom: 5.5rem; }

/* ===== Fade-in ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Legal pages (shared vars) ===== */
.legal-section {
  background: var(--cream);
  padding: 3rem 0;
}

.container--legal { max-width: 720px; }

.section__title--legal { font-size: 2rem; }

h1.section__title--legal {
  font-family: var(--font-display);
  font-weight: 700;
}

.legal-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.legal-text h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 1.75rem 0 0.6rem;
}

.legal-text p { margin-bottom: 0.75rem; }

.legal-text a {
  color: var(--blue-400);
  text-decoration: underline;
}

.legal-text ul,
.legal-list {
  margin: 0.5rem 0 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-text code {
  font-size: 0.78rem;
  background: var(--blue-50);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.legal-text__demo {
  padding: 1rem 1.25rem;
  background: var(--blue-50);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  margin-bottom: 1.5rem !important;
}

.legal-text__date {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ===== Small phones ===== */
@media (max-width: 374px) {
  .toggle-pair { grid-template-columns: 1fr; }
  .countdown-band__nums { gap: 0.4rem 0.55rem; }
}
