/* GetMyGames — витрина.
   Токены те же, что в кабинете: посетитель, зарегистрировавшись, попадает
   в знакомую среду. Подача смелее — первый экран тёмный, остальное светлое. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #eceff4;
  --ink: #15181e;
  --ink-2: #434a57;
  --muted: #6f7889;
  --line: #dee2ea;
  --line-strong: #c3cad6;

  --accent: #0d7d8f;
  --accent-ink: #0a6675;
  --accent-soft: #ddf0f4;
  --on-accent: #ffffff;

  /* Первый экран и финальный блок всегда тёмные — это опора композиции,
     поэтому их цвета не переопределяются темой. */
  --night: #0b1116;
  --night-2: #111a21;
  --night-ink: #e9eef2;
  --night-ink-2: #9fb0bb;
  --night-line: #1e2c36;
  --night-accent: #2cc4d6;

  --ui: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(21,24,30,.05), 0 14px 40px rgba(21,24,30,.08);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --surface: #161a21;
    --surface-2: #1d222b;
    --ink: #e9ecf1;
    --ink-2: #b0b8c4;
    --muted: #7e8794;
    --line: #262c36;
    --line-strong: #363e4b;
    --accent: #2cc4d6;
    --accent-ink: #7fe0eb;
    --accent-soft: #0c2b31;
    --on-accent: #05232a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 44px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116;
  --surface: #161a21;
  --surface-2: #1d222b;
  --ink: #e9ecf1;
  --ink-2: #b0b8c4;
  --muted: #7e8794;
  --line: #262c36;
  --line-strong: #363e4b;
  --accent: #2cc4d6;
  --accent-ink: #7fe0eb;
  --accent-soft: #0c2b31;
  --on-accent: #05232a;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 44px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; letter-spacing: -.022em; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(25px, 3.4vw, 36px); line-height: 1.14; }
h3 { font-size: 17px; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.mono { font-family: var(--mono); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.accent { color: var(--night-accent); }

:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font: 600 15px/1.2 var(--ui);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.big { padding: 14px 26px; font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--night);
  border-bottom: 1px solid var(--night-line);
}
.nav-in {
  max-width: 1080px; margin: 0 auto; padding: 0 22px;
  height: 62px; display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--night-ink); }
.brand-mark {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--night-accent);
  color: var(--night);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-mark.small { width: 24px; height: 24px; border-radius: 7px; }
.brand-mark.small svg { width: 17px; height: 17px; }
.brand-name { font-weight: 700; font-size: 16.5px; letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--night-accent); }

.nav-links { display: none; gap: 4px; margin-right: auto; }
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 7px 12px; border-radius: var(--r-sm);
  color: var(--night-ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover { color: var(--night-ink); background: var(--night-2); }

.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-right .ghost {
  display: none; color: var(--night-ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
@media (min-width: 620px) { .nav-right .ghost { display: inline; } }
.nav-right .ghost:hover { color: var(--night-ink); }

.lang { display: inline-flex; border: 1px solid var(--night-line); border-radius: var(--r-sm); overflow: hidden; }
.lang button {
  padding: 6px 9px; border: 0; background: transparent;
  color: var(--night-ink-2); font: 600 11px/1 var(--mono); letter-spacing: .06em; cursor: pointer;
}
.lang button + button { border-left: 1px solid var(--night-line); }
.lang button:hover { color: var(--night-ink); }
.lang button.on { background: var(--night-2); color: var(--night-ink); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(110% 90% at 78% 8%, rgba(44,196,214,.16) 0%, transparent 58%),
    var(--night);
  color: var(--night-ink);
  padding: clamp(56px, 9vw, 104px) 22px clamp(48px, 7vw, 80px);
}
.hero-in {
  max-width: 1080px; margin: 0 auto;
  display: grid; gap: 34px;
  grid-template-columns: 1fr;
  align-items: center;
}
/* На широком экране первый экран держат две колонки: тезис слева,
   изображение тезиса справа. Одноколоночная версия оставляла половину
   экрана пустой. */
@media (min-width: 940px) {
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 54px; }
}
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 48ch; color: var(--night-ink-2); font-size: clamp(16.5px, 2vw, 18.5px); }

.hero-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.hero-form input {
  flex: 1 1 220px; min-width: 0;
  padding: 12px 15px;
  border: 1px solid var(--night-line);
  border-radius: var(--r-sm);
  background: var(--night-2);
  color: var(--night-ink);
  font: 400 15px/1.4 var(--ui);
}
.hero-form input::placeholder { color: #6d8090; }
.hero-form input:focus { border-color: var(--night-accent); outline: none; }
.hero-note { color: #6d8090; font-size: 13.5px; margin-top: -8px; }
.hero-link { color: var(--night-accent); text-decoration: none; font-weight: 500; font-size: 15px; align-self: flex-start; }
.hero-link:hover { text-decoration: underline; }

/* карточка превращения адреса */
.art-card {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
  backdrop-filter: blur(2px);
}
.art-row { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.art-tag {
  font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #6d8090;
}
.art-val {
  font-size: clamp(11.5px, 1.35vw, 13.5px);
  color: var(--night-ink-2);
  overflow-x: auto; white-space: nowrap;
  padding-bottom: 2px;
}
.art-val.out { color: var(--night-accent); }
.art-val .root { color: #6d8090; }

/* Схема доставки: игрок → ваш домен → провайдер. Общая, без подробностей
   о том, как именно строится адрес. */
.flow { display: flex; align-items: center; gap: 10px; }
.flow-node {
  flex: 1; min-width: 0; text-align: center;
  padding: 12px 8px;
  border: 1px solid var(--night-line);
  border-radius: var(--r);
  background: rgba(255,255,255,.03);
}
.flow-node.mid { border-color: var(--night-accent); background: rgba(44,196,214,.10); }
.flow-k { font: 500 11.5px/1.3 var(--ui); color: var(--night-ink-2); }
.flow-node.mid .flow-k { color: var(--night-accent); }
.flow-line { flex: none; width: 34px; height: 2px; background: var(--night-line); position: relative; }
.flow-line .dot {
  position: absolute; top: -3px; left: 0;
  width: 8px; height: 8px; border-radius: 999px; background: var(--night-accent);
}
@media (prefers-reduced-motion: no-preference) {
  .flow-line .dot { animation: travel 2.6s ease-in-out infinite; }
  .flow-line .dot.delay { animation-delay: .5s; }
  @keyframes travel {
    0%, 12%   { left: 0; opacity: 0; }
    25%       { opacity: 1; }
    75%       { left: 26px; opacity: 1; }
    88%, 100% { left: 26px; opacity: 0; }
  }
}
.art-note { margin-top: 16px; color: #6d8090; font-size: 12.5px; text-align: center; }

/* подсветка тега интеграции */
.code pre .c-tag { color: #7fe0eb; }
.code pre .c-at  { color: #cfe3ea; }
.code pre .c-v   { color: #9ad7a0; }

/* ---------- facts ---------- */
.facts { background: var(--night-2); border-top: 1px solid var(--night-line); }
.facts-in {
  max-width: 1080px; margin: 0 auto; padding: 15px 22px;
  display: grid; gap: 8px 26px;
  grid-template-columns: 1fr;
  font: 500 13px/1.4 var(--ui);
  color: var(--night-ink-2);
}
@media (min-width: 700px) { .facts-in { grid-template-columns: repeat(4, 1fr); } }
.facts-in span { position: relative; padding-left: 15px; text-wrap: balance; }
.facts-in span::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--night-accent);
}

/* ---------- bands ---------- */
.band { padding: clamp(56px, 8vw, 92px) 0; }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }

.sec-head { display: flex; flex-direction: column; gap: 11px; max-width: 62ch; margin-bottom: 34px; }
.sec-head.center { margin-inline: auto; text-align: center; align-items: center; }
.sec-head p { color: var(--ink-2); font-size: 16.5px; }

.grid3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid2 { grid-template-columns: repeat(2, 1fr); } }

.pcard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 9px;
}
.band.alt .pcard { background: var(--surface-2); }
.pcard p { color: var(--ink-2); font-size: 15px; }
.pcard.tall { gap: 12px; }
.chips { color: var(--muted); font-size: 12.5px; line-height: 1.8; }

.steps4 { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 860px) { .steps4 { grid-template-columns: repeat(4, 1fr); } }
.steps4 li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--accent); }
.steps4 li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font: 600 12px/1 var(--mono); color: var(--accent); letter-spacing: .08em;
}
.steps4 p { color: var(--ink-2); font-size: 14.5px; }

/* ---------- split blocks ---------- */
.split { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 52px; } }
.split-text { display: flex; flex-direction: column; gap: 12px; }
.split-text p { color: var(--ink-2); }
@media (min-width: 900px) { .split.reverse .split-text { order: 2; } }

.ticks { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- code ---------- */
.code { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.code-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.code-bar .copy {
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 4px 10px; background: var(--surface); color: var(--ink-2);
  font: 500 12px/1.3 var(--ui); cursor: pointer;
}
.code-bar .copy:hover { color: var(--ink); }
.code pre {
  margin: 0; padding: 16px;
  background: var(--night); color: #cfe3ea;
  font: 400 12.5px/1.75 var(--mono);
  overflow-x: auto;
}

/* ---------- dashboard mock ---------- */
.mock { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.mock-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.mock-bar .d { width: 8px; height: 8px; border-radius: 999px; background: #37c46b; }
.mock-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.mock-tiles { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.mt { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px; }
.mt .k { display: block; font: 500 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mt .v { display: block; margin-top: 5px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mock-chart {
  display: flex; align-items: flex-end; gap: 4px; height: 76px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 1px;
}
.mock-chart span { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; opacity: .85; }
.mock-note { margin-top: 10px; color: var(--muted); font-size: 12.5px; }

/* ---------- pricing ---------- */
.tiers { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 780px) { .tiers { grid-template-columns: repeat(4, 1fr); } }
.tier {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.band.alt .tier { background: var(--surface-2); }
/* Выделенный тариф поднимается рамкой и подложкой, а не другим цветом
   текста: акцент в блоке должен оставаться один. */
.tier.feature { border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow); }
.tier-name { font: 600 14px/1 var(--ui); letter-spacing: .01em; }
.tier-price { display: flex; align-items: baseline; gap: 4px; }
.t-amount { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.t-per { color: var(--muted); font-size: 13px; }
.t-custom { font-size: 19px; font-weight: 600; }
.tier-limit { color: var(--ink-2); font-size: 14px; flex: 1; }
.tier .btn { width: 100%; margin-top: 4px; }
.tiers-note { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 15px 34px 15px 0; position: relative;
  font-weight: 600; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); max-width: 68ch; }

/* ---------- final ---------- */
.final {
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(44,196,214,.14) 0%, transparent 60%),
    var(--night);
  color: var(--night-ink);
  padding: clamp(56px, 8vw, 96px) 0;
}
.final h2 { max-width: 20ch; margin-inline: auto; }
.final p { margin: 14px auto 24px; max-width: 52ch; color: var(--night-ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--night-ink-2); border-top: 1px solid var(--night-line); }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 34px 22px 44px; display: flex; flex-direction: column; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 9px; color: var(--night-ink); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { color: var(--night-ink-2); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--night-ink); }
.foot-legal { font-size: 13px; max-width: 76ch; color: #6d8090; }
.foot-fine { font-size: 12.5px; color: #5e7180; }
.foot-fine a { color: #6d8090; }
.foot-fine .sep { margin: 0 6px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-links a, .lang button, .code-bar .copy { transition: background .14s ease, color .14s ease, border-color .14s ease, filter .14s ease; }
}
/* Приманка для ботов: убрана из потока и недоступна с клавиатуры,
   но не display:none — часть ботов такие поля пропускает. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hero-err { color: #ff9a9a; font-size: 13.5px; margin-top: -8px; }
