/* S&RP — Стили в духе s&box (синий + белый) */
:root {
  --sbox-blue: #0078f2;
  --sbox-blue-dark: #005bb5;
  --sbox-blue-light: #4da3ff;
  --white: #ffffff;
  --black: #0a0a0a;
  --gray-100: #f5f5f5;
  --gray-800: #1a1a1a;
  --glass-bg: rgba(0, 0, 0, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Плавный переход между основными страницами */
body.page-transition-enabled {
  transition: opacity 0.22s ease;
}

body.page-transition-enabled.page-transition-leaving {
  opacity: 0;
}

/* ========== HEADER (Glassmorphism) ========== */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  z-index: 1000;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.header__nav-slider {
  position: absolute;
  bottom: -2px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.header__nav-slider.header__nav-slider--visible {
  opacity: 1;
}

@media (min-width: 1024px) {
  .header__nav-slider {
    transition: left 0.22s ease, width 0.22s ease, opacity 0.18s ease;
  }
}

.header__nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.header__nav a:hover {
  opacity: 1;
}

.header__nav a.active {
  opacity: 1;
}

.header__nav a.admin-link {
  color: var(--sbox-blue-light);
  font-size: 14px;
}

.header__nav a {
  transition: opacity 0.2s, transform 0.2s ease-in-out;
  transform-origin: center;
  filter: none;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.header__nav a:hover {
  transform: translateZ(0) scale(1.05);
}

.header__nav a:active,
.header__nav a.is-active {
  transform: translateZ(0) scale(0.95);
}

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

/* Шапка: пользователь Steam (ник + аватар + выход) */
.header-auth {
  display: flex;
  align-items: center;
}

.header-auth__cabinet[hidden] {
  display: none !important;
}

.header-auth__logged[hidden] {
  display: none !important;
}

.header-auth__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.header-auth__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-auth__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .header-auth__name {
    max-width: 200px;
  }
}

.header-auth__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
}

.header-auth__logout {
  padding: 10px 16px;
  font-size: 14px;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--black {
  background: var(--black);
  color: var(--white);
}

.btn--black:hover {
  background: #1a1a1a;
}

.btn--primary {
  background: linear-gradient(135deg, var(--sbox-blue) 0%, var(--sbox-blue-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 120, 242, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 6px 28px rgba(0, 120, 242, 0.5);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--white);
  color: var(--black);
}

.btn--white:hover {
  background: var(--gray-100);
}

/* Иконка загрузки для "Начать игру" */
.btn__icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.hero__bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-slider .hero__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__bg-slider .hero__bg-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero__title {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero__buttons .btn {
  min-width: 200px;
  padding: 16px 28px;
  font-size: 16px;
}

.header__locale-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

/* Баланс (вместо RU/EN при входе через Steam) */
.header-balance {
  display: none;
  align-items: stretch;
  border: 1px solid rgba(32, 96, 240, 0.65);
  border-radius: 9999px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #101020 0%, #000010 100%);
  box-shadow: 0 0 0 1px rgba(32, 96, 240, 0.22);
}

.header-balance.header-balance--visible {
  display: inline-flex;
}

.header-balance__amount {
  display: flex;
  align-items: center;
  padding: 6px 12px 6px 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f0f0f0;
  text-shadow: 0 0 10px rgba(32, 96, 240, 0.28);
}

.header-balance__wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  background: linear-gradient(180deg, #2060f0 0%, #2050c0 100%);
  color: #f0f0f0;
}

.header-balance:hover .header-balance__wallet {
  filter: brightness(1.07);
}

.header-balance__wallet svg {
  flex-shrink: 0;
}

/* ========== UPDATES ========== */
.updates {
  padding: 64px 24px 80px;
  background: linear-gradient(180deg, #0d0d0d 0%, var(--gray-800) 100%);
}

.updates__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 8px;
}

.updates__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.updates__nav {
  display: flex;
  gap: 8px;
}

.updates__arrow {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
}

.updates__arrow:hover {
  background: rgba(255,255,255,0.15);
}

.updates__slider {
  overflow: hidden;
}

.updates__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: none;
}

.updates__track::-webkit-scrollbar {
  display: none;
}

.updates__card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.updates__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.updates__card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.updates__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.updates__card-play {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
}

.updates__card-content {
  padding: 20px;
}

.updates__card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.updates__card-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}

.updates__card-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* ========== START BLOCK (Как начать + соцсети) ========== */
.start-block {
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, #0d0d0d 0%, #141414 50%, #0d0d0d 100%);
  position: relative;
}

.start-block__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.start-block__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.start-block__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
}

.start-block__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.start-block__step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  transition: all 0.2s;
}

.start-block__step:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(0,120,242,0.3);
}

.start-block__step-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,120,242,0.15);
}

.start-block__step-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.start-block__step-content {
  flex: 1;
  min-width: 0;
}

.start-block__step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.start-block__step-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
}

.start-block__step-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  background: var(--sbox-blue);
  color: white !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.start-block__step-btn:hover {
  background: var(--sbox-blue-light);
  transform: translateY(-2px);
}

.start-block__tagline {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.start-block__help,
.start-block__media-partner {
  font-size: 14px;
  color: var(--sbox-blue-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.start-block__help:hover,
.start-block__media-partner:hover {
  color: var(--white);
}

.start-block__socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.start-block__social {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.start-block__social:hover {
  background: rgba(0,120,242,0.15);
  border-color: rgba(0,120,242,0.4);
  transform: translateY(-2px);
}

/* Фиксированная оболочка: иначе inline-SVG в flex-колонке может схлопнуться по высоте (Discord «полоска»). */
.start-block__social-icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.start-block__social-icon-img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.start-block__social-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex-shrink: 0;
  display: block;
  fill: currentColor;
  overflow: visible;
}

.start-block__social-label {
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .start-block__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .start-block__socials {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .start-block__step {
    flex-wrap: wrap;
  }

  .start-block__step-btn {
    width: 100%;
    justify-content: center;
  }

  .start-block__socials {
    grid-template-columns: 1fr;
  }
}

/* ========== MEDIA BLOCK ========== */
.media-block {
  padding: 80px 24px 100px;
  background: linear-gradient(165deg, #0a0a0a 0%, #141414 40%, #0d0d0d 100%);
  position: relative;
  overflow: hidden;
}

.media-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,120,242,0.3), transparent);
  opacity: 0.6;
}

.media-block__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.media-block__slider-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}

.media-block__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.media-block__slide.active {
  opacity: 1;
  position: relative;
  min-height: 420px;
}

.media-block__slide-visual {
  position: absolute;
  inset: 0;
  background-color: #1a1a1a;
  z-index: 0;
}

.media-block__slide-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.media-block__slide-layer.is-front {
  opacity: 1;
  z-index: 1;
}

.media-block__slide-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
}

.media-block__slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 32px;
  z-index: 3;
}

.media-block__slide-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  color: #fff;
}

.media-block__slide-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  max-width: 90%;
}

.media-block__slide-content {
  transition: opacity 0.4s ease;
}

.media-block__slide-content.media-block__fade {
  opacity: 0.12;
}

.media-block__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  z-index: 4;
  transition: all 0.25s;
}

.media-block__arrow:hover {
  background: var(--sbox-blue);
  border-color: var(--sbox-blue-light);
  transform: translateY(-50%) scale(1.05);
}

.media-block__arrow--prev { left: 20px; }
.media-block__arrow--next { right: 20px; }

.media-block__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.media-block__gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.media-block__video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}

.media-block__video:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,120,242,0.3);
}

.media-block__video-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}

.media-block__video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.media-block__video-play {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,120,242,0.9);
  border-radius: 50%;
  font-size: 26px;
  padding-left: 4px;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(0,120,242,0.4);
}

.media-block__video:hover .media-block__video-play {
  transform: scale(1.12);
  background: var(--sbox-blue);
  box-shadow: 0 12px 40px rgba(0,120,242,0.5);
}

.media-block__video-soon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 800;
  opacity: 0.25;
  letter-spacing: 0.2em;
  z-index: 2;
}

.media-block__video-text {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.media-block__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.media-block__thumb {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}

.media-block__thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.media-block__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.media-block__slide-visual--zoomable {
  cursor: zoom-in;
}

.media-block__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(0,120,242,0.15) 0%, rgba(0,120,242,0.08) 100%);
  border: 1px solid rgba(0,120,242,0.35);
  border-radius: 12px;
  color: var(--sbox-blue-light);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s;
  align-self: flex-start;
}

.media-block__more:hover {
  background: rgba(0,120,242,0.25);
  border-color: var(--sbox-blue);
  color: var(--white);
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .media-block__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .media-block__slide.active {
    min-height: 340px;
  }

  .media-block__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .media-block__thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Лайтбокс медиа-блока */
body.media-lightbox-open {
  overflow: hidden;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.media-lightbox.media-lightbox--visible {
  opacity: 1;
  visibility: visible;
}

.media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}

.media-lightbox__shell {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.media-lightbox__frame {
  pointer-events: auto;
  max-width: min(96vw, 1400px);
  max-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-lightbox__img {
  max-width: 100%;
  max-height: min(88vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.65);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
}

.media-lightbox.media-lightbox--visible .media-lightbox__img {
  transform: scale(1);
  opacity: 1;
}

.media-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(20, 20, 24, 0.85);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.media-lightbox__close:hover {
  background: rgba(0, 120, 242, 0.9);
  transform: scale(1.05);
}

.media-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.media-lightbox__nav:hover:not(:disabled) {
  background: rgba(0, 120, 242, 0.85);
  border-color: rgba(0, 120, 242, 0.6);
}

.media-lightbox__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.media-lightbox__nav--prev {
  left: 12px;
}

.media-lightbox__nav--next {
  right: 12px;
}

@media (max-width: 600px) {
  .media-lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .media-lightbox__nav--prev {
    left: 6px;
  }

  .media-lightbox__nav--next {
    right: 6px;
  }

  .media-lightbox__close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}

/* ========== FOOTER ========== */
.footer {
  padding: 48px 24px 40px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer__brand {
  padding-right: 24px;
}

.footer__logo {
  display: block;
}

.footer__logo img {
  height: 36px;
  width: auto;
  opacity: 0.95;
}

.footer__logo:hover img {
  opacity: 1;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--sbox-blue-light);
}

.footer__right {
  text-align: right;
}

.footer__payments {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.footer__status {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__right {
    grid-column: 1 / -1;
    text-align: left;
  }

  .footer__payments {
    justify-content: flex-start;
  }

  .footer__status {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ========== BURGER (mobile) ========== */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px 16px;
  }

  .header__nav {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__divider {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .header__locale-slot {
    margin-left: 8px;
  }
}

@media (max-width: 480px) {
  .header__right .btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .header-auth__name {
    max-width: 100px;
  }

  .header-auth__avatar {
    width: 32px;
    height: 32px;
  }

  .header-auth__logout {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ========== SHOP: полоса выбора сервера ========== */
.shop-servers-bar {
  position: relative;
  z-index: 50;
  padding: 14px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.95) 0%, rgba(8, 8, 10, 0.88) 100%);
}

.shop-servers-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.shop-servers-bar__hint {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-right: 8px;
  width: 100%;
}

@media (min-width: 600px) {
  .shop-servers-bar__hint {
    width: auto;
    margin-right: 4px;
  }
}

.shop-servers-bar__btn {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.shop-servers-bar__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.shop-servers-bar__btn--active {
  background: rgba(0, 120, 242, 0.25);
  border-color: var(--sbox-blue);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 120, 242, 0.35);
}

/* ========== SHOP / ПОПОЛНЕНИЕ БАЛАНСА ========== */
.shop-page {
  min-height: 100vh;
  padding-top: 80px;
}

.shop-page .shop {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

/* Магазин как длинная страница (главная + форма): без принудительного центрирования блока */
.shop-page.shop-page--full {
  padding-top: 0;
}

.shop-page--full .shop {
  min-height: 0;
  display: block;
  align-items: stretch;
}

.shop {
  padding: 80px 24px 100px;
  background: linear-gradient(180deg, var(--gray-800) 0%, #0d0d0d 100%);
}

.shop__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  min-height: 480px;
}

.shop__visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
}

.shop__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.shop__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop__form-wrap {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 40px;
}

.shop__blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 10;
  transition: opacity 0.3s;
}

.shop__blur-overlay--hidden {
  pointer-events: none;
  opacity: 0;
}

.shop__auth-message {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  max-width: 320px;
  line-height: 1.5;
}

.shop__auth-btn {
  padding: 14px 28px;
  font-size: 16px;
}

.shop__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop__form-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.shop__form-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.shop__form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  padding: 6px 12px;
  border-radius: 8px;
}

.shop__form-badge::before {
  content: '🛡';
  font-size: 14px;
}

.shop__field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.shop__field-icon {
  padding: 0 16px;
  font-size: 18px;
  opacity: 0.7;
}

.shop__input {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 15px;
}

.shop__input::placeholder {
  color: rgba(255,255,255,0.4);
}

.shop__input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.shop__input[readonly] {
  cursor: default;
}

.shop__rate {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: -8px 0 0;
}

.shop__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
}

.shop__checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--sbox-blue);
  flex-shrink: 0;
}

.shop__submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  margin-top: 12px;
  transition: all 0.25s;
}

.shop__submit:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.shop__submit--active,
.shop__submit--active:hover {
  background: linear-gradient(135deg, var(--sbox-blue) 0%, var(--sbox-blue-light) 100%);
  border-color: var(--sbox-blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 120, 242, 0.4);
}

.shop__submit:disabled {
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .shop__inner {
    grid-template-columns: 1fr;
  }
  .shop__visual {
    min-height: 280px;
  }
}

/* ========== MODAL (Steam Auth) ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--gray-800);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.modal__content h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.modal__hint {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 24px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal__close:hover {
  color: var(--white);
}

/* Mobile nav open */
.header__nav--open {
  display: flex !important;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 16px;
  border-radius: 12px;
  gap: 12px;
  border: 1px solid var(--glass-border);
}

/* ========== СТРАНИЦА МАГАЗИНА (автономная, не главная) ========== */
.store-page {
  /* Палитра как на логотипе / сцене: синий акцент, тёмный фон, белый текст */
  --store-accent: #3b82f6;
  --store-accent-strong: #2563eb;
  --store-accent-dark: #1d4ed8;
  --store-accent-soft: rgba(59, 130, 246, 0.2);
  --store-accent-glow: rgba(37, 99, 235, 0.45);
  --store-surface: #1a1a1b;
  --store-surface-2: #222226;
  --store-bg-deep: #0f0f10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 120% 80% at 72% -18%, rgba(37, 99, 235, 0.14), transparent 52%),
    linear-gradient(180deg, #0a0a0b 0%, #0f0f10 42%, #0c0c0e 100%);
  color: #ffffff;
}

.store-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1180px;
  z-index: 1000;
  padding: 10px 18px;
  background: rgba(26, 26, 27, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.store-header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.store-header__home {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-right: 4px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  /* Фон как на референсе: глубокий navy */
  background-color: #101c29;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.store-header__home:hover {
  border-color: var(--store-accent-strong);
  background-color: #152a3d;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
}

.store-header__home:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.store-header__home img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.store-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.store-header__brand-name {
  color: var(--white);
}

.store-header__brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--store-accent-strong);
  color: #ffffff;
}

.store-header__nav-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.store-header__nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.store-header__nav-link {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.store-header__nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.store-header__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-width: 140px;
  max-width: 220px;
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.store-header__search-icon {
  opacity: 0.45;
  font-size: 16px;
}

.store-header__search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 14px;
  outline: none;
}

.store-header__search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.store-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-header__icon-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
}

.store-header__icon-link:hover {
  color: var(--store-accent);
  border-color: var(--store-accent-soft);
}

.store-header__cabinet.btn {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.store-header__cabinet.btn:hover {
  border-color: var(--store-accent);
  color: var(--store-accent);
}

.store-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
}

.store-header__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.store-main {
  flex: 1 1 auto;
  padding-top: 88px;
  width: 100%;
}

/* ========== Страница форума (стиль dark RP forum) ========== */
.forum-board-page {
  --forum-bg: #080a10;
  --forum-surface: rgba(15, 18, 28, 0.92);
  --forum-surface-2: rgba(11, 13, 22, 0.95);
  --forum-border: rgba(102, 117, 169, 0.22);
  --forum-border-soft: rgba(255, 255, 255, 0.08);
  --forum-muted: rgba(211, 220, 255, 0.64);
  --forum-heading: #f8faff;
  --forum-accent: #5968ff;
  --forum-accent-soft: rgba(89, 104, 255, 0.18);
}

.forum-board-page {
  background:
    radial-gradient(110% 70% at 12% 48%, rgba(84, 58, 196, 0.21), transparent 58%),
    radial-gradient(65% 50% at 84% 46%, rgba(41, 52, 190, 0.26), transparent 58%),
    linear-gradient(180deg, #07080d 0%, #0b0d14 45%, #0a0c13 100%);
}

.forum-board-page--light {
  --forum-bg: #f2f5fc;
  --forum-surface: rgba(255, 255, 255, 0.9);
  --forum-surface-2: rgba(248, 250, 255, 0.92);
  --forum-border: rgba(38, 54, 126, 0.18);
  --forum-border-soft: rgba(24, 36, 92, 0.1);
  --forum-muted: rgba(20, 29, 61, 0.65);
  --forum-heading: #171f3d;
  --forum-accent: #4154d8;
  --forum-accent-soft: rgba(65, 84, 216, 0.14);
  background:
    radial-gradient(85% 65% at 14% 42%, rgba(139, 159, 255, 0.28), transparent 60%),
    radial-gradient(75% 60% at 86% 56%, rgba(140, 157, 250, 0.2), transparent 58%),
    linear-gradient(180deg, #eef2ff 0%, #e8edf8 100%);
}

.forum-board-page .header {
  background: rgba(16, 18, 28, 0.86);
  border-color: var(--forum-border-soft);
}

.forum-board-page--light .header {
  background: rgba(255, 255, 255, 0.82);
}

.forum-board {
  display: flex;
  width: calc(100% - 28px);
  max-width: 1420px;
  margin: 0 auto 42px;
  min-height: calc(100vh - 180px);
  gap: 12px;
  align-items: stretch;
}

.forum-rail {
  width: 232px;
  flex: 0 0 232px;
  border-radius: 16px;
  border: 1px solid var(--forum-border);
  background: linear-gradient(180deg, rgba(13, 15, 25, 0.98) 0%, rgba(9, 10, 18, 0.96) 100%);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forum-board-page--light .forum-rail {
  background: linear-gradient(180deg, rgba(249, 251, 255, 0.98) 0%, rgba(240, 244, 255, 0.95) 100%);
}

.forum-rail__link,
.forum-rail__link--active {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--forum-muted);
  min-height: 42px;
  transition: all 0.2s;
}

.forum-rail__link--active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--forum-heading);
}

.forum-board-page--light .forum-rail__link--active {
  background: rgba(57, 81, 198, 0.12);
}

.forum-rail__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--forum-heading);
}

.forum-board-page--light .forum-rail__link:hover {
  background: rgba(57, 81, 198, 0.1);
}

.forum-rail__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.forum-rail__label {
  font-size: 15px;
  font-weight: 500;
}

.forum-board__wrap {
  flex: 1;
  min-width: 0;
  border-radius: 16px;
  border: 1px solid var(--forum-border);
  background: linear-gradient(180deg, rgba(8, 10, 18, 0.92) 0%, rgba(10, 12, 21, 0.9) 100%);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forum-board-page--light .forum-board__wrap {
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.95) 0%, rgba(245, 248, 255, 0.93) 100%);
}

.forum-board__topbar,
.forum-board__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--forum-border-soft);
  background: var(--forum-surface-2);
  padding: 10px 12px;
}

.forum-board__topbar {
  justify-content: space-between;
}

.forum-board__page-title {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
  color: var(--forum-heading);
  letter-spacing: -0.02em;
}

.forum-board__top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.forum-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--forum-border-soft);
  background: rgba(255, 255, 255, 0.05);
  color: var(--forum-heading);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.forum-auth-link:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.forum-auth-link--register {
  background: linear-gradient(180deg, #151824 0%, #0f1220 100%);
}

.forum-board-page--light .forum-auth-link {
  border-color: rgba(43, 62, 144, 0.22);
  background: rgba(236, 241, 255, 0.8);
}

.forum-board__icon-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  border: 1px solid var(--forum-border-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--forum-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.forum-board__icon-btn--ghost {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 8px;
  opacity: 0.8;
}

.forum-board__icon-btn:hover {
  color: var(--forum-heading);
  border-color: rgba(255, 255, 255, 0.22);
}

.forum-board__theme-sun {
  display: none;
}

.forum-board-page--light .forum-board__theme-moon {
  display: none;
}

.forum-board-page--light .forum-board__theme-sun {
  display: block;
}

.forum-board__search {
  flex: 1;
  min-width: 120px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--forum-border-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--forum-heading);
  padding: 0 12px;
  font: inherit;
}

.forum-board__search::placeholder {
  color: var(--forum-muted);
}

.forum-board__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 10px;
}

.forum-board__columns--single {
  grid-template-columns: minmax(0, 1fr);
}

.forum-board__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.forum-cat__heading {
  margin: 0 0 10px;
  color: var(--forum-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.forum-cat__card {
  border-radius: 14px;
  border: 1px solid var(--forum-border-soft);
  background: var(--forum-surface);
  overflow: hidden;
}

.forum-cat__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forum-cat__list li + li {
  border-top: 1px solid var(--forum-border-soft);
}

.forum-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.forum-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.forum-board-page--light .forum-row:hover {
  background: rgba(64, 89, 218, 0.05);
}

.forum-row__icon-wrap {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  border: 1px solid rgba(89, 104, 255, 0.35);
  background: rgba(89, 104, 255, 0.14);
  color: #c7d0ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-row__icon-wrap svg {
  width: 18px;
  height: 18px;
}

.forum-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.forum-row__title {
  color: var(--forum-heading);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
}

.forum-row__sub {
  color: var(--forum-muted);
  font-size: 14px;
  line-height: 1.2;
}

.forum-row__right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forum-muted);
  flex-shrink: 0;
}

.forum-row__stat {
  font-size: 16px;
  font-weight: 600;
  min-width: 20px;
}

.forum-row__badge {
  font-size: 16px;
  line-height: 1.2;
}

.forum-row__badge--private {
  color: #b9c4ff;
}

.forum-board__sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forum-widget {
  border-radius: 14px;
  border: 1px solid var(--forum-border-soft);
  background: var(--forum-surface);
  padding: 16px;
}

.forum-widget__title {
  margin: 0 0 10px;
  color: var(--forum-heading);
  font-size: 28px;
  font-weight: 700;
}

.forum-login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.forum-login-form__label {
  color: var(--forum-muted);
  font-size: 14px;
  font-weight: 500;
}

.forum-login-form__input {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--forum-border-soft);
  background: rgba(6, 8, 15, 0.4);
  padding: 0 10px;
  color: var(--forum-heading);
  font: inherit;
}

.forum-board-page--light .forum-login-form__input {
  background: rgba(240, 243, 255, 0.9);
}

.forum-login-form__help {
  color: var(--forum-muted);
  text-decoration: none;
  font-size: 13px;
  margin-top: 2px;
}

.forum-login-form__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forum-muted);
  font-size: 13px;
  user-select: none;
}

.forum-widget__btn {
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  cursor: pointer;
}

.forum-widget__btn--primary {
  color: #0b1020;
  background: #fff;
}

.forum-widget__btn--outline {
  color: #fff;
  background: #06080f;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.forum-board-page--light .forum-widget__btn--outline {
  color: #1d2850;
  background: #fff;
  border-color: rgba(29, 40, 80, 0.24);
}

.forum-widget__muted {
  margin: 10px 0 2px;
  color: var(--forum-muted);
  font-size: 13px;
  text-align: center;
}

.forum-widget__user-name {
  margin: 0 0 10px;
  color: var(--forum-heading);
  font-weight: 600;
}

.forum-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}

.forum-quick__btn {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  color: #0b1020;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 8px;
  line-height: 1.25;
}

.forum-board-page--light .forum-quick__btn {
  border-color: rgba(57, 81, 198, 0.2);
}

@media (max-width: 1280px) {
  .forum-board__page-title {
    font-size: 28px;
  }

  .forum-cat__heading {
    font-size: 28px;
  }

  .forum-row__title {
    font-size: 18px;
  }
}

@media (max-width: 1080px) {
  .forum-board {
    width: calc(100% - 22px);
    flex-direction: column;
  }

  .forum-rail {
    width: 100%;
    flex-basis: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .forum-rail__link,
  .forum-rail__link--active {
    flex: 1 1 48%;
  }

  .forum-board__columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .forum-board__page-title {
    font-size: 22px;
  }

  .forum-board__topbar {
    flex-wrap: wrap;
  }

  .forum-board__toolbar {
    flex-wrap: wrap;
  }

  .forum-board__search {
    order: 2;
    flex-basis: 100%;
  }

  .forum-cat__heading {
    font-size: 22px;
  }

  .forum-row__title {
    font-size: 16px;
  }

  .forum-widget__title {
    font-size: 22px;
  }
}

.store-page .shop-servers-bar {
  max-width: 1180px;
  margin: 21px auto 0;
  width: calc(100% - 32px);
  position: sticky;
  top: 86px;
  z-index: 70;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: rgba(20, 20, 22, 0.94);
}

.store-page .shop-servers-bar__hint {
  color: rgba(255, 255, 255, 0.4);
}

.store-page .shop-servers-bar__btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.store-page .shop-servers-bar__btn--active {
  background: var(--store-accent-soft);
  border-color: var(--store-accent);
  color: var(--white);
  box-shadow: 0 0 24px var(--store-accent-glow);
}

/* Fixed server bar: no motion/animation effects */
.shop-servers-bar,
.shop-servers-bar__btn,
.shop-servers-bar__btn:hover,
.shop-servers-bar__btn--active {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

.store-hero {
  position: relative;
  padding: 48px 24px 56px;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.store-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 85% 30%, var(--store-accent-glow), transparent 55%),
    linear-gradient(105deg, transparent 40%, rgba(37, 99, 235, 0.07) 100%);
  pointer-events: none;
}

.store-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.store-hero__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.store-hero__title-line {
  display: block;
  color: rgba(255, 255, 255, 0.92);
}

.store-hero__title-accent {
  display: block;
  color: #ffffff;
  text-shadow: 0 0 32px rgba(59, 130, 246, 0.55), 0 0 60px var(--store-accent-glow);
}

.store-hero__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 420px;
  margin-bottom: 28px;
}

.store-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--store-accent) 0%, var(--store-accent-dark) 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}

.store-hero__cta:hover {
  filter: brightness(1.06);
  color: #ffffff;
}

.store-hero__visual {
  position: relative;
  min-height: 260px;
}

.store-hero__glow {
  position: absolute;
  inset: 10% 15%;
  background: radial-gradient(circle, var(--store-accent-soft), transparent 70%);
  filter: blur(20px);
}

.store-hero__card {
  position: absolute;
  width: 46%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--store-surface-2), var(--store-bg-deep));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.store-hero__card-media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

.store-hero__card--has-image .store-hero__card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.store-hero__card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--store-accent-strong);
  color: #ffffff;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.store-hero__card--1 {
  top: 8%;
  right: 8%;
  transform: rotate(4deg);
}

.store-hero__card--2 {
  bottom: 6%;
  left: 4%;
  transform: rotate(-6deg);
}

.store-catalog {
  padding: 8px 24px 44px;
  max-width: 1180px;
  margin: 0 auto;
}

.store-catalog__intro,
.store-catalog__offers {
  background: linear-gradient(160deg, #101020 0%, #000010 100%);
  border-radius: 18px;
  border: 1px solid rgba(32, 96, 240, 0.32);
  padding: 24px;
  color: #f0f0f0;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.35);
}

.store-catalog__offers {
  margin-top: 18px;
}

.store-catalog__title {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-weight: 800;
  color: #f0f0f0;
  text-shadow: 0 0 16px rgba(32, 96, 240, 0.28);
}

.store-catalog__feature-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.store-catalog__feature-card {
  min-height: 168px;
  background: linear-gradient(180deg, rgba(16, 32, 64, 0.74) 0%, rgba(0, 0, 16, 0.8) 100%);
  border: 1px solid rgba(32, 96, 240, 0.28);
  border-radius: 12px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.store-catalog__feature-card:hover {
  border-color: rgba(32, 96, 240, 0.62);
  transform: translateY(-2px);
}

/* Форум — те же карточки каталога, что у магазина */
a.store-catalog__feature-card.forum-section-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.forum-catalog__hint {
  margin: 10px 0 0;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(224, 232, 255, 0.72);
}

.forum-links-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .forum-links-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.forum-section-card .store-catalog__feature-title {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  line-height: 1.2;
  hyphens: auto;
}

.forum-section-card__sub {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(200, 210, 255, 0.45);
  text-align: center;
}

.forum-section-card__icon {
  color: #3b82f6;
}

.forum-section-card__icon svg {
  display: block;
}

/* Форум: hero без декоративных карточек справа */
.store-hero--forum-text .store-hero__inner {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.store-hero--forum-text .store-hero__desc {
  max-width: none;
}

.store-catalog__feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f4f9 100%);
  border: 1px solid rgba(32, 96, 240, 0.18);
  color: #d79a1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.store-catalog__feature-title {
  margin: 10px 0 0;
  text-align: center;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f0f0f0;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 14px rgba(32, 96, 240, 0.2);
}

.store-catalog__offers-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.store-catalog__tabs {
  display: inline-flex;
  gap: 8px;
}

.store-catalog__tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(32, 96, 240, 0.28);
  background: rgba(16, 16, 32, 0.9);
  color: #e4ecff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
}

.store-catalog__tab:hover {
  border-color: rgba(32, 96, 240, 0.58);
  color: #f0f0f0;
}

.store-catalog__tab--active {
  background: linear-gradient(135deg, #2060f0 0%, #2050c0 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(32, 96, 240, 0.32);
}

.store-catalog__panel {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.store-product-card {
  min-height: 186px;
  border-radius: 12px;
  border: 1px solid rgba(32, 96, 240, 0.24);
  background:
    linear-gradient(180deg, rgba(16, 32, 64, 0.7) 0%, rgba(0, 0, 16, 0.82) 100%),
    radial-gradient(circle at 18% 92%, rgba(32, 96, 240, 0.18), transparent 56%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.store-product-card:hover {
  border-color: rgba(32, 96, 240, 0.6);
  box-shadow: 0 8px 28px rgba(32, 96, 240, 0.18);
  transform: translateY(-2px);
}

.store-product-card__badge {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.store-product-card__name {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 800;
  color: #f0f0f0;
  text-shadow: 0 0 14px rgba(32, 96, 240, 0.2);
  position: relative;
  z-index: 2;
}

.store-card__bg {
  position: absolute;
  inset: -4px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px) saturate(1.06);
  transform: scale(1.04);
  z-index: 0;
  pointer-events: none;
  transition: filter 0.22s ease, transform 0.22s ease;
}

.store-card--with-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.02) 34%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(180deg, rgba(9, 20, 45, 0.26) 0%, rgba(0, 6, 20, 0.56) 100%);
  z-index: 1;
  pointer-events: none;
}

.store-card--with-image:hover .store-card__bg {
  filter: blur(0) saturate(1.08);
  transform: scale(1.02);
}

.store-card--with-image .store-catalog__feature-title,
.store-card--with-image .store-product-card__name {
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
}

/* Карточка каталога: модалка «покупка» (js/purchase-modal.js), при наличии суммы — кнопка пополнения */
.store-catalog-card--shop-item {
  cursor: pointer;
}

.store-catalog-card--shop-item:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 3px;
}

/* Всплывающее описание карточки (текст из админки), снизу внутри карточки */
.store-card-popover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  max-height: 72%;
  padding: 12px 14px 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(0deg, rgba(4, 8, 22, 0.88) 0%, rgba(10, 18, 40, 0.78) 45%, rgba(12, 20, 44, 0.45) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(32, 96, 240, 0.38);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(102%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.store-card-popover__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
  color: rgba(228, 236, 255, 0.95);
  text-align: center;
  white-space: pre-wrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.store-card--has-desc:hover .store-card-popover,
.store-card--has-desc:focus-within .store-card-popover {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.store-page__topup {
  scroll-margin-top: 100px;
}

.store-page__topup.shop {
  background: linear-gradient(180deg, var(--store-bg-deep) 0%, #141416 100%);
}

.store-page .shop__form-wrap {
  background: rgba(26, 26, 30, 0.9);
  border-color: rgba(59, 130, 246, 0.2);
}

.store-page .shop__form-badge {
  color: #93c5fd;
  background: var(--store-accent-soft);
}

.store-page .shop__submit--active,
.store-page .shop__submit--active:hover {
  background: linear-gradient(135deg, var(--store-accent) 0%, var(--store-accent-dark) 100%);
  border-color: var(--store-accent-strong);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.35);
}

.store-page .shop__checkbox input {
  accent-color: var(--store-accent);
}

.store-page__btn-primary.btn {
  background: linear-gradient(135deg, var(--store-accent) 0%, var(--store-accent-dark) 100%);
  border: none;
  color: #ffffff;
}

/* Широкий баннер внизу страницы магазина */
.store-page-footer-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  border-top: 1px solid rgba(32, 96, 240, 0.12);
  /* Плавное «растворение» верха и низа в фон страницы (.store-page) */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 16%,
    #000 84%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 16%,
    #000 84%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.store-page-footer-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(380px, 42vw);
  object-fit: cover;
  object-position: center 35%;
  filter: blur(2px);
  transform: scale(1.04);
  transform-origin: center center;
}

.store-page-footer-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.28) 42%,
    rgba(0, 0, 0, 0.62) 100%
  );
}

/* Футер страницы магазина — та же сетка, что на главной (данные /api/footer + footer.js) */
.store-page .store-page-footer.footer {
  background: var(--store-bg-deep, #0f0f10);
  border-top: 1px solid rgba(32, 96, 240, 0.18);
}

.store-page .store-page-footer .footer__links a:hover {
  color: var(--store-accent);
}

@media (max-width: 960px) {
  .store-hero {
    padding: 24px 16px 36px;
  }

  .store-hero__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .store-hero__visual {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: stretch;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    order: -1;
  }

  .store-hero__glow {
    display: none;
  }

  .store-hero__card {
    position: relative;
    width: 100%;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none !important;
  }

  .store-catalog__feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-catalog__panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .store-page .shop-servers-bar {
    position: static;
    top: auto;
    z-index: 1;
    background: #12131a;
  }

  .store-hero__title {
    margin-bottom: 14px;
  }

  .store-hero__desc {
    font-size: 15px;
    margin-bottom: 20px;
  }
}

@media (max-width: 520px) {
  .store-page .shop-servers-bar {
    margin-top: 12px;
    margin-bottom: 12px;
    width: calc(100% - 20px);
    background: #12131a;
  }

  .store-hero {
    padding: 10px 10px 28px;
  }

  .store-hero__inner {
    gap: 14px;
  }

  .store-hero__visual {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .store-hero__card {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .store-header__burger {
    display: flex;
  }

  .store-header__nav-wrap {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(16, 16, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .store-header__nav-wrap--open {
    display: flex;
  }

  .store-header__nav-pill {
    flex-direction: column;
  }

  .store-header__search {
    max-width: none;
  }

  .store-header {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: calc(100% - 32px);
    margin: 12px auto 0;
  }

  .store-main {
    padding-top: 0;
  }

  .store-header__burger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .store-header__burger--open span:nth-child(2) {
    opacity: 0;
  }

  .store-header__burger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ——— Модальное окно карточки товара (магазин) ——— */
body.purchase-modal-open {
  overflow: hidden;
}

.purchase-modal {
  --purchase-accent: #2563eb;
  --purchase-line: rgba(59, 130, 246, 0.45);
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: inherit;
}

.purchase-modal.purchase-modal--open {
  display: flex;
}

.purchase-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.78);
  backdrop-filter: blur(8px);
}

.purchase-modal__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #141428 0%, #0a0a12 100%);
  border: 1px solid var(--purchase-line);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.purchase-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.purchase-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.purchase-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px 12px;
  -webkit-overflow-scrolling: touch;
}

.purchase-modal__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 10;
  max-height: 220px;
}

.purchase-modal__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.purchase-modal__noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  background: linear-gradient(145deg, rgba(30, 30, 44, 0.9), rgba(10, 10, 18, 0.95));
}

.purchase-modal__title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #f4f6ff;
}

.purchase-modal__label {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(147, 164, 255, 0.85);
}

.purchase-modal__details {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(228, 236, 255, 0.92);
  white-space: pre-wrap;
  word-break: break-word;
}

.purchase-modal__footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.purchase-modal__cta {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  padding: 12px 18px;
  font-weight: 700;
  border-radius: 12px;
}

.purchase-modal__cta--primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--store-accent, #3b82f6), var(--store-accent-dark, #1d4ed8));
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.35);
}

.purchase-modal__cta--primary:hover {
  filter: brightness(1.06);
  color: #fff;
}

.purchase-modal__cta--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.purchase-modal__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ——— Модальное окно пополнения (поверх всего) ——— */
body.topup-modal-open {
  overflow: hidden;
}

.topup-modal {
  --topup-accent: #2060f0;
  --topup-accent-2: #2060d0;
  --topup-bg: #000010;
  --topup-panel: #101020;
  --topup-line: rgba(32, 96, 240, 0.45);
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: inherit;
}

.topup-modal.topup-modal--open {
  display: flex;
}

.topup-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 16, 16, 0.74);
  backdrop-filter: blur(6px);
}

.topup-modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 880px);
  overflow: auto;
  background: linear-gradient(165deg, #101020 0%, var(--topup-panel) 48%, #000010 100%);
  border: 1px solid var(--topup-line);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(32, 96, 240, 0.22);
  padding: 22px 24px 26px;
}

.topup-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.topup-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.topup-modal__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding-right: 48px;
}

.topup-modal__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f0f0f0;
}

.topup-modal__head-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topup-modal__region {
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.topup-modal__balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(32, 96, 240, 0.2);
  border: 1px solid rgba(32, 96, 240, 0.55);
  font-weight: 700;
  font-size: 0.95rem;
  color: #f0f0f0;
}

.topup-modal__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.topup-modal__tab {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.topup-modal__tab:hover {
  color: #f0f0f0;
  border-color: rgba(32, 96, 240, 0.5);
}

.topup-modal__tab--active {
  background: linear-gradient(135deg, var(--topup-accent), var(--topup-accent-2));
  border-color: transparent;
  color: #f0f0f0;
  box-shadow: 0 6px 24px rgba(32, 96, 240, 0.4);
}

/* Desktop 16:9+ style: active tab underline */
@media (min-width: 1280px) {
  .topup-modal__tabs {
    gap: 16px;
    flex-wrap: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .topup-modal__tab {
    position: relative;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 10px 8px 12px;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.22s ease;
  }

  .topup-modal__tab-label {
    position: relative;
    display: inline-block;
  }

  .topup-modal__tab-label::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--topup-accent);
    transform: scaleX(0.2);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .topup-modal__tab:hover {
    border: none;
    color: #f0f0f0;
  }

  .topup-modal__tab--active {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #f0f0f0;
  }

  .topup-modal__tab--active .topup-modal__tab-label::after {
    transform: scaleX(1);
    opacity: 1;
  }
}

.topup-modal__panels {
  margin-top: 18px;
}

.topup-modal__panel-page {
  display: none;
}

.topup-modal__panel-page--active {
  display: block;
}

.topup-modal__soon {
  margin: 32px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.topup-modal__grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 720px) {
  .topup-modal__grid {
    grid-template-columns: 1fr;
  }
}

.topup-modal__methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.topup-modal__method {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.topup-modal__method:hover {
  border-color: rgba(32, 96, 240, 0.5);
}

.topup-modal__method--active {
  border-color: var(--topup-accent);
  box-shadow: 0 0 0 1px rgba(32, 96, 240, 0.55);
}

.topup-modal__method-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: #2060f0;
  color: #f0f0f0;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.topup-modal__method-name {
  font-weight: 800;
  font-size: 0.95rem;
}

.topup-modal__method-from {
  opacity: 0.55;
  margin-right: 4px;
}

.topup-modal__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topup-modal__selected {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.topup-modal__selected strong {
  color: #fff;
}

.topup-modal__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}

.topup-modal__promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

.topup-modal__promo-icon {
  opacity: 0.4;
  font-weight: 800;
}

.topup-modal__input {
  flex: 1;
  width: 100%;
  padding: 12px 8px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.topup-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.topup-modal__amount-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.topup-modal__amount-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

.topup-modal__amount-field--muted {
  opacity: 0.85;
}

.topup-modal__coin {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.topup-modal__input--num {
  font-variant-numeric: tabular-nums;
}

.topup-modal__swap {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.1rem;
  user-select: none;
}

.topup-modal__bonuses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topup-modal__bonus {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.topup-modal__bonus:hover {
  border-color: rgba(32, 96, 240, 0.55);
}

.topup-modal__bonus--active {
  background: linear-gradient(135deg, var(--topup-accent), var(--topup-accent-2));
  border-color: transparent;
  color: #f0f0f0;
}

.topup-modal__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.topup-modal__quick button {
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

.topup-modal__quick button:hover {
  color: rgba(255, 255, 255, 0.85);
}

.topup-modal__quick--active {
  color: var(--topup-accent) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topup-modal__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.topup-modal__summary strong {
  color: #fff;
}

.topup-modal__summary-bonus {
  margin-left: auto;
}

@media (max-width: 520px) {
  .topup-modal__summary-bonus {
    margin-left: 0;
  }
}

.topup-modal__pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(32, 96, 240, 0.2);
  border: 1px solid rgba(32, 96, 240, 0.55);
  color: #f0f0f0;
  font-weight: 700;
  font-size: 0.85rem;
}

.topup-modal__cta {
  margin-top: 10px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--topup-accent), var(--topup-accent-2));
  color: #f0f0f0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(32, 96, 240, 0.45);
  transition: transform 0.12s, filter 0.12s;
}

.topup-modal__cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.topup-modal__cta:active {
  transform: translateY(0);
}
