/* ===== Variables — Gothic Art Deco ===== */
:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --black-card: #141414;
  --gold: #C9A962;
  --gold-light: #E8D5A3;
  --gold-dark: #8B7355;
  --gold-muted: rgba(201, 169, 98, 0.35);
  --silver: #D8D4CC;
  --silver-muted: #9A958C;
  --crimson: #4a0404;
  --crimson-accent: #6b1010;
  --white: #F5F0E8;
  --text: #E8E4DC;
  --text-muted: #9A958C;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 30px rgba(201, 169, 98, 0.15);
  --radius: 0;
  --font-display: 'Ruslan Display', 'Cinzel', serif;
  --font-heading: 'Cinzel', 'Cormorant Garamond', serif;
  --font-body: 'Cormorant Garamond', 'Times New Roman', serif;
  --transition: 0.35s ease;
  --site-max: 1200px;
  --site-wide: 1440px;
  --border-gold: 1px solid rgba(201, 169, 98, 0.4);
}

/* ===== 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: 400;
  color: var(--text);
  background: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
}

.site {
  width: 100%;
  max-width: var(--site-wide);
  margin: 0 auto;
  background: var(--black-soft);
  box-shadow: 0 0 80px rgba(201, 169, 98, 0.08);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

/* ===== 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(--gold-dark);
  background: var(--black-card);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.music-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(201, 169, 98, 0.35);
}

.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(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 98, 0.2);
  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(--gold);
  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-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-muted);
  padding: 0.5rem 0;
  display: block;
}

.nav__list a:hover {
  color: var(--gold-light);
}

@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(10, 10, 10, 0.88);
  }

  .nav.visible {
    transform: translateX(-50%) translateY(0);
  }

  .nav__burger {
    display: none;
  }

  .nav__list {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 0;
  }
}

/* ===== Gothic Corner Decorations ===== */
.gothic-corner {
  position: absolute;
  width: clamp(100px, 22vw, 220px);
  height: clamp(100px, 22vw, 220px);
  pointer-events: none;
  opacity: 0.9;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 8px rgba(201, 169, 98, 0.2));
}

.gothic-corner--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%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23E8D5A3'/%3E%3Cstop offset='50%25' stop-color='%23C9A962'/%3E%3Cstop offset='100%25' stop-color='%238B7355'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cline x1='0' y1='0' x2='195' y2='18' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cline x1='0' y1='0' x2='175' y2='42' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='0' y1='0' x2='148' y2='62' stroke='url(%23g)' stroke-width='0.9' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='115' y2='78' stroke='url(%23g)' stroke-width='1' opacity='0.75'/%3E%3Cline x1='0' y1='0' x2='78' y2='88' stroke='url(%23g)' stroke-width='1.1' opacity='0.8'/%3E%3Cline x1='0' y1='0' x2='38' y2='92' stroke='url(%23g)' stroke-width='1' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='18' y2='195' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cline x1='0' y1='0' x2='42' y2='175' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='0' y1='0' x2='62' y2='148' stroke='url(%23g)' stroke-width='0.9' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='78' y2='115' stroke='url(%23g)' stroke-width='1' opacity='0.75'/%3E%3Cline x1='0' y1='0' x2='88' y2='78' stroke='url(%23g)' stroke-width='1.1' opacity='0.8'/%3E%3Cline x1='0' y1='0' x2='92' y2='38' stroke='url(%23g)' stroke-width='1' opacity='0.7'/%3E%3Cpath d='M0 95 L48 28 L95 0' fill='none' stroke='url(%23g)' stroke-width='1.4'/%3E%3Cpath d='M0 70 L32 32 L70 0' fill='none' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cpath d='M28 55 Q42 38 55 28 Q68 38 82 55 Q68 72 55 82 Q42 72 28 55' fill='none' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cpath d='M12 48 L20 36 L28 48 L20 60 Z' fill='none' stroke='url(%23g)' stroke-width='0.5' opacity='0.45'/%3E%3C/svg%3E");
}

.gothic-corner--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%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23E8D5A3'/%3E%3Cstop offset='50%25' stop-color='%23C9A962'/%3E%3Cstop offset='100%25' stop-color='%238B7355'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cline x1='0' y1='0' x2='195' y2='18' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cline x1='0' y1='0' x2='175' y2='42' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='0' y1='0' x2='148' y2='62' stroke='url(%23g)' stroke-width='0.9' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='115' y2='78' stroke='url(%23g)' stroke-width='1' opacity='0.75'/%3E%3Cline x1='0' y1='0' x2='78' y2='88' stroke='url(%23g)' stroke-width='1.1' opacity='0.8'/%3E%3Cline x1='0' y1='0' x2='38' y2='92' stroke='url(%23g)' stroke-width='1' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='18' y2='195' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cline x1='0' y1='0' x2='42' y2='175' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='0' y1='0' x2='62' y2='148' stroke='url(%23g)' stroke-width='0.9' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='78' y2='115' stroke='url(%23g)' stroke-width='1' opacity='0.75'/%3E%3Cline x1='0' y1='0' x2='88' y2='78' stroke='url(%23g)' stroke-width='1.1' opacity='0.8'/%3E%3Cline x1='0' y1='0' x2='92' y2='38' stroke='url(%23g)' stroke-width='1' opacity='0.7'/%3E%3Cpath d='M0 95 L48 28 L95 0' fill='none' stroke='url(%23g)' stroke-width='1.4'/%3E%3Cpath d='M0 70 L32 32 L70 0' fill='none' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cpath d='M28 55 Q42 38 55 28 Q68 38 82 55 Q68 72 55 82 Q42 72 28 55' fill='none' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cpath d='M12 48 L20 36 L28 48 L20 60 Z' fill='none' stroke='url(%23g)' stroke-width='0.5' opacity='0.45'/%3E%3C/svg%3E");
}

.gothic-corner--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%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23E8D5A3'/%3E%3Cstop offset='50%25' stop-color='%23C9A962'/%3E%3Cstop offset='100%25' stop-color='%238B7355'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cline x1='0' y1='0' x2='195' y2='18' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cline x1='0' y1='0' x2='175' y2='42' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='0' y1='0' x2='148' y2='62' stroke='url(%23g)' stroke-width='0.9' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='115' y2='78' stroke='url(%23g)' stroke-width='1' opacity='0.75'/%3E%3Cline x1='0' y1='0' x2='78' y2='88' stroke='url(%23g)' stroke-width='1.1' opacity='0.8'/%3E%3Cline x1='0' y1='0' x2='38' y2='92' stroke='url(%23g)' stroke-width='1' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='18' y2='195' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cline x1='0' y1='0' x2='42' y2='175' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='0' y1='0' x2='62' y2='148' stroke='url(%23g)' stroke-width='0.9' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='78' y2='115' stroke='url(%23g)' stroke-width='1' opacity='0.75'/%3E%3Cline x1='0' y1='0' x2='88' y2='78' stroke='url(%23g)' stroke-width='1.1' opacity='0.8'/%3E%3Cline x1='0' y1='0' x2='92' y2='38' stroke='url(%23g)' stroke-width='1' opacity='0.7'/%3E%3Cpath d='M0 95 L48 28 L95 0' fill='none' stroke='url(%23g)' stroke-width='1.4'/%3E%3Cpath d='M0 70 L32 32 L70 0' fill='none' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cpath d='M28 55 Q42 38 55 28 Q68 38 82 55 Q68 72 55 82 Q42 72 28 55' fill='none' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cpath d='M12 48 L20 36 L28 48 L20 60 Z' fill='none' stroke='url(%23g)' stroke-width='0.5' opacity='0.45'/%3E%3C/svg%3E");
}

.gothic-corner--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%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23E8D5A3'/%3E%3Cstop offset='50%25' stop-color='%23C9A962'/%3E%3Cstop offset='100%25' stop-color='%238B7355'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cline x1='0' y1='0' x2='195' y2='18' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cline x1='0' y1='0' x2='175' y2='42' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='0' y1='0' x2='148' y2='62' stroke='url(%23g)' stroke-width='0.9' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='115' y2='78' stroke='url(%23g)' stroke-width='1' opacity='0.75'/%3E%3Cline x1='0' y1='0' x2='78' y2='88' stroke='url(%23g)' stroke-width='1.1' opacity='0.8'/%3E%3Cline x1='0' y1='0' x2='38' y2='92' stroke='url(%23g)' stroke-width='1' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='18' y2='195' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cline x1='0' y1='0' x2='42' y2='175' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cline x1='0' y1='0' x2='62' y2='148' stroke='url(%23g)' stroke-width='0.9' opacity='0.7'/%3E%3Cline x1='0' y1='0' x2='78' y2='115' stroke='url(%23g)' stroke-width='1' opacity='0.75'/%3E%3Cline x1='0' y1='0' x2='88' y2='78' stroke='url(%23g)' stroke-width='1.1' opacity='0.8'/%3E%3Cline x1='0' y1='0' x2='92' y2='38' stroke='url(%23g)' stroke-width='1' opacity='0.7'/%3E%3Cpath d='M0 95 L48 28 L95 0' fill='none' stroke='url(%23g)' stroke-width='1.4'/%3E%3Cpath d='M0 70 L32 32 L70 0' fill='none' stroke='url(%23g)' stroke-width='0.8' opacity='0.6'/%3E%3Cpath d='M28 55 Q42 38 55 28 Q68 38 82 55 Q68 72 55 82 Q42 72 28 55' fill='none' stroke='url(%23g)' stroke-width='0.7' opacity='0.5'/%3E%3Cpath d='M12 48 L20 36 L28 48 L20 60 Z' fill='none' stroke='url(%23g)' stroke-width='0.5' opacity='0.45'/%3E%3C/svg%3E");
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--black);
  width: 100%;
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: var(--site-wide);
  min-height: clamp(480px, 85vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(5rem, calc(4rem + env(safe-area-inset-top, 0px)))
    clamp(1.5rem, 5vw, 3rem)
    clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(201, 169, 98, 0.15);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: min(100%, 620px);
  width: 100%;
}

.hero__greeting {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.25rem;
}

.hero__invite {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--silver-muted);
  line-height: 1.9;
  margin-bottom: 2rem;
}

.hero__names {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 0 40px rgba(201, 169, 98, 0.2);
  margin-bottom: 1.25rem;
}

.hero__names span {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--gold);
  display: block;
  margin: 0.35em 0;
}

.hero__venue {
  font-family: var(--font-heading);
  font-size: clamp(0.62rem, 1.6vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-muted);
  margin-bottom: 2.5rem;
}

.hero__date-block {
  position: relative;
  padding: 1.5rem 0;
}

.hero__date-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 98, 0.25);
  text-stroke: 1px rgba(201, 169, 98, 0.25);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.hero__date {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero__time {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(0.62rem, 1.6vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-muted);
  margin-top: 0.75rem;
}

.hero__image-wrap {
  position: relative;
  width: calc(100% - clamp(2rem, 8vw, 5rem));
  max-width: 480px;
  margin: clamp(2rem, 5vw, 3.5rem) auto;
}

.hero__image-frame {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  box-shadow: var(--shadow-gold), inset 0 0 30px rgba(201, 169, 98, 0.05);
}

.hero__image-frame::before,
.hero__image-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}

.hero__image-frame::before {
  top: 4px;
  left: 4px;
  border-width: 2px 0 0 2px;
}

.hero__image-frame::after {
  bottom: 4px;
  right: 4px;
  border-width: 0 2px 2px 0;
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}

/* Hero — телефоны среднего размера */
@media (min-width: 480px) {
  .hero__image-wrap {
    max-width: 440px;
  }
}

/* Hero — планшет */
@media (min-width: 768px) {
  .hero__frame {
    min-height: clamp(520px, 80vh, 780px);
    padding-top: max(6rem, calc(4.5rem + env(safe-area-inset-top, 0px)));
  }

  .gothic-corner {
    width: clamp(140px, 18vw, 240px);
    height: clamp(140px, 18vw, 240px);
  }

  .hero__image-wrap {
    max-width: 500px;
  }
}

/* Hero — ноутбук */
@media (min-width: 1024px) {
  .hero__image-wrap {
    max-width: 520px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
  }
}

/* Hero — широкие мониторы */
@media (min-width: 1280px) {
  .hero__frame {
    padding-top: max(7rem, calc(5rem + env(safe-area-inset-top, 0px)));
  }

  .hero__image-wrap {
    max-width: 540px;
  }
}

/* ===== 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-heading);
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__title::after {
  content: '◆';
  display: block;
  font-size: 0.45em;
  color: var(--gold-dark);
  margin-top: 0.6rem;
  letter-spacing: 0;
}

.section__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.62rem, 1.8vw, 0.75rem);
  font-weight: 400;
  letter-spacing: clamp(0.15em, 1.5vw, 0.25em);
  text-transform: uppercase;
  color: var(--silver-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) {
  .gallery-arches {
    gap: 1.5rem;
    padding-bottom: 0.5rem;
  }

  .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(--black-soft);
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.countdown__num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 500;
  color: var(--gold-light);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-muted);
  margin-top: 0.4rem;
}

.countdown__sep {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--gold-dark);
  line-height: 1;
  padding-top: 0.1rem;
}

.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;
}

@media (min-width: 768px) {
  .countdown__item {
    min-width: clamp(70px, 10vw, 100px);
  }
}

/* ===== Gallery — Gothic Arches ===== */
.gallery-section {
  background: var(--black);
  border-top: 1px solid rgba(201, 169, 98, 0.1);
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
  overflow: hidden;
}

.gallery-arches {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  padding: 0.5rem 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) transparent;
}

.gallery-arches::-webkit-scrollbar {
  height: 4px;
}

.gallery-arches::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
}

.gallery-arch {
  flex: 0 0 min(72vw, 260px);
  margin: 0;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-arch--offset {
  margin-top: 2rem;
}

.gallery-arch--featured {
  flex-basis: min(78vw, 300px);
}

.gallery-arch__frame {
  position: relative;
  width: 100%;
  padding: 3px;
  background: linear-gradient(160deg, var(--gold-light), var(--gold-dark));
  clip-path: polygon(0% 12%, 8% 4%, 50% 0%, 92% 4%, 100% 12%, 100% 100%, 0% 100%);
  box-shadow: var(--shadow-gold);
}

.gallery-arch__frame::before {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--black);
  clip-path: polygon(0% 12%, 8% 4%, 50% 0%, 92% 4%, 100% 12%, 100% 100%, 0% 100%);
  z-index: 0;
}

.gallery-arch__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  clip-path: polygon(0% 12%, 8% 4%, 50% 0%, 92% 4%, 100% 12%, 100% 100%, 0% 100%);
  filter: grayscale(20%) contrast(1.06) sepia(10%);
  transition: filter var(--transition), transform var(--transition);
}

.gallery-arch:hover .gallery-arch__frame img {
  filter: grayscale(5%) contrast(1.08) sepia(5%);
  transform: scale(1.02);
}

.gallery-arch__caption {
  margin-top: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gallery-arch__year {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.gallery-arch__label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-style: italic;
  color: var(--silver-muted);
}

.gallery-hint {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.5rem;
  opacity: 0.7;
}

@media (min-width: 900px) {
  .gallery-arches {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow-x: visible;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: 0 auto;
  }

  .gallery-arch--offset {
    margin-top: 3rem;
  }

  .gallery-arch--featured {
    margin-bottom: 1.5rem;
  }

  .gallery-hint {
    display: none;
  }
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-dark), rgba(201, 169, 98, 0.2));
}

.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: 0;
  transform: rotate(45deg);
  background: var(--black-soft);
  border: 1px solid var(--gold);
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.timeline__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  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(--black-soft);
  border-top: 1px solid rgba(201, 169, 98, 0.1);
}

.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 rgba(201, 169, 98, 0.12);
  align-items: flex-start;
}

.schedule__item:last-child {
  border-bottom: none;
}

.schedule__time {
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  min-width: clamp(48px, 12vw, 60px);
  flex-shrink: 0;
}

.schedule__info h3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  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(--black-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: var(--border-gold);
}

.card--accent {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--black-card) 0%, rgba(74, 4, 4, 0.25) 100%);
  box-shadow: var(--shadow-gold);
}

.card__title {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  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 {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: var(--border-gold);
}

.map-wrap iframe {
  display: block;
}

/* ===== Missive / RSVP ===== */
.missive-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74, 4, 4, 0.18) 0%, transparent 55%),
    var(--black-soft);
  border-top: 1px solid rgba(201, 169, 98, 0.12);
}

.missive-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.missive-header__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section__title--missive::after {
  display: none;
}

.missive-header__lead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-style: italic;
  color: var(--silver-muted);
  line-height: 1.85;
  margin-top: 1rem;
}

.missive-scroll {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(201, 169, 98, 0.04) 0%, transparent 12%, transparent 88%, rgba(201, 169, 98, 0.04) 100%),
    var(--black-card);
  border: 1px solid rgba(201, 169, 98, 0.28);
  box-shadow:
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    var(--shadow-gold);
}

.missive-scroll::before,
.missive-scroll::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.missive-scroll::before { top: 8px; }
.missive-scroll::after { bottom: 8px; }

.missive-scroll__ornament {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  letter-spacing: 0.6em;
  color: var(--gold-dark);
  opacity: 0.6;
}

.missive-scroll__ornament--top {
  margin-bottom: 1.5rem;
}

.missive-scroll__ornament--bottom {
  margin-top: 1.5rem;
}

.missive-form {
  max-width: none;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .form-row .form-group {
    margin-bottom: 1.5rem;
  }
}

.form-group__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-muted);
  margin-bottom: 0.75rem;
}

.verdict-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.verdict-card {
  cursor: pointer;
}

.verdict-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.verdict-card__face {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.25rem 0.75rem;
  min-height: 130px;
  border: 1px solid rgba(201, 169, 98, 0.25);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.verdict-card:hover .verdict-card__face {
  border-color: rgba(201, 169, 98, 0.45);
}

.verdict-card input:checked + .verdict-card__face {
  border-color: var(--gold);
  background: rgba(74, 4, 4, 0.22);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.verdict-card__sigil {
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1;
}

.verdict-card__title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.verdict-card__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--silver-muted);
  line-height: 1.5;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-group--wrap {
  gap: 0.45rem;
}

.pill-label {
  cursor: pointer;
}

.pill-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-label span {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-muted);
  border: 1px solid rgba(201, 169, 98, 0.22);
  background: rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.pill-label:hover span {
  border-color: rgba(201, 169, 98, 0.4);
  color: var(--text);
}

.pill-label input:checked + span {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 169, 98, 0.1);
}

.btn--seal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 1.1rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--crimson-accent) 0%, var(--crimson) 100%);
  border: 1px solid rgba(201, 169, 98, 0.45);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--seal:hover {
  background: linear-gradient(135deg, #7a1414 0%, var(--crimson-accent) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn--seal__icon {
  font-size: 1rem;
  color: var(--gold);
}

.missive-success {
  text-align: center;
  padding: 2rem 0.5rem 1rem;
}

.missive-success__seal {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(201, 169, 98, 0.25), rgba(74, 4, 4, 0.4));
  box-shadow: 0 0 30px rgba(201, 169, 98, 0.2);
  font-size: 1.5rem;
  color: var(--gold-light);
}

.missive-success h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}

.missive-success p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--silver-muted);
  line-height: 1.7;
}

.missive-success__note {
  margin-top: 1rem !important;
  font-size: 0.8rem !important;
  font-style: normal !important;
  opacity: 0.75;
}

/* ===== RSVP Form (shared) ===== */
.rsvp-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  border: none;
}

.form-group legend {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-muted);
  margin-bottom: 0.75rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-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 rgba(201, 169, 98, 0.35);
  background: var(--black-card);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  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(--gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 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(--gold);
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--crimson-accent) 0%, var(--crimson) 100%);
  color: var(--gold-light);
  border: 1px solid rgba(201, 169, 98, 0.4);
  width: 100%;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #7a1414 0%, var(--crimson-accent) 100%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.form-success {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.form-success__icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  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(--black);
  color: var(--silver);
  border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.footer__names {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  color: var(--gold-light);
  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(201, 169, 98, 0.06);
  border: 1px solid rgba(201, 169, 98, 0.2);
}

.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(201, 169, 98, 0.15);
}

.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(--black-soft);
  padding: 3rem 0;
}

.container--legal {
  max-width: 720px;
}

.section__title--legal {
  font-size: 2rem;
}

h1.section__title--legal {
  font-family: var(--font-heading);
  font-weight: 500;
}

.legal-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.legal-text h3 {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.75rem 0 0.6rem;
}

.legal-text p {
  margin-bottom: 0.75rem;
}

.legal-text a {
  color: var(--gold-light);
  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: rgba(201, 169, 98, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
}

.legal-text__demo {
  padding: 1rem 1.25rem;
  background: rgba(201, 169, 98, 0.08);
  border-left: 3px solid var(--gold-dark);
  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: rgba(201, 169, 98, 0.05);
  border: var(--border-gold);
}

.consent-heading {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-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(--gold-light);
  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(201, 169, 98, 0.25);
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 1rem;
  background: rgba(10, 10, 10, 0.97);
  color: var(--silver);
  border-top: 1px solid rgba(201, 169, 98, 0.2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.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(--gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: var(--gold);
}

.btn--cookie {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0.75rem 1.5rem;
  align-self: center;
  white-space: nowrap;
}

.btn--cookie:hover {
  background: rgba(201, 169, 98, 0.12);
}

@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) {
  .verdict-cards {
    grid-template-columns: 1fr;
  }

  .verdict-card__face {
    min-height: auto;
    padding: 1rem;
  }

  .hero__frame {
    padding-top: max(4.5rem, calc(3.5rem + env(safe-area-inset-top, 0px)));
  }

  .gothic-corner {
    opacity: 0.55;
    width: 72px;
    height: 72px;
  }

  .hero__image-wrap {
    width: calc(100% - 1.5rem);
    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__frame {
    flex: 1 1 280px;
    max-width: 360px;
    min-height: auto;
    padding: 1rem;
  }

  .gothic-corner {
    display: none;
  }

  .hero__image-wrap {
    flex: 1 1 220px;
    width: auto;
    max-width: min(42vw, 320px);
    margin: 0;
  }
}

@media (min-width: 768px) and (max-height: 700px) and (orientation: landscape) {
  .hero {
    flex-direction: column;
    padding: 0;
  }

  .hero__frame {
    max-width: none;
    flex: none;
    width: 100%;
  }

  .hero__image-wrap {
    flex: none;
    width: calc(100% - 2rem);
    max-width: 400px;
    margin: 0 auto 1.5rem;
  }
}
