/* CSS Variables для цветовой схемы - Тёмно-синяя гамма с зелёными акцентами */
:root {
  /* Основные цвета - Зелёная гамма (брендовый акцент GoXbet) */
  --primary-red: #00c309;
  --dark-red: #006017;
  --light-red: #c6ff62;
  --accent-red: #18ff00;
  --crimson: #009e2a;
  --neon-red: #18ff00;
  --neon-pink: #00e676;

  /* Золотые акценты */
  --accent-gold: #FFD700;
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFB300 50%, #FFA500 100%);

  /* Черные тона */
  --bg-dark: #0d1120;
  --bg-secondary: #161b2e;
  --bg-light: #1c2338;
  --bg-card: #191f33;
  --bg-hover: #232a42;

  /* Улучшенные серые тона для лучшей читаемости */
  --text-primary: #FFFFFF;
  --text-secondary: #e8e8f0;
  --text-muted: #b8b8cc;
  --border-color: #2a2a3a;
  --text-contrast: #FAFAFA;

  /* Дополнительные цвета */
  --success: #00FF00;
  --warning: #FFD700;
  --danger: #FF0000;
  --shadow: rgba(0, 0, 0, 0.8);
  --shadow-heavy: rgba(0, 0, 0, 0.95);
  --shadow-red: rgba(0, 195, 9, 0.5);
  --glow-red: rgba(24, 255, 0, 0.4);

  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #c6ff62 0%, #00c309 50%, #006017 100%);
  --gradient-red: linear-gradient(135deg, var(--accent-red) 0%, var(--crimson) 100%);
  --gradient-dark: linear-gradient(135deg, #0d1120 0%, #161b2e 100%);
  --gradient-card: linear-gradient(135deg, rgba(25, 31, 51, 0.8) 0%, rgba(22, 27, 46, 0.9) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-border: linear-gradient(135deg, rgba(24, 255, 0, 0.5), rgba(0, 195, 9, 0.3));

  /* Размеры */
  --container-max: 1200px;
  --border-radius: 20px;
  --border-radius-small: 10px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-elevation: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--glow-red);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

/* Предотвращение горизонтального скролла */
html {
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

/* Глобальные правила для предотвращения переполнения */
div, section, header, footer, main, nav {
  max-width: 100%;
}

/* Исправляем возможные проблемы с grid и flex */
.hero-content,
.section-header-with-image,
.bonus-cards,
.game-grid,
.reviews-grid {
  width: 100%;
  max-width: 100%;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(ellipse at top, rgba(24, 255, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(0, 96, 23, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0d1120 0%, #161b2e 50%, #0d1120 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 80px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(24, 255, 0, 0.03) 2px,
      rgba(24, 255, 0, 0.03) 4px
    );
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: var(--primary-red);
  transition: var(--transition);
}

a:hover {
  color: var(--light-red);
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 52px;
  text-align: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

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

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.btn:hover::after {
  opacity: 1;
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-elevation), var(--shadow-glow);
  border: 2px solid rgba(24, 255, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(24, 255, 0, 0.4), var(--shadow-glow);
  color: white;
  border-color: rgba(24, 255, 0, 0.6);
}

/* Outline Button */
.btn-outline {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  border-color: var(--primary-red);
}

.btn-outline:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-1px);
}

/* Secondary Button */
.btn-secondary {
  background: var(--bg-light);
  color: var(--text-contrast);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Button Sizes */
.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
  min-height: 60px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-height: 40px;
  font-weight: 600;
}

.btn-mobile {
  width: 100%;
  margin-bottom: 10px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(24, 255, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.4s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glass);
  opacity: 0.5;
  pointer-events: none;
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(30px) saturate(200%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(24, 255, 0, 0.1);
  border-bottom: 1px solid rgba(24, 255, 0, 0.4);
}

.navbar {
  padding: 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-image {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-red);
  letter-spacing: 2px;
}

.logo-subtitle {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 3px;
  margin-top: -2px;
}

/* Desktop Navigation */
.desktop-menu .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
}

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

/* Desktop Actions */
.desktop-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 30px;
  height: 30px;
  position: relative;
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 2px 0;
  transition: var(--transition);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  padding: 100px 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 20%, rgba(24, 255, 0, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(0, 96, 23, 0.1) 0%, transparent 40%);
  animation: heroGlow 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, -5%) scale(1.1); }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="80" cy="40" r="0.3" fill="%23ffffff" opacity="0.03"/><circle cx="40" cy="80" r="0.4" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

.hero-text {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  position: relative;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  overflow: visible;
  margin-left: -50px;
}

.pin-up-girl {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.girl-illustration {
  font-size: 4rem;
  color: var(--accent-gold);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Основное пин-ап изображение в hero секции */
.pinup-main-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(255, 68, 68, 0.3));
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 5;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.sparkles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 10%; right: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 60%; left: 10%; animation-delay: 0.7s; }
.sparkle:nth-child(3) { bottom: 20%; right: 30%; animation-delay: 1.4s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

/* ========================================
   SECTIONS
   ======================================== */

section {
  padding: 80px 0;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  font-weight: 700;
  color: var(--text-primary);
}

/* Заголовки секций с пин-ап изображениями */
.section-header-with-image {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  gap: 3rem;
  padding: 0 1rem;
}

.section-content {
  flex: 1;
}

.section-content .section-title {
  text-align: left;
  margin-bottom: 1rem;
}

.section-pinup-image {
  flex-shrink: 0;
  max-width: 200px;
}

.pinup-section-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 25px rgba(255, 68, 68, 0.2));
  transition: var(--transition);
}

.pinup-section-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 35px rgba(255, 68, 68, 0.3));
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-content .section-title:after {
  left: 0;
  transform: none;
}

/* ========================================
   BONUSES SECTION
   ======================================== */

.bonuses {
  background: var(--bg-secondary);
  position: relative;
  border-radius: var(--border-radius);
}

.bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.bonus-card {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  border: 1px solid rgba(24, 255, 0, 0.2);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bonus-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: opacity 0.4s;
}

.bonus-card:hover::before {
  opacity: 1;
}

.bonus-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  border-color: rgba(24, 255, 0, 0.6);
}

.bonus-card.featured {
  background:
    linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%),
    var(--gradient-dark);
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

.bonus-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(250, 6, 6, 0.894);
  color: rgb(255, 255, 255);
  padding: 8px 16px;
  border-radius: var(--border-radius-small);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(250, 6, 6, 0.894);
}

.bonus-icon {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
}

.bonus-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.bonus-amount {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.bonus-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.bonus-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
}

.bonus-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.bonus-features li i {
  color: var(--success);
  margin-right: 0.5rem;
  width: 16px;
}

.btn-bonus {
  width: 100%;
  margin-top: auto;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   GAMES SECTION
   ======================================== */

.games {
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.game-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background: rgba(255, 68, 68, 0.1);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.game-card {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(24, 255, 0, 0.15);
  text-align: center;
  position: relative;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  pointer-events: none;
}

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

.game-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(24, 255, 0, 0.2);
  border-color: rgba(24, 255, 0, 0.5);
}

.game-image {
  height: 150px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.game-placeholder {
  font-size: 3rem;
  color: var(--primary-red);
  opacity: 0.7;
}

.game-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.game-card:hover .game-img {
  transform: scale(1.05);
}

.game-title {
  font-size: 1.1rem;
  padding: 1rem 1rem 0.5rem;
  margin-bottom: 0;
  color: var(--text-primary);
  text-align: center;
  font-weight: 600;
}

.game-provider {
  padding: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  text-align: center;
  font-weight: 400;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */

.reviews {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--primary-red);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.reviewer-name {
  font-weight: 600;
  color: var(--text-primary);
}

.review-rating {
  display: flex;
  gap: 2px;
}

.review-rating i {
  color: var(--accent-gold);
  font-size: 0.9rem;
}

.review-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.review-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   CONTENT / ARTICLE BODY (editorial)
   ======================================== */

.content {
  background: transparent;
}

.content-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.article-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h1,
.article-body h2,
.article-body h3 {
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.article-body h2 {
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.article-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.article-body h3 { font-size: 1.4rem; }

.article-body p { margin-bottom: 1.2rem; }

.article-body a { color: var(--light-red); text-decoration: underline; }

.article-body ul,
.article-body ol {
  margin: 0 0 1.2rem 1.5rem;
  color: var(--text-secondary);
}

.article-body li { margin-bottom: 0.5rem; }

.article-body img { border-radius: var(--border-radius-small); }

.article-body blockquote {
  border-left: 4px solid var(--primary-red);
  background: rgba(0, 195, 9, 0.08);
  padding: 1rem 1.5rem;
  margin: 0 0 1.2rem;
  border-radius: 0 var(--border-radius-small) var(--border-radius-small) 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

.article-body th {
  background: var(--bg-light);
  color: var(--text-primary);
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* ========================================
   TOPLIST PAGE TYPE
   ======================================== */

.toplist {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}

.toprow {
  display: grid;
  grid-template-columns: 60px 1.4fr 0.8fr 1.4fr auto;
  align-items: center;
  gap: 1.5rem;
  background: var(--gradient-card);
  border: 1px solid rgba(24, 255, 0, 0.2);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.75rem;
  transition: var(--transition);
}

.toprow:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 255, 0, 0.55);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(24, 255, 0, 0.15);
}

.toprow.featured {
  border-color: var(--accent-gold);
  background:
    linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(0, 195, 9, 0.08) 100%),
    var(--gradient-dark);
}

.toprow-rank {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.toprow-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toprow-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.toprow-pill {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.35);
  padding: 3px 10px;
  border-radius: var(--border-radius-small);
}

.toprow-rating {
  display: flex;
  align-items: baseline;
  gap: 2px;
  justify-content: center;
}

.toprow-rating-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.toprow-rating-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.toprow-bonus {
  color: var(--text-secondary);
  font-weight: 500;
}

.toprow-cta {
  white-space: nowrap;
}

/* ========================================
   REVIEW PAGE TYPE (sticky info card)
   ======================================== */

.review-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.info-card {
  position: sticky;
  top: 100px;
  background: var(--gradient-card);
  border: 1px solid rgba(24, 255, 0, 0.25);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
}

.info-rating {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.info-rating-num {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-rating span:last-child {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.info-list {
  text-align: left;
  margin-bottom: 1.5rem;
}

.info-list dt {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.75rem;
}

.info-list dd {
  color: var(--text-primary);
  font-weight: 600;
  margin: 0.15rem 0 0;
}

.info-cta {
  width: 100%;
}

/* ========================================
   LANDING PAGE TYPE
   ======================================== */

.landing-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.landing-h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.landing-lead {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.landing-cta {
  font-size: 1.2rem;
}

.landing-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.landing-cta-bottom {
  margin-top: 2rem;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 68, 68, 0.2);
  padding: 40px 0 20px;
}

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

.footer-section-title {
  color: var(--primary-red);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-red);
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.footer-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-red);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-disclaimer {
  color: var(--warning);
  font-size: 0.85rem;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   COOKIE NOTICE
   ======================================== */

.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--bg-dark);
  border: 1px solid var(--primary-red);
  border-radius: var(--border-radius);
  padding: 1rem;
  z-index: 999;
  box-shadow: var(--shadow-elevation);
  transition: var(--transition);
}

.cookie-notice.hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}

.cookie-text i {
  color: var(--warning);
  font-size: 1.2rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
  display: none !important;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Scroll-reveal entrance (progressive enhancement — never hides content
   permanently; cards stay visible if JS is off or off-screen at render). */
.reveal-on-scroll.in-view {
  animation: revealUp 0.6s ease both;
}

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

/* ========================================
   RESPONSIVE DESIGN - DESKTOP FIRST
   ======================================== */

@media (max-width: 1200px) {
  .hero-title { font-size: 3rem; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 1024px) {
  .section-header-with-image { gap: 1.5rem; }
  .section-pinup-image { max-width: 180px; }
  .pinup-main-image { max-width: 320px; }
  .hero-image { margin-left: -30px; }
  .review-layout { grid-template-columns: 1fr; }
  .info-card { position: static; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .container { padding: 0 15px; }

  /* Hide desktop elements */
  .desktop-menu,
  .desktop-actions { display: none; }

  /* Мобильная версия header */
  .header { position: relative; }

  body { padding-top: 0; }

  .mobile-menu-toggle { display: flex; }

  /* Hero adjustments */
  .hero { padding: 60px 0; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title { font-size: 2.5rem; }
  .hero-stats { justify-content: center; }
  .hero-buttons { justify-content: center; }

  .section-header-with-image {
    flex-direction: column;
    text-align: center;
  }

  .section-content .section-title { text-align: center; }
  .section-content .section-title:after { left: 50%; transform: translateX(-50%); }
  .section-pinup-image { max-width: 150px; }
  .pinup-main-image { max-width: 250px; }
  .hero-image { margin-left: 0; justify-content: center; }

  /* Sections */
  section { padding: 60px 0; }
  .section-title { font-size: 2rem; }

  /* Bonus cards */
  .bonus-cards { grid-template-columns: 1fr; }
  .bonus-card.featured { transform: none; }

  /* Game categories */
  .game-categories { gap: 0.5rem; }
  .category-btn { padding: 8px 16px; font-size: 0.9rem; }

  /* Toplist */
  .toprow {
    grid-template-columns: 50px 1fr;
    grid-template-areas:
      "rank brand"
      "rank rating"
      "bonus bonus"
      "cta cta";
    gap: 0.75rem 1rem;
  }
  .toprow-rank { grid-area: rank; align-self: start; }
  .toprow-brand { grid-area: brand; }
  .toprow-rating { grid-area: rating; justify-content: flex-start; }
  .toprow-bonus { grid-area: bonus; }
  .toprow-cta { grid-area: cta; width: 100%; }

  /* Footer */
  .footer-bottom { flex-direction: column; text-align: center; }
  .logo-image { height: 40px; }
  .footer-logo-image { height: 35px; }

  /* Cookie notice */
  .cookie-content { flex-direction: column; text-align: center; }
  .cookie-buttons { width: 100%; }
  .cookie-buttons .btn { flex: 1; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .section-title { font-size: 1.8rem; }
  .landing-h1 { font-size: 2.2rem; }
  .logo-image { height: 35px; }
  .footer-logo-image { height: 30px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .container { padding: 0 10px; }
  .bonus-cards { grid-template-columns: 1fr; gap: 1rem; }
  .game-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .btn { padding: 10px 16px; font-size: 0.9rem; }
}

/* ========================================
   MOBILE NAVIGATION OVERLAY
   ======================================== */

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(350px, 80vw);
  max-width: 350px;
  height: 100vh;
  background: var(--bg-dark);
  border-left: 2px solid var(--primary-red);
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.mobile-nav.open { right: 0; }

.mobile-nav-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.mobile-nav-close:hover { background: var(--primary-red); color: white; }

.mobile-nav-links {
  list-style: none;
  padding: 20px 0;
}

.mobile-nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-red);
  background: rgba(255, 68, 68, 0.1);
  border-left-color: var(--primary-red);
}

.mobile-nav-actions {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
}

.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

/* ========================================
   MOBILE BOTTOM BAR
   ======================================== */

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-dark);
  border-top: 2px solid var(--primary-red);
  box-shadow: 0 -4px 20px var(--shadow);
}

.mobile-bonus-button {
  padding: 15px 20px 10px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 100%);
}

.btn-mobile-bonus {
  width: 100%;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  box-shadow:
    0 4px 15px rgba(255, 68, 68, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-mobile-bonus:hover {
  transform: translateY(-2px);
  color: white;
  box-shadow:
    0 6px 20px rgba(255, 68, 68, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-mobile-bonus i {
  font-size: 1.3rem;
  animation: bounce 2s ease-in-out infinite;
}

.btn-mobile-bonus .bonus-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-3px); }
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 5px;
  background: var(--bg-dark);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  padding: 8px 4px;
  border-radius: var(--border-radius-small);
  min-width: 50px;
  min-height: 44px;
  position: relative;
}

.bottom-nav-item i {
  font-size: 1.2rem;
  margin-bottom: 4px;
  transition: var(--transition);
}

.bottom-nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
  color: var(--primary-red);
  background: rgba(255, 68, 68, 0.1);
}

.bottom-nav-item.active i { transform: scale(1.1); }

.bottom-nav-item.active:before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary-red);
  border-radius: 0 0 3px 3px;
}

@media (max-width: 768px) {
  .mobile-bottom-bar { display: block; animation: slideUp 0.4s ease-out; }
  body { padding-bottom: 120px; }
  .mobile-nav { width: 280px; }
  .footer { margin-bottom: 0; }
  html { scroll-padding-bottom: 120px; }
}

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

@media (max-width: 480px) {
  .mobile-nav { width: 100%; right: -100%; }
  .mobile-nav.open { right: 0; }
  .btn-mobile-bonus { font-size: 1rem; padding: 12px 16px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .mobile-bottom-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Touch-устройства */
@media (hover: none) and (pointer: coarse) {
  .btn-mobile-bonus:hover { transform: none; }
  .bottom-nav-item:active { background: rgba(255, 68, 68, 0.2); transform: scale(0.95); }
}

/* Safe areas для iPhone X+ */
@supports (padding: max(0px)) {
  .mobile-bottom-bar { padding-bottom: max(5px, env(safe-area-inset-bottom)); }
}

/* Toast (генерируется из JS) */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-dark);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elevation);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--primary-red);
}
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-info { border-left-color: #17a2b8; }
.toast-content { display: flex; align-items: center; gap: 8px; }
.toast.show { transform: translateX(0); }
@media (max-width: 768px) {
  .toast { right: 10px; left: 10px; top: auto; bottom: 140px; transform: translateY(100px); }
  .toast.show { transform: translateY(0); }
}
