/* ===== CSS ПЕРЕМЕННЫЕ (ЧЕРНАЯ ТЕМА С ЗОЛОТОМ) ===== */
:root {
  /* Черная цветовая схема с золотом */
  --deep-blue: #000000;
  --dark-blue: #1a1a1a;
  --darker-blue: #2a2a2a;
  --bright-marine: #ffd700;
  --accent-marine: #00cc00;
  --gold: #ffd700;
  --gold-accent: #ffb347;
  --text-light: #ffffff;
  --text-blue: #e0e0e0;
  --water-gradient: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #2a2a2a 50%, #3a3a3a 75%, #000000 100%);
  --water-gradient-hover: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%, #000000 100%);
  --marine-gradient: linear-gradient(135deg, #000000 0%, #00cc00 25%, #00ff00 50%, #00cc00 75%, #000000 100%);
  --marine-gradient-hover: linear-gradient(135deg, #1a1a1a 0%, #00cc00 25%, #00ff00 50%, #00cc00 75%, #1a1a1a 100%);

  /* Font Awesome переменные */
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
  
  /* Bootstrap цвета (адаптированные под черную тему) */
  --blue: #00ff00;
  --indigo: #4c6ef5;
  --purple: #7c3aed;
  --pink: #ec4899;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --green: #00ff00;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --white: #fff;
  --gray: #6b7280;
  --gray-dark: #374151;
  --primary: #00ff00;
  --secondary: #6b7280;
  --success: #00cc00;
  --info: #06b6d4;
  --warning: #eab308;
  --danger: #ef4444;
  --light: #f8fafc;
  --dark: #1e293b;
  
  /* Breakpoints */
  --breakpoint-xs: 0;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  
  /* Шрифты */
  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-regular: "Montserrat", sans-serif;
  --font-light: "Montserrat", sans-serif;
  --font-title-heading: "Raleway", sans-serif;
  
  /* Дизайн-система (черная тема с золотом) */
  --button-radius: 50px;
  --shadow-color: rgba(255, 215, 0, 0.3);
  --primary-color: #00ff00;
  --darken-primary-color: #00cc00;
  --lighten-primary-color: #66ff66;
  --site-background-color: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2a2a2a 100%);
  --darken-site-background-color: #000000;
  --loader-darken-background-color: #00cc00;
  --loader-lighten-background-color: #66ff66;
  --site-background-text-color: #ffffff;
  --site-background-color-secondary: rgba(0, 255, 0, 0.1);
  --site-background-text-color-secondary: #e0e0e0;
  --header-background-color: #000000;
  --header-background-text-color: #ffffff;
  --footer-background-color: #000000;
  --footer-background-text-color: #ffffff;
  --button-background: var(--marine-gradient);
  --darken-button-background: var(--marine-gradient-hover);
  --site-radius: 12px;
  --game-hover: rgba(0, 0, 0, 0.9);
  
  /* Дополнительные переменные для лучшей гибкости */
  --body-background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2a2a2a 100%);
  --text-muted: rgba(224, 224, 224, 0.7);
  --text-muted-dark: rgba(224, 224, 224, 0.8);
  --text-light: rgba(255, 255, 255, 0.9);
  --border-light: rgba(255, 215, 0, 0.2);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-darker: rgba(0, 0, 0, 0.9);
  --overlay-light: rgba(255, 215, 0, 0.3);
  
  /* Swiper переменные */
  --swiper-theme-color: #00ff00;
  --swiper-navigation-size: 44px;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  list-style: none;
}

body {
  font-family: var(--font-light);
  background: var(--body-background);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center !important;
  font-weight: 400;
  box-sizing: inherit;
  list-style: none;
  -webkit-text-size-adjust: none !important;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(0, 255, 0, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

body.burger-open {
  overflow: hidden;
}

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

/* ===== HEADER СТИЛИ ===== */
.header {
  background: var(--header-background-color);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(255, 215, 0, 0.3);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.header-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-login {
  background: transparent;
  color: var(--bright-marine);
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid var(--bright-marine);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bright-marine);
  transition: all 0.3s;
  z-index: -1;
}

.btn-login:hover {
  color: var(--darker-blue);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.btn-login:hover::before {
  left: 0;
}

.btn-register {
  background: var(--marine-gradient);
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 204, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-register::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.5), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.btn-register:hover {
  background: var(--marine-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 204, 0, 0.5);
  border-color: var(--bright-marine);
}

.btn-register:hover::before {
  left: 100%;
}

/* ===== BURGER MENU ===== */
.burger-toggle {
  display: flex;
  order: -1;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 4px;
}

.burger-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: var(--header-background-color);
  z-index: 1000;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(255, 215, 0, 0.15);
}

.burger-menu.active {
  left: 0;
}

.burger-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--overlay-darker);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.burger-overlay.active {
  opacity: 1;
  visibility: visible;
}

.burger-menu-content {
  padding: 30px 24px;
}

/* ===== BURGER MENU HEADER ===== */
.burger-menu-header {
  text-align: center;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}

.burger-menu-logo {
  height: 50px;
  width: auto;
  max-width: 200px;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.burger-menu-buttons {
  margin-bottom: 40px;
  margin-top: 0; 
}

.btn-register-burger {
  display: block;
  background: var(--marine-gradient);
  color: var(--text-light);
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 204, 0, 0.3);
}

.btn-register-burger:hover {
  background: var(--marine-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 204, 0, 0.5);
}

.btn-login-burger {
  display: block;
  background: transparent;
  color: var(--bright-marine);
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--bright-marine);
  transition: all 0.3s ease;
}

.btn-login-burger:hover {
  background: var(--bright-marine);
  color: var(--darker-blue);
}

.burger-menu-nav {
  display: flex;
  flex-direction: column;
}

.burger-menu-item {
  color: var(--text-light);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: color 0.3s ease;
}

.burger-menu-item:hover {
  color: var(--bright-marine);
  text-shadow: 0 0 10px var(--bright-marine);
}

.burger-menu-item .arrow {
  font-size: 14px;
  opacity: 0.7;
}

.loyalty-item {
  position: relative;
}

/* ===== HERO BANNER ===== */
.hero-section {
  position: relative;
  text-align: center;
  overflow: hidden;
  height: auto;
  padding: 0; /* убрано фиксированное пространство */
}

.hero-video-bg {
  position: relative; /* меняем absolute → relative */
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  display: block;
}

@media (max-width: 768px) {
  .hero-video-bg {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    object-fit: contain; /* важное изменение */
    object-position: center;
  }

  .hero-section {
    padding: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.hero-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  background-color: var(--overlay-light);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}


.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 
    3px 3px 6px rgba(0, 0, 0, 1),
    3px 3px 6px rgba(0, 0, 0, 1),
    0 0 6px rgba(255, 215, 0, 0.8),
    0 0 6px rgba(255, 215, 0, 0.8);
  font-family: var(--font-title-heading);
}

.hero-subtitle {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 30px;
  text-shadow: 
    3px 3px 6px rgba(0, 0, 0, 1),
    3px 3px 6px rgba(0, 0, 0, 1),
    0 0 6px rgba(255, 215, 0, 0.8),
    0 0 6px rgba(255, 215, 0, 0.8);
}


.hero-btn {
  display: inline-block;
  background: var(--marine-gradient);
  color: var(--text-ligh);
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 30px rgba(0, 204, 0, 0.4);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
}


.hero-btn:hover {
  background: var(--marine-gradient-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 204, 0, 0.6);
  border-color: var(--bright-marine);
}

.hero-btn:hover::before {
  left: 100%;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: rgba(255, 215, 0, 0.05);
  padding: 50px 0;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-item {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--site-radius);
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  border-color: var(--bright-marine);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--bright-marine);
  margin-bottom: 10px;
  line-height: 1.3;
  font-family: var(--font-title-heading);
}

.feature-description {
  font-size: 14px;
  color: var(--text-blue);
  line-height: 1.5;
}

/* ===== GAME NAVIGATION ===== */
.game-nav {
  background: rgba(255, 215, 0, 0.1);
  padding-right: 20px; 
  padding-left: 20px;
  margin-bottom: 30px;
  border-radius: var(--site-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.game-nav-container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.game-nav-container::-webkit-scrollbar {
  display: none;
}

.game-nav-tab {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-light);
  padding: 16px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  position: relative;
}

.game-nav-tab:hover {
  color: var(--bright-marine);
  background: rgba(255, 215, 0, 0.1);
  text-shadow: 0 0 10px var(--bright-marine);
}

.game-nav-tab.active {
  color: var(--bright-marine);
  border-bottom-color: var(--bright-marine);
  background: rgba(255, 215, 0, 0.2);
  text-shadow: 0 0 15px var(--bright-marine);
}

/* ===== GAME SECTIONS ===== */
.game-section {
  padding-left: 20px;
  padding-right: 20px; 
  margin-bottom: 50px;
}

.game-section.hidden {
  display: none;
}
.game-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.game-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--bright-marine);
  font-family: var(--font-title-heading);
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.game-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}



.game-nav-prev,
.game-nav-next {
  background: var(--marine-gradient);
  border: none;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 204, 0, 0.3);
}

.game-nav-prev:hover,
.game-nav-next:hover {
  background: var(--marine-gradient-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 204, 0, 0.5);
}

/* ===== GAMES GRID (ИСПРАВЛЕННАЯ ВЕРСИЯ) ===== */
.games-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 0; /* убираем padding отсюда, он есть в .game-section */
  width: 100%;
  box-sizing: border-box;
}

.game-card {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
  border-radius: var(--site-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
  border-color: var(--bright-marine);
}

.game-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  flex: 1;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.1);
}

/* ===== GAME ACTIONS OVERLAY ===== */
.game-actions {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-actions {
  opacity: 1;
}

.btn-demo,
.btn-play {
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-demo {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--bright-marine);
}

.btn-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bright-marine);
  transition: all 0.3s;
  z-index: -1;
}

.btn-demo:hover {
  color: var(--darker-blue);
}

.btn-demo:hover::before {
  left: 0;
}

.btn-play {
  background: var(--marine-gradient);
  color: var(--text-light);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 204, 0, 0.3);
}

.btn-play::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.4), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.btn-play:hover {
  background: var(--marine-gradient-hover);
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 204, 0, 0.6);
  border-color: var(--bright-marine);
}

.btn-play:hover::before {
  left: 100%;
}

/* ===== GAME TITLE ===== */
.game-title {
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.3);
  margin: 0;
  flex-shrink: 0;
}



/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }
  
  .btn-demo,
  .btn-play {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  .game-title {
    font-size: 14px;
    padding: 12px;
  }
}
/* ===== CONTENT SECTION ===== */
.content-section {
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
}

.content-section h1,
.content-section h2,
.content-section h3 {
  color: var(--bright-marine);
  margin-bottom: 20px;
  font-family: var(--font-title-heading);
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.content-section h1 {
  font-size: 36px;
}

.content-section h2 {
  font-size: 28px;
}

.content-section h3 {
  font-size: 22px;
}

.content-section p {
  color: var(--text-blue);
  line-height: 1.7;
  margin-bottom: 16px;
}

.content-section ul {
  list-style-type: disc;
  list-style-position: outside;
}

.content-section ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.content-section ul,
.content-section ol {
  margin-left: 40px;
  padding-left: 0;
}

.content-section strong {
  color: var(--bright-marine);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, var(--header-background-color) 0%, #000000 100%);
  padding: 50px 0 30px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--bright-marine) 50%, transparent 100%);
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.footer-description {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-nav a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--bright-marine);
  transition: width 0.3s ease;
}

.footer-nav a:hover {
  color: var(--bright-marine);
  padding-left: 10px;
  text-shadow: 0 0 10px var(--bright-marine);
}

.footer-nav a:hover::before {
  width: 8px;
}

.footer-contact p {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--bright-marine);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  text-shadow: 0 0 10px var(--bright-marine);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-copyright,
.footer-text {
  color: rgba(224, 224, 224, 0.6);
  font-size: 12px;
  margin-bottom: 8px;
}

/* ===== UTILITY КЛАССЫ ===== */
.d-flex {
  display: flex !important;
}

.flex-grow-1 {
  flex-grow: 1 !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.align-self-center {
  align-self: center !important;
}

.pl-1 {
  padding-left: .25rem !important;
}

.pr-2 {
  padding-right: .5rem !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .burger-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .features-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .game-section-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 0 10px;
  }
  
  .game-nav-container {
    padding: 0 10px;
  }
  
  .game-nav-tab {
    font-size: 13px;
    padding: 14px 18px;
  }
  
  .content-section {
    padding: 40px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .game-section-title {
    font-size: 24px;
  }
  
  .burger-menu {
    width: 280px;
    left: -280px;
  }
  
  .hero-btn {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* ===== АНИМАЦИИ И ЭФФЕКТЫ ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card {
  animation: fadeInUp 0.6s ease-out;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

/* ===== ПРЕЛОАДЕРЫ И СКРОЛЛЫ ===== */
.games-grid[data-section] {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bright-marine) rgba(255, 215, 0, 0.2);
}

.games-grid[data-section]::-webkit-scrollbar {
  height: 6px;
}

.games-grid[data-section]::-webkit-scrollbar-track {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 3px;
}

.games-grid[data-section]::-webkit-scrollbar-thumb {
  background: var(--bright-marine);
  border-radius: 3px;
}

.games-grid[data-section]::-webkit-scrollbar-thumb:hover {
  background: var(--accent-marine);
}

/* ===== BONUS TILES SECTION ===== */
.bonus-tiles-section {
  background: rgba(255, 215, 0, 0.05);
  padding: 60px 0;
  margin-bottom: 50px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.bonus-tiles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.bonus-tile {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
  border-radius: var(--site-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bonus-tile::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  transition: all 0.5s ease;
}

.bonus-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 35px rgba(255, 215, 0, 0.3);
  border-color: var(--bright-marine);
}

.bonus-tile:hover::before {
  top: -20%;
  right: -20%;
}

.bonus-tile-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--header-background-color);
}

.bonus-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bonus-tile:hover .bonus-tile-image img {
  transform: scale(1.1);
}

.bonus-tile-content {
  padding: 24px;
  text-align: center;
}

.bonus-tile-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--bright-marine);
  margin-bottom: 16px;
  line-height: 1.3;
  font-family: var(--font-title-heading);
  text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.bonus-tile-text {
  font-size: 14px;
  color: var(--text-blue);
  line-height: 1.6;
  margin-bottom: 24px;
  opacity: 0.9;
}

.bonus-tile-button {
  display: inline-block;
  background: var(--marine-gradient);
  color: var(--text-light);
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 204, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.bonus-tile-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.5), transparent);
  transform: rotate(45deg);
  transition: all 0.6s;
}

.bonus-tile-button:hover {
  background: var(--marine-gradient-hover);
  border-color: var(--bright-marine);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 204, 0, 0.5);
}

.bonus-tile-button:hover::before {
  left: 100%;
}

/* ===== BONUS TILES ANIMATIONS ===== */
.bonus-tile {
  animation: fadeInUp 0.6s ease-out;
}

.bonus-tile:nth-child(1) { animation-delay: 0.1s; }
.bonus-tile:nth-child(2) { animation-delay: 0.2s; }
.bonus-tile:nth-child(3) { animation-delay: 0.3s; }
.bonus-tile:nth-child(4) { animation-delay: 0.4s; }
.bonus-tile:nth-child(5) { animation-delay: 0.5s; }
.bonus-tile:nth-child(6) { animation-delay: 0.6s; }

/* ===== BONUS TILES RESPONSIVE ===== */
@media (max-width: 768px) {
  .bonus-tiles-section {
    padding: 40px 0;
  }
  
  .bonus-tiles-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 15px;
  }
  
  .bonus-tile-content {
    padding: 20px;
  }
  
  .bonus-tile-title {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .bonus-tile-text {
    font-size: 13px;
    margin-bottom: 20px;
  }
  
  .bonus-tile-button {
    padding: 10px 24px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .bonus-tiles-container {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 10px;
  }
  
  .bonus-tile-title {
    font-size: 16px;
  }
  
  .bonus-tile-text {
    font-size: 12px;
  }
}

/* ========== TABLE STYLES (ЧЕРНАЯ ТЕМА С ЗОЛОТОМ) ========== */
.table-container {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 1rem;
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--text-light);
  background-color: transparent;
}

thead {
  background: rgba(255, 215, 0, 0.1);
}

th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 700;
  color: var(--bright-marine);
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tbody tr {
  transition: all 0.3s ease;
}

tbody tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

tbody tr:last-child td {
  border-bottom: none;
}

table a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

table a:hover {
  color: var(--bright-marine);
  text-shadow: 0 0 10px var(--bright-marine);
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
  .table-container {
    margin: 1rem -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.5rem 0.4rem;
  }

  th:first-child,
  td:first-child {
    position: sticky;
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
  }

  thead th:first-child {
    background: rgba(255, 215, 0, 0.15);
  }
}

/* ========== PROSE (ЧЕРНАЯ ТЕМА С ЗОЛОТОМ) ========== */
.prose {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-blue);
  margin-top: 3rem;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--bright-marine);
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

/* ========== TABLE OF CONTENTS ========== */
#TableOfContents {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-size: 1rem;
  margin: 2rem 0;
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#TableOfContents ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#TableOfContents li {
  margin-bottom: 1rem;
}

#TableOfContents a {
  color: var(--bright-marine);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

#TableOfContents a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--bright-marine);
  transition: width 0.3s ease;
}

#TableOfContents a:hover {
  color: var(--text-light);
  text-shadow: 0 0 10px var(--bright-marine);
}

#TableOfContents a:hover::after {
  width: 100%;
}

/* ========== FAQ BLOCK (ЧЕРНАЯ ТЕМА С ЗОЛОТОМ) ========== */
.faq-block {
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
  padding: 3rem 2rem;
  margin: 3rem 0;
}

.faq-heading {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--bright-marine);
  margin-bottom: 2.5rem;
  text-align: center;
  text-shadow: 0 0 30px var(--bright-marine);
}

.faq-item {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.125rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.1) 50%, transparent 100%);
  transition: left 0.5s ease;
}

.faq-item:hover::before {
  left: 100%;
}

.faq-item h3 {
  font-size: 1.5rem;
  color: var(--bright-marine);
  margin-bottom: 1rem;
  font-weight: 700;
}

.faq-item div {
  line-height: 1.8;
  color: var(--text-blue);
}

.faq-item:hover {
  transform: translateX(5px);
  border-color: var(--bright-marine);
  box-shadow: 0 5px 25px rgba(255, 215, 0, 0.2);
}

/* ========== АДАПТИВ ========== */
@media (max-width: 768px) {
  .prose {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .prose h1,
  .prose h2,
  .prose h3 {
    font-size: 1.4rem;
  }
}

.language-switcher {
    width: 150px;
  position: relative;
  font-size: 14px;
  z-index: 1000;
}

.lang-current {
  background: rgba(255, 215, 0, 0.2);
  color: var(--text-light);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  position: relative;
  max-width: 100%;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.lang-current:hover {
  background: rgba(255, 215, 0, 0.3);
  border-color: var(--bright-marine);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: var(--header-background-color);
  border-radius: 8px;
  overflow: hidden;
  min-width: 120px;
  max-width: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.language-switcher.active .lang-dropdown {
  display: block;
}

.lang-option {
  display: block;
  padding: 8px 10px;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  word-wrap: break-word;
  white-space: normal;
}

.lang-option:hover {
  background: rgba(255, 215, 0, 0.2);
  color: var(--bright-marine);
}

/* Мобильная адаптация */
@media (max-width: 480px) {
  .lang-current {
    font-size: 12px;
    padding: 4px 8px;
  }

  .lang-dropdown {
    min-width: unset;
    width: 100;
    left: 0;
    border-radius: 0;
  }

  .lang-option {
    padding: 10px;
    font-size: 13px;
  }
}


.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 20px;
  z-index: 1000;
  padding: 10px 14px;
  font-size: 18px;
  background-color: var(--accent-marine);
  color: #fff;
  border: 3px solid var(--body-background);
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}