/* ╔══════════════════════════════════════════╗
   ║  ЭМХТ 30 ЖИЛ — Modern Redesign v2      ║
   ╚══════════════════════════════════════════╝ */

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

:root {
  --bg: #090d18;
  --bg2: #0f1525;
  --surface: #161d30;
  --text: #e4e9f2;
  --muted: #7b8698;
  --primary: #4f8ff7;
  --primary-2: #3a7ae8;
  --accent: #6c9fff;
  --gold: #d4a44a;
  --grad: linear-gradient(135deg, #4f8ff7, #7eb8ff);
  --grad-text: linear-gradient(135deg, #7eb8ff, #d4a44a);
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Light mode ── */
[data-theme="light"] {
  --bg: #f8f9fd;
  --bg2: #f0f2f9;
  --surface: #ffffff;
  --text: #1b2038;
  --muted: #5a6070;
  --primary: #3b6de8;
  --grad: linear-gradient(135deg, #3b6de8, #6ea1ff);
  --grad-text: linear-gradient(135deg, #2d5bd7, #b8872e);
  --gold: #b88a30;
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Star canvas ── */
#starCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

/* ── Theme toggle ── */
.theme-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.4s;
}
.theme-toggle:hover {
  transform: scale(1.12) rotate(15deg);
  box-shadow: 0 8px 32px rgba(79,143,247,0.3);
}
.theme-icon { font-size: 1.3rem; position: absolute; transition: opacity 0.3s, transform 0.4s; }
.theme-icon--light { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-icon--dark  { opacity: 1; transform: rotate(0deg) scale(1); }

[data-theme="light"] .theme-icon--light { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-icon--dark  { opacity: 0; transform: rotate(90deg) scale(0.5); }

[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── Light mode overrides ── */
[data-theme="light"] .navbar.scrolled {
  background: rgba(248,249,253,0.92);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .nav-logo-badge { color: var(--gold); }
[data-theme="light"] .nav-menu a:hover { color: var(--primary); background: rgba(59,109,232,0.06); }
[data-theme="light"] .nav-toggle span { background: var(--text); }
[data-theme="light"] .nav-menu.open { background: rgba(248,249,253,0.97); }

[data-theme="light"] .hero-overlay {
  background: linear-gradient(180deg,
    rgba(248,249,253,0.65) 0%,
    rgba(248,249,253,0.1) 40%,
    rgba(248,249,253,0.95) 100%
  );
}
[data-theme="light"] .hero-badge {
  color: var(--gold);
  background: rgba(184,138,48,0.08);
  border-color: rgba(184,138,48,0.18);
}
[data-theme="light"] .cd-box {
  background: rgba(59,109,232,0.04);
  border-color: rgba(59,109,232,0.1);
}

[data-theme="light"] .stat,
[data-theme="light"] .prog-card,
[data-theme="light"] .vid-card,
[data-theme="light"] .faq-item,
[data-theme="light"] .ht-card {
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
[data-theme="light"] .stat:hover,
[data-theme="light"] .prog-card:hover,
[data-theme="light"] .vid-card:hover,
[data-theme="light"] .ht-card:hover {
  box-shadow: 0 6px 24px rgba(59,109,232,0.1);
}

[data-theme="light"] .section-dark { background: var(--bg2); }

[data-theme="light"] .prog-time,
[data-theme="light"] .ht-card::before {
  background: rgba(59,109,232,0.07);
}

[data-theme="light"] .faq-q:hover { color: var(--primary); }
[data-theme="light"] .faq-item.open { border-color: rgba(59,109,232,0.2); }
[data-theme="light"] .ht-card.expanded { border-color: rgba(59,109,232,0.3); box-shadow: 0 8px 30px rgba(59,109,232,0.1); }

[data-theme="light"] .ht-dot { border-color: var(--bg2); }

[data-theme="light"] .gal-item::after {
  background: rgba(0,0,0,0.35);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(59,109,232,0.05);
}

[data-theme="light"] .reg-field input:focus,
[data-theme="light"] .reg-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,109,232,0.1);
  background: #fff;
}

[data-theme="light"] .map-card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
[data-theme="light"] .map-card iframe { filter: none; }

[data-theme="light"] .lightbox { background: rgba(248,249,253,0.95); }

[data-theme="light"] .footer { background: var(--bg2); }

[data-theme="light"] .btn-glow {
  box-shadow: 0 2px 16px rgba(59,109,232,0.2);
}
[data-theme="light"] .btn-glow:hover {
  box-shadow: 0 8px 32px rgba(59,109,232,0.3);
}

[data-theme="light"] .theme-toggle:hover {
  box-shadow: 0 8px 32px rgba(59,109,232,0.2);
}

/* ── Snake canvas ── */
#snakeCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* ── Custom cursor ── */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, opacity 0.25s;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
              border-color 0.3s, border-width 0.3s, opacity 0.25s;
}
.cursor-trail {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}
body:hover .cursor-dot,
body:hover .cursor-ring { opacity: 1; }

/* Hover states */
.cursor-hover .cursor-dot {
  width: 48px; height: 48px;
  background: rgba(79,143,247,0.08);
  border: 1.5px solid var(--primary);
}
.cursor-hover .cursor-ring {
  width: 48px; height: 48px;
  opacity: 0;
}
.cursor-text .cursor-dot {
  width: 80px; height: 80px;
  background: rgba(79,143,247,0.05);
  mix-blend-mode: normal;
}
.cursor-text .cursor-ring { opacity: 0; }

[data-theme="light"] .cursor-hover .cursor-dot {
  background: rgba(59,109,232,0.06);
  border-color: var(--primary);
}
[data-theme="light"] .cursor-text .cursor-dot {
  background: rgba(59,109,232,0.04);
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring, .cursor-trail { display: none !important; }
}

/* ══════════════════════════════
   NAVBAR
   ══════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 0;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
  background: rgba(9,13,24,0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: 6px 0;
  box-shadow: 0 1px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  width: 52px; height: 52px;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.nav-logo:hover img { transform: rotate(-8deg) scale(1.1); }

.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-badge {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}
.nav-logo-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--text); background: var(--border); }
.nav-cta {
  background: var(--grad) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 50px !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════
   HERO
   ══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 6s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(9,13,24,0.75) 0%,
    rgba(9,13,24,0.35) 40%,
    rgba(9,13,24,0.9) 100%
  );
  z-index: 1;
}
.hero-particles {
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 120px 24px 60px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: rgba(212,164,74,0.1);
  border: 1px solid rgba(212,164,74,0.2);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  font-family: var(--font);
}
.btn-glow::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,143,247,0.35);
}
.btn-glow:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  transition: background 0.3s, border-color 0.3s, color 0.2s;
}
.btn-ghost:hover {
  background: rgba(79,143,247,0.08);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm { padding: 10px 22px; font-size: 0.82rem; }

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cd-box {
  background: rgba(79,143,247,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: 76px;
  text-align: center;
}
.cd-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cd-sep {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 18px;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Hero entrance animations ── */
.anim-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.8s var(--ease) forwards;
}
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.45s; }
.d5 { animation-delay: 0.6s; }

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════
   SECTIONS
   ══════════════════════════════ */
.section {
  padding: 100px 0;
  position: relative;
}
.section-dark {
  background: var(--bg2);
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Reveal animations ── */
.reveal-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-up {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--delay, 0s);
}
.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ══════════════════════════════
   STATS
   ══════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.stat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(79,143,247,0.12);
}
.stat:hover::before { opacity: 1; }

.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-plus {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-text {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ══════════════════════════════
   HISTORY TIMELINE
   ══════════════════════════════ */
.ht-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.ht-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--primary), var(--gold), transparent);
  transform: translateX(-50%);
}
.ht-item {
  position: relative;
  width: 50%;
  padding: 0 40px 50px;
}
.ht-item:nth-child(odd) {
  margin-left: 0;
  text-align: right;
  padding-right: 50px;
  padding-left: 0;
}
.ht-item:nth-child(even) {
  margin-left: 50%;
  text-align: left;
  padding-left: 50px;
  padding-right: 0;
}
.ht-dot {
  position: absolute;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg2);
  box-shadow: 0 0 0 3px rgba(79,143,247,0.25);
  z-index: 2;
}
.ht-item:nth-child(odd) .ht-dot { right: -7px; }
.ht-item:nth-child(even) .ht-dot { left: -7px; }

.ht-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}
.ht-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(79,143,247,0.1);
}
.ht-card.expanded {
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(79,143,247,0.15);
}
.ht-card::before {
  content: attr(data-year);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(79,143,247,0.1);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.ht-card::after {
  content: '▼';
  position: absolute;
  top: 24px;
  right: 20px;
  font-size: 0.6rem;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.3s;
}
.ht-card.expanded::after {
  transform: rotate(180deg);
  color: var(--primary);
}
.ht-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  padding-right: 20px;
}
.ht-card > p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.ht-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s, margin-top 0.35s;
  opacity: 0;
  margin-top: 0;
}
.ht-card.expanded .ht-detail {
  max-height: 400px;
  opacity: 1;
  margin-top: 14px;
}
.ht-detail p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.75;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

/* ══════════════════════════════
   PROGRAM
   ══════════════════════════════ */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.prog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.prog-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.prog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(79,143,247,0.1);
}
.prog-card:hover::after { transform: scaleX(1); }

.prog-time {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(79,143,247,0.08);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.prog-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.prog-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.prog-card p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ══════════════════════════════
   GALLERY
   ══════════════════════════════ */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gal-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
}
.gal-item::after {
  content: '🔍';
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: rgba(10,14,26,0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.gal-item:hover::after { opacity: 1; }
.gal-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gal-item:hover img { transform: scale(1.08); }

/* ══════════════════════════════
   VIDEOS
   ══════════════════════════════ */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vid-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.vid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(79,143,247,0.1);
}
.vid-wrap {
  position: relative;
  padding-top: 56.25%;
}
.vid-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ══════════════════════════════
   REGISTER
   ══════════════════════════════ */
.reg-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.reg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reg-field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.reg-field input,
.reg-field select {
  padding: 14px 16px;
  font-size: 0.92rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.reg-field input::placeholder { color: var(--muted); opacity: 0.6; }
.reg-field input:focus,
.reg-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,143,247,0.15);
}
.reg-field select option { background: var(--surface); color: var(--text); }
.reg-form .btn-glow { align-self: flex-start; }
.form-msg {
  font-size: 0.85rem;
  font-weight: 500;
}
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #f87171; }

/* ══════════════════════════════
   FAQ
   ══════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(79,143,247,0.3); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 24px 18px;
}
.faq-a p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ══════════════════════════════
   MAP
   ══════════════════════════════ */
.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21/9;
}
.map-card iframe {
  width: 100%; height: 100%;
  border: none;
  filter: brightness(0.8) contrast(1.1);
}

/* ══════════════════════════════
   FOOTER
   ══════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 48px; height: 48px; object-fit: contain; }
.footer-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.footer-contact h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-contact p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}
.footer-action {
  display: flex;
  align-items: flex-end;
}
.footer-bar {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}
.footer-bar p {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.5;
}

/* ══════════════════════════════
   LIGHTBOX
   ══════════════════════════════ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease);
}
.lightbox.active img { transform: scale(1); }

.lb-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2.5rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 3;
}
.lb-close:hover { opacity: 1; transform: scale(1.1); }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: var(--text);
  background: var(--border);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  z-index: 3;
}
.lb-arrow:hover { opacity: 1; background: rgba(255,255,255,0.12); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(9,13,24,0.97);
    backdrop-filter: blur(20px);
    padding: 80px 28px 40px;
    transition: right 0.4s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
  }
  .nav-menu.open { right: 0; }
  .nav-menu a { font-size: 1rem; padding: 12px 0; width: 100%; }
  .nav-cta { width: auto !important; margin-top: 12px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .vid-grid { grid-template-columns: 1fr; }
  .prog-grid { grid-template-columns: 1fr 1fr; }
  .reg-row { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }

  /* History mobile */
  .ht-line { left: 20px; }
  .ht-item,
  .ht-item:nth-child(odd),
  .ht-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    text-align: left;
    padding-left: 52px;
    padding-right: 0;
  }
  .ht-dot,
  .ht-item:nth-child(odd) .ht-dot,
  .ht-item:nth-child(even) .ht-dot {
    left: 13px; right: auto;
  }

  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 24px 16px; }
  .stat-num { font-size: 2rem; }
  .gal-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prog-grid { grid-template-columns: 1fr; }
  .cd-box { padding: 12px 14px; min-width: 60px; }
  .cd-num { font-size: 1.5rem; }
  .nav-logo-name { display: none; }
  .lb-arrow { width: 44px; height: 44px; font-size: 2rem; }
}
