:root {
  --bg-deep:     #060e15;
  --bg-panel:    rgba(8, 38, 58, 0.82);
  --bg-card:     rgba(10, 48, 72, 0.55);
  --primary:     #38bdf8;
  --primary-dim: rgba(56, 189, 248, 0.35);
  --orange:      #fb923c;
  --orange-soft: #fed7aa;
  --text:        #f0f9ff;
  --text-muted:  #94b4cc;
  --accent-hot:  #f43f5e;
  --gold:        #fbbf24;
  --radius:      16px;
  --radius-sm:   12px;
  --shadow-glow: 0 0 44px rgba(56, 189, 248, 0.22);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
}

/* =====================================================
   СБРОС И БАЗА
===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  position: relative;
  isolation: isolate;
  background-color: #060e15;
  background-image:
    radial-gradient(1200px 700px at 15% -10%, rgba(14, 116, 144, 0.52), transparent 58%),
    radial-gradient(900px 520px at 98% 4%,   rgba(251, 146, 60, 0.30),  transparent 52%),
    linear-gradient(162deg, rgba(6,14,21,0.92) 0%, rgba(8,28,44,0.86) 42%, rgba(4,10,18,0.95) 100%),
    linear-gradient(90deg,  rgba(6,14,21,0.80) 0%, rgba(6,14,21,0.20) 45%, rgba(6,14,21,0.82) 100%),
    url("/images/vo3.png"),
    url("/images/vo6.png"),
    url("/images/vo9.png"),
    url("/images/vo14.png"),
    url("/images/vo12.png"),
    url("/images/vo26.png");
  background-size:
    cover, cover, cover, cover,
    34% auto, 32% auto, 36% auto, 30% auto, 58% auto, 58% auto;
  background-position:
    center, center, center, center,
    6% 84%, 94% 82%, 0% 16%, 102% 16%, -8% 55%, 108% 40%;
  background-repeat: no-repeat;
  background-attachment: scroll;
  min-height: 100vh;
  line-height: 1.6;
}

@media (max-width: 900px) {
  body {
    background-size:
      cover, cover, cover, cover,
      62% auto, 60% auto, 64% auto, 60% auto, 95% auto, 95% auto;
    background-position:
      center, center, center, center,
      2% 92%, 98% 92%, 0% 24%, 100% 26%, 50% 78%, 50% 18%;
  }
}

/* --- декоративные псевдоэлементы body --- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
}

body::before {
  opacity: 0.16;
  background-image:
    url("/images/vo5.png"),
    url("/images/vo11.png"),
    url("/images/vo20.png");
  background-size:    22% auto, 20% auto, 24% auto;
  background-position: -2% 44%, 102% 58%, 50% 102%;
}

body::after {
  opacity: 0.11;
  background-image:
    url("/images/vo15.png"),
    url("/images/vo30.png"),
    url("/images/vo33.png");
  background-size:    18% auto, 19% auto, 16% auto;
  background-position: -4% 8%, 104% 14%, 50% -6%;
}

@media (max-width: 900px) {
  body::before,
  body::after { opacity: 0.09; }

  body::before {
    background-size:    34% auto, 30% auto, 35% auto;
    background-position: -12% 48%, 110% 62%, 50% 104%;
  }
  body::after {
    background-size:    28% auto, 30% auto, 26% auto;
    background-position: -10% 10%, 108% 14%, 50% -8%;
  }
}

header, main, footer { position: relative; z-index: 1; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =====================================================
   КОНТЕЙНЕР
===================================================== */
.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

/* =====================================================
   ШАПКА (TOPBAR)
===================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg,
    rgba(4, 18, 30, 0.95),
    rgba(6, 14, 21, 0.74));
  border-bottom: 1px solid var(--primary-dim);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: conic-gradient(from 200deg, #0ea5e9, var(--orange), var(--gold), #38bdf8);
  box-shadow: var(--shadow-glow);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.nav {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  align-items: center;
}
.nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav a:hover { color: var(--text); }

/* =====================================================
   КНОПКИ
===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(100deg, #0369a1 0%, #ea580c 48%, #fb923c 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(3, 105, 161, 0.45);
}
.btn-primary:hover {
  box-shadow: 0 10px 36px rgba(251, 146, 60, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--primary-dim);
}

/* =====================================================
   HERO
===================================================== */
.hero {
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(closest-side,
    rgba(56, 189, 248, 0.12), transparent);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -110px;
  top: 24px;
  width: min(36vw, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: url("/images/vo31.png") center / cover no-repeat;
  border: 1px solid rgba(56, 189, 248, 0.20);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.42);
  transform: rotate(-8deg);
  opacity: 0.20;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero::after {
    width: min(52vw, 320px);
    right: -80px;
    top: 36px;
    opacity: 0.16;
  }
}

.hero-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1.22fr;
  align-items: start;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 34ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid var(--primary-dim);
  color: var(--primary);
}

/* =====================================================
   ПРОМО-БЛОК (.promo-cta)
===================================================== */
.promo-cta {
  position: relative;
  padding: 36px 32px 30px;
  min-height: min(420px, 58vh);
  border-radius: 28px;
  background: linear-gradient(155deg,
    rgba(8, 42, 68, 0.96)  0%,
    rgba(4, 14, 24, 0.98)  55%,
    rgba(10, 36, 60, 0.94) 100%);
  border: 2px solid rgba(56, 189, 248, 0.42);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.16),
    0 28px 64px rgba(0, 0, 0, 0.52),
    0 0 72px rgba(3, 105, 161, 0.30);
  overflow: hidden;
}

.promo-cta::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -36px;
  width: min(34%, 210px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: url("/images/vo18.png") center / cover no-repeat;
  border: 1px solid rgba(251, 191, 36, 0.24);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.36);
  transform: rotate(-12deg);
  opacity: 0.32;
  pointer-events: none;
}

@media (max-width: 900px) {
  .promo-cta {
    min-height: 0;
    padding: 30px 24px 26px;
  }
  .promo-cta::after {
    width: 160px;
    right: -34px;
    bottom: -52px;
    opacity: 0.24;
  }
}

.promo-cta__shine {
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(
    from 120deg at 50% 120%,
    transparent,
    rgba(56, 189, 248, 0.12),
    transparent 40%,
    rgba(251, 191, 36, 0.09),
    transparent 70%
  );
  animation: promo-spin 14s linear infinite;
  pointer-events: none;
}

@keyframes promo-spin {
  to { transform: rotate(360deg); }
}

.promo-cta > * { position: relative; z-index: 1; }

.promo-cta__kicker {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.55);
}

.promo-cta__mega {
  position: absolute;
  right: 4px;
  top: 4px;
  margin: 0;
  font-size: clamp(5.25rem, 17vw, 8.5rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  background: linear-gradient(185deg,
    rgba(56, 189, 248, 0.36) 0%,
    rgba(3, 105, 161, 0.10) 45%,
    rgba(251, 191, 36, 0.20) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
  opacity: 0.95;
}

@media (max-width: 520px) {
  .promo-cta__mega {
    font-size: 3.85rem;
    top: 14px;
    right: 2px;
    opacity: 0.40;
  }
}

.promo-cta__title {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

@media (max-width: 520px) {
  .promo-cta__title {
    max-width: 100%;
    padding-right: 4.5rem;
  }
}

.promo-cta__accent {
  background: linear-gradient(90deg, #fde68a, #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.promo-cta__deal {
  margin: 0 0 28px;
  font-size: clamp(1.22rem, 2.85vw, 1.6rem);
  font-weight: 700;
  color: #e0f2fe;
  text-shadow: 0 0 28px rgba(56, 189, 248, 0.32);
}

.promo-cta__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 22px 28px;
  border-radius: 18px;
  font-size: clamp(1.12rem, 2.75vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #0c1a24;
  background: linear-gradient(95deg,
    #fbbf24 0%, #fed7aa 32%, #fb923c 72%, #0ea5e9 100%);
  box-shadow:
    0 10px 36px rgba(251, 191, 36, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.26) inset;
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
  overflow: hidden;
  font-family: var(--font);
}

.promo-cta__btn:hover {
  text-decoration: none;
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.05);
  box-shadow:
    0 14px 44px rgba(14, 165, 233, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.34) inset;
}

.promo-cta__btn:active { transform: translateY(0) scale(0.99); }

.promo-cta__btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 30%, rgba(255, 255, 255, 0.52) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: promo-sweep 3.2s ease-in-out infinite;
}

@keyframes promo-sweep {
  0%        { transform: translateX(-100%); }
  45%, 100% { transform: translateX(100%); }
}

.promo-cta__btn-label,
.promo-cta__btn-arrow { position: relative; z-index: 1; }

.promo-cta__btn-arrow { font-size: 1.55rem; line-height: 1; }

.promo-cta__note {
  margin: 20px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.9;
}

/* =====================================================
   СЕКЦИИ
===================================================== */
.section {
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.13;
  background-repeat: no-repeat;
}

.section > .wrap { position: relative; z-index: 1; }

/* Декоративные фоны секций */
#brand-queries.section::before {
  background-image: url("/images/vo2.png"), url("/images/vo16.png");
  background-size: 16% auto, 14% auto;
  background-position: -3% 18%, 103% 72%;
}

#games.section::before {
  background-image: url("/images/vo7.png"), url("/images/vo24.png");
  background-size: 18% auto, 15% auto;
  background-position: -3% 10%, 102% 76%;
}

#longread.section::before {
  background-image: url("/images/vo8.png"), url("/images/vo21.png");
  background-size: 16% auto, 18% auto;
  background-position: 102% 6%, -4% 88%;
}

#faq.section::before {
  background-image: url("/images/vo17.png"), url("/images/vo29.png");
  background-size: 17% auto, 14% auto;
  background-position: -3% 24%, 102% 86%;
}

@media (max-width: 900px) {
  .section::before { opacity: 0.09; }
}

.section-head { margin-bottom: 22px; }

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

/* =====================================================
   ГРИД ИГРОВЫХ КАРТОЧЕК
===================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.game-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-dim);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.game-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.game-meta { padding: 10px 10px 12px; }

.game-meta strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
}

.game-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.game-card .btn-play {
  position: absolute;
  inset: auto 8px 52px 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.game-card:hover .btn-play {
  opacity: 1;
  transform: translateY(0);
}

.btn-play {
  padding: 8px;
  font-size: 0.8rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid var(--primary);
}

/* =====================================================
   PROSE (лонгрид)
===================================================== */
.prose {
  background: var(--bg-panel);
  border: 1px solid rgba(56, 189, 248, 0.20);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.prose h2,
.prose h3 {
  color: var(--text);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose p {
  margin: 0 0 1em;
  color: #c8e6f5;
  font-size: 1.02rem;
}

.prose ul {
  color: #c8e6f5;
  padding-left: 1.2em;
}

/* =====================================================
   FAQ
===================================================== */
.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font);
}

.faq-q .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.16);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-q .icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a { max-height: 1200px; }

.faq-a-inner {
  padding: 0 18px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-a-inner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.38);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--primary);
}

/* =====================================================
   ФУТЕР
===================================================== */
.footer {
  padding: 36px 0 48px;
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer .age {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(244, 63, 94, 0.14);
  color: #fda4af;
  font-weight: 800;
  margin-bottom: 12px;
}

/* =====================================================
   SKIP-LINK
===================================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--primary);
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 8px; }
