/* ==========================================================================
   007bsb — Stylesheet (simple, solid colours, no disappearing-text bug)
   Тема: midnight navy + gunmetal + crimson + platinum
   ВАЖНО: нигде нет background-clip:text / -webkit-text-fill-color:transparent —
   именно они делали текст невидимым до зума. Везде сплошной цвет.
   ========================================================================== */

:root {
  --bg:          #060a14;
  --bg-2:        #0b1424;
  --card:        #0f1c32;
  --card-2:      #0a1426;
  --crimson:     #e63946;
  --crimson-d:   #b81e2b;
  --platinum:    #f4f6f8;
  --silver:      #aab3bd;
  --text:        #e9edf1;
  --text-soft:   #b6bfc9;
  --text-muted:  #7e8a97;
  --border:      rgba(255, 255, 255, 0.09);

  --f-display: 'Orbitron', 'Arial Black', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur:  240ms;

  --header-h: 72px;
  --sticky-h: 70px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: hidden; max-width: 100%; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 15% 0%, rgba(10, 20, 38, 0.6), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(230, 57, 70, 0.10), transparent 60%),
    linear-gradient(180deg, #04070e 0%, #0b1424 100%);
  background-attachment: scroll; /* не fixed — это и вызывало баги перерисовки */
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--sticky-h);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.2; }
::selection { background: var(--crimson); color: #fff; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--platinum);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
/* акцент — просто сплошной красный, всегда видно */
.accent { color: var(--crimson); }

.section-lead {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 620px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn--lg { font-size: 15px; padding: 14px 30px; }
.btn--sm { font-size: 12px; padding: 8px 16px; gap: 6px; }

.btn--primary {
  background: var(--crimson);
  color: #fff;
}
.btn--primary:hover { background: var(--crimson-d); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--silver); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 42px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: flex-end;
}
.nav__list { display: flex; gap: 2px; }
.nav__link {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-soft);
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--platinum); background: rgba(255, 255, 255, 0.06); }

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

.nav__toggle, .nav__close { display: none; color: var(--platinum); padding: 8px; border-radius: var(--radius-sm); }
.nav__toggle:hover { background: rgba(255, 255, 255, 0.08); }
.nav__close { position: absolute; top: 16px; right: 16px; }

.nav__backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 98;
}
.nav__backdrop.is-open { display: block; }
body.nav-open { overflow: hidden; }

/* ---------- Hero (без огромного H1, без 100vh) ---------- */
.hero {
  padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 22px;
}
/* H1 — маленький и сплошным цветом, видно всегда */
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--platinum);
  margin-bottom: 18px;
}
.hero__desc {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--text-soft);
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero__stats {
  display: flex;
  gap: clamp(24px, 6vw, 64px);
  justify-content: center;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 800;
  color: var(--platinum);
  line-height: 1;
}
.stat__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Brand / About ---------- */
.brand-section { padding: clamp(56px, 8vw, 96px) 0; }
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.brand-media img {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}
.brand-text p { color: var(--text-soft); font-size: 16px; margin-bottom: 16px; }

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.features li:hover { border-color: rgba(230, 57, 70, 0.45); background: rgba(255, 255, 255, 0.06); }

/* ---------- Games / Slider ---------- */
.games { padding: clamp(56px, 8vw, 96px) 0; }
.slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.slider__viewport { overflow: hidden; min-width: 0; }
.slider__track {
  display: flex;
  gap: 16px;
  transition: transform 450ms var(--ease);
  padding: 6px 2px;
}
.slider__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--platinum);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.slider__btn:hover { background: rgba(230, 57, 70, 0.18); border-color: var(--crimson); }
.slider__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.slider__btn--prev img { transform: rotate(180deg); }

.game-card {
  flex: 0 0 calc((100% - 64px) / 5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.game-card:hover { transform: translateY(-6px); border-color: rgba(230, 57, 70, 0.4); }
.game-card__image { aspect-ratio: 1 / 1; overflow: hidden; }
.game-card__image img { width: 100%; height: 100%; object-fit: cover; }
.game-card__meta { padding: 12px 14px 14px; }
.game-card__title { font-family: var(--f-body); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.game-card__tag { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--crimson); }

.games__footer { text-align: center; margin-top: 36px; }

/* ---------- Banner ---------- */
.banner-section { padding: clamp(44px, 6vw, 80px) 0; }
.promo-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease);
}
.promo-banner:hover { transform: translateY(-3px); }
.promo-banner__img { width: 100%; display: block; }

/* ---------- SEO text ---------- */
.seo-section {
  padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border);
}
.seo-section .container { color: var(--text-soft); font-size: 15px; line-height: 1.75; max-width: 920px; }
.seo-section h1, .seo-section h2, .seo-section h3, .seo-section h4 { color: var(--platinum); margin: 26px 0 14px; }
.seo-section h2 { font-size: 26px; }
.seo-section h3 { font-size: 21px; }
.seo-section h4 { font-size: 17px; }
.seo-section p { margin-bottom: 13px; }
.seo-section a { color: var(--crimson); border-bottom: 1px solid rgba(230, 57, 70, 0.35); }
.seo-section a:hover { color: var(--platinum); border-color: var(--platinum); }
.seo-section ul, .seo-section ol { margin: 12px 0 12px 22px; }
.seo-section ul li { list-style: disc; margin-bottom: 6px; }
.seo-section ol li { list-style: decimal; margin-bottom: 6px; }
.seo-section table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.seo-section th, .seo-section td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.seo-section th, .seo-section tr:first-child td { background: rgba(255, 255, 255, 0.04); color: var(--platinum); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: #04070e;
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-logo { height: 42px; margin-bottom: 14px; }
.footer-about { color: var(--text-soft); font-size: 14px; line-height: 1.7; max-width: 340px; margin-bottom: 18px; }
.footer-title { font-family: var(--f-body); font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--platinum); margin-bottom: 16px; }
.footer-list li { margin-bottom: 9px; }
.footer-list a { color: var(--text-soft); font-size: 14px; }
.footer-list a:hover { color: var(--crimson); }

.socials { display: flex; gap: 10px; }
.social {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social:hover { background: var(--crimson); transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Sticky bottom promo ---------- */
.sticky-promo {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(6, 10, 20, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(230, 57, 70, 0.5);
  transform: translateY(0);
  transition: transform 300ms var(--ease);
}
.sticky-promo.is-hidden { transform: translateY(110%); }
.sticky-promo__inner {
  height: var(--sticky-h);
  display: flex;
  align-items: center;
  gap: 14px;
}
.sticky-promo__brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.sticky-promo__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--crimson);
  display: flex; align-items: center; justify-content: center;
}
.sticky-promo__text { display: flex; flex-direction: column; min-width: 0; }
.sticky-promo__name { font-family: var(--f-display); font-size: 15px; font-weight: 800; color: var(--platinum); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; }
.sticky-promo__offer { font-size: 12.5px; font-weight: 600; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-promo__cta { flex-shrink: 0; }
.sticky-promo__close {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-soft);
  transition: background var(--dur) var(--ease);
}
.sticky-promo__close:hover { background: rgba(255, 255, 255, 0.08); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .brand-media img { max-width: 360px; }
  .features { max-width: 480px; margin-inline: auto; }
  .game-card { flex-basis: calc((100% - 32px) / 3); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 30px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* мобильное меню-шторка */
  .nav__toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 320px);
    background: #0b1424;
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 72px 20px 24px;
    transform: translateX(100%);
    transition: transform 300ms var(--ease);
    z-index: 99;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__close { display: inline-flex; }
  .nav__list { flex-direction: column; gap: 2px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
  .nav__link { display: block; padding: 13px 14px; font-size: 15px; border-radius: var(--radius); }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .nav__actions .btn { width: 100%; }

  .hero__actions { flex-direction: column; align-items: stretch; max-width: 300px; margin-inline: auto; margin-bottom: 40px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 28px; }

  .features { grid-template-columns: 1fr; max-width: 380px; }

  .game-card { flex-basis: calc((100% - 16px) / 2); }
  .slider { gap: 8px; }
  .slider__btn { width: 42px; height: 42px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-col:first-child { grid-column: 1 / -1; text-align: center; }
  .footer-col:first-child .footer-about { margin-inline: auto; }
  .socials { justify-content: center; }
  .footer-bottom__inner { justify-content: center; text-align: center; }

  .sticky-promo__inner { gap: 10px; }
  .sticky-promo__icon { width: 38px; height: 38px; }
}

@media (max-width: 520px) {
  .hero__stats { gap: 20px; }
  .stat__num { font-size: 24px; }
  .game-card { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col:first-child { grid-column: auto; }
  .sticky-promo__offer { display: none; }
}

/* ---------- Touch ---------- */
@media (hover: none) {
  .game-card:hover { transform: none; }
}
