/* ==========================================
   DigitalFest 2025 — Light Theme Stylesheet
   Palette sourced from Hero image
   ========================================== */

/* === VARIABLES === */
:root {
  /* === BACKGROUNDS (light) === */
  --bg:        #f5f3ff;   /* светло-лавандовый — основной фон */
  --bg2:       #eef6fb;   /* светло-голубой — чередование */
  --bg3:       #ffffff;   /* белый — карточки */

  /* === HACKATHON TRACK (cyan/blue from image) === */
  --hack-primary:   #00b4d8;   /* Electric Cyan */
  --hack-secondary: #7600ff;   /* Deep Purple */
  --hack-accent:    #00f0ff;   /* Neon Cyan */

  /* === GAMEJAM TRACK (pink/orange/lime from image) === */
  --game-primary:   #e900c8;   /* Magenta-Pink */
  --game-secondary: #ff9500;   /* Bright Orange */
  --game-accent:    #aaff00;   /* Acid Lime */

  /* === TEXT === */
  --text-primary:   #16103a;   /* Deep Indigo почти чёрный */
  --text-secondary: #4a4370;   /* Средний фиолетовый */
  --text-muted:     #8b83b4;   /* Приглушённый */

  /* === BORDERS === */
  --border:         rgba(0, 180, 216, 0.15);
  --border-dark:    rgba(22, 16, 58, 0.1);

  /* === GRADIENTS === */
  --gradient-hack: linear-gradient(135deg, #00d0ff, #20d592);
  --gradient-game: linear-gradient(135deg, #e900c8 0%, #ff9500 100%);
  --gradient-main: linear-gradient(135deg, #00b4d8 0%, #7600ff 50%, #e900c8 100%);
  --gradient-bg-hero: linear-gradient(135deg, #e0f7fa 0%, #f3e5f5 50%, #fff8e1 100%);

  /* === SHADOWS === */
  --shadow-sm:   0 2px 12px rgba(0, 180, 216, 0.1);
  --shadow-md:   0 8px 32px rgba(118, 0, 255, 0.12);
  --shadow-lg:   0 20px 60px rgba(118, 0, 255, 0.16);
  --shadow-hack: 0 8px 32px rgba(0, 180, 216, 0.2);
  --shadow-game: 0 8px 32px rgba(233, 0, 200, 0.2);

  /* === TYPOGRAPHY === */
  --font-main:    'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* === RADIUS === */
  --radius:    16px;
  --radius-sm:  8px;
  --radius-lg: 24px;

  /* === TRANSITIONS === */
  --transition:      0.3s ease;
  --transition-slow: 0.6s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

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

/* === SECTION === */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hack-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 56px;
  line-height: 1.75;
}

/* === ACCENT COLORS === */
.accent-blue { color: var(--hack-primary); }
.accent-pink { color: var(--game-primary); }

.accent-gradient {
  background: var(--gradient-hack);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-gradient2 {
  background: var(--gradient-game);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-hack);
  color: #fff;
  box-shadow: var(--shadow-hack);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 180, 216, 0.35);
}

.btn-outline {
  border: 2px solid rgba(0, 180, 216, 0.35);
  color: var(--hack-primary);
  background: rgba(0, 180, 216, 0.06);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(0, 180, 216, 0.14);
  border-color: var(--hack-primary);
  transform: translateY(-2px);
}

.btn-hack {
  background: var(--gradient-hack);
  color: #fff;
  box-shadow: var(--shadow-hack);
}
.btn-hack:hover { transform: translateY(-2px); }

.btn-game {
  background: var(--gradient-game);
  color: #fff;
  box-shadow: var(--shadow-game);
}
.btn-game:hover { transform: translateY(-2px); }

.btn-glow       { box-shadow: 0 0 24px rgba(0,180,216,.35), 0 4px 14px rgba(0,0,0,.07); }
.btn-glow:hover { box-shadow: 0 0 44px rgba(0,180,216,.55), 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }

.btn-glow-blue       { box-shadow: 0 0 22px rgba(0,180,216,.4); }
.btn-glow-blue:hover { box-shadow: 0 0 42px rgba(0,180,216,.65); transform: translateY(-2px); }

.btn-glow-pink       { box-shadow: 0 0 22px rgba(233,0,200,.4); }
.btn-glow-pink:hover { box-shadow: 0 0 42px rgba(233,0,200,.65); transform: translateY(-2px); }

/* ==========================================
   LOADER
   ========================================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-inner { text-align: center; }

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.loader-logo span {
  background: var(--gradient-hack);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(0, 180, 216, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-hack);
  border-radius: 3px;
  transition: width 0.05s linear;
}

/* ==========================================
   HEADER
   ========================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-slow);
}

#header.scrolled {
  background: rgba(245, 243, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(118, 0, 255, 0.08);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  flex-shrink: 0;
}

.logo span {
  background: var(--gradient-hack);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo em {
  font-style: normal;
  font-size: 0.7rem;
  vertical-align: super;
  color: var(--hack-primary);
  margin-left: 2px;
}

/* ── Header на hero (поверх изображения) ── */
#header:not(.scrolled) .logo { color: #fff; }
#header:not(.scrolled) .logo span {
  background: linear-gradient(135deg, #00f0ff, #aaff00);
  -webkit-background-clip: text;
  background-clip: text;
}
#header:not(.scrolled) .logo em { color: #00f0ff; }
#header:not(.scrolled) .nav-link { color: rgba(255,255,255,0.8); }
#header:not(.scrolled) .nav-link:hover,
#header:not(.scrolled) .nav-link.active { color: #fff; background: rgba(255,255,255,0.12); }
#header:not(.scrolled) .header-cta {
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
  backdrop-filter: blur(10px);
}
#header:not(.scrolled) .header-cta:hover { background: rgba(255,255,255,0.28); }
#header:not(.scrolled) .burger span { background: #fff; }

.nav-list {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-link:hover { color: var(--text-primary); background: rgba(0,180,216,0.08); }
.nav-link.active { color: var(--hack-primary); background: rgba(0,180,216,0.1); }

.header-cta {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 0.875rem;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO  — без оверлея, подложка под текст
   ========================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Фото на всю шапку — без тёмного оверлея */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Никакого opacity-затемнения! */
}

/* Оверлей hero — плавный переход к следующей секции */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 60%,
    #24192a 100%
  );
  z-index: 2;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.5;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* ── Контент hero ── */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

/* Подложка под весь текстовый блок */
.hero-content-glass {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  padding: 48px 52px;
  box-shadow:
    0 8px 48px rgba(118, 0, 255, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-hack {
  background: rgba(0, 240, 255, 0.18);
  border: 1px solid rgba(0, 180, 216, 0.4);
  color: #006a8e;
}

.badge-game {
  background: rgba(233, 0, 200, 0.12);
  border: 1px solid rgba(233, 0, 200, 0.35);
  color: #9a006b;
}

.badge-neutral {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #2a1f5a;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.06;
  margin-bottom: 20px;
  color: var(--text-primary);
  overflow: hidden;
}

.hero-title .line {
  display: block;
  /* начальное скрытое состояние задаётся через GSAP set(), не CSS */
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 660px;
  line-height: 1.7;
  font-weight: 500;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.hero-meta i { color: var(--hack-primary); }

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-slogan {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-style: italic;
}

/* Floating elements */
.float-el {
  position: absolute;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 1.3rem;
  backdrop-filter: blur(12px);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.float-1 {
  top: 20%; right: 14%;
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid rgba(0, 240, 255, 0.5);
  color: #006a8e;
  animation-delay: 0s;
}
.float-2 {
  top: 42%; right: 6%;
  background: rgba(233, 0, 200, 0.18);
  border: 1px solid rgba(233, 0, 200, 0.4);
  color: #9a006b;
  animation-delay: 1.5s;
}
.float-3 {
  bottom: 28%; right: 18%;
  background: rgba(118, 0, 255, 0.18);
  border: 1px solid rgba(118, 0, 255, 0.4);
  color: #5a00c0;
  animation-delay: 3s;
}
.float-4 {
  top: 14%; right: 28%;
  background: rgba(255, 149, 0, 0.18);
  border: 1px solid rgba(255, 149, 0, 0.4);
  color: #b06300;
  animation-delay: 4.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(4deg); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  z-index: 3;
}

.scroll-arrow {
  width: 20px; height: 32px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  80%       { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ==========================================
   О СОБЫТИИ
   ========================================== */
.about-section { background: var(--bg3); }

.tracks-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}

.track-card {
  position: relative;
  background: var(--bg3);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.track-card:hover { transform: translateY(-6px); }

.track-card-glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  top: -60px; right: -60px;
  transition: opacity var(--transition);
}
.track-card:hover .track-card-glow { opacity: 0.22; }

.track-hack {
  border: 1.5px solid rgba(0, 180, 216, 0.25);
  background: linear-gradient(135deg, #f0fbff 0%, #ffffff 100%);
}
.track-hack:hover { box-shadow: var(--shadow-hack); border-color: var(--hack-primary); }
.track-hack .track-card-glow   { background: var(--hack-primary); }
.track-hack .track-card-icon   { color: var(--hack-primary); background: rgba(0,180,216,0.1); }
.track-hack .track-badge       { background: rgba(0,180,216,0.12); color: var(--hack-primary); border: 1px solid rgba(0,180,216,0.3); }
.track-hack .track-points i    { color: var(--hack-primary); }
.track-hack .track-link        { color: var(--hack-primary); }

.track-game {
  border: 1.5px solid rgba(233, 0, 200, 0.2);
  background: linear-gradient(135deg, #fff0fd 0%, #ffffff 100%);
}
.track-game:hover { box-shadow: var(--shadow-game); border-color: var(--game-primary); }
.track-game .track-card-glow   { background: var(--game-primary); }
.track-game .track-card-icon   { color: var(--game-primary); background: rgba(233,0,200,0.08); }
.track-game .track-badge       { background: rgba(233,0,200,0.1); color: var(--game-primary); border: 1px solid rgba(233,0,200,0.25); }
.track-game .track-points i    { color: var(--game-primary); }
.track-game .track-link        { color: var(--game-primary); }

.track-card-icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.track-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.track-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.3;
}

.track-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.65;
}

.track-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.track-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.track-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: gap var(--transition);
}
.track-link:hover { gap: 10px; }

.tracks-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 100px;
}

.tracks-divider-line {
  width: 1px; height: 80px;
  background: linear-gradient(180deg, transparent, rgba(0,180,216,0.3), transparent);
}

.tracks-divider-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,180,216,0.12), rgba(233,0,200,0.12));
  border: 1.5px solid rgba(0,180,216,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--hack-primary);
}

/* ==========================================
   HACKATHON
   ========================================== */
.hackathon-section { background: var(--bg2); }

.hack-overlay {
  background: radial-gradient(ellipse at 80% 50%, rgba(0,180,216,0.06) 0%, transparent 65%);
}

.hack-label { color: var(--hack-primary); }

.hack-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}

.hack-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hack);
}

.hack-image img {
  width: 100%; height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(0,180,216,0.2);
}

.hack-image-glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,180,216,0.08), transparent);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.lead-text {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.75;
  font-weight: 500;
}

.hack-text p, .game-text p { color: var(--text-secondary); line-height: 1.7; }

/* ==========================================
   INFO CARDS V2 — стиль как на референсе
   2 колонки, 3D-иконка по центру сверху,
   лаконичный текст снизу
   ========================================== */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

/* Базовая карточка V2 */
.info-card-v2 {
  position: relative;
  border-radius: 24px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.3,0.64,1),
              box-shadow 0.3s ease;
  cursor: default;
  min-height: 320px;
}

/* Хакатон карточка — светло-синяя */
.hack-card-v2 {
  background: linear-gradient(145deg, #e8f5fb 0%, #d4edf8 60%, #cce8f5 100%);
  border: 1.5px solid rgba(0, 180, 216, 0.18);
  box-shadow: 0 4px 24px rgba(0, 180, 216, 0.10);
}
.hack-card-v2:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 180, 216, 0.20);
}

/* Геймджем карточка — светло-розовая */
.game-card-v2 {
  background: linear-gradient(145deg, #fce8f8 0%, #f7d8f2 60%, #ffe0f5 100%);
  border: 1.5px solid rgba(233, 0, 200, 0.15);
  box-shadow: 0 4px 24px rgba(233, 0, 200, 0.08);
}
.game-card-v2:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(233, 0, 200, 0.18);
}

/* 3D-картинка — центр верхней половины */
.icv2-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 20px;
}

.icv2-img img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.14));
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  display: block;
}

.info-card-v2:hover .icv2-img img {
  transform: translateY(-8px) scale(1.07) rotate(-2deg);
}

/* Текст — лаконично, внизу */
.icv2-text {
  width: 100%;
  text-align: left;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.icv2-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.hack-card-v2 .icv2-label { color: var(--hack-primary); }
.game-card-v2 .icv2-label { color: var(--game-primary); }

.icv2-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

/* Оставляем старые стили для обратной совместимости */
.hack-cards, .game-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--bg3);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 26px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hack-info-card { border-top: 3px solid var(--hack-primary); }
.hack-info-card:hover { border-color: var(--hack-primary); box-shadow: var(--shadow-hack); }

.game-info-card { border-top: 3px solid var(--game-primary); }
.game-info-card:hover { box-shadow: var(--shadow-game); }

.info-card-icon {
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-size: 1.1rem;
  margin-bottom: 18px;
  overflow: hidden;
}

/* 3D-иллюстрация в info-карточке */
.info-card-3d {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: transparent;
  overflow: visible;
  margin-bottom: 14px;
}

.info-card-3d img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 0;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  display: block;
}

.info-card:hover .info-card-3d img {
  transform: translateY(-6px) scale(1.06);
}

.info-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.info-card p, .info-card ul li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.info-card ul { display: flex; flex-direction: column; gap: 6px; }

.info-card ul li::before { content: '→ '; color: var(--hack-primary); font-weight: 700; }
.game-info-card ul li::before { color: var(--game-primary); }

/* Data flow deco */
.data-flow-deco {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 48px; opacity: 0.4;
}

.data-node {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--hack-primary);
  animation: pulseDot 2s ease-in-out infinite;
}
.data-node:nth-child(3) { animation-delay: 0.5s; }
.data-node:nth-child(5) { animation-delay: 1s; }

.data-line {
  flex: 1; max-width: 120px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--hack-primary), var(--hack-secondary));
  position: relative; overflow: hidden;
}

.data-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.9), transparent);
  animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.6); opacity: 1; }
}

/* ==========================================
   GAMEJAM
   ========================================== */
.gamejam-section { background: var(--bg); }

.game-overlay {
  background: radial-gradient(ellipse at 20% 50%, rgba(233,0,200,0.05) 0%, transparent 65%);
}

.game-label { color: var(--game-primary) !important; }

.game-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}

.game-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-game);
}

.game-image img {
  width: 100%; height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(233,0,200,0.2);
  position: relative; z-index: 1;
}

.game-image-glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(233,0,200,0.08), transparent);
  border-radius: var(--radius-lg);
  pointer-events: none; z-index: 2;
}

.ripple-deco {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(233,0,200,0.25);
  animation: rippleExpand 3s ease-out infinite;
  z-index: 0;
}
.r1 { width:80px; height:80px; top:-20px; right:-20px; animation-delay:0s; }
.r2 { width:140px; height:140px; top:-50px; right:-50px; animation-delay:0.8s; border-color:rgba(255,149,0,0.18); }
.r3 { width:200px; height:200px; top:-80px; right:-80px; animation-delay:1.6s; border-color:rgba(170,255,0,0.12); }

@keyframes rippleExpand {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

/* ==========================================
   ПРЕИМУЩЕСТВА
   ========================================== */
.why-section { background: var(--bg3); }

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

.why-card {
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 30px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.why-card:hover {
  background: var(--bg3);
  border-color: var(--hack-primary);
  box-shadow: var(--shadow-hack);
  transform: translateY(-4px);
}

.why-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-size: 1.2rem;
  margin-bottom: 18px;
  background: var(--gradient-main);
  color: #fff;
}

.why-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.why-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: linear-gradient(135deg, rgba(0,180,216,0.07) 0%, rgba(118,0,255,0.07) 50%, rgba(233,0,200,0.07) 100%);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.stat-item { text-align: center; }

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-hack);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ==========================================
   ДЛЯ КОГО
   ========================================== */
.audience-section { background: var(--bg2); }

.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.audience-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--bg3);
  border: 1.5px solid var(--border-dark);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.audience-tag:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  border-color: rgba(0,180,216,0.4);
}

.audience-tag.hack-tag { border-color: rgba(0,180,216,0.2); }
.audience-tag.hack-tag:hover {
  border-color: var(--hack-primary);
  color: var(--hack-primary);
  background: rgba(0,180,216,0.06);
}

.audience-tag.game-tag { border-color: rgba(233,0,200,0.2); }
.audience-tag.game-tag:hover {
  border-color: var(--game-primary);
  color: var(--game-primary);
  background: rgba(233,0,200,0.05);
}

.audience-tag i { font-size: 0.85rem; color: var(--text-muted); }
.audience-tag:hover i { color: inherit; }

.audience-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 16px 20px;
  background: rgba(0,180,216,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(0,180,216,0.2);
  width: fit-content;
  font-weight: 500;
}

.audience-note i { color: var(--hack-primary); }

/* ==========================================
   ТАЙМЛАЙН
   ========================================== */
.timeline-section { background: var(--bg3); }

.timeline-overlay {
  background: radial-gradient(ellipse at 50% 0%, rgba(118,0,255,0.05) 0%, transparent 60%);
}

/* Timeline tabs */
.timeline-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 5px;
  width: fit-content;
}

.timeline-tab {
  padding: 10px 28px;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.timeline-tab:hover {
  color: var(--text-primary);
  background: var(--bg2);
}
.timeline-tab.active {
  background: var(--gradient-hack);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,180,216,0.3);
}
.timeline-tab[data-tab="game"].active {
  background: var(--gradient-game);
  box-shadow: 0 4px 14px rgba(233,0,200,0.3);
}

.timeline-panel { display: block; }
.timeline-panel.hidden { display: none; }

.timeline { position: relative; padding: 20px 0; }

.timeline-line {
  position: absolute;
  left: 29px; top: 0;
  width: 2px; height: 0%;
  background: linear-gradient(180deg, var(--hack-primary), var(--hack-secondary), var(--game-primary));
  transition: height 0.1s linear;
  z-index: 0;
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-dot {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative; z-index: 1;
}

.timeline-item.active .timeline-dot {
  border-color: var(--hack-primary);
  color: var(--hack-primary);
  background: rgba(0,180,216,0.08);
  box-shadow: 0 0 0 6px rgba(0,180,216,0.1);
}

.timeline-card {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 22px 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.timeline-item.active .timeline-card {
  border-color: rgba(0,180,216,0.3);
  background: rgba(0,180,216,0.03);
  box-shadow: var(--shadow-hack);
}

.timeline-icon { color: var(--hack-primary); font-size: 1.1rem; margin-bottom: 8px; }

.timeline-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.timeline-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* ==========================================
   ПРИЗЫ
   ========================================== */
.prizes-section { background: var(--bg2); }
.prizes-section .section-text { margin-bottom: 24px; }

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}

.prize-card {
  position: relative;
  background: var(--bg3);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.prize-card:hover { transform: translateY(-6px); }

.prize-card-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  top: -80px; right: -80px;
  transition: opacity var(--transition);
}
.prize-card:hover .prize-card-glow { opacity: 0.18; }

.prize-hack   { border-color: rgba(0,180,216,.25); }
.prize-hack:hover { border-color: var(--hack-primary); box-shadow: var(--shadow-hack); }
.prize-hack   .prize-card-glow { background: var(--hack-primary); }

.prize-game   { border-color: rgba(233,0,200,.2); }
.prize-game:hover { border-color: var(--game-primary); box-shadow: var(--shadow-game); }
.prize-game   .prize-card-glow { background: var(--game-primary); }

.prize-special { border-color: rgba(255,149,0,.2); }
.prize-special:hover { border-color: var(--game-secondary); box-shadow: 0 8px 32px rgba(255,149,0,.2); }
.prize-special .prize-card-glow { background: var(--game-secondary); }

.prize-extra  { border-color: rgba(118,0,255,.15); }
.prize-extra:hover { border-color: var(--hack-secondary); box-shadow: 0 8px 32px rgba(118,0,255,.15); }
.prize-extra  .prize-card-glow { background: var(--hack-secondary); }

.prize-place { font-size: 2.5rem; margin-bottom: 14px; }

.prize-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.prize-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-hack);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.prize-game .prize-amount {
  background: var(--gradient-game);
  -webkit-background-clip: text;
  background-clip: text;
}

.prize-currency { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 14px; font-weight: 600; }
.prize-card p   { font-size: 0.875rem; color: var(--text-secondary); }

.prize-list { display: flex; flex-direction: column; gap: 10px; }

.prize-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-secondary); font-weight: 500;
}
.prize-list i { color: var(--game-secondary); font-size: 0.7rem; }

/* ==========================================
   ЭКСПЕРТЫ
   ========================================== */
.experts-section { background: var(--bg3); }

.experts-overlay {
  background: radial-gradient(ellipse at 50% 100%, rgba(0,180,216,0.05) 0%, transparent 60%);
}

.experts-block { margin-bottom: 52px; }

/* Партнёры — сетка плейсхолдеров */
.partners-block { margin-top: 8px; }

/* В marquee плейсхолдеры имеют фиксированную ширину */
.partner-logo.partner-logo-slot {
  width: 160px;
  height: 58px;
  flex-shrink: 0;
  border-style: dashed;
  border-width: 1.5px;
  border-radius: var(--radius);
  border-color: var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: border-color var(--transition), background var(--transition);
  padding: 0;
}
.partner-logo.partner-logo-slot:hover {
  border-color: rgba(0,180,216,0.4);
  background: var(--bg2);
}

.partner-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  opacity: 0.55;
  font-size: 0.72rem;
  text-align: center;
  pointer-events: none;
}
.partner-logo-placeholder i {
  font-size: 1.4rem;
  opacity: 0.6;
}
.partner-logo-placeholder small {
  font-size: 0.65rem;
  line-height: 1.3;
}

.experts-block-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  color: var(--text-primary);
}
.experts-block-title i { color: var(--hack-primary); }

.experts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.expert-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.expert-card:hover {
  background: var(--bg3);
  border-color: rgba(0,180,216,0.3);
  box-shadow: var(--shadow-hack);
  transform: translateY(-3px);
}

.expert-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.expert-info h5 { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; color: var(--text-primary); }
.expert-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Partners marquee */
.partners-marquee-wrap {
  overflow: hidden;
  position: relative;
}

.partners-marquee-wrap::before,
.partners-marquee-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 100px; z-index: 1;
}
.partners-marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg3), transparent); }
.partners-marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--bg3), transparent); }

.partners-marquee {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}

.partner-logo {
  display: flex;
  align-items: center; justify-content: center;
  height: 58px;
  padding: 0 28px;
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.partner-logo:hover {
  background: var(--bg3);
  color: var(--hack-primary);
  border-color: rgba(0,180,216,0.3);
  box-shadow: var(--shadow-hack);
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================
   FAQ
   ========================================== */
.faq-section { background: var(--bg2); }

.faq-list {
  max-width: 780px;
  display: flex; flex-direction: column; gap: 10px;
}

.faq-item {
  background: var(--bg3);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.faq-item.open { border-color: var(--hack-primary); box-shadow: var(--shadow-hack); }

.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  font-size: 1rem; font-weight: 600;
  color: var(--text-primary); text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--hack-primary); }

.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,180,216,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--hack-primary);
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.open .faq-icon {
  background: var(--hack-primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }

.faq-answer-inner {
  padding: 0 28px 22px;
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75;
}

/* ==========================================
   РЕГИСТРАЦИЯ
   ========================================== */
.registration-section { background: var(--bg3); position: relative; }

.registration-bg { position: absolute; inset: 0; }

.reg-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.08;
}

.reg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg3) 0%, rgba(245,243,255,0.6) 50%, var(--bg3) 100%);
}

.registration-section .container { position: relative; z-index: 1; }

.reg-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.reg-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 600px; margin-bottom: 28px; line-height: 1.7;
}

.reg-deadline {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 12px 24px;
  background: rgba(233,0,200,0.07);
  border: 1px solid rgba(233,0,200,0.22);
  border-radius: 50px;
  font-size: 0.9rem; color: var(--text-secondary);
  margin-bottom: 36px; font-weight: 600;
}
.reg-deadline i { color: var(--game-primary); }

.reg-cta-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

/* Form */
.reg-form-wrap {
  max-width: 760px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.reg-form-header { margin-bottom: 32px; }
.reg-form-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 8px; color: var(--text-primary);
}
.reg-form-header p { font-size: 0.9rem; color: var(--text-secondary); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { margin-bottom: 20px; }

label { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.req { color: var(--game-primary); }

input, select, textarea {
  background: var(--bg3);
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

input:focus, select:focus, textarea:focus {
  border-color: var(--hack-primary);
  background: rgba(0,180,216,0.03);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.12);
}

select option { background: var(--bg3); color: var(--text-primary); }
textarea { resize: vertical; min-height: 80px; }

.form-submit { text-align: center; margin-top: 8px; }

.form-success { text-align: center; padding: 40px 20px; }
.success-icon { font-size: 3rem; color: var(--hack-primary); margin-bottom: 16px; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  margin-bottom: 12px; color: var(--text-primary);
}
.form-success p { color: var(--text-secondary); }

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.85);
  border-top: none;
  padding-top: 60px;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  display: inline-block; margin-bottom: 14px;
  color: #fff;
}
.footer-logo span {
  background: linear-gradient(135deg, #00f0ff, #aaff00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-logo em {
  font-style: normal; font-size: 0.65rem;
  vertical-align: super; color: #00f0ff;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7; margin-bottom: 20px;
  max-width: 340px;
}

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: rgba(0,240,255,0.15);
  border-color: rgba(0,240,255,0.4);
  color: #00f0ff;
}

.footer-nav { display: flex; gap: 40px; }
.footer-nav-col h5 {
  font-weight: 700; font-size: 0.875rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35); margin-bottom: 16px;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-nav-col a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
  font-size: 0.8rem; color: rgba(255,255,255,0.3);
}

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-hack);
  color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  opacity: 0; transform: translateY(20px);
  transition: all var(--transition);
  box-shadow: var(--shadow-hack);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,180,216,0.45);
}

/* ==========================================
   BG OVERLAY UTIL
   ========================================== */
.section-bg-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hackathon-section > .container,
.gamejam-section   > .container,
.timeline-section  > .container,
.experts-section   > .container { position: relative; z-index: 1; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hack-cards, .game-cards { grid-template-columns: repeat(2, 1fr); }

  .tracks-grid { grid-template-columns: 1fr; gap: 20px; }
  .tracks-divider { flex-direction: row; padding-top: 0; }
  .tracks-divider-line {
    width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,180,216,0.3), transparent);
  }

  .hack-layout, .game-layout { grid-template-columns: 1fr; gap: 36px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .prizes-grid { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { flex-wrap: wrap; }

  /* Info cards v2 — на планшете остаются 2 колонки */
  .info-cards-grid { gap: 16px; }
  .icv2-img img { width: 150px; height: 150px; }

  .nav-list {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(245,243,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
  }
  .nav-list.open { display: flex; }
  .nav-link { font-size: 1.2rem; padding: 14px 28px; color: var(--text-primary); }

  .burger { display: flex; }
  .header-cta { display: none; }

  /* On hero, nav overlay is dark */
  #header:not(.scrolled) .nav-list {
    background: rgba(16, 10, 28, 0.97);
  }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .hero-section { padding: 120px 0 60px; }

  .hero-content-glass { padding: 28px 24px; border-radius: 20px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-meta { flex-direction: column; gap: 10px; }

  .float-1, .float-2, .float-3, .float-4 { display: none; }

  .hack-cards, .game-cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  /* Info cards v2 — на мобиле 1 колонка */
  .info-cards-grid { grid-template-columns: 1fr; }
  .info-card-v2 { min-height: 260px; padding: 28px 24px 24px; }
  .icv2-img img { width: 140px; height: 140px; }
  .icv2-title { font-size: 1.25rem; }

  .stats-row { grid-template-columns: 1fr 1fr; padding: 24px; }
  .audience-tags { gap: 8px; }
  .audience-tag { padding: 8px 14px; font-size: 0.8rem; }

  .timeline-item { gap: 16px; }
  .timeline-dot { width: 48px; height: 48px; font-size: 1rem; }
  .timeline-line { left: 23px; }

  .experts-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .reg-cta-btns { flex-direction: column; }
  .reg-form-wrap { padding: 24px; }

  .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .prizes-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-badges { gap: 6px; }
  .badge { font-size: 0.7rem; padding: 5px 10px; }
  .stats-row { grid-template-columns: 1fr 1fr; padding: 18px 14px; }
  .stat-num { font-size: 2rem; }
  .footer-nav { flex-direction: column; gap: 24px; }
  .hero-content-glass { padding: 22px 18px; }
}

/* ==========================================
   HERO — NEW LAYOUT
   Центральный заголовок + два блока внизу
   ========================================== */

/* Вся шапка растягивается на экран */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Фото заполняет весь блок, без затемнения */
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Лёгкий градиент только снизу */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.05) 0%,
    transparent 35%,
    transparent 60%,
    rgba(7, 5, 20, 0.55) 85%,
    #24192a 100%
  );
}

/* Центральный заголовок — в середине экрана */
.hero-center-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  pointer-events: none;
  width: 90%;
  max-width: 800px;
}

.hero-center-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-event-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0,0,0,0.35);
  overflow: hidden;
}

.hero-title .line {
  display: block;
  /* начальная позиция управляется через GSAP set(), не CSS */
  overflow: hidden;
}

.hero-and-line {
  line-height: 0.7;
}

.hero-and-word {
  display: inline-block;
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  vertical-align: middle;
  padding: 0 12px;
}

/* Accent gradients на белом тексте */
.hero-title .accent-gradient {
  background: linear-gradient(135deg, #00f0ff, #7600ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0,240,255,0.4));
}

.hero-title .accent-gradient2 {
  background: linear-gradient(135deg, #e900c8, #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(233,0,200,0.4));
}

.hero-center-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Спейсер, чтобы bottom-tracks всегда были внизу hero */
.hero-spacer {
  flex: 1;
  min-height: 200px;
  pointer-events: none;
}

/* ── Стрелка вниз в hero ── */
.hero-down-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  opacity: 0.75;
  transition: opacity 0.25s, transform 0.25s;
  animation: arrowBounce 2s ease-in-out infinite;
  cursor: pointer;
}

.hero-down-arrow:hover {
  opacity: 1;
  transform: translateY(4px);
}

.hero-down-arrow svg circle {
  transition: stroke 0.25s;
}

.hero-down-arrow:hover svg circle {
  stroke: rgba(255,255,255,0.8);
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* Два блока треков внизу */
.hero-bottom-tracks {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  width: 100%;
  flex-shrink: 0;
  /* начальное скрытое состояние задаётся через GSAP set() */
}

/* Отдельная карточка трека */
.hero-track-card {
  display: flex;
  gap: 20px;
  padding: 28px 36px 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.hero-track-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.hero-track-card:hover::before { opacity: 1; }

/* Хакатон — синяя сторона */
.hero-track-hack {
  background: rgba(0, 18, 40, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 2px solid rgba(0,180,216,0.5);
  justify-content: flex-start;
}

.hero-track-hack::before {
  background: linear-gradient(180deg, rgba(0,180,216,0.08), transparent);
}

/* Геймджем — розовая сторона */
.hero-track-game {
  background: rgba(35, 5, 30, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 2px solid rgba(233,0,200,0.5);
  justify-content: flex-start;
}

.hero-track-game::before {
  background: linear-gradient(180deg, rgba(233,0,200,0.08), transparent);
}

/* Иконка трека */
.htc-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}

.hero-track-hack .htc-icon {
  background: rgba(0,180,216,0.2);
  border: 1px solid rgba(0,180,216,0.4);
  color: #00f0ff;
}

.hero-track-game .htc-icon {
  background: rgba(233,0,200,0.2);
  border: 1px solid rgba(233,0,200,0.4);
  color: #ff6bcb;
}

/* Тело карточки */
.htc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Badge */
.htc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
}

.htc-badge-hack {
  background: rgba(0,180,216,0.2);
  border: 1px solid rgba(0,180,216,0.4);
  color: #00f0ff;
}

.htc-badge-game {
  background: rgba(233,0,200,0.2);
  border: 1px solid rgba(233,0,200,0.4);
  color: #ff6bcb;
}

/* Название трека */
.htc-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin: 0;
}

/* Описание */
.htc-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  max-width: 380px;
}

/* Пункты */
.htc-points {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0;
}

.htc-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

.hero-track-hack .htc-points i { color: #00f0ff; font-size: 0.65rem; }
.hero-track-game .htc-points i { color: #ff6bcb; font-size: 0.65rem; }

/* CTA кнопка */
.htc-btn {
  padding: 10px 22px;
  font-size: 0.82rem;
  width: fit-content;
  margin-top: 4px;
}

.htc-btn-hack {
  background: var(--gradient-hack);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,180,216,0.35);
}

.htc-btn-hack:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,180,216,0.5);
}

.htc-btn-game {
  background: var(--gradient-game);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233,0,200,0.35);
}

.htc-btn-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233,0,200,0.5);
}

/* VS между карточками */
.hero-vs-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  z-index: 2;
  width: 60px;
}

.hero-vs-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.25));
}

.hero-vs-line-top { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.25)); }
.hero-vs-line-bot { background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent); }

.hero-vs-badge {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  padding: 8px 0;
  text-align: center;
  writing-mode: vertical-lr;
  text-orientation: mixed;
}

/* ==========================================
   VS SPLIT SECTION  — О событии
   ========================================== */

.about-section.vs-section {
  padding: 0;
  overflow: visible;   /* важно — чтобы vs-split перекрывал шапку */
  margin-top: -2px;
}

/* Шапка секции — продолжение hero, текст внизу, сетка как в hero */
.vs-section-header {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: 0;
  /* градиент: #24192a сверху (стык с hero) → чуть темнее снизу */
  background: linear-gradient(
    180deg,
    #24192a 0%,
    #1a1122 60%,
    #130d1a 100%
  );
  border-bottom: none;
  margin-bottom: 0;
  z-index: 1;
  overflow: hidden;
}

/* Сетка — копия hero-grid-lines, но чуть приглушённее */
.vs-section-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

/* Мягкое затемнение снизу — текст лучше читается */
.vs-section-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 45%,
    rgba(10, 6, 16, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Обёртка текста — прижата к нижнему краю шапки */
.vs-header-text {
  padding: 0 0 40px;
}

/* Текст шапки — светлый, поскольку фон тёмный */
.vs-section-header .section-label {
  color: rgba(160, 220, 240, 0.9);
}
.vs-section-header .vs-headline {
  color: #ffffff;
}
/* слово «направление» — accent-gradient использует background-clip:text,
   на тёмном фоне оставляем градиент, но добавляем яркость */
.vs-section-header .vs-headline .accent-gradient {
  background: linear-gradient(135deg, #00f0ff 0%, #b44fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: brightness(1.3);
}
.vs-section-header .vs-subheadline {
  color: rgba(220, 210, 255, 0.85);
}

.vs-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.vs-subheadline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* Полноширинная VS-зона */
.vs-split-wrap {
  display: flex;
  width: 100%;
  min-height: 600px;
  position: relative;
  z-index: 2;          /* перекрывает нижнюю часть шапки */
  overflow: hidden;    /* clip иконок и диагонального среза */
}

/* Стороны */
.vs-side {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Фоновый цвет сторон — мягкие, без полосок */
.vs-left-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #e8f6fb 0%, #d0eef7 50%, #e4f0ff 100%);
}

.vs-right-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, #fce8f7 0%, #f7e0f5 50%, #ffe8f0 100%);
}

/* Убираем полосатую текстуру */
.vs-side-noise {
  display: none;
}

/* Диагональный срез у правого края левой панели */
.vs-left::after {
  content: '';
  position: absolute;
  top: 0; right: -80px;
  width: 160px;
  height: 100%;
  background: linear-gradient(160deg, #e8f6fb 0%, #d0eef7 50%, #e4f0ff 100%);
  transform: skewX(-8deg);
  z-index: 3;
  pointer-events: none;
}

/* Молнии — на светлом фоне делаем тоньше и мягче */
.vs-lightning {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
}

.vs-lightning-left {
  left: 15%;
  top: 5%;
  width: 120px;
  height: 220px;
  opacity: 0.6;
  animation: lightningFlash 4s ease-in-out infinite;
}

.vs-lightning-right {
  right: 15%;
  top: 10%;
  width: 120px;
  height: 220px;
  opacity: 0.6;
  animation: lightningFlash 4s ease-in-out infinite 2s;
}

@keyframes lightningFlash {
  0%, 90%, 100% { opacity: 0.6; }
  92%, 96%      { opacity: 1; filter: drop-shadow(0 0 8px currentColor); }
  94%, 98%      { opacity: 0.3; }
}

/* ==========================================
   VS SPLIT — FLOATING DECORATIVE ELEMENTS
   ========================================== */

/* Базовый стиль летающего элемента */
.vs-float-el {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  /* vsFloatFadeIn — только opacity, vsFloatDrift — только transform */
  animation: vsFloatFadeIn 0.8s ease forwards, vsFloatDrift 6s ease-in-out infinite;
}

/* Только opacity — не трогает transform */
@keyframes vsFloatFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- ХАКАТОН (левая сторона) — веб-элементы ----
   Все иконки сгруппированы в ПРАВОЙ части панели (там нет текста),
   образуют рассыпанную, но связную группу разных размеров.
   Текст контента занимает левую половину панели (left: 0..55%).
   Иконки: right: 3%..18% — свободная зона.
   Три размера: крупный (~64px), средний (~44px), мелкий (~28px).
--------------------------------------------------------*/
.hack-float {
  filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.5));
}

/* ---- позиции: правый свободный край левой панели ---- */
/* Крупные — якорные точки */
.hack-f1 { top: 8%;  right: 5%;  animation-delay: 0.1s, 0.7s;  animation-duration: 0.6s, 8s;   }
.hack-f3 { top: 62%; right: 8%;  animation-delay: 0.3s, 1.4s;  animation-duration: 0.6s, 9s;   }
/* Средние */
.hack-f2 { top: 28%; right: 3%;  animation-delay: 0.2s, 1.1s;  animation-duration: 0.6s, 6.5s; }
.hack-f5 { top: 46%; right: 12%; animation-delay: 0.4s, 1.8s;  animation-duration: 0.6s, 7s;   }
/* Мелкие */
.hack-f4 { top: 37%; right: 3%;  animation-delay: 0.2s, 0.6s;  animation-duration: 0.6s, 5.5s; }
.hack-f6 { top: 82%; right: 4%;  animation-delay: 0.15s, 2.0s; animation-duration: 0.6s, 6s;   }

/* дрейф */
@keyframes vsFloatDrift {
  0%   { transform: translateY(0px)   rotate(0deg);   }
  25%  { transform: translateY(-9px)  rotate(3deg);   }
  50%  { transform: translateY(-4px)  rotate(-2deg);  }
  75%  { transform: translateY(-12px) rotate(2deg);   }
  100% { transform: translateY(0px)   rotate(0deg);   }
}

/* ---- ГЕЙМДЖЕМ (правая сторона) — пиксельные персонажи ----
   Текст контента слева внутри панели (padding-left: 72px, max-width ~520px).
   Иконки: RIGHT зона панели (right: 3%..20%) — там нет текста.
   Крупные ближе к краю, мелкие чуть глубже — образуют вертикальную группу.
--------------------------------------------------------*/
.game-float {
  filter: drop-shadow(0 0 6px rgba(233, 0, 200, 0.55));
  image-rendering: pixelated;
}

/* ---- позиции: правый свободный край правой панели ---- */
/* Крупные — якорные */
.game-f1 { top: 12%; right: 5%;  animation-delay: 0.15s, 0.8s;  animation-duration: 0.6s, 7s;   }
.game-f3 { top: 60%; right: 4%;  animation-delay: 0.1s,  0.5s;  animation-duration: 0.6s, 8.5s; }
/* Средние */
.game-f4 { top: 6%;  right: 18%; animation-delay: 0.3s,  1.6s;  animation-duration: 0.6s, 6s;   }
.game-f6 { top: 40%; right: 6%;  animation-delay: 0.35s, 1.0s;  animation-duration: 0.6s, 7.5s; }
/* Мелкие */
.game-f2 { top: 4%;  right: 12%; animation-delay: 0.25s, 1.3s;  animation-duration: 0.6s, 5s;   }
.game-f5 { top: 77%; right: 8%;  animation-delay: 0.2s,  2.1s;  animation-duration: 0.6s, 6.5s; }
.game-f7 { top: 51%; right: 17%; animation-delay: 0.1s,  1.8s;  animation-duration: 0.6s, 5.5s; }

/* у каждого элемента своя «фаза» дрейфа — используем vsFloatFadeIn (не vsFloatIn) */
.hack-f2, .game-f2, .game-f5 { animation-name: vsFloatFadeIn, vsFloatDrift2; }
.hack-f4, .game-f3, .game-f7 { animation-name: vsFloatFadeIn, vsFloatDrift3; }

@keyframes vsFloatDrift2 {
  0%   { transform: translateY(0px)   rotate(0deg);   }
  30%  { transform: translateY(-14px) rotate(-4deg);  }
  60%  { transform: translateY(-6px)  rotate(3deg);   }
  100% { transform: translateY(0px)   rotate(0deg);   }
}

@keyframes vsFloatDrift3 {
  0%   { transform: translateY(0px)   rotate(0deg);   }
  40%  { transform: translateY(-7px)  rotate(5deg);   }
  70%  { transform: translateY(-16px) rotate(-3deg);  }
  100% { transform: translateY(0px)   rotate(0deg);   }
}

/* Контент внутри сторон — тёмный текст на светлом фоне */
.vs-content {
  position: relative;
  z-index: 4;
  padding: 60px 48px 60px 56px;
  color: var(--text-primary);
  max-width: 520px;
}

.vs-content-right {
  padding: 60px 56px 60px 72px;
  color: var(--text-primary);
}

.vs-track-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: -10px;
  opacity: 0.06;
  color: var(--text-primary);
  letter-spacing: -0.05em;
}

.vs-track-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.vs-left .vs-track-icon {
  background: rgba(0,180,216,0.1);
  border: 1.5px solid rgba(0,180,216,0.3);
  color: var(--hack-primary);
}

.vs-right .vs-track-icon {
  background: rgba(233,0,200,0.08);
  border: 1.5px solid rgba(233,0,200,0.25);
  color: var(--game-primary);
}

.vs-track-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.vs-left .vs-track-name {
  background: var(--gradient-hack);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vs-right .vs-track-name {
  background: var(--gradient-game);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vs-track-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.vs-track-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 400px;
}

/* Пункты */
.vs-track-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.vs-track-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.vs-left .vs-track-points i  { color: var(--hack-primary); font-size: 0.7rem; }
.vs-right .vs-track-points i { color: var(--game-primary); font-size: 0.7rem; }

/* Роли-теги */
.vs-track-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.vs-track-roles span {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.vs-left .vs-track-roles span {
  background: rgba(0,180,216,0.12);
  border: 1px solid rgba(0,180,216,0.3);
  color: var(--hack-primary);
}

.vs-right .vs-track-roles span {
  background: rgba(233,0,200,0.1);
  border: 1px solid rgba(233,0,200,0.25);
  color: var(--game-primary);
}

/* Кнопки */
.vs-btn {
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  transition: all var(--transition);
  margin-bottom: 10px;
}

.vs-btn-hack {
  background: var(--gradient-hack);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,180,216,0.4);
}
.vs-btn-hack:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,180,216,0.6); }

.vs-btn-game {
  background: var(--gradient-game);
  color: #fff;
  box-shadow: 0 4px 24px rgba(233,0,200,0.4);
}
.vs-btn-game:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(233,0,200,0.6); }

.vs-btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1.5px solid var(--border-dark);
  color: var(--text-secondary);
  background: var(--bg3);
  transition: all var(--transition);
}

.vs-btn-register:hover {
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Центральный VS-разделитель */
.vs-divider {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  pointer-events: none;
}

/* Диагональная полоса */
.vs-diagonal-slash {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%) skewX(-8deg);
  width: 6px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.0) 0%,
    rgba(255,255,255,0.35) 30%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0.35) 70%,
    rgba(255,255,255,0.0) 100%
  );
  filter: blur(1px);
}

/* VS Badge */
.vs-badge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}

.vs-badge-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.5;
  animation: vsGlowPulse 2.5s ease-in-out infinite;
}

.vs-badge-glow-left  { background: #00b4d8; left: -20px; }
.vs-badge-glow-right { background: #e900c8; right: -20px; animation-delay: 1.25s; }

@keyframes vsGlowPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50%       { opacity: 0.7; transform: scale(1.1); }
}

/* VS Badge — центральная надпись — адаптируем под светлый фон */
.vs-badge-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,180,216,0.25));
}

/* ==========================================
   RESPONSIVE — новые блоки
   ========================================== */

@media (max-width: 1024px) {
  /* Hero треки в столбик */
  .hero-bottom-tracks {
    grid-template-columns: 1fr;
  }

  .hero-vs-center {
    flex-direction: row;
    width: 100%;
    height: 44px;
    padding: 0 20px;
  }

  .hero-vs-line-top,
  .hero-vs-line-bot {
    flex: 1;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  }

  .hero-vs-badge {
    writing-mode: horizontal-tb;
    font-size: 0.75rem;
    padding: 0 14px;
  }

  /* VS Split в столбик */
  .vs-split-wrap {
    flex-direction: column;
  }

  .vs-left::after { display: none; }

  .vs-left-bg  { background: linear-gradient(180deg, #e8f6fb 0%, #d0eef7 100%); }
  .vs-right-bg { background: linear-gradient(180deg, #fce8f7 0%, #ffe8f0 100%); }

  .vs-divider {
    position: relative;
    left: auto; top: auto;
    transform: none;
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, #d0eef7, #fce8f7);
    flex-direction: row;
  }

  .vs-diagonal-slash {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%) skewY(-4deg);
    width: 80%;
    height: 2px;
  }

  .vs-content,
  .vs-content-right {
    padding: 40px 28px;
  }

  .vs-lightning-left  { left: 5%; width: 80px; }
  .vs-lightning-right { right: 5%; width: 80px; }
}

@media (max-width: 768px) {
  .hero-center-label {
    top: 38%;
    width: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .hero-track-card {
    padding: 20px 20px 24px;
    gap: 14px;
  }

  .htc-title { font-size: 1.25rem; }
  .htc-desc  { display: none; }

  .vs-content,
  .vs-content-right {
    padding: 32px 20px;
    max-width: 100%;
  }

  .vs-track-name { font-size: 1.6rem; }
  .vs-track-desc { display: none; }

  .vs-divider { height: 64px; }
  .vs-badge-text { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
