/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #00ff88;
  --primary-orange: #ff8800;
  --primary-blue: #0088ff;
  --bg-dark: #0a0e1a;
  --bg-darker: #050810;
  --bg-box: #1a1f2e;
  --text-white: #ffffff;
  --text-gray: #b0b8c4;
  --gradient-green: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  --gradient-orange: linear-gradient(135deg, #ff8800 0%, #cc6600 100%);
  --gradient-hero: linear-gradient(
    135deg,
    rgba(0, 255, 136, 0.1) 0%,
    rgba(255, 136, 0, 0.1) 100%
  );
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body.age-verified {
  overflow: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: hidden;
  width: 100%;
}

/* Age Verification Popup */
.age-verification {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 16, 0.98);
  backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.age-verification.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.age-popup {
  background: var(--bg-box);
  border-radius: 16px;
  padding: 50px 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  border: 2px solid var(--primary-green);
  box-shadow: 0 8px 40px rgba(0, 255, 136, 0.3);
  transform: scale(1);
  transition: transform 0.3s ease;
}

.age-verification.hidden .age-popup {
  transform: scale(0.9);
}

.age-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: var(--gradient-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
}

.age-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-white);
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.age-text {
  font-size: 18px;
  color: var(--text-white);
  margin-bottom: 10px;
  font-weight: 600;
}

.age-subtext {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.6;
}

.age-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-age-confirm,
.btn-age-decline {
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-age-confirm {
  background: var(--gradient-green);
  color: var(--bg-dark);
}

.btn-age-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.btn-age-decline {
  background: transparent;
  color: var(--text-gray);
  border: 2px solid var(--text-gray);
}

.btn-age-decline:hover {
  background: var(--text-gray);
  color: var(--bg-dark);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-box);
  border-top: 2px solid var(--primary-green);
  padding: 20px;
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  min-width: 300px;
  color: var(--text-gray);
}

.cookie-content a {
  color: var(--primary-green);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-accept,
.btn-decline {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-accept {
  background: var(--gradient-green);
  color: var(--bg-dark);
}

.btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.btn-decline {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--text-gray);
}

.btn-decline:hover {
  background: var(--text-gray);
  color: var(--bg-dark);
}

/* Header */
.header {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 255, 136, 0.1);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: var(--bg-dark);
}

.logo-name {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 10001;
  gap: 5px;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-green);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Navigation - Desktop */
.nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-green);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 50%,
      rgba(0, 255, 136, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 50%,
      rgba(255, 136, 0, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 10px;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 30px;
  letter-spacing: 4px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gradient-green);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.5);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-white);
}

.section-title.green {
  color: var(--primary-green);
}

.section-title.orange {
  color: var(--primary-orange);
}

.section-description {
  text-align: center;
  color: var(--text-gray);
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Content Box */
.content-box {
  background: var(--bg-box);
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
  border: 1px solid rgba(0, 255, 136, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
  background: var(--bg-darker);
}

.about .content-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.column-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-white);
}

.column-text {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 30px;
}

.stats-row {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-gray);
  font-size: 14px;
}

.features-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.feature-icon {
  flex-shrink: 0;
  margin-top: 5px;
}

.feature-item strong {
  display: block;
  color: var(--text-white);
  margin-bottom: 5px;
  font-size: 18px;
}

.feature-item p {
  color: var(--text-gray);
  font-size: 14px;
}

/* Why Choose Section */
.why-choose {
  background: var(--bg-dark);
}

.why-choose .content-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.why-item {
  text-align: center;
}

.why-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-green);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.why-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-white);
}

.why-text {
  color: var(--text-gray);
  line-height: 1.7;
}

/* Unique Section */
.unique {
  background: var(--bg-darker);
}

.unique .content-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.unique-item {
  text-align: center;
}

.unique-icon {
  margin-bottom: 20px;
}

.unique-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-white);
}

.unique-text {
  color: var(--text-gray);
  line-height: 1.7;
}

/* Advantages Section */
.advantages {
  background: var(--bg-dark);
}

.advantages .content-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.advantage-item {
  text-align: center;
}

.advantage-icon {
  margin-bottom: 15px;
}

.advantage-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.advantage-text {
  color: var(--text-gray);
  font-size: 14px;
}

.stats-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-large {
  padding: 20px;
}

.stat-large-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-large-number.green {
  color: var(--primary-green);
}

.stat-large-number.orange {
  color: var(--primary-orange);
}

.stat-large-number.blue {
  color: var(--primary-blue);
}

.stat-large-label {
  color: var(--text-gray);
  font-size: 14px;
}

.stat-icon {
  margin-bottom: 10px;
}

/* Games Section */
.games {
  background: var(--bg-darker);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.game-card {
  background: var(--bg-box);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);
  border-color: var(--primary-green);
}

.game-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--bg-darker);
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-content {
  padding: 30px;
}

.game-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.game-subtitle {
  font-size: 12px;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.game-description {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 25px;
}

.btn-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary-blue);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-game:hover {
  background: var(--primary-orange);
  transform: translateX(5px);
}

/* Platform Stats */
.platform-stats {
  background: var(--bg-dark);
}

.platform-stats .content-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.platform-stat {
  padding: 20px;
}

.platform-icon {
  margin-bottom: 15px;
}

.platform-stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.platform-stat-label {
  color: var(--text-gray);
  font-size: 14px;
}

/* Features Section */
.features {
  background: var(--bg-darker);
}

.features .content-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.feature-card {
  text-align: center;
  padding: 20px;
}

.feature-card-icon {
  margin-bottom: 20px;
}

.feature-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.feature-card-text {
  color: var(--text-gray);
  font-size: 14px;
}

/* Disclaimer Section */
.disclaimer {
  background: var(--bg-dark);
}

.disclaimer-box {
  position: relative;
}

.disclaimer-banner {
  background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
  color: var(--bg-dark);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 30px;
}

.disclaimer-list {
  list-style: none;
  margin-bottom: 30px;
}

.disclaimer-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: rgba(255, 136, 0, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--primary-orange);
}

.disclaimer-icon {
  flex-shrink: 0;
  margin-top: 5px;
}

.disclaimer-item strong {
  display: block;
  color: var(--text-white);
  margin-bottom: 5px;
  font-size: 18px;
}

.disclaimer-item p {
  color: var(--text-gray);
  font-size: 14px;
}

.disclaimer-footer {
  color: var(--text-gray);
  font-size: 14px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 136, 0, 0.2);
}

/* Footer */
.footer {
  background: var(--bg-darker);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-description {
  color: var(--text-gray);
  line-height: 1.7;
}

.footer-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(0, 255, 136, 0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: var(--text-gray);
  font-size: 14px;
}

.footer-badges {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-badges span {
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--primary-green);
  border-radius: 4px;
  color: var(--primary-green);
  font-size: 12px;
  font-weight: 600;
}

/* Responsive Design */
@media (min-width: 769px) {
  .nav-overlay {
    display: none !important;
  }

  .nav {
    position: static !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    flex-direction: row !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    max-width: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    z-index: auto !important;
  }

  .nav.active {
    transform: none !important;
  }
}

@media (max-width: 968px) {
  .about .content-box,
  .why-choose .content-box,
  .unique .content-box,
  .advantages .content-box,
  .features .content-box {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .stats-box,
  .platform-stats .content-box {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  /* Исправление stacking context для header */
  .header {
    backdrop-filter: none !important;
    z-index: 100 !important;
  }

  .header-content {
    position: static !important;
    z-index: auto !important;
  }

  /* Overlay для затемнения фона */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  /* .nav-overlay.active {
    display: block;
    opacity: 1;
  } */

  /* Меню навигации - выносим из stacking context header */
  .nav {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    max-width: 80vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: var(--bg-box) !important;
    flex-direction: column;
    padding: 80px 0 30px;
    gap: 0;
    z-index: 9999 !important;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    margin: 0 !important;
    border: none !important;
  }

  .nav.active {
    transform: translateX(0) !important;
  }

  /* Блокировка скролла body при открытом меню */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 18px 30px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.2s ease;
    width: 100%;
  }

  .nav-link:hover {
    color: var(--primary-green);
    background: rgba(0, 255, 136, 0.05);
    padding-left: 35px;
  }

  .nav-link::after {
    display: none;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 24px;
  }

  .section-title {
    font-size: 32px;
  }

  .stats-box,
  .platform-stats .content-box {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 60px 0;
  }

  .content-box {
    padding: 25px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }
}
