/* --- НОВАЯ СИСТЕМА СТИЛЕЙ: NEXUSGATE --- */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg-main: #02040a;
  --bg-surface: rgba(10, 16, 32, 0.75);
  --bg-glass: rgba(15, 23, 42, 0.45);
  --border-glow: rgba(0, 229, 255, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);

  --hyper-cyan: #00e5ff;
  --hyper-blue: #2979ff;
  --hyper-violet: #aa00ff;
  --hyper-emerald: #00e676;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  --blur-window: blur(16px);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* --- BACKGROUND ANIMATION ELEMENTS --- */
.space-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 50% -20%, #0c1530 0%, #02040a 70%);
}

.aurora-sphere {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  animation: pulseSphere 12s infinite alternate ease-in-out;
}
.aurora-1 {
  top: -200px;
  right: -100px;
  background: var(--hyper-cyan);
}
.aurora-2 {
  bottom: -150px;
  left: -100px;
  background: var(--hyper-violet);
  animation-delay: -4s;
}

@keyframes pulseSphere {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.25;
  }
  100% {
    transform: scale(1.15) translate(30px, 40px);
    opacity: 0.4;
  }
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- HEADER / NAVIGATION --- */
.nexus-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 4, 10, 0.5);
  backdrop-filter: var(--blur-window);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}
.nexus-header.scrolled {
  background: rgba(4, 7, 16, 0.9);
  padding: 6px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.brand-logo span {
  background: linear-gradient(90deg, var(--hyper-cyan), var(--hyper-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-ring {
  width: 24px;
  height: 24px;
  border: 3px solid var(--hyper-cyan);
  border-radius: 50%;
  position: relative;
}
.logo-ring::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  padding: 8px 0;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hyper-cyan), var(--hyper-blue));
  transition: var(--transition-smooth);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 28px;
  height: 2px;
  background-color: #fff;
  transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero-block {
  padding: 180px 0 100px 0;
  text-align: center;
  position: relative;
}

.badge-ui {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--hyper-cyan);
  margin-bottom: 24px;
  backdrop-filter: var(--blur-window);
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--hyper-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--hyper-cyan);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.title-heavy {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #fff;
}
.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cyan-text {
  background: linear-gradient(
    135deg,
    var(--hyper-cyan) 0%,
    var(--hyper-blue) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* --- BUTTONS --- */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-nexus {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(
    135deg,
    var(--hyper-cyan) 0%,
    var(--hyper-blue) 100%
  );
  color: #02040a;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.4);
}
.btn-secondary {
  background: var(--bg-glass);
  color: #fff;
  border: 1px solid var(--border-light);
  backdrop-filter: var(--blur-window);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* --- COMPLIANCE DISCLAIMER STRIP --- */
.compliance-bar {
  background: rgba(6, 11, 25, 0.8);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
  overflow: hidden;
  margin: 40px 0;
}
.compliance-slider {
  display: flex;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.compliance-node {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.compliance-node::before {
  content: "⧇";
  color: var(--hyper-cyan);
}

/* --- GLASS GRID SYSTEMS --- */
.interactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  padding: 40px 0 100px 0;
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: var(--blur-window);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-category {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--hyper-blue);
  margin-bottom: 16px;
}

.card-title {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.meta-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- SPECIFIC PAGE GRAPHICS --- */
.metric-box {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  width: 80px;
  position: relative;
}
.metric-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--hyper-cyan);
  border-radius: 2px;
}

/* --- CONTACT FORM --- */
.form-glass {
  max-width: 600px;
  margin: 0 auto 100px auto;
}
.field-group {
  margin-bottom: 24px;
}
.field-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.input-nexus {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}
.input-nexus:focus {
  outline: none;
  border-color: var(--hyper-cyan);
  background: rgba(0, 0, 0, 0.4);
}

/* --- FOOTER --- */
.nexus-footer {
  background: rgba(1, 3, 8, 0.95);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-text {
  margin-top: 16px;
  max-width: 320px;
}
.footer-heading {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}
.legal-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  text-align: center;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 968px) {

  .hero-block {
  padding: 50px 0 100px 0;
  text-align: center;
  position: relative;
}

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .title-heavy {
    font-size: 2.5rem;
  }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #040710;
    padding: 30px;
    border-bottom: 1px solid var(--border-light);
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .interactive-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Метрики и бары заполнения (Гистограммы) */
.metric-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.metric-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--hyper-cyan);
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- ФИКС ГОРИЗОНТАЛЬНОГО СКРОЛЛА НА СТРАНИЦЕ REVIEWS --- */

/* 1. Жесткое ограничение для предотвращения вылетов любых блоков */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Гарантия адаптивности основных контейнеров сайта */
.container, main.container, .nexus-header .container {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 3. Адаптация сетки карточек и самих отзывов на мобильных экранах */
@media (max-width: 768px) {
  /* Перестраиваем сетку обзоров в одну колонку */
  .reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
  }

  /* Исправляем внутреннюю структуру карточки отзыва */
  .review-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px !important; /* Уменьшаем внутренние паддинги, чтобы текст не выталкивал рамки */
  }

  /* Адаптируем верхнюю панель карточки (Название игры и Оценка) */
  .review-card > div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  
  .review-card div[style*="text-align: right"] {
    text-align: left !important; /* Смещаем оценку влево, чтобы она не сжималась у правого края */
  }

  /* Исправляем сетку технических оценок (Gameplay/Visuals/Audio), которая ломала ширину */
  .review-card div[style*="display: grid"] {
    grid-template-columns: 1fr !important; /* Перестраиваем оценки в один вертикальный список */
    gap: 8px !important;
    width: 100% !important;
  }
}

/* Дополнительный фикс для совсем маленьких экранов (смартфоны до 480px) */
@media (max-width: 480px) {
  .title-heavy {
    font-size: 2rem !important; /* Уменьшаем размер заголовка, чтобы он не переполнял экран */
    word-wrap: break-word;
  }
  
  main {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}