/* ==========================================================================
   РГПУ им. А. И. Герцена — Новогодняя сказка во Дворце педагогики
   Core Architecture & Theme Stylesheet
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
  /* Colors: Imperial Winter & St. Petersburg Palace Palette */
  --color-bg-deep: #050e1d;
  --color-bg-primary: #07152b;
  --color-bg-secondary: #0b1d3a;
  --color-bg-surface: #0f274d;
  --color-bg-elevated: #143365;

  /* Palace Gold Spectrum */
  --color-gold-light: #fff2c6;
  --color-gold-primary: #f3cf7a;
  --color-gold-bright: #ffd700;
  --color-gold-rich: #d4af37;
  --color-gold-dark: #997316;
  --color-gold-glow: rgba(255, 215, 0, 0.35);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #fff2c6 0%, #ffd700 30%, #d4af37 70%, #997316 100%);
  --gradient-gold-text: linear-gradient(135deg, #ffffff 0%, #ffe699 25%, #ffd700 50%, #e6be44 75%, #ffffff 100%);
  --gradient-palace-blue: linear-gradient(180deg, #07152b 0%, #0b1d3a 50%, #061122 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-glass-gold: linear-gradient(135deg, rgba(243, 207, 122, 0.12) 0%, rgba(11, 29, 58, 0.6) 100%);
  
  /* Imperial Ruby Accent */
  --color-ruby-primary: #c41e3a;
  --color-ruby-dark: #820e20;
  --color-ruby-glow: rgba(196, 30, 58, 0.4);

  /* Silver, Ice & Typography Colors */
  --color-ice-white: #ffffff;
  --color-silver-light: #eaf4fc;
  --color-silver-muted: #9ebdd9;
  --color-silver-dim: #6c8cae;

  /* Borders & Shadows */
  --border-gold-subtle: 1px solid rgba(243, 207, 122, 0.22);
  --border-gold-medium: 1px solid rgba(243, 207, 122, 0.45);
  --border-gold-glow: 1px solid rgba(255, 215, 0, 0.7);
  --shadow-palace: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-gold-soft: 0 0 25px rgba(243, 207, 122, 0.2);
  --shadow-gold-intense: 0 0 35px rgba(255, 215, 0, 0.45);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-regal: 'Cinzel', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --header-height: 84px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Global Baseline --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scrollbar-width: thin;
  scrollbar-color: #d4af37 #040c1a;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* St. Petersburg Palace Scrollbar (WebKit / Blink) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #040c1a;
  border-left: 1px solid rgba(243, 207, 122, 0.12);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f3cf7a 0%, #d4af37 100%);
  border-radius: 5px;
  border: 2px solid #040c1a;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #fff2c6 0%, #ffd700 40%, #d4af37 100%);
  box-shadow: 0 0 10px rgba(243, 207, 122, 0.75), inset 0 0 6px rgba(255, 255, 255, 0.6);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #e5be6b 0%, #c99a3e 100%);
}

::-webkit-scrollbar-corner {
  background: #040c1a;
}

body.winter-theme {
  font-family: var(--font-sans);
  background-color: var(--color-bg-deep);
  color: var(--color-silver-light);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  background-image: 
    radial-gradient(ellipse at 50% 0%, #102a52 0%, transparent 60%),
    radial-gradient(ellipse at 85% 30%, #0d2242 0%, transparent 50%),
    radial-gradient(ellipse at 15% 70%, #0b1f3c 0%, transparent 50%),
    linear-gradient(180deg, #050e1d 0%, #07152b 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

#main-content {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--color-gold-rich);
  color: #000;
}

/* Accessibility: Visually Hidden */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Section Shared Layout */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 2;
}

.section-heading {
  margin-bottom: 54px;
}

.section-heading.text-center {
  text-align: center;
}

.section-kicker {
  font-family: var(--font-regal);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 12px;
  display: inline-block;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  font-weight: 700;
  color: var(--color-ice-white);
  line-height: 1.2;
  margin-bottom: 14px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px auto 20px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
}

.section-divider.align-left {
  justify-content: flex-start;
  margin-left: 0;
}

.section-divider .gem {
  color: var(--color-gold-bright);
  font-size: 0.85rem;
  filter: drop-shadow(0 0 6px var(--color-gold-bright));
}

.section-lead {
  font-size: 1.15rem;
  color: var(--color-silver-muted);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.7;
}

/* --- Palace Header & Site Header --- */
.palace-header,
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(7, 21, 43, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-gold-subtle);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.palace-header.header-scrolled,
.site-header.header-scrolled {
  background: rgba(5, 14, 29, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(243, 207, 122, 0.4);
}

.palace-brand-header,
.site-header.palace-brand-header {
  position: relative !important;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  height: auto !important;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 24px);
  gap: 12px;
}

/* Brand Link */
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-crest {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(243, 207, 122, 0.4));
}

.crest-svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-uni {
  font-family: var(--font-regal);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-gold-primary);
  text-transform: uppercase;
}

.brand-badge {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-silver-light);
  font-style: italic;
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-silver-light);
  letter-spacing: 0.3px;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-gold-bright);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-sound-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-gold-subtle);
  border-radius: 40px;
  color: var(--color-gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-sound-toggle:hover {
  background: rgba(243, 207, 122, 0.15);
  border-color: var(--color-gold-primary);
  color: var(--color-gold-bright);
  box-shadow: 0 0 15px rgba(243, 207, 122, 0.25);
}

.btn-sound-toggle.playing {
  background: rgba(243, 207, 122, 0.2);
  border-color: var(--color-gold-bright);
  color: var(--color-gold-bright);
}

.sound-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.sound-label {
  letter-spacing: 0.5px;
}

.btn-burger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  padding: 0;
}

.burger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-gold-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 80px;
  text-align: center;
}

.hero-atmosphere {
  display: none;
}

.palace-silhouette {
  display: none;
}

.golden-rays {
  display: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1040px;
}

.hero-pretitle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.heritage-badge,
.elite-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.heritage-badge {
  background: rgba(243, 207, 122, 0.1);
  border: var(--border-gold-subtle);
  color: var(--color-gold-primary);
  font-weight: 500;
}

.elite-badge {
  background: rgba(196, 30, 58, 0.2);
  border: 1px solid rgba(196, 30, 58, 0.5);
  color: #ff9fb0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.hero-title {
  margin-bottom: clamp(16px, 3.5vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1vw, 8px);
}

.title-sub {
  font-family: var(--font-regal);
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  letter-spacing: clamp(2px, 0.5vw, 4px);
  text-transform: uppercase;
  color: var(--color-silver-muted);
}

.title-main {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-ice-white);
  letter-spacing: clamp(-0.5px, -0.1vw, 0px);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

.gold-text-shimmer {
  background: var(--gradient-gold-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shineGold 6s linear infinite;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
}

@keyframes shineGold {
  to {
    background-position: 200% center;
  }
}

.title-palace {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4.4vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold-primary);
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 2.4vw, 1.25rem);
  line-height: clamp(1.5, 3.8vw, 1.7);
  max-width: 860px;
  margin: 0 auto clamp(20px, 4vw, 36px);
  padding: 0 clamp(4px, 1.5vw, 14px);
  color: var(--color-silver-light);
  font-weight: 300;
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.hero-subtitle strong {
  color: var(--color-gold-bright);
  font-weight: 600;
}

/* Hero Meta Cards */
.hero-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2.5vw, 16px);
  margin-bottom: clamp(24px, 5vw, 38px);
  width: 100%;
  box-sizing: border-box;
}

.meta-card {
  background: rgba(11, 29, 58, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-gold-subtle);
  border-radius: clamp(10px, 2.2vw, 14px);
  padding: clamp(12px, 3vw, 16px) clamp(14px, 3.5vw, 20px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 16px);
  text-align: left;
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
}

.meta-card:hover {
  background: rgba(16, 42, 82, 0.85);
  border-color: rgba(243, 207, 122, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-soft);
}

.meta-icon {
  width: clamp(38px, 9vw, 44px);
  height: clamp(38px, 9vw, 44px);
  flex-shrink: 0;
  border-radius: clamp(8px, 2vw, 10px);
  background: rgba(243, 207, 122, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold-bright);
}

.meta-icon svg {
  width: clamp(19px, 4.5vw, 22px);
  height: clamp(19px, 4.5vw, 22px);
}

.meta-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.meta-label {
  font-size: clamp(0.7rem, 1.8vw, 0.78rem);
  text-transform: uppercase;
  letter-spacing: clamp(0.5px, 0.1vw, 1px);
  color: var(--color-silver-dim);
}

.meta-val {
  font-size: clamp(0.85rem, 2.3vw, 0.95rem);
  font-weight: 600;
  color: var(--color-silver-light);
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: break-word;
}

.meta-val.highlight-gold {
  color: var(--color-gold-primary);
}

.meta-hint-gold {
  font-size: clamp(0.72rem, 1.8vw, 0.76rem);
  color: var(--color-gold-bright);
  margin-top: 2px;
  letter-spacing: 0.2px;
  font-weight: 500;
  word-break: normal;
  overflow-wrap: break-word;
}

.hero-countdown-wrap {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 680px;
  margin: 0 auto;
  backdrop-filter: none;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.countdown-title {
  font-family: var(--font-regal);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold-primary);
}

.countdown-ornament {
  color: var(--color-silver-muted);
  font-size: 0.9rem;
}

.countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.timer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.timer-digits-box {
  background: rgba(5, 14, 29, 0.85);
  border: 1px solid rgba(243, 207, 122, 0.3);
  border-radius: 12px;
  width: 100%;
  padding: 10px 0;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.timer-digits {
  font-family: var(--font-regal);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.timer-unit {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-silver-dim);
  margin-top: 8px;
}

.timer-separator {
  font-family: var(--font-regal);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold-primary);
  margin-top: -24px;
}

/* Hero CTA Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

/* Perks Bar */
.hero-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-silver-muted);
}

.perk-check {
  color: var(--color-gold-bright);
  font-weight: bold;
}

/* --- Play Section: Морозко --- */
.play-section {
  background: transparent;
}

.play-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

.play-story-card {
  background: var(--gradient-glass-gold);
  border: var(--border-gold-medium);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-palace);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.play-story-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.play-badge {
  font-family: var(--font-regal);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 12px;
}

.play-card-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-ice-white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.play-text {
  font-size: 1.05rem;
  color: var(--color-silver-light);
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 300;
}

.play-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: var(--border-gold-subtle);
  padding-top: 24px;
  margin-top: 24px;
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.highlight-num {
  font-family: var(--font-regal);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-gold-bright);
}

.highlight-desc {
  font-size: 0.8rem;
  color: var(--color-silver-muted);
  line-height: 1.4;
}

.play-features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-glass-card {
  background: rgba(11, 29, 58, 0.6);
  border: var(--border-gold-subtle);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition-smooth);
}

.feature-glass-card:hover {
  background: rgba(16, 42, 82, 0.8);
  border-color: rgba(243, 207, 122, 0.5);
  transform: translateX(4px);
}

.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.feature-content h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-ice-white);
  margin-bottom: 6px;
}

.feature-content p {
  font-size: 0.92rem;
  color: var(--color-silver-muted);
  line-height: 1.5;
  margin: 0;
}

/* --- Venues Section --- */
.venues-section {
  position: relative;
}

.venue-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.venue-tabs {
  display: inline-flex;
  background: rgba(7, 21, 43, 0.9);
  padding: 6px;
  border-radius: 40px;
  border: var(--border-gold-subtle);
}

.venue-tab-btn {
  background: transparent;
  border: none;
  border-radius: 32px;
  padding: 12px 24px;
  color: var(--color-silver-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.venue-tab-btn.active {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 4px 15px rgba(243, 207, 122, 0.35);
}

.venue-panels {
  position: relative;
}

.venue-panel {
  display: none;
}

.venue-panel.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.venue-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  background: rgba(11, 29, 58, 0.7);
  border: var(--border-gold-medium);
  border-radius: 24px;
  padding: 44px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-palace);
}

.venue-subtitle {
  font-family: var(--font-regal);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--color-gold-bright);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.venue-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--color-ice-white);
  line-height: 1.2;
  margin-bottom: 18px;
}

.venue-desc {
  font-size: 1.05rem;
  color: var(--color-silver-light);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
}

.venue-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.spec-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7, 21, 43, 0.6);
  border-radius: 10px;
  padding: 10px 16px;
  border-left: 3px solid var(--color-gold-primary);
}

.spec-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-gold-primary);
}

.spec-val {
  font-size: 0.92rem;
  color: var(--color-silver-light);
}

.venue-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.venue-visual {
  display: flex;
  align-items: stretch;
}

.venue-image-card {
  width: 100%;
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.palace-card-gradient {
  background: radial-gradient(circle at 80% 20%, rgba(243, 207, 122, 0.25) 0%, transparent 60%),
              linear-gradient(145deg, #0d274c 0%, #08172e 100%);
}

.sdk-card-gradient {
  background: radial-gradient(circle at 80% 20%, rgba(196, 30, 58, 0.25) 0%, transparent 60%),
              linear-gradient(145deg, #0e2b52 0%, #07152b 100%);
}

.venue-visual-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  border: var(--border-gold-subtle);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--color-gold-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.venue-visual-content {
  margin-top: 60px;
}

.venue-ornament {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.venue-visual-content h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-ice-white);
  margin-bottom: 8px;
}

.venue-visual-content p {
  font-size: 0.92rem;
  color: var(--color-silver-muted);
  line-height: 1.5;
}

/* --- Schedule Section --- */
.schedule-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(11, 29, 58, 0.8);
  border: var(--border-gold-subtle);
  color: var(--color-silver-muted);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--color-gold-primary);
  color: var(--color-gold-bright);
}

.filter-btn.active {
  background: var(--gradient-gold);
  border-color: transparent;
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(243, 207, 122, 0.3);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.show-card {
  background: rgba(11, 29, 58, 0.75);
  border: var(--border-gold-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.show-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 207, 122, 0.6);
  box-shadow: var(--shadow-palace), var(--shadow-gold-soft);
}

.show-date-badge {
  background: linear-gradient(135deg, rgba(20, 51, 101, 0.9) 0%, rgba(11, 29, 58, 0.9) 100%);
  border-bottom: var(--border-gold-subtle);
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.show-day {
  font-family: var(--font-regal);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  line-height: 1;
}

.show-month {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-silver-light);
  font-weight: 600;
}

.show-weekday {
  width: 100%;
  font-size: 0.78rem;
  color: var(--color-silver-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.show-body {
  padding: 22px 20px;
  flex-grow: 1;
}

.show-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 6px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.tag-razumovsky {
  background: rgba(243, 207, 122, 0.15);
  color: var(--color-gold-primary);
  border: 1px solid rgba(243, 207, 122, 0.3);
}

.tag-sdk {
  background: rgba(196, 30, 58, 0.18);
  color: #ff9fb0;
  border: 1px solid rgba(196, 30, 58, 0.35);
}

.show-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-ice-white);
  line-height: 1.3;
  margin-bottom: 14px;
}

.show-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.slot-badge {
  background: rgba(7, 21, 43, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.78rem;
  color: var(--color-silver-light);
}

.show-summary {
  font-size: 0.88rem;
  color: var(--color-silver-muted);
  line-height: 1.5;
  margin: 0;
}

.show-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 21, 43, 0.5);
}

.seats-left {
  font-size: 0.8rem;
  color: var(--color-silver-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-green, .dot-orange, .dot-gold {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.dot-orange { background: #f97316; box-shadow: 0 0 6px #f97316; }
.dot-gold { background: var(--color-gold-bright); box-shadow: 0 0 6px var(--color-gold-bright); }

/* --- Formats Section --- */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.format-card {
  background: rgba(11, 29, 58, 0.75);
  border: var(--border-gold-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.format-card:hover {
  transform: translateY(-6px);
  border-color: rgba(243, 207, 122, 0.6);
  box-shadow: var(--shadow-palace);
}

.featured-format {
  border: var(--border-gold-glow);
  background: linear-gradient(165deg, rgba(20, 51, 101, 0.85) 0%, rgba(11, 29, 58, 0.85) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(243, 207, 122, 0.2);
}

.popular-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.format-header {
  margin-bottom: 22px;
}

.format-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(243, 207, 122, 0.15);
  color: var(--color-gold-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.format-badge.badge-red {
  background: rgba(196, 30, 58, 0.2);
  color: #ff9fb0;
}

.format-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-ice-white);
  line-height: 1.25;
  margin-bottom: 8px;
}

.format-target {
  font-size: 0.84rem;
  color: var(--color-silver-dim);
  line-height: 1.4;
}

.format-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.format-features li {
  font-size: 0.9rem;
  color: var(--color-silver-light);
  line-height: 1.45;
  position: relative;
  padding-left: 20px;
}

.format-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold-primary);
}

.format-cta {
  margin-top: auto;
}

/* --- History Section --- */
.history-section {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 39, 77, 0.3) 50%, transparent 100%);
}

.history-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: center;
}

.monument-card {
  background: var(--gradient-glass-gold);
  border: var(--border-gold-medium);
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow-palace);
}

.monument-symbol {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
}

.pelican-monument-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(243, 207, 122, 0.45));
}

.caption-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-gold-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.caption-desc {
  font-size: 0.88rem;
  color: var(--color-silver-muted);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

.history-p {
  font-size: 1.08rem;
  color: var(--color-silver-light);
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 300;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(11, 29, 58, 0.5);
  border-left: 3px solid var(--color-gold-primary);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
}

.tl-year {
  font-family: var(--font-regal);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  min-width: 65px;
}

.tl-body strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-ice-white);
  margin-bottom: 4px;
}

.tl-body p {
  font-size: 0.88rem;
  color: var(--color-silver-muted);
  line-height: 1.4;
  margin: 0;
}

/* --- Waitlist Section --- */
.waitlist-card-wrapper {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(20, 51, 101, 0.85) 0%, rgba(7, 21, 43, 0.95) 100%);
  border: var(--border-gold-medium);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(243, 207, 122, 0.15);
  padding: 50px;
  position: relative;
  overflow: hidden;
}

.waitlist-card-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
}

.waitlist-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(243, 207, 122, 0.15);
  border: var(--border-gold-subtle);
  color: var(--color-gold-bright);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.waitlist-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-ice-white);
}

.waitlist-subtitle {
  font-size: 1.05rem;
  color: var(--color-silver-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 80px 0;
  position: relative;
  z-index: 10;
}

.faq-section .section-heading {
  margin-bottom: 24px;
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(11, 29, 58, 0.7);
  border: var(--border-gold-subtle);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(243, 207, 122, 0.4);
}

.faq-item.active {
  border-color: var(--color-gold-primary);
  background: rgba(16, 42, 82, 0.85);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-ice-white);
  cursor: pointer;
  gap: 16px;
  transition: color 0.25s ease;
}

.faq-question:hover {
  color: var(--color-gold-primary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--color-gold-bright);
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
}

.faq-item.active .faq-answer {
  max-height: 450px;
  padding: 0 26px 24px;
}

.faq-answer p {
  font-size: 0.98rem;
  color: var(--color-silver-light);
  line-height: 1.7;
  margin: 0;
  font-weight: 300;
}

.faq-answer p + p {
  margin-top: 12px;
}

/* --- Palace Footer --- */
.palace-footer {
  background: #030811;
  border-top: var(--border-gold-medium);
  padding: 80px 0 0;
  position: relative;
  z-index: 10;
}

.footer-top-decor {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.footer-crest-svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.footer-brand-title {
  display: flex;
  flex-direction: column;
}

.f-uni {
  font-family: var(--font-regal);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  letter-spacing: 1px;
}

.f-desc {
  font-size: 0.78rem;
  color: var(--color-silver-dim);
  line-height: 1.3;
}

.footer-about-text {
  font-size: 0.9rem;
  color: var(--color-silver-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--border-gold-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-gold-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--color-gold-primary);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(243, 207, 122, 0.4);
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-ice-white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-gold-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-silver-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-gold-bright);
  padding-left: 4px;
}

.footer-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.f-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-silver-light);
}

.f-contact-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1;
}

.f-contact-item a {
  color: var(--color-gold-bright);
  text-decoration: none;
}

.f-contact-item a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background: #02050b;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 22px 0;
  font-size: 0.85rem;
  color: var(--color-silver-dim);
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal a {
  color: var(--color-silver-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--color-silver-light);
}

.footer-legal .sep {
  opacity: 0.4;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-meta-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .history-grid,
  .venue-grid,
  .play-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-container {
    padding: 0 16px;
  }

  .brand-crest {
    width: 40px;
    height: 40px;
  }

  .brand-uni {
    font-size: 0.88rem;
  }

  .brand-badge {
    font-size: 0.82rem;
  }

  .btn-sound-toggle {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(7, 21, 43, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-gold-subtle);
    padding: 30px 24px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 18px;
    width: 100%;
    text-align: center;
  }

  .btn-burger {
    display: flex;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 10px 8px;
  }

  .btn-header-cta {
    display: none;
  }

  .title-main {
    font-size: clamp(2rem, 7.5vw, 2.8rem);
  }

  .title-palace {
    font-size: clamp(1.25rem, 4.4vw, 1.8rem);
  }

  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .schedule-grid,
  .formats-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .waitlist-card-wrapper {
    padding: 30px 20px;
  }

  .venue-grid {
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 58px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-container {
    padding: 0 12px;
    gap: 8px;
  }

  .brand-crest {
    width: 34px;
    height: 34px;
  }

  .brand-uni {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
  }

  .brand-badge {
    font-size: 0.72rem;
  }

  .btn-sound-toggle {
    padding: 6px 8px;
    gap: 4px;
  }

  .btn-sound-toggle .sound-label {
    display: none;
  }

  .btn-burger {
    width: 44px;
    height: 44px;
    padding: 11px 9px;
  }

  .title-main {
    font-size: clamp(1.85rem, 7.8vw, 2.2rem);
    line-height: 1.12;
  }

  .title-palace {
    font-size: clamp(1.15rem, 4.2vw, 1.35rem);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.55;
    margin-bottom: 22px;
    padding: 0 4px;
  }

  .meta-card {
    padding: 12px 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .meta-icon {
    width: 38px;
    height: 38px;
  }

  .meta-icon svg {
    width: 19px;
    height: 19px;
  }

  .meta-val {
    font-size: 0.88rem;
  }

  .meta-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  :root {
    --header-height: 54px;
  }

  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .header-container {
    padding: 0 8px;
    gap: 6px;
  }

  .brand-crest {
    width: 30px;
    height: 30px;
  }

  .brand-uni {
    font-size: 0.72rem;
    letter-spacing: 0.2px;
  }

  .brand-badge {
    font-size: 0.65rem;
  }

  .title-main {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .title-palace {
    font-size: 1.08rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    padding: 0 2px;
  }

  .meta-card {
    padding: 10px 10px;
    gap: 10px;
  }

  .meta-icon {
    width: 34px;
    height: 34px;
  }

  .meta-icon svg {
    width: 17px;
    height: 17px;
  }

  .meta-val {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .meta-label {
    font-size: 0.66rem;
  }
}

/* ==============================================================================
   AUDIO EQUALIZER & CONTROLS (Micro-interactions & Sound FX)
   ============================================================================== */
.sound-eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
  margin-left: 4px;
  vertical-align: middle;
}

.sound-eq-bars .bar {
  width: 2.5px;
  background: var(--color-gold-bright, #ffd700);
  border-radius: 2px;
  animation: soundEqBounce 1.2s ease-in-out infinite alternate;
}

.sound-eq-bars .bar-1 { height: 40%; animation-delay: 0.1s; }
.sound-eq-bars .bar-2 { height: 95%; animation-delay: 0.35s; }
.sound-eq-bars .bar-3 { height: 60%; animation-delay: 0.2s; }
.sound-eq-bars .bar-4 { height: 80%; animation-delay: 0.45s; }

@keyframes soundEqBounce {
  0% { height: 20%; opacity: 0.6; }
  50% { height: 100%; opacity: 1; }
  100% { height: 35%; opacity: 0.8; }
}

/* Floating Audio Control */
.floating-sound-control {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(11, 29, 58, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(243, 207, 122, 0.5);
  border-radius: 40px;
  color: var(--color-gold-primary, #f3cf7a);
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(243, 207, 122, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.floating-sound-control:hover {
  background: rgba(16, 42, 82, 0.95);
  border-color: var(--color-gold-bright, #ffd700);
  color: var(--color-gold-bright, #ffd700);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(243, 207, 122, 0.4);
}

.floating-sound-control.is-playing,
.floating-sound-control.playing {
  border-color: var(--color-gold-bright, #ffd700);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(243, 207, 122, 0.5);
}

.floating-sound-control .sound-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* Burger Button Active Transformation to 'X' */
.btn-burger.open .burger-bar:nth-child(1),
.btn-burger.active .burger-bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.btn-burger.open .burger-bar:nth-child(2),
.btn-burger.active .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.btn-burger.open .burger-bar:nth-child(3),
.btn-burger.active .burger-bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Prevent body scrolling when mobile menu is open */
body.mobile-menu-active {
  overflow: hidden;
}

/* ScrollSpy Active Navigation Item */
.nav-link.active {
  color: var(--color-gold-bright, #ffd700);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(243, 207, 122, 0.5);
}

.nav-link.active::after {
  width: 100% !important;
  background: var(--gradient-gold, linear-gradient(135deg, #f7e089 0%, #d4af37 50%, #aa771c 100%));
  box-shadow: 0 0 8px rgba(243, 207, 122, 0.6);
}

/* ==============================================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver: fade-in-up, zoom-in)
   ============================================================================== */
.reveal-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
  transform: translateY(36px);
}

.zoom-in {
  transform: scale(0.92);
}

.reveal-on-scroll.is-revealed,
.fade-in-up.is-revealed,
.zoom-in.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .fade-in-up,
  .zoom-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}



