/**
 * Тема Monolith (из monolith-store): шапка, подвал, главная.
 */
:root {
  --monolith-black: #0a0a0a;
  --monolith-dark: #111111;
  --monolith-darker: #0d0d0d;
  --monolith-cyan: #00d4ff;
  --monolith-cyan-dark: #0099cc;
  --monolith-red: #ff4444;
  --monolith-green: #44ff44;
  --monolith-orange: #ffaa00;
  --monolith-gray-800: #1a1a1a;
  --monolith-gray-700: #2a2a2a;
  --monolith-gray-500: #666666;
  --monolith-gray-400: #888888;
  --monolith-header-h: 64px;
  --monolith-content-gap: clamp(1.25rem, 2.5vw, 3rem);

  /* Полупрозрачные оттенки акцента (для hover, glow, border) */
  --monolith-cyan-a08: rgba(0, 212, 255, 0.08);
  --monolith-cyan-a10: rgba(0, 212, 255, 0.1);
  --monolith-cyan-a12: rgba(0, 212, 255, 0.12);
  --monolith-cyan-a15: rgba(0, 212, 255, 0.15);
  --monolith-cyan-a16: rgba(0, 212, 255, 0.16);
  --monolith-cyan-a22: rgba(0, 212, 255, 0.22);
  --monolith-cyan-a25: rgba(0, 212, 255, 0.25);
  --monolith-cyan-a28: rgba(0, 212, 255, 0.28);
  --monolith-cyan-a30: rgba(0, 212, 255, 0.3);
  --monolith-cyan-a32: rgba(0, 212, 255, 0.32);
  --monolith-cyan-a35: rgba(0, 212, 255, 0.35);
  --monolith-cyan-a40: rgba(0, 212, 255, 0.4);
  --monolith-cyan-a45: rgba(0, 212, 255, 0.45);
  --monolith-cyan-a50: rgba(0, 212, 255, 0.5);
  --monolith-cyan-a52: rgba(0, 212, 255, 0.52);
  --monolith-cyan-a65: rgba(0, 212, 255, 0.65);
  --monolith-cyan-a75: rgba(0, 212, 255, 0.75);
  --monolith-cyan-a95: rgba(0, 212, 255, 0.95);
  --monolith-cyan-a015: rgba(0, 212, 255, 0.015);
}

/* Переопределение legacy-переменных style.css (там «cyan» = красный акцент) */
body.monolith-theme {
  --theme-black: var(--monolith-black);
  --theme-dark: var(--monolith-dark);
  --theme-darker: var(--monolith-darker);
  --theme-cyan: var(--monolith-cyan);
  --theme-cyan-dark: var(--monolith-cyan-dark);
  --theme-red: var(--monolith-red);
  --theme-green: var(--monolith-green);
  --theme-orange: var(--monolith-orange);
  --theme-gray-800: var(--monolith-gray-800);
  --theme-gray-700: var(--monolith-gray-700);
  --theme-gray-500: var(--monolith-gray-500);
  --theme-gray-400: var(--monolith-gray-400);

  --primary-red: var(--monolith-cyan-dark);
  --dark-red: #004d66;
  --light-red: #66e5ff;
  --accent-red: var(--monolith-cyan);
  --accent-blue: var(--monolith-cyan);
  --red-glow: var(--monolith-cyan-a35);
  --red-shadow: var(--monolith-cyan-a25);
  --border-hover: var(--monolith-cyan-a45);
  --red-glow-shadow: 0 4px 24px var(--monolith-cyan-a28);
  --glow: 0 0 24px var(--monolith-cyan-a35);
  --hover-shadow: 0 8px 32px var(--monolith-cyan-a12);
  --accent-tint-bg: var(--monolith-cyan-a10);
  --accent-tint-bg-strong: var(--monolith-cyan-a15);
  --accent-glow-soft: var(--monolith-cyan-a15);
  --accent-glow-medium: var(--monolith-cyan-a35);
  --accent-glow-strong: var(--monolith-cyan-a50);
  --shadow-card-hover: 0 12px 40px var(--monolith-cyan-a12), 0 8px 32px rgba(0, 0, 0, 0.45);
  --gradient-red: linear-gradient(135deg, var(--monolith-cyan-dark) 0%, var(--monolith-cyan) 100%);

  --dark-bg: var(--monolith-black);
  --dark-gray: var(--monolith-darker);
  --medium-gray: var(--monolith-gray-800);
  --light-gray: var(--monolith-gray-700);
  --card-bg: rgba(17, 17, 17, 0.92);
  --card-bg-hover: rgba(26, 26, 26, 0.96);

  /* Затемнение фоновых секций (hero + блоки ниже) */
  --monolith-section-shade: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.35) 50%,
    rgba(10, 10, 10, 0.72) 100%
  );

  background-color: var(--monolith-black);
  color: #fff;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, var(--monolith-cyan-a10), transparent 55%),
    linear-gradient(var(--monolith-cyan-a015) 1px, transparent 1px),
    linear-gradient(90deg, var(--monolith-cyan-a015) 1px, transparent 1px);
  background-size: auto, 50px 50px, 50px 50px;
  background-attachment: fixed;
}

html:has(body.monolith-theme) {
  scrollbar-gutter: stable;
}

/* zoom на body ломает fixed-шапку и фон при полной перезагрузке страницы */
body.monolith-theme:not(.admin-body) {
  zoom: 1;
}

body.monolith-theme.monolith-has-site-bg {
  background-attachment: scroll;
}

body.monolith-theme ::selection {
  background: rgba(0, 212, 255, 0.3);
  color: #fff;
}

body.monolith-theme ::-webkit-scrollbar {
  width: 8px;
}
body.monolith-theme ::-webkit-scrollbar-track {
  background: var(--monolith-dark);
}
body.monolith-theme ::-webkit-scrollbar-thumb {
  background: var(--monolith-cyan-dark);
  border-radius: 4px;
}
body.monolith-theme ::-webkit-scrollbar-thumb:hover {
  background: var(--monolith-cyan);
}

/* ——— Header ——— */
body.monolith-theme .main-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--monolith-header-h);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--monolith-gray-800);
  box-shadow: none;
  transform: translateZ(0);
  contain: layout style;
}

body.monolith-theme .header-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
}

@media (min-width: 640px) {
  body.monolith-theme .header-container {
    padding: 0 1.5rem;
  }
}

body.monolith-theme .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--monolith-header-h);
  gap: 1rem;
}

body.monolith-theme .logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

body.monolith-theme .logo-image {
  display: none !important;
}

body.monolith-theme .logo--monolith-text .monolith-brand-text {
  display: block;
}

body.monolith-theme .logo .monolith-brand-name {
  display: block;
  font-family: 'Russo One', 'Orbitron', system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.15;
  transition: color 0.2s;
}

body.monolith-theme .logo a:hover .monolith-brand-name {
  color: var(--monolith-cyan);
}

/* Подзаголовок бренда в шапке и футере — Inter (не 28 Days Later из .logo a span) */
body.monolith-theme .footer-brand-top .monolith-brand-sub,
body.monolith-theme .logo a .monolith-brand-sub {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: var(--monolith-gray-400);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.35;
}

body.monolith-theme .logo .monolith-brand-sub {
  display: block;
  margin-top: 0.15rem;
  max-width: 14rem;
}

@media (min-width: 768px) {
  body.monolith-theme .main-nav-links .monolith-nav-extra {
    display: none;
  }
}

body.monolith-theme .main-nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  body.monolith-theme .main-nav-links {
    display: flex;
  }
}

body.monolith-theme .main-nav-links > a,
body.monolith-theme .main-nav-links .nav-dropdown-toggle {
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color 0.2s;
}

body.monolith-theme .main-nav-links > a i,
body.monolith-theme .main-nav-links .nav-dropdown-toggle i {
  display: none;
}

body.monolith-theme .main-nav-links > a:hover,
body.monolith-theme .main-nav-links .nav-dropdown-toggle:hover,
body.monolith-theme .nav-dropdown:hover > .nav-dropdown-toggle {
  color: #fff;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.monolith-theme .main-nav-links > a.is-active {
  color: var(--monolith-cyan);
}

body.monolith-theme .main-nav-links > a.is-active::after,
body.monolith-theme .main-nav-links .nav-dropdown-toggle.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--monolith-cyan);
  box-shadow: 0 0 10px var(--monolith-cyan);
}

body.monolith-theme .main-nav-links .nav-dropdown-toggle.is-active {
  color: var(--monolith-cyan);
}

body.monolith-theme .nav-dropdown-menu {
  background: var(--monolith-dark);
  border: 1px solid var(--monolith-gray-700);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-top: 0.5rem;
}

body.monolith-theme .nav-dropdown-menu a {
  color: var(--monolith-gray-400);
  font-size: 0.875rem;
}

body.monolith-theme .nav-dropdown-menu a:hover {
  color: var(--monolith-cyan);
  background: var(--monolith-gray-800);
}

body.monolith-theme .header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.monolith-theme .header-social-links {
  display: none;
}

body.monolith-theme .login-btn--steam,
body.monolith-theme .login-btn.login-btn--steam {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #1b2838;
  border: 1px solid #2a475e;
  border-radius: 0.375rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

body.monolith-theme .login-btn--steam:hover {
  background: #2a475e;
  box-shadow: 0 0 20px rgba(27, 40, 56, 0.5);
}

body.monolith-theme .user-menu--monolith .user-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.5rem;
  padding: 0.25rem 0.35rem;
}

body.monolith-theme .user-menu--monolith .user-menu-wrapper:hover {
  background: var(--monolith-gray-800);
}

body.monolith-theme .user-menu-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}

body.monolith-theme .user-menu-name {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.monolith-theme .user-menu-shop-link {
  color: var(--monolith-gray-400);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.2s;
}

body.monolith-theme .user-menu-shop-link:hover,
body.monolith-theme .user-menu-shop-link.is-active {
  color: var(--monolith-cyan);
}

body.monolith-theme .user-menu-chevron {
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.3s ease;
  color: var(--monolith-gray-400);
  flex-shrink: 0;
}

body.monolith-theme .user-menu-dropdown {
  background: var(--monolith-dark);
  border: 1px solid var(--monolith-gray-700);
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.monolith-theme .user-menu-dropdown a {
  color: #d1d5db;
  font-size: 0.875rem;
}

body.monolith-theme .user-menu-dropdown a:hover {
  background: var(--monolith-gray-800);
  color: #fff;
}

body.monolith-theme .monolith-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #d1d5db;
  cursor: pointer;
  border-radius: 0.375rem;
}

body.monolith-theme .monolith-nav-toggle:hover {
  color: #fff;
  background: var(--monolith-gray-800);
}

@media (min-width: 768px) {
  body.monolith-theme .monolith-nav-toggle {
    display: none;
  }
}

body.monolith-theme .monolith-mobile-nav {
  display: none;
  background: var(--monolith-dark);
  border-top: 1px solid var(--monolith-gray-800);
}

body.monolith-theme .monolith-mobile-nav.is-open {
  display: block;
}

body.monolith-theme .monolith-mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  margin: 0.25rem 1rem;
  border-radius: 0.5rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

body.monolith-theme .monolith-mobile-nav a:hover,
body.monolith-theme .monolith-mobile-nav a.is-active {
  background: rgba(0, 212, 255, 0.1);
  color: var(--monolith-cyan);
}

body.monolith-theme .main-content {
  padding-top: calc(var(--monolith-header-h) + var(--monolith-content-gap));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  min-height: calc(100vh - var(--monolith-header-h));
  overflow: visible;
}

/* Главная: тот же отступ под шапкой, что и на остальных страницах — без рывка при переходах */
body.monolith-theme .main-content:has(.monolith-home) {
  padding-top: calc(var(--monolith-header-h) + var(--monolith-content-gap));
  padding-bottom: 0;
}

body.monolith-theme .main-content:has(.monolith-home) .monolith-home {
  margin-top: calc(-1 * var(--monolith-content-gap));
}

/* ——— Footer ——— */
body.monolith-theme .main-footer.footer-main {
  background: var(--monolith-darker);
  border-top: 1px solid var(--monolith-gray-800);
  margin-top: auto;
}

body.monolith-theme .footer-main .container {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1rem 0;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  body.monolith-theme .footer-main .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  body.monolith-theme .footer-main .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

body.monolith-theme .footer-main-col--brand .footer-brand-stack {
  margin-left: 0;
  padding-left: 0;
}

body.monolith-theme .footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  body.monolith-theme .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  body.monolith-theme .footer-main-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.monolith-theme .footer-brand-top {
  margin-bottom: 0.5rem;
}

body.monolith-theme .footer-brand-top .monolith-header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

body.monolith-theme .footer-brand-logo {
  display: none;
}

body.monolith-theme .footer-brand-stack .monolith-atom-logo-wrap {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--monolith-cyan);
}

body.monolith-theme .footer-brand-top .monolith-brand-name {
  display: block;
  font-family: 'Russo One', 'Orbitron', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  text-align: left;
}

body.monolith-theme .footer-brand-top .monolith-brand-sub {
  display: block;
  margin-top: 0.15rem;
  margin-bottom: 0;
  text-align: left;
}

body.monolith-theme .footer-brand-top .monolith-header__logo-link:hover .monolith-brand-name {
  color: var(--monolith-cyan);
}

body.monolith-theme .footer-brand-desc {
  font-size: 0.875rem;
  color: var(--monolith-gray-400);
  line-height: 1.6;
  margin: 0 0 1rem;
}

body.monolith-theme .footer-server-online {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--monolith-cyan);
}

body.monolith-theme .footer-server-online__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--monolith-green);
  animation: monolith-pulse-live 2s ease-in-out infinite;
}

@keyframes monolith-pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

body.monolith-theme .footer-main-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 1rem;
}

body.monolith-theme .footer-main-links a,
body.monolith-theme .footer-main-social a {
  color: var(--monolith-gray-400);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

body.monolith-theme .footer-main-links a:hover,
body.monolith-theme .footer-main-social a:hover {
  color: var(--monolith-cyan);
}

body.monolith-theme .footer-main-social a i {
  color: var(--monolith-gray-400);
}

body.monolith-theme .footer-main-social a:hover i {
  color: var(--monolith-cyan);
}

body.monolith-theme .footer-main-bar {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--monolith-gray-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  body.monolith-theme .footer-main-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

body.monolith-theme .footer-main-copy,
body.monolith-theme .footer-main-legal a,
body.monolith-theme .footer-main-legal span {
  color: var(--monolith-gray-500);
  font-size: 0.875rem;
}

body.monolith-theme .footer-main-legal a:hover {
  color: #d1d5db;
}

/* ——— Главная: hero ——— */
body.monolith-theme .monolith-home {
  position: relative;
  width: 100%;
  overflow: visible;
  /* Зона затемнения под последним блоком до футера */
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Затемнение на всю ширину и высоту главной (включая низ под CTA) */
body.monolith-theme .monolith-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--monolith-section-shade);
  pointer-events: none;
  z-index: 0;
}

body.monolith-theme .monolith-home > .container.home-page {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

body.monolith-theme .home-hero.monolith-hero {
  position: relative;
  min-height: calc(100vh - var(--monolith-header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: 4rem 1rem 5rem;
  width: 100%;
}

body.monolith-theme .monolith-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

body.monolith-theme .monolith-hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

body.monolith-theme .monolith-hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.3);
  animation: monolith-float 4s ease-in-out infinite;
}

@keyframes monolith-float {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-12px); opacity: 0.8; }
}

body.monolith-theme .hero-section.hero-section--main {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body.monolith-theme .hero-main-icon-wrap {
  width: 6rem;
  height: 6rem;
  margin: 0 auto 2rem;
  color: var(--monolith-cyan);
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
}

body.monolith-theme .hero-main-icon-wrap .hero-main-icon-img {
  display: none;
}

body.monolith-theme .hero-title-main,
body.monolith-theme .hero-section--main-title .hero-title-main {
  font-family: 'Russo One', 'Orbitron', system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.92),
    0 0 40px rgba(0, 212, 255, 0.35);
}

body.monolith-theme .hero-main-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 400;
  color: var(--monolith-cyan);
  margin-bottom: 1rem;
}

body.monolith-theme .hero-main-tagline {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.875rem;
  color: var(--monolith-gray-500);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

body.monolith-theme .hero-main-description {
  color: var(--monolith-gray-400);
  max-width: 42rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
  font-size: 1rem;
}

body.monolith-theme .hero-main-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

body.monolith-theme .hero-main-btn--primary,
body.monolith-theme .btn.btn-primary,
body.monolith-theme .home-cta-inner .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--monolith-cyan);
  color: #000;
  font-weight: 600;
  border-radius: 0.375rem;
  border: none;
  text-decoration: none;
  transition: all 0.3s;
}

body.monolith-theme .hero-main-btn--primary:hover,
body.monolith-theme .btn.btn-primary:hover {
  background: var(--monolith-cyan-dark);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  color: #000;
}

body.monolith-theme .hero-main-btn--secondary,
body.monolith-theme .btn.btn-secondary,
body.monolith-theme .home-cta-inner .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--monolith-cyan);
  font-weight: 600;
  border: 1px solid var(--monolith-cyan);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s;
}

body.monolith-theme .hero-main-btn--secondary:hover,
body.monolith-theme .btn.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  color: var(--monolith-cyan);
}

body.monolith-theme .hero-main-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  body.monolith-theme .hero-main-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.monolith-theme .hero-main-stat {
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid var(--monolith-gray-800);
  border-radius: 0.5rem;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

body.monolith-theme .hero-main-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

body.monolith-theme .hero-main-stat-label {
  font-size: 0.65rem;
  color: var(--monolith-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

body.monolith-theme .hero-main-stat-icon--cyan { color: var(--monolith-cyan) !important; }
body.monolith-theme .hero-main-stat-icon--green { color: var(--monolith-green) !important; }
body.monolith-theme .hero-main-stat-icon--orange { color: var(--monolith-orange) !important; }
body.monolith-theme .hero-main-stat-icon--red { color: var(--monolith-red) !important; }

body.monolith-theme .monolith-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--monolith-gray-500);
  font-size: 1.25rem;
  animation: monolith-bounce 2s infinite;
  z-index: 2;
}

@keyframes monolith-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

body.monolith-theme .monolith-home > .container.home-page > * {
  position: relative;
  z-index: 1;
}

body.monolith-theme .monolith-home .home-page.home-page--cards-only {
  gap: 0;
  padding-bottom: 0;
}

body.monolith-theme .monolith-home .home-cards-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Заголовки секций главной — по центру */
body.monolith-theme .monolith-home .section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

body.monolith-theme .monolith-home .section-head .section-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--monolith-cyan);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin: 0 0 0.5rem;
  text-align: center;
}

body.monolith-theme .monolith-home .section-title,
body.monolith-theme .monolith-home .section-head .section-title {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  line-height: 1.2;
}

body.monolith-theme .monolith-home .section-head--split {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}

body.monolith-theme .monolith-home .section-head--split > div:first-child {
  width: 100%;
}

body.monolith-theme .monolith-home .section-head--split .section-title {
  text-align: center;
}

body.monolith-theme .monolith-home .section-head-actions {
  justify-content: center;
  width: 100%;
}

body.monolith-theme .monolith-home .home-news-all {
  margin-top: 0.25rem;
}

body.monolith-theme .monolith-features .section-head {
  margin-bottom: 2rem;
  text-align: center;
}

/* Мониторинг: карточки по центру, если серверов меньше, чем колонок */
body.monolith-theme .monolith-home .server-monitor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

body.monolith-theme .monolith-home .server-monitor .server-card {
  flex: 0 1 280px;
  width: min(100%, 300px);
  max-width: 300px;
  box-sizing: border-box;
}

body.monolith-theme .monolith-home .server-monitor .home-cards-empty {
  flex: 1 1 100%;
  width: 100%;
}

body.monolith-theme .monolith-features {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1rem;
}

body.monolith-theme .monolith-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  body.monolith-theme .monolith-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.monolith-theme .monolith-feature-card {
  background: var(--monolith-dark);
  border: 1px solid var(--monolith-gray-800);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

body.monolith-theme .monolith-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

body.monolith-theme .monolith-feature-card__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

body.monolith-theme .monolith-feature-card__icon .monolith-lucide-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

body.monolith-theme .monolith-feature-card__icon--cyan {
  color: var(--monolith-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 2px solid rgba(0, 212, 255, 0.25);
}

body.monolith-theme .monolith-feature-card__icon--red {
  color: var(--monolith-red);
  background: rgba(255, 68, 68, 0.08);
  border: 2px solid rgba(255, 68, 68, 0.25);
}

body.monolith-theme .monolith-feature-card__icon--orange {
  color: var(--monolith-orange);
  background: rgba(255, 170, 0, 0.08);
  border: 2px solid rgba(255, 170, 0, 0.25);
}

body.monolith-theme .monolith-feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
}

body.monolith-theme .monolith-feature-card p {
  font-size: 0.9375rem;
  color: var(--monolith-gray-400);
  line-height: 1.6;
  margin: 0;
}

body.monolith-theme .home-cards-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--monolith-cyan);
  margin: 0 0 0.5rem;
}

body.monolith-theme .home-cards-section-subtitle {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--monolith-gray-400);
}

body.monolith-theme .home-cards-block {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 1rem;
  box-sizing: border-box;
}

body.monolith-theme .monolith-zones__head {
  text-align: center;
}

body.monolith-theme .monolith-zones__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 68, 68, 0.15);
  color: var(--monolith-red);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

body.monolith-theme .monolith-zones__badge .monolith-lucide-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

body.monolith-theme .monolith-zones__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  body.monolith-theme .monolith-zones__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.monolith-theme .monolith-zone-card {
  position: relative;
  background: var(--monolith-dark);
  border: 1px solid var(--monolith-gray-800);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

body.monolith-theme .monolith-zone-card:hover {
  border-color: var(--zone-color, var(--monolith-cyan));
}

body.monolith-theme .monolith-zone-card__difficulty {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 0.25rem;
  background: var(--zone-color-alpha, rgba(255, 68, 68, 0.2));
  color: var(--zone-color, var(--monolith-red));
  border: 1px solid var(--zone-color, var(--monolith-red));
}

body.monolith-theme .monolith-zone-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  padding-right: 5rem;
}

body.monolith-theme .monolith-zone-card__desc {
  font-size: 0.875rem;
  color: var(--monolith-gray-400);
  line-height: 1.6;
  margin: 0 0 1rem;
}

body.monolith-theme .monolith-zone-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.monolith-theme .monolith-zone-card__info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--monolith-gray-500);
}

body.monolith-theme .monolith-zone-card__info-item .monolith-lucide-icon {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--zone-color, var(--monolith-cyan));
}

body.monolith-theme .monolith-zone-card__info-item span {
  color: var(--zone-color, var(--monolith-cyan));
}

body.monolith-theme .monolith-feature-card__icon--yellow {
  color: #ffff44;
  background: rgba(255, 255, 68, 0.08);
  border: 2px solid rgba(255, 255, 68, 0.25);
}

body.monolith-theme .monolith-cta-band.home-cta-inner,
body.monolith-theme .monolith-cta-band.home-cta-inner--fullwidth-overlay {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
  background: #0a0a0a;
  border: none;
  border-top: 1px solid var(--monolith-gray-800);
  border-bottom: 1px solid var(--monolith-gray-800);
  box-shadow: none;
}

body.monolith-theme .monolith-cta-band.home-cta-inner::before {
  display: none;
}

body.monolith-theme .monolith-cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
}

body.monolith-theme .monolith-cta-band__title,
body.monolith-theme .monolith-cta-band .home-cta-title {
  font-family: 'Russo One', 'Orbitron', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 400;
  color: #fff;
  margin: 0 0 1rem;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

body.monolith-theme .monolith-cta-band__text,
body.monolith-theme .monolith-cta-band .home-cta-text {
  color: var(--monolith-gray-400);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 auto 2rem;
  max-width: 40rem;
}

body.monolith-theme .monolith-cta-band__actions,
body.monolith-theme .monolith-cta-band .home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

body.monolith-theme .monolith-cta-band__btn {
  min-width: 12rem;
}

body.monolith-theme .server-card {
  background: var(--monolith-dark);
  border: 1px solid var(--monolith-gray-800);
  border-radius: 0.5rem;
}

body.monolith-theme .news-item {
  background: var(--monolith-dark);
  border: 1px solid var(--monolith-gray-800);
  border-radius: 0.5rem;
  transition: all 0.3s;
}

body.monolith-theme .news-item:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

body.monolith-theme .stat-tile {
  background: var(--monolith-dark);
  border: 1px solid var(--monolith-gray-800);
  border-radius: 0.5rem;
}

body.monolith-theme .stat-tile__value {
  color: var(--monolith-cyan);
}

body.monolith-theme .monolith-atom-logo {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes monolith-atom-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

body.monolith-theme .monolith-atom-logo--pulse {
  animation: monolith-atom-pulse 2s ease-in-out infinite;
}

body.monolith-theme .hero-main-icon-wrap .monolith-atom-logo--pulse {
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.5));
}

@media (prefers-reduced-motion: reduce) {
  body.monolith-theme .monolith-atom-logo--pulse {
    animation: none;
    opacity: 1;
  }
}

/* ——— Header v2: monolith-store (перекрывает grid из style.css) ——— */
body.monolith-theme .monolith-header .header-container {
  max-width: 80rem;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  body.monolith-theme .monolith-header .header-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  body.monolith-theme .monolith-header .header-container {
    padding: 0 2rem;
  }
}

body.monolith-theme .monolith-header .monolith-header__inner,
body.monolith-theme .monolith-header .header-content {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: var(--monolith-header-h);
  min-height: 0;
  padding: 0 !important;
  margin: 0;
  grid-template-columns: unset !important;
}

body.monolith-theme .monolith-header .monolith-header__logo,
body.monolith-theme .monolith-header .logo {
  flex: 0 0 auto;
  justify-self: auto !important;
}

body.monolith-theme .monolith-header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
}

body.monolith-theme .monolith-header .monolith-atom-logo-wrap {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--monolith-cyan);
}

body.monolith-theme .monolith-header .monolith-brand-text {
  display: none;
}

@media (min-width: 640px) {
  body.monolith-theme .monolith-header .monolith-brand-text {
    display: block;
  }
}

body.monolith-theme .monolith-header .monolith-brand-name {
  font-family: 'Russo One', 'Orbitron', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

body.monolith-theme .monolith-header__logo-link:hover .monolith-brand-name {
  color: var(--monolith-cyan);
}

body.monolith-theme .monolith-header .monolith-brand-sub {
  margin-top: 0.15rem;
}

body.monolith-theme .monolith-header__nav {
  flex: 0 1 auto;
  display: none;
  justify-content: center;
  justify-self: center !important;
  min-width: 0;
}

@media (min-width: 768px) {
  body.monolith-theme .monolith-header__nav {
    display: flex;
  }
}

body.monolith-theme .monolith-header__nav-links,
body.monolith-theme .monolith-header .main-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

body.monolith-theme .monolith-header__nav-link,
body.monolith-theme .monolith-header .main-nav-links > a.monolith-header__nav-link {
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

body.monolith-theme .monolith-header__nav-link:hover {
  color: #fff;
}

body.monolith-theme .monolith-header__nav-link.is-active {
  color: var(--monolith-cyan);
}

body.monolith-theme .monolith-header__nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--monolith-cyan);
  box-shadow: 0 0 10px var(--monolith-cyan);
}

body.monolith-theme .monolith-header .nav-dropdown--monolith-more {
  position: relative;
}

/* Невидимая зона между кнопкой и меню — курсор не теряет hover */
body.monolith-theme .monolith-header .nav-dropdown--monolith-more::after {
  content: '';
  position: absolute;
  left: -0.25rem;
  right: -0.25rem;
  top: 100%;
  height: 0.85rem;
  z-index: 1099;
}

body.monolith-theme .monolith-header .nav-dropdown--monolith-more .nav-dropdown-toggle {
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

body.monolith-theme .monolith-header .nav-dropdown--monolith-more:hover .nav-dropdown-toggle {
  color: #fff;
}

body.monolith-theme .monolith-header .nav-dropdown--monolith-more .nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  min-width: 11rem;
  margin-top: 0;
  z-index: 1100;
}

/* Расширяем hit-area меню вверх (дублирует мост для :focus-within) */
body.monolith-theme .monolith-header .nav-dropdown--monolith-more .nav-dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.85rem;
}

body.monolith-theme .monolith-header__aside,
body.monolith-theme .monolith-header .header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: auto !important;
  width: auto !important;
  margin-left: 0 !important;
}

body.monolith-theme .monolith-header__actions,
body.monolith-theme .monolith-header .header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.monolith-theme .monolith-header__balance {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 0.5rem;
  color: var(--monolith-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

@media (min-width: 640px) {
  body.monolith-theme .monolith-header__balance {
    display: inline-flex;
  }
}

body.monolith-theme .monolith-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #d1d5db;
  text-decoration: none;
}

body.monolith-theme .monolith-header__cart:hover {
  color: #fff;
}

body.monolith-theme .monolith-header__cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--monolith-cyan);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

body.monolith-theme .monolith-header .user-menu--monolith .user-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  border-radius: 0.5rem;
}

body.monolith-theme .monolith-header .user-menu--monolith .user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
}

body.monolith-theme .monolith-header .user-menu--monolith .user-menu-name {
  display: none;
  color: #d1d5db;
  font-size: 0.875rem;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 640px) {
  body.monolith-theme .monolith-header .user-menu--monolith .user-menu-name {
    display: inline;
  }
}

body.monolith-theme .monolith-header .monolith-nav-toggle {
  order: 10;
}

body.monolith-theme .monolith-header .nav-dropdown--monolith-more .nav-dropdown-menu {
  display: none;
}

body.monolith-theme .monolith-header .nav-dropdown--monolith-more:hover .nav-dropdown-menu,
body.monolith-theme .monolith-header .nav-dropdown--monolith-more:focus-within .nav-dropdown-menu,
body.monolith-theme .monolith-header .nav-dropdown--monolith-more .nav-dropdown-menu.is-open {
  display: block;
}

@media (max-width: 767px) {
  body.monolith-theme .monolith-header__nav {
    display: none !important;
  }
}

/* ——— Глобальная палитра Monolith (перекрывает красные хардкоды style.css) ——— */
body.monolith-theme ::selection {
  background: var(--monolith-cyan-a30);
  color: #fff;
}

body.monolith-theme .main-header {
  box-shadow: 0 1px 0 var(--monolith-cyan-a08), var(--shadow);
}

/* Кнопки и CTA */
body.monolith-theme .btn-primary:hover,
body.monolith-theme .btn-secondary:hover,
body.monolith-theme .btn-danger:hover,
body.monolith-theme .hero-main-btn:hover,
body.monolith-theme .hero-main-btn--secondary:hover {
  background: var(--accent-tint-bg);
  border-color: var(--monolith-cyan-a35);
  box-shadow: 0 0 20px var(--monolith-cyan-a12);
}

body.monolith-theme .btn-secondary.updating {
  background: var(--monolith-cyan);
  border-color: var(--monolith-cyan-a50);
  box-shadow: 0 0 18px var(--monolith-cyan-a45);
  color: #000;
  animation: monolith-pulse 1.5s ease-in-out infinite;
}

@keyframes monolith-pulse {
  0%, 100% {
    box-shadow: 0 0 18px var(--monolith-cyan-a45);
  }
  50% {
    box-shadow: 0 0 28px var(--monolith-cyan-a75);
  }
}

/* Карточки */
body.monolith-theme .stat-tile:hover,
body.monolith-theme .server-card:hover,
body.monolith-theme .news-item:hover,
body.monolith-theme .news-expanded-item:hover,
body.monolith-theme .card:hover,
body.monolith-theme .product-card:hover,
body.monolith-theme .shop-item:hover {
  border-color: var(--monolith-cyan-a28);
}

body.monolith-theme .news-item:hover .news-item-title,
body.monolith-theme .home-news-all:hover,
body.monolith-theme .breadcrumb a:hover {
  color: var(--monolith-cyan);
}

body.monolith-theme .stat-tile__value {
  color: var(--monolith-cyan);
}

/* Серверы */
body.monolith-theme .server-load-ring--online .server-load-ring__progress {
  stroke: var(--monolith-cyan);
}

body.monolith-theme .server-card::before {
  background: var(--gradient-red);
}

body.monolith-theme .server-name::before {
  background: var(--monolith-cyan);
  box-shadow: 0 0 10px var(--monolith-cyan-a35);
}

body.monolith-theme .circle-progress {
  stroke: var(--monolith-cyan);
}

/* Формы и фокус */
body.monolith-theme input:focus,
body.monolith-theme textarea:focus,
body.monolith-theme select:focus,
body.monolith-theme .form-control:focus {
  border-color: var(--monolith-cyan);
  box-shadow: 0 0 0 3px var(--monolith-cyan-a25);
}

/* Ссылки, навигация, активные пункты */
body.monolith-theme .main-nav-links > a:hover,
body.monolith-theme .main-nav-links > a.active,
body.monolith-theme .nav-link:hover,
body.monolith-theme .nav-link.active {
  color: var(--monolith-cyan);
}

body.monolith-theme .main-nav-links > a.active::after,
body.monolith-theme .nav-tabs .nav-link.active {
  background: var(--monolith-cyan);
  border-color: var(--monolith-cyan);
}

/* Магазин / товары */
body.monolith-theme .product-price,
body.monolith-theme .shop-price,
body.monolith-theme .balance-amount,
body.monolith-theme .currency-amount {
  color: var(--monolith-cyan);
}

body.monolith-theme .category-tab.active,
body.monolith-theme .filter-btn.active,
body.monolith-theme .shop-category.is-active {
  background: var(--monolith-cyan-a12);
  border-color: var(--monolith-cyan-a35);
  color: var(--monolith-cyan);
}

/* Пагинация, бейджи */
body.monolith-theme .pagination .page-link.active,
body.monolith-theme .pagination .page-link:hover,
body.monolith-theme .badge-accent {
  background: var(--monolith-cyan);
  border-color: var(--monolith-cyan);
  color: #000;
}

/* Прогресс, загрузка */
body.monolith-theme .progress-bar,
body.monolith-theme .loading-bar {
  background: var(--gradient-red);
}

/* Hero / заголовки со свечением */
body.monolith-theme .hero-title-main,
body.monolith-theme .page-title {
  text-shadow: 0 0 18px var(--monolith-cyan-a35);
}

body.monolith-theme .hero-main-subtitle {
  color: var(--monolith-cyan);
}

/* Иконки валюты и акцентные иконки (вне светлых кнопок) */
body.monolith-theme .currency-icon,
body.monolith-theme [class*="currency"] i {
  color: var(--monolith-cyan);
  filter: drop-shadow(0 0 6px var(--monolith-cyan-a35));
}

/* Кнопки «Купить» в магазине: cyan-фон + чёрный текст — алмаз тоже тёмный */
body.monolith-theme .page-shop .shop-buy-btn .currency-icon,
body.monolith-theme .page-shop .shop-buy-btn-prices .currency-icon,
body.monolith-theme .page-shop .btn.btn-primary.shop-buy-btn .currency-icon {
  color: #0a0a0a !important;
  filter: none;
}

/* Модалка / рулетка: белый текст на cyan-градиенте */
body.monolith-theme .item-modal-action-btn--buy .currency-icon,
body.monolith-theme .item-modal-action-btn--buy .shop-buy-btn-prices .currency-icon,
body.monolith-theme .roulette-modal-spin-btn .currency-icon {
  color: #fff !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

/* Steam-кнопка и соц. элементы */
body.monolith-theme .steam-login-btn:hover,
body.monolith-theme .header-steam-btn:hover {
  border-color: var(--monolith-cyan-a35);
  box-shadow: 0 0 20px var(--monolith-cyan-a12);
}

/* Таблицы / списки */
body.monolith-theme tr:hover td,
body.monolith-theme .list-item:hover {
  background: var(--monolith-cyan-a08);
}

/* Алерты (инфо — cyan, danger остаётся красным) */
body.monolith-theme .alert-info,
body.monolith-theme .notice-info {
  background: var(--monolith-cyan-a10);
  border-color: var(--monolith-cyan-a35);
  color: var(--monolith-cyan);
}

/* Чекбоксы / радио */
body.monolith-theme input[type="checkbox"]:checked,
body.monolith-theme input[type="radio"]:checked {
  accent-color: var(--monolith-cyan);
}

/* Скроллбар (дублируем для надёжности) */
body.monolith-theme ::-webkit-scrollbar-thumb {
  background: var(--monolith-cyan-dark);
}
body.monolith-theme ::-webkit-scrollbar-thumb:hover {
  background: var(--monolith-cyan);
}

/* Магазин */
body.monolith-theme .shop-cat-link:hover,
body.monolith-theme .shop-server-chip:hover {
  border-color: var(--monolith-cyan-a25);
  background: var(--monolith-cyan-a08);
}

body.monolith-theme .page-shop .shop-server-chip.selected {
  border-color: var(--monolith-cyan-a65) !important;
  background: linear-gradient(180deg, var(--monolith-cyan-a12) 0%, rgba(17, 17, 17, 0.95) 100%) !important;
  box-shadow: 0 0 0 1px var(--monolith-cyan-a22), var(--shadow-card-hover);
}

body.monolith-theme .page-shop .shop-item-card:hover {
  border-color: var(--monolith-cyan-a22);
}

body.monolith-theme .shop-cat-pill:hover:not(.active) {
  color: var(--monolith-cyan);
}

body.monolith-theme .card-header h2 i {
  color: var(--monolith-cyan);
  filter: drop-shadow(0 0 6px var(--monolith-cyan-a35));
}

/* Модалки магазина (shop-modals.css подключается после темы) */
body.monolith-theme #modal-item-description::-webkit-scrollbar-thumb:hover {
  background: var(--monolith-cyan-a45);
}

body.monolith-theme .roulette-viewport {
  border-color: var(--monolith-cyan-a45);
}

body.monolith-theme .roulette-modal-card {
  border-color: var(--monolith-cyan-a35);
}

/* Сброс красных hover из style.css (там захардкожен rgba(244,67,54)) */
body.monolith-theme .main-nav-links a,
body.monolith-theme .main-nav-links .nav-dropdown-toggle {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

body.monolith-theme .hero-main-btn:hover,
body.monolith-theme .hero-main-btn--secondary:hover,
body.monolith-theme .btn:hover:not(.btn-danger):not(.login-btn--steam),
body.monolith-theme .btn-secondary:hover,
body.monolith-theme a.btn:hover:not(.btn-danger) {
  background: var(--accent-tint-bg) !important;
  border-color: var(--monolith-cyan-a35) !important;
  box-shadow: 0 0 20px var(--monolith-cyan-a12) !important;
  color: #fff;
}

body.monolith-theme .hero-title-main,
body.monolith-theme .hero-main-subtitle {
  text-shadow: 0 0 40px var(--monolith-cyan-a35);
}

body.monolith-theme .card:hover,
body.monolith-theme .shop-item-card:hover,
body.monolith-theme .server-card:hover {
  border-color: var(--monolith-cyan-a28) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

/* Карта сервера: только названия локаций поверх тайлов xam.nu */
.page-servers .server-interactive-map {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.page-servers .server-interactive-map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: rgba(0, 0, 0, 0.35);
  font-family: Inter, system-ui, sans-serif;
}

.page-servers .server-map-location-label {
  background: transparent !important;
  border: none !important;
}

.page-servers .server-map-location-label span {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #e8f4f8;
  white-space: nowrap;
  pointer-events: none;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.75);
}

.page-servers .server-map-card__fallback {
  margin: 0;
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted, #aaa);
  font-size: 14px;
}

.page-servers .server-map-card__fallback a {
  color: var(--monolith-cyan, #00d4ff);
}

/* ——— Читаемость текста на светлом фоновом изображении ——— */
body.monolith-theme.monolith-has-site-bg {
  --text-muted: #d8e0e8;
  --text-dark: #eef2f6;
  --monolith-photo-text-shadow: 0 1px 3px rgba(0, 0, 0, 0.96), 0 0 18px rgba(0, 0, 0, 0.82);
  --monolith-photo-text-shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.92), 0 0 12px rgba(0, 0, 0, 0.68);
}

body.monolith-theme.monolith-has-site-bg .site-content-wrap {
  background-image: linear-gradient(
    to bottom,
    rgba(6, 8, 10, 0.58) 0%,
    rgba(5, 7, 9, 0.68) 42%,
    rgba(4, 6, 8, 0.84) 100%
  );
}

body.monolith-theme.monolith-has-site-bg .main-content :is(
  .section-title,
  .rules-page-title,
  .shop-page-title,
  .shop-page-sub,
  .section-eyebrow
) {
  text-shadow: var(--monolith-photo-text-shadow);
}

body.monolith-theme.monolith-has-site-bg .main-content :is(
  .shop-empty,
  .rules-empty,
  .home-cards-empty,
  .cart-empty-state,
  .cart-empty-state p
) {
  color: var(--text-muted);
  font-weight: 500;
  text-shadow: var(--monolith-photo-text-shadow-soft);
}

body.monolith-theme.monolith-has-site-bg .main-content .cart-empty-state .fa-shopping-basket {
  color: #eef3f8;
  opacity: 0.92 !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.88));
}

body.monolith-theme.monolith-has-site-bg .main-content .shop-page-sub,
body.monolith-theme.monolith-has-site-bg .main-content .rules-empty,
body.monolith-theme.monolith-has-site-bg .main-content .shop-empty {
  font-size: 15px;
  line-height: 1.55;
}

body.monolith-theme.monolith-has-site-bg .main-content .rules-page-title__icon {
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.85));
}

/* Заголовки страниц без карточек — усиленный контраст */
body.monolith-theme.monolith-has-site-bg .main-content .shop-page-header,
body.monolith-theme.monolith-has-site-bg .main-content .rules-page-head {
  position: relative;
}

body.monolith-theme.monolith-has-site-bg .main-content .shop-page-header::before,
body.monolith-theme.monolith-has-site-bg .main-content .rules-page-head::before {
  content: "";
  position: absolute;
  inset: -12px -20px;
  border-radius: 12px;
  background: radial-gradient(ellipse 80% 120% at 50% 50%, rgba(0, 0, 0, 0.42), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

/* Вторичный текст в контенте (не внутри карточек с фоном) */
body.monolith-theme.monolith-has-site-bg .main-content > .container > p,
body.monolith-theme.monolith-has-site-bg .main-content > .container > .section-head > p {
  color: var(--text-muted);
  text-shadow: var(--monolith-photo-text-shadow-soft);
}

body.monolith-theme.monolith-has-site-bg .main-content :is(
  .rules-item-card,
  .server-card,
  .server-profile-card,
  .shop-item-card,
  .stat-tile,
  .profile-area,
  .cart-table
) :is(h1, h2, h3, p, span, td, th) {
  text-shadow: none;
}
