/* ===== Variables ===== */
:root {
  --mint: #B2D8D8;
  --mint-light: #CDE7E3;
  --mint-dark: #8FBFBF;
  --white: #FFFFFF;
  --green-deep: #3D5A4C;
  --green-mid: #5A7A6A;
  --green-light: #7A9E8E;
  --text: #2C3330;
  --text-muted: #5C6B65;
  --shadow: 0 8px 32px rgba(61, 90, 76, 0.12);
  --shadow-sm: 0 4px 16px rgba(61, 90, 76, 0.08);
  --radius: 4px;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Montserrat', sans-serif;
  --transition: 0.3s ease;
  --site-max: 1200px;
  --site-wide: 1440px;
}

/* ===== Reset ===== */
*, *::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: 300;
  color: var(--text);
  background: #9ec9c9;
  line-height: 1.7;
  overflow-x: hidden;
}

.site {
  width: 100%;
  max-width: var(--site-wide);
  margin: 0 auto;
  background: var(--mint);
  box-shadow: 0 0 60px rgba(44, 51, 48, 0.08);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-deep);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-mid);
}

/* ===== 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: 1px solid var(--mint-dark);
  background: var(--white);
  color: var(--green-deep);
  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.05);
  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(143, 191, 191, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(143, 191, 191, 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(10px);
  border-bottom: 1px solid rgba(178, 216, 216, 0.5);
  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(--green-deep);
  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.5rem;
  padding: 1rem 0 0.5rem;
}

.nav__list.open {
  display: flex;
}

.nav__list a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0;
  display: block;
}

.nav__list a:hover {
  color: var(--green-deep);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: var(--site-wide);
    left: 50%;
    right: auto;
    padding: 1rem 2rem;
    transform: translateX(-50%) translateY(0);
    background: rgba(255, 255, 255, 0.85);
  }

  .nav.visible {
    transform: translateX(-50%) translateY(0);
  }

  .nav__burger {
    display: none;
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 0;
  }
}

/* ===== Botanical Decorations ===== */
.botanical {
  position: absolute;
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: 0.85;
  background-size: contain;
  background-repeat: no-repeat;
}

.botanical--tl {
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M0 80 Q30 60 50 90 Q70 120 90 70 Q110 20 130 60 Q150 100 170 50 Q190 0 200 40' fill='none' stroke='%235A7A6A' stroke-width='2'/%3E%3Cpath d='M50 90 Q55 100 60 110 Q65 95 70 85' fill='%237A9E8E' opacity='0.7'/%3E%3Cpath d='M90 70 Q95 85 100 95 Q105 80 110 65' fill='%235A7A6A' opacity='0.6'/%3E%3Cpath d='M130 60 Q135 75 140 90 Q145 70 150 55' fill='%233D5A4C' opacity='0.5'/%3E%3Cpath d='M20 100 Q40 110 60 100 Q80 90 100 105' fill='none' stroke='%238FBFBF' stroke-width='1.5'/%3E%3Cpath d='M10 120 Q30 130 50 115 Q70 100 90 120 Q110 140 130 110' fill='none' stroke='%237A9E8E' stroke-width='1.5'/%3E%3Ccircle cx='65' cy='108' r='3' fill='%23FFFFFF' opacity='0.8'/%3E%3Ccircle cx='105' cy='92' r='2' fill='%23FFFFFF' opacity='0.7'/%3E%3Ccircle cx='145' cy='72' r='2.5' fill='%23FFFFFF' opacity='0.6'/%3E%3C/svg%3E");
}

.botanical--tr {
  top: 0;
  right: 0;
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M0 80 Q30 60 50 90 Q70 120 90 70 Q110 20 130 60 Q150 100 170 50 Q190 0 200 40' fill='none' stroke='%235A7A6A' stroke-width='2'/%3E%3Cpath d='M50 90 Q55 100 60 110 Q65 95 70 85' fill='%237A9E8E' opacity='0.7'/%3E%3Cpath d='M90 70 Q95 85 100 95 Q105 80 110 65' fill='%235A7A6A' opacity='0.6'/%3E%3Cpath d='M130 60 Q135 75 140 90 Q145 70 150 55' fill='%233D5A4C' opacity='0.5'/%3E%3Cpath d='M20 100 Q40 110 60 100 Q80 90 100 105' fill='none' stroke='%238FBFBF' stroke-width='1.5'/%3E%3Cpath d='M10 120 Q30 130 50 115 Q70 100 90 120 Q110 140 130 110' fill='none' stroke='%237A9E8E' stroke-width='1.5'/%3E%3Ccircle cx='65' cy='108' r='3' fill='%23FFFFFF' opacity='0.8'/%3E%3Ccircle cx='105' cy='92' r='2' fill='%23FFFFFF' opacity='0.7'/%3E%3Ccircle cx='145' cy='72' r='2.5' fill='%23FFFFFF' opacity='0.6'/%3E%3C/svg%3E");
}

.botanical--bl {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M0 80 Q30 60 50 90 Q70 120 90 70 Q110 20 130 60 Q150 100 170 50 Q190 0 200 40' fill='none' stroke='%235A7A6A' stroke-width='2'/%3E%3Cpath d='M50 90 Q55 100 60 110 Q65 95 70 85' fill='%237A9E8E' opacity='0.7'/%3E%3Cpath d='M90 70 Q95 85 100 95 Q105 80 110 65' fill='%235A7A6A' opacity='0.6'/%3E%3Cpath d='M130 60 Q135 75 140 90 Q145 70 150 55' fill='%233D5A4C' opacity='0.5'/%3E%3Cpath d='M20 100 Q40 110 60 100 Q80 90 100 105' fill='none' stroke='%238FBFBF' stroke-width='1.5'/%3E%3Cpath d='M10 120 Q30 130 50 115 Q70 100 90 120 Q110 140 130 110' fill='none' stroke='%237A9E8E' stroke-width='1.5'/%3E%3Ccircle cx='65' cy='108' r='3' fill='%23FFFFFF' opacity='0.8'/%3E%3Ccircle cx='105' cy='92' r='2' fill='%23FFFFFF' opacity='0.7'/%3E%3Ccircle cx='145' cy='72' r='2.5' fill='%23FFFFFF' opacity='0.6'/%3E%3C/svg%3E");
}

.botanical--br {
  bottom: 0;
  right: 0;
  transform: scale(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M0 80 Q30 60 50 90 Q70 120 90 70 Q110 20 130 60 Q150 100 170 50 Q190 0 200 40' fill='none' stroke='%235A7A6A' stroke-width='2'/%3E%3Cpath d='M50 90 Q55 100 60 110 Q65 95 70 85' fill='%237A9E8E' opacity='0.7'/%3E%3Cpath d='M90 70 Q95 85 100 95 Q105 80 110 65' fill='%235A7A6A' opacity='0.6'/%3E%3Cpath d='M130 60 Q135 75 140 90 Q145 70 150 55' fill='%233D5A4C' opacity='0.5'/%3E%3Cpath d='M20 100 Q40 110 60 100 Q80 90 100 105' fill='none' stroke='%238FBFBF' stroke-width='1.5'/%3E%3Cpath d='M10 120 Q30 130 50 115 Q70 100 90 120 Q110 140 130 110' fill='none' stroke='%237A9E8E' stroke-width='1.5'/%3E%3Ccircle cx='65' cy='108' r='3' fill='%23FFFFFF' opacity='0.8'/%3E%3Ccircle cx='105' cy='92' r='2' fill='%23FFFFFF' opacity='0.7'/%3E%3Ccircle cx='145' cy='72' r='2.5' fill='%23FFFFFF' opacity='0.6'/%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  .botanical {
    width: 220px;
    height: 220px;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--mint);
  width: 100%;
}

.hero__content {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--site-wide);
  padding:
    max(4.5rem, calc(3.5rem + env(safe-area-inset-top, 0px)))
    clamp(1rem, 4vw, 2.5rem)
    clamp(1.5rem, 4vw, 2.5rem);
  z-index: 2;
}

.hero__card {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 3.25rem) clamp(1.15rem, 3vw, 2.75rem);
  max-width: min(100%, 540px);
  width: 100%;
  box-shadow: var(--shadow);
  border: 1px solid rgba(178, 216, 216, 0.6);
  text-align: center;
}

.hero__content .botanical {
  width: clamp(72px, 16vw, 160px);
  height: clamp(72px, 16vw, 160px);
  opacity: 0.65;
}

.hero__image-wrap {
  position: relative;
  width: calc(100% - clamp(1.5rem, 6vw, 4rem));
  max-width: 540px;
  margin: 0 auto clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 0;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.hero__greeting {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

.hero__invite {
  font-size: clamp(0.62rem, 1.8vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.hero__names {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 7.5vw, 4rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
}

.hero__names span {
  font-size: clamp(1.6rem, 5.5vw, 2.8rem);
  color: var(--green-mid);
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--mint-dark);
  margin: 1.25rem auto;
}

.hero__date {
  font-size: clamp(0.72rem, 2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: clamp(0.15em, 2vw, 0.35em);
  text-transform: uppercase;
  color: var(--text);
}

.hero__time {
  font-size: clamp(0.62rem, 1.8vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Hero — телефоны среднего размера */
@media (min-width: 480px) {
  .hero__card {
    max-width: min(100%, 500px);
  }

  .hero__image-wrap {
    max-width: 500px;
  }
}

/* Hero — планшет */
@media (min-width: 768px) {
  .hero__content {
    padding-top: max(5.5rem, calc(4rem + env(safe-area-inset-top, 0px)));
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  .hero__card {
    max-width: 580px;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  }

  .hero__content .botanical {
    opacity: 0.75;
  }

  .hero__image-wrap {
    max-width: 520px;
  }
}

/* Hero — ноутбук */
@media (min-width: 1024px) {
  .hero__card {
    max-width: 620px;
  }

  .hero__image-wrap {
    max-width: 560px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
  }
}

/* Hero — широкие мониторы */
@media (min-width: 1280px) {
  .hero__content {
    padding-top: max(6rem, calc(4.5rem + env(safe-area-inset-top, 0px)));
  }

  .hero__card {
    max-width: 640px;
  }

  .hero__image-wrap {
    max-width: 600px;
  }
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

.container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.section__title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--green-deep);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  font-size: clamp(0.62rem, 1.8vw, 0.75rem);
  font-weight: 400;
  letter-spacing: clamp(0.12em, 1.5vw, 0.2em);
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .section {
    padding: clamp(4rem, 6vw, 6rem) 0;
  }

  .container {
    padding: 0 clamp(1.5rem, 4vw, 3rem);
  }
}

@media (min-width: 1024px) {
  .story-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .story-gallery__item--tall {
    grid-row: span 1;
    aspect-ratio: 3/4;
  }

  .timeline {
    max-width: 720px;
    margin: 0 auto;
  }

  .schedule {
    max-width: 760px;
    margin: 0 auto;
  }

  .rsvp-form {
    max-width: 580px;
  }
}

@media (min-width: 1280px) {
  .logistics-grid,
  .details-grid {
    gap: 1.5rem;
  }
}

/* ===== Countdown ===== */
.countdown-section {
  background: var(--white);
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown__num {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--green-deep);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.countdown__sep {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--mint-dark);
  line-height: 1;
  padding-top: 0.1rem;
}

@media (min-width: 768px) {
  .countdown__item {
    min-width: clamp(70px, 10vw, 100px);
  }
}

/* ===== Story Gallery ===== */
.story-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.story-gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
}

.story-gallery__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.story-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .story-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .story-gallery__item--tall {
    grid-row: span 2;
    aspect-ratio: auto;
  }
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--mint-dark);
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green-mid);
}

.timeline__year {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
}

.timeline__heading {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 400;
  color: var(--green-deep);
  margin: 0.25rem 0 0.5rem;
}

.timeline__content p {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== Schedule ===== */
.schedule-section {
  background: var(--white);
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule__item {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2.5vw, 1.35rem) 0;
  border-bottom: 1px solid var(--mint-light);
  align-items: flex-start;
}

.schedule__item:last-child {
  border-bottom: none;
}

.schedule__time {
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  min-width: clamp(48px, 12vw, 60px);
  flex-shrink: 0;
}

.schedule__info h3 {
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.schedule__info p {
  font-size: clamp(0.75rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .schedule__item {
    gap: 2rem;
  }

  .schedule__time {
    min-width: 64px;
  }
}

/* ===== Logistics ===== */
.logistics-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .logistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.card {
  background: var(--white);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(178, 216, 216, 0.4);
}

.card--accent {
  border-color: var(--mint-dark);
  background: linear-gradient(135deg, var(--white) 0%, var(--mint-light) 100%);
}

.card__title {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
  color: var(--text);
  line-height: 1.7;
}

.card__text--muted {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(178, 216, 216, 0.4);
}

.map-wrap iframe {
  display: block;
}

/* ===== RSVP Form ===== */
.rsvp-section {
  background: var(--white);
}

.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  border: none;
}

.form-group legend {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  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 1rem;
  border: 1px solid var(--mint-dark);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  border-radius: var(--radius);
  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(--green-mid);
  box-shadow: 0 0 0 3px rgba(122, 158, 142, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checkbox-group--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

@media (min-width: 480px) {
  .checkbox-group--grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--text) !important;
  margin-bottom: 0 !important;
}

.radio-label input,
.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-mid);
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--green-deep);
  color: var(--white);
  width: 100%;
}

.btn--primary:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

.form-success {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.form-success__icon {
  font-size: 3rem;
  color: var(--green-mid);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Details ===== */
.details-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 3rem 1.25rem;
  background: var(--green-deep);
  color: var(--white);
}

.footer__names {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.footer__date {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.footer__love {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 2rem;
}

.footer__demo {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
}

.footer__demo p {
  font-size: 0.72rem;
  line-height: 1.7;
  opacity: 0.9;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer__top {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.footer__top:hover {
  color: var(--white);
}

.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__sep {
  opacity: 0.4;
  font-size: 0.7rem;
}

.footer__legal {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__legal p {
  font-size: 0.65rem;
  line-height: 1.8;
  opacity: 0.65;
  margin-bottom: 0.5rem;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal a:hover {
  color: var(--white);
}

.footer__copy {
  margin-top: 1rem;
  opacity: 0.5 !important;
}

/* ===== Legal / Privacy ===== */
.legal-section {
  background: var(--white);
  padding: 3rem 0;
}

.container--legal {
  max-width: 720px;
}

.section__title--legal {
  font-size: 2rem;
}

h1.section__title--legal {
  font-family: var(--font-script);
  font-weight: 400;
}

.legal-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.legal-text h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 1.75rem 0 0.6rem;
}

.legal-text p {
  margin-bottom: 0.75rem;
}

.legal-text a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-text ul,
.legal-list {
  margin: 0.5rem 0 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-text code {
  font-size: 0.75rem;
  background: var(--mint-light);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.legal-text__demo {
  padding: 1rem 1.25rem;
  background: var(--mint-light);
  border-left: 3px solid var(--green-mid);
  color: var(--text);
  margin-bottom: 1.5rem !important;
}

.legal-text__date {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  opacity: 0.7;
}

/* ===== Form consent ===== */
.form-group--consent {
  padding: 1.25rem;
  background: var(--mint-light);
  border: 1px solid rgba(178, 216, 216, 0.6);
  border-radius: var(--radius);
}

.consent-heading {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.checkbox-label--legal {
  align-items: flex-start !important;
  font-size: 0.75rem !important;
  line-height: 1.6 !important;
  color: var(--text-muted) !important;
  margin-bottom: 0.85rem;
}

.checkbox-label--legal:last-child {
  margin-bottom: 0;
}

.checkbox-label--legal a {
  color: var(--green-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox-label--legal input {
  margin-top: 3px;
}

.checkbox-label--demo {
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  border-top: 1px dashed rgba(61, 90, 76, 0.2);
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 1rem;
  background: rgba(44, 51, 48, 0.96);
  color: var(--white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: min(100%, var(--site-wide));
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.cookie-banner__text {
  font-size: 0.75rem;
  line-height: 1.7;
  opacity: 0.92;
}

.cookie-banner__text a {
  color: var(--mint-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--white);
}

.btn--cookie {
  background: var(--mint);
  color: var(--green-deep);
  padding: 0.75rem 1.5rem;
  align-self: center;
  white-space: nowrap;
}

.btn--cookie:hover {
  background: var(--mint-light);
}

@media (min-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .btn--cookie {
    align-self: center;
    flex-shrink: 0;
  }
}

body:has(.cookie-banner:not([hidden])) {
  padding-bottom: 5.5rem;
}

@media (min-width: 640px) {
  body:has(.cookie-banner:not([hidden])) {
    padding-bottom: 4.5rem;
  }
}

/* ===== Fade-in animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Маленькие телефоны ===== */
@media (max-width: 374px) {
  .hero__content {
    padding-top: max(4rem, calc(3rem + env(safe-area-inset-top, 0px)));
  }

  .hero__content .botanical {
    opacity: 0.35;
    width: 60px;
    height: 60px;
  }

  .hero__image-wrap {
    width: calc(100% - 1.25rem);
    max-width: 100%;
  }

  .hero__invite br {
    display: none;
  }

  .countdown__item {
    min-width: 48px;
  }

  .countdown__sep {
    display: none;
  }

  .countdown {
    gap: 0.65rem 0.85rem;
  }

  .nav__list a {
    font-size: 0.7rem;
  }
}

/* ===== Ландшафт на телефоне ===== */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    padding: max(3.5rem, calc(2.5rem + env(safe-area-inset-top, 0px))) 1rem 1rem;
  }

  .hero__content {
    flex: 1 1 280px;
    max-width: 360px;
    padding: 0;
  }

  .hero__card {
    padding: 1rem 1.25rem;
  }

  .hero__content .botanical {
    display: none;
  }

  .hero__image-wrap {
    flex: 1 1 220px;
    width: auto;
    max-width: min(42vw, 320px);
    margin: 0;
  }

  .hero__image {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 768px) and (max-height: 700px) and (orientation: landscape) {
  .hero {
    flex-direction: column;
    padding: 0;
  }

  .hero__content {
    max-width: none;
    flex: none;
    width: 100%;
  }

  .hero__image-wrap {
    flex: none;
    width: calc(100% - 2rem);
    max-width: 400px;
    margin: 0 auto 1.5rem;
  }
}
