/* ============================================================
   Survival Games Ltd — design system
   Единственный источник визуальных токенов сайта.
   ============================================================ */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg-0: #0a0e13;
  --bg-1: #0f151d;
  --bg-2: #161f2a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --ink: #f4f7fa;
  --ink-2: #bac6d2;
  --ink-3: #8b9aab;

  /* brand */
  --brand: #ff7a1a;
  --brand-2: #ffa04d;
  --brand-ink: #1c0f03;

  /* per-game environment (переопределяются инлайн через style) */
  --g-env-a: #0f151d;
  --g-env-b: #161f2a;
  --g-accent: var(--brand);
  --g-accent-ink: var(--brand-ink);

  /* type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* layout */
  --container: 1180px;
  --container-wide: 1400px;
  --gutter: clamp(18px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 128px);

  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;

  /* elevation */
  --shadow-1: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 18px 60px rgba(0, 0, 0, 0.5);

  /* motion */
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 640ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, picture, video { max-width: 100%; display: block; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: 0.015em;
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(255, 122, 26, 0.35); }

/* доступно скринридеру, не видно глазом */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 860px; }

.page-hero__more { margin-top: 16px; max-width: 720px; color: var(--ink-2); line-height: 1.7; }

/* Полоса-ответ под hero: крупнее обычного текста, но не заголовок —
   её задача быть первым, что реально прочитают. */
.answer-band { border-bottom: 1px solid var(--line); }
.answer-band__text {
  max-width: 900px;
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.55;
  color: var(--ink);
}
.answer-band__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 480px) {
  .answer-band__links .btn { flex: 1 1 100%; justify-content: center; }
}

/* Блок выбора: сценарий → рекомендация → ссылка. Строками, а не карточками:
   его читают сверху вниз, пока не совпадёт с собой. */
.picker { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 2px; }
.picker__row {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.picker__row:first-child { border-top: 1px solid var(--line); }
.picker__want { margin: 0 0 10px; font-size: 19px; line-height: 1.3; text-transform: none; }
.picker__answer { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.picker__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 600;
  font-size: 14.5px;
}
.picker__link svg { width: 17px; height: 17px; }
.picker__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Шаги игрового цикла. Номер вынесен в отдельный слой и приглушён —
   он структурирует список, но не спорит с заголовком шага. */
.steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px 28px;
  background: color-mix(in srgb, var(--g-env-b, var(--bg-1)) 34%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.step__n {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--g-accent, var(--brand));
  margin-bottom: 12px;
}
.step__title { font-size: 18px; line-height: 1.25; margin: 0 0 10px; text-transform: none; }
.step__text { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.62; }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { padding: 22px 20px 24px; }
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.62); }

/* Таблица фактов: две колонки на десктопе, стопка на мобильном.
   dt намеренно узкая — значения выравниваются в одну вертикаль. */
.facts {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
  max-width: 780px;
}
.facts__row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 8px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.facts dd { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.5; }
.facts dd a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.facts dd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--ink-2);
  word-break: break-all;
}
.facts__note {
  margin-top: 14px;
  max-width: 640px;
  color: var(--ink-3, var(--ink-2));
  font-size: 13.5px;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .facts__row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .facts dt { font-size: 12px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g-accent, var(--brand-2));
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  opacity: 0.9;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  text-transform: uppercase;
}

.lede {
  color: var(--ink-2);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(160deg, var(--brand-2), var(--brand));
  color: var(--brand-ink);
  box-shadow: 0 8px 28px rgba(255, 122, 26, 0.32);
}
.btn--primary:hover { color: var(--brand-ink); box-shadow: 0 12px 36px rgba(255, 122, 26, 0.45); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.09); }

.btn--accent {
  background: var(--g-accent);
  color: var(--g-accent-ink);
}
.btn--accent:hover { color: var(--g-accent-ink); filter: brightness(1.08); }

/* ---------- Store buttons ---------- */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 22px 10px 18px;
  min-height: 50px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: rgba(10, 14, 19, 0.72);
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), background var(--t-fast);
}
.store-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(22, 31, 42, 0.9);
  color: var(--ink);
}
.store-btn svg { width: 24px; height: 24px; flex: none; }
.store-btn__name { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; letter-spacing: 0.05em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(10, 14, 19, 0.88);
  border-bottom-color: var(--line);
}
/* backdrop-filter создаёт containing block для fixed-потомков —
   поэтому включаем его только когда мобильное меню закрыто */
.site-header.is-scrolled:not(.is-open) {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.is-open { background: rgba(10, 14, 19, 0.98); }
.site-header__in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex: none;
}
.logo:hover { color: var(--ink); }
.logo__img { height: 30px; width: auto; display: block; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: var(--brand-2); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(10, 14, 19, 0.6);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.site-header.is-open .nav-toggle .icon-menu { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 70px;
    inset-inline: 0;
    bottom: 0;
    z-index: 99;
    background: rgba(10, 14, 19, 0.98);
    padding: 28px var(--gutter);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--t-med) var(--ease), visibility 0s var(--t-med);
    overflow-y: auto;
  }
  .site-header.is-open .site-nav {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--t-med) var(--ease);
  }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; font-size: 22px; padding: 14px 10px; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 980px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero__media, .hero__media img, .hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: -2;
}
@keyframes hero-drift {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
.hero__media img { animation: hero-drift 7s var(--ease) both; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(34% 36% at 3% 97%, rgba(7, 11, 16, 0.99), rgba(7, 11, 16, 0.85) 52%, transparent 80%),
    radial-gradient(52% 56% at 10% 90%, rgba(7, 11, 16, 0.9), transparent 76%),
    linear-gradient(to top, var(--bg-0) 4%, rgba(10, 14, 19, 0.55) 34%, rgba(10, 14, 19, 0.18) 60%, rgba(10, 14, 19, 0.42) 100%),
    linear-gradient(100deg, rgba(7, 11, 16, 0.88) 0%, rgba(7, 11, 16, 0.42) 44%, rgba(7, 11, 16, 0.05) 72%);
}

.hero__in {
  padding-block: 140px clamp(72px, 11vh, 130px);
  max-width: 760px;
}
/* Слоган — визуальный акцент бренда, но не h1: заголовок страницы должен
   называть, что здесь лежит (аудит 29.07). */
.hero__slogan {
  font-size: clamp(46px, 9.5vw, 118px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.hero__slogan .dot { color: var(--brand); }
.hero__title {
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 620px;
  margin-bottom: 16px;
}
.hero__sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero__featuring {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__featuring img { width: 30px; height: 30px; border-radius: 8px; }
.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.hero__rating svg { width: 14px; height: 14px; color: var(--brand-2); flex: none; }
.hero__rating strong { color: var(--ink); font-weight: 600; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  color: var(--ink-3);
  z-index: 1;
}
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.scroll-hint svg { width: 22px; height: 22px; animation: hint-bob 2.2s ease-in-out infinite; }
@media (max-width: 700px) { .scroll-hint { display: none; } }

/* ---------- Environment sections (per-game tint) ---------- */
.env {
  background:
    radial-gradient(1100px 520px at 82% 0%, color-mix(in srgb, var(--g-env-b) 62%, transparent), transparent 68%),
    linear-gradient(180deg, var(--bg-0), var(--g-env-a) 30%, var(--g-env-a) 72%, var(--bg-0));
}
.env--flip {
  background:
    radial-gradient(1100px 520px at 16% 4%, color-mix(in srgb, var(--g-env-b) 62%, transparent), transparent 68%),
    linear-gradient(180deg, var(--bg-0), var(--g-env-a) 30%, var(--g-env-a) 72%, var(--bg-0));
}

/* ---------- Flagship / featured rows ---------- */
.gamerow {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* в flip-ряду медиа уходит в первую колонку — зеркалим и пропорции,
   чтобы панель была одинаковой ширины во всех рядах */
.gamerow--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.gamerow--flip .gamerow__media { order: -1; }

.gamerow__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.game-icon {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line-strong);
}
.gamerow__title { font-size: clamp(30px, 3.6vw, 44px); text-transform: uppercase; margin: 0; }
.genre-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g-accent);
  margin-top: 6px;
}
.gamerow__tagline {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 12px;
}
.gamerow__desc { color: var(--ink-2); max-width: 56ch; }

.pillar-list {
  list-style: none;
  margin: 22px 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 22px;
}
.pillar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 15px;
}
.pillar-list svg { width: 17px; height: 17px; color: var(--g-accent); flex: none; }

.gamerow__media { position: relative; }
.media-frame {
  position: relative;
  aspect-ratio: 4 / 3; /* единый формат панелей во всех рядах */
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2), 0 0 90px -28px color-mix(in srgb, var(--g-accent) 42%, transparent);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med);
}
.media-frame picture, .media-frame img { width: 100%; height: 100%; }
.media-frame img { object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(255, 255, 255, 0.09), transparent 34%);
  pointer-events: none;
}
.gamerow__media:hover .media-frame { transform: translateY(-6px); }

.gamerow__links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
@media (max-width: 900px) {
  .gamerow { grid-template-columns: 1fr; }
  .gamerow--flip .gamerow__media { order: 0; }
  .pillar-list { grid-template-columns: 1fr; }
}

/* ---------- Portfolio grid ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 42px;
}

/* группы каталога (games.html) */
/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  position: relative;
  z-index: 5;
  padding-top: 92px;
  padding-bottom: 14px;
  font-size: 13px;
}
/* на странице игры крошки лежат поверх hero-визуала, а не отодвигают его */
.breadcrumbs--over-hero {
  margin-bottom: -46px;
  text-shadow: 0 1px 10px rgba(4, 8, 12, 0.85);
}
.breadcrumbs--over-hero a, .breadcrumbs--over-hero [aria-current="page"] { color: var(--ink-2); }
.breadcrumbs--over-hero a:hover { color: var(--ink); }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-3);
}
.breadcrumbs li { display: flex; align-items: center; gap: 10px; }
.breadcrumbs li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--ink-2); }
.breadcrumbs [aria-current="page"] { color: var(--ink-2); }
.breadcrumbs + .page-hero { padding-top: 26px; }

/* заголовок секции с кнопкой справа */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 0; }
.section-head__cta { flex: none; }
.section-head__cta svg { width: 15px; height: 15px; }
.section-foot { display: flex; justify-content: center; margin-top: 34px; }
.section-foot svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .section-head__cta { display: none; }  /* внизу секции есть основная кнопка */
}

/* Каталог: фиксированное число колонок, чтобы все карточки были одного размера
   (auto-fit растягивал последнюю строку, когда карточек в ней меньше). */
.games-grid--catalogue {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;   /* ряды одной высоты, а не по самой длинной карточке */
  margin-top: 8px;
}
/* описания разной длины ломали ритм сетки — режем до четырёх строк */
.games-grid--catalogue .game-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1200px) { .games-grid--catalogue { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .games-grid--catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .games-grid--catalogue { grid-template-columns: 1fr; } }

.games-group { margin-top: clamp(40px, 6vw, 64px); }
.games-group:first-child { margin-top: 8px; }
.games-group .games-grid { margin-top: 24px; }
.group-title {
  font-size: clamp(24px, 3.2vw, 34px);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.group-sub { color: var(--ink-3); font-size: 15px; max-width: 640px; margin: 0; }
/* одиночная карточка в группе не растягивается на всю ширину */
.games-grid > .game-card:only-child { max-width: 480px; }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med), box-shadow var(--t-med);
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--g-accent) 55%, var(--line-strong));
  box-shadow: var(--shadow-2), 0 0 70px -30px var(--g-accent);
}
.game-card__cover-link { display: block; }
.game-card__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.game-card__cover > picture img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.game-card:hover .game-card__cover > picture img { transform: scale(1.05); }
.game-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 19, 0.72), transparent 52%);
}
.game-card__icon {
  position: absolute;
  left: 20px;
  top: -29px;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-1);
}
.game-card__body { position: relative; padding: 40px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.game-card__title { font-size: 21px; text-transform: uppercase; margin-bottom: 2px; }
.game-card__title-link { color: inherit; }
.game-card__title-link:hover { color: var(--g-accent); }
.game-card__genre {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g-accent);
  margin-bottom: 10px;
}
.game-card__desc { color: var(--ink-2); font-size: 14.5px; flex: 1; }
.game-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.platforms { display: inline-flex; gap: 8px; color: var(--ink-3); }
.platforms svg { width: 17px; height: 17px; }
.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.card-rating svg { width: 18px; height: 18px; color: var(--brand-2); flex: none; }
.card-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.card-store-link:hover { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,.05); }
.card-store-link svg { width: 18px; height: 18px; }

/* ---------- Studio ---------- */
.studio { text-align: center; }
.studio .lede { margin-inline: auto; max-width: 720px; font-size: clamp(18px, 2.2vw, 24px); color: var(--ink); }
.studio__text {
  margin-inline: auto;
  max-width: 760px;
  color: var(--ink-2);
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  text-align: left;
}
.studio__text p:first-child {
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 1.2em;
}
.studio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 38px auto 0;
}
.stat-tile {
  padding: 20px 16px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.stat-tile__value {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--brand-2);
  line-height: 1.1;
}
.stat-tile__label { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.studio__dirs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.dir-chip {
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Pillars ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 42px;
}
.pillar-tile {
  padding: 26px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.pillar-tile:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pillar-tile svg { width: 30px; height: 30px; color: var(--brand-2); margin-bottom: 14px; }
.pillar-tile h3 { font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.pillar-tile p { color: var(--ink-3); font-size: 13.5px; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(760px 380px at 50% 118%, rgba(255, 122, 26, 0.22), transparent 70%),
    linear-gradient(180deg, var(--bg-0), #12100c 60%, var(--bg-0));
}
.final-cta__title { font-size: clamp(34px, 5.4vw, 64px); text-transform: uppercase; }
.final-cta .store-buttons { justify-content: center; margin-top: 34px; }
.final-cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 56px 0 28px;
  font-size: 14px;
}
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  padding-bottom: 34px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .site-footer__nav { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .site-footer__nav { grid-template-columns: 1fr; } }
.site-footer__nav h2 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.site-footer__nav h2 a { color: inherit; }
.site-footer__nav h2 a:hover { color: var(--ink-2); }
.site-footer__nav ul { display: grid; gap: 8px; }
.site-footer__nav a { font-size: 14px; }

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer address { font-style: normal; color: var(--ink-3); line-height: 1.7; }
.site-footer__mail {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.03em;
}
.site-footer__legal {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  color: var(--ink-3);
  font-size: 13px;
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer__legal .copyright { margin-left: auto; }
@media (max-width: 700px) { .site-footer__legal .copyright { margin-left: 0; } }

/* ---------- Game page ---------- */
.game-hero {
  position: relative;
  min-height: 66vh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.game-hero--env {
  min-height: 0;
  padding-top: 150px;
  background:
    radial-gradient(900px 460px at 78% -10%, color-mix(in srgb, var(--g-env-b) 75%, transparent), transparent 70%),
    linear-gradient(180deg, var(--g-env-a), var(--bg-0));
}
.game-hero__media, .game-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg-0) 2%, rgba(10, 14, 19, 0.6) 30%, rgba(10, 14, 19, 0.24) 58%, rgba(10, 14, 19, 0.5) 100%),
    linear-gradient(95deg, rgba(7, 11, 16, 0.8) 0%, rgba(7, 11, 16, 0.3) 46%, transparent 72%);
}
.game-hero--env::before { display: none; }
.game-hero__in { padding-block: 60px; max-width: 720px; }
.game-hero__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.game-hero__icon { width: 86px; height: 86px; border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); }
/* Полное store-название длиннее прежнего short_title: чуть мельче кегль,
   собственный line-height и отбивка, чтобы вторая строка не наезжала
   на жанровый тег. */
.game-hero__title {
  font-size: clamp(30px, 4.6vw, 54px);
  text-transform: uppercase;
  line-height: 1.04;
  margin: 0 0 10px;
  max-width: 13ch;
}
@media (min-width: 640px) { .game-hero__title { max-width: 18ch; } }
/* На узких экранах иконка рядом с длинным названием оставляла заголовку
   ~180px и рвала его на четыре строки — на мобильном ставим её сверху. */
@media (max-width: 639px) {
  .game-hero__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .game-hero__icon { width: 66px; height: 66px; border-radius: 16px; }
  .game-hero__title { max-width: none; }
}
.game-hero__tagline { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); margin-bottom: 28px; max-width: 52ch; }
.rating-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--ink);
  font-size: 19px;
  font-family: var(--font-display);
  font-weight: 600;
}
.rating-line svg { width: 21px; height: 21px; color: var(--brand-2); }
.rating-line strong { font-size: 21px; font-weight: 700; letter-spacing: 0.02em; }
.rating-line__store {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 2px;
}

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 38px;
}
.feature-tile {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.feature-tile svg { width: 19px; height: 19px; color: var(--g-accent); flex: none; margin-top: 2px; }

/* gallery */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}
.shots--portrait { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots--portrait { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shots, .shots--portrait {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .shots > * { flex: 0 0 78%; scroll-snap-align: start; }
  .shots--portrait > * { flex: 0 0 46%; }
}
.shot {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-1);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med), box-shadow var(--t-med);
}
.shot img { width: 100%; height: auto; transition: transform var(--t-slow) var(--ease); }
.shot:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.shot:hover img { transform: scale(1.04); }

/* world block */
.world-block {
  margin-top: 38px;
  max-width: 760px;
  padding-left: 26px;
  border-left: 3px solid var(--g-accent);
  color: var(--ink-2);
  font-size: clamp(16px, 1.7vw, 18px);
}

/* related */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } }
.related-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast);
}
.related-card:hover { transform: translateY(-3px); border-color: var(--line-strong); color: var(--ink); }
.related-card img { width: 52px; height: 52px; border-radius: 13px; }
.related-card__title { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.related-card__genre { font-size: 12.5px; color: var(--ink-3); }

/* support strip on game pages */
.support-strip {
  margin-top: var(--section-y);
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.support-strip > svg { width: 28px; height: 28px; color: var(--brand-2); flex: none; }
.support-strip p { margin: 0; color: var(--ink-2); }
.support-strip .btn { margin-left: auto; }
@media (max-width: 700px) { .support-strip .btn { margin-left: 0; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 12, 0.93);
  backdrop-filter: blur(10px);
  padding: clamp(16px, 4vw, 48px);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(16, 22, 30, 0.8);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox__btn:hover { background: rgba(34, 45, 58, 0.9); transform: scale(1.05); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.12em;
}
@media (max-width: 700px) {
  .lightbox__prev, .lightbox__next { display: none; } /* свайп */
}

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }

.support-form {
  padding: 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  gap: 18px;
}
.support-form label { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.support-form select, .support-form input, .support-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg-0);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.support-form select:focus-visible, .support-form input:focus-visible, .support-form textarea:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 1px;
}
.support-form .hint { font-size: 12.5px; color: var(--ink-3); margin: -8px 0 0; }

.contact-card {
  padding: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 16px;
}
.contact-card h2 { font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.contact-card p { color: var(--ink-3); font-size: 14px; margin-bottom: 10px; }
.contact-card a.email {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.03em;
}

.faq { margin-top: 26px; display: grid; gap: 10px; }
/* На отдельной секции вопросы крупнее, чем в карточке на /support/. */
.faq--page summary { font-size: 16.5px; padding: 18px 52px 18px 22px; }
.faq--page details > div { padding: 0 22px 20px; font-size: 15.5px; }
.faq details {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq summary {
  padding: 18px 52px 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-fast);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; }
.faq details > div a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cross-promo (шапка legal-страниц) ---------- */
.cross-promo {
  padding: 8px 0 30px;
  border-bottom: 1px solid var(--line);
}
.cross-promo__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.cross-promo__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cross-promo__list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-1);
  color: var(--ink-2);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.3;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), color var(--t-fast);
}
.cross-promo__list a:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  color: var(--ink);
}
.cross-promo__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
}
@media (max-width: 560px) {
  .cross-promo__list { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
  .cross-promo__icon { width: 40px; height: 40px; }
}

/* ---------- Legal ---------- */
.legal-body {
  max-width: 800px;
  margin-inline: auto;
  color: var(--ink-2);
  font-size: 15.5px;
}
.legal-body h1 {
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.legal-body h2 {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0.04em;
  margin: 2em 0 0.7em;
}
.legal-body h3 { color: var(--ink); font-size: 17px; margin: 1.6em 0 0.6em; }
.legal-body a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.legal-body td, .legal-body th { border: 1px solid var(--line-strong); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }

/* ---------- Page hero (простые внутренние страницы) ---------- */
.page-hero {
  padding: 170px 0 56px;
  background:
    radial-gradient(800px 400px at 82% -20%, rgba(255, 122, 26, 0.1), transparent 68%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
.page-hero h1 { font-size: clamp(36px, 5.4vw, 58px); text-transform: uppercase; margin-bottom: 10px; }
.page-hero .lede { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
html.no-io .reveal, html.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

/* ---------- Prose (About, Press) ---------- */
.prose {
  max-width: 760px;
  color: var(--ink-2);
  font-size: clamp(15.5px, 1.6vw, 17px);
}
.prose h2 {
  color: var(--ink);
  font-size: clamp(21px, 2.4vw, 27px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 1.9em 0 0.6em;
}
.prose p { margin-bottom: 1.1em; }
.prose ul { padding-left: 20px; margin-bottom: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code {
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
}

/* ---------- Comparison table (hubs, press) ---------- */
.table-scroll {
  overflow-x: auto;
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-1);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 640px;
}
.compare th, .compare td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-2);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}
.compare thead th a { color: inherit; }
.compare thead th a:hover { color: var(--brand); }
.compare tbody th {
  font-weight: 600;
  color: var(--ink-3);
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare td { color: var(--ink-2); }
.compare tbody tr:hover td,
.compare tbody tr:hover th { background: rgba(255, 255, 255, 0.02); }

/* заголовок-ссылка без подчёркивания (секции хабов) */
.plain-link { color: inherit; }
.plain-link:hover { color: var(--g-accent, var(--brand)); }

/* ============================================================
   Мобильная адаптация P0 (по аудиту 29.07.2026)
   Высота hero больше не привязана к viewport: при 94vh/66vh
   на телефоне снизу оставалась пустая полоса до 200 px.
   ============================================================ */
@media (max-width: 767px) {
  .hero,
  .game-hero {
    min-height: auto;          /* высота = содержимое, без хвоста */
    align-items: stretch;
  }
  .hero__in { padding-block: 112px 56px; }
  .game-hero__in { padding-block: 92px 44px; }

  /* фокус кадра на телефоне: держим героя сюжета в видимой части */
  .hero__media img,
  .hero__media video { object-position: 68% center; }
  .game-hero__media img { object-position: 60% center; }

  /* градиент не должен превращать низ экрана в пустой блок */
  .hero::before {
    background:
      linear-gradient(to top, var(--bg-0) 2%, rgba(10, 14, 19, 0.62) 42%,
                      rgba(10, 14, 19, 0.34) 72%, rgba(10, 14, 19, 0.5) 100%);
  }

  .hero__actions { gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .scroll-hint { display: none; }
}

/* до 359 px кнопки всегда в столбик — иначе не остаётся полей */
@media (max-width: 359px) {
  .hero__actions, .store-buttons { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
}

/* ---------- Таблица сравнения на телефоне → карточки ---------- */
/* Горизонтальный скролл на 818 px при экране 390 px прятал половину
   данных. Строка таблицы = игра, поэтому она разворачивается в карточку
   без потери смысла (аудит 29.07.2026, P0). */
@media (max-width: 767px) {
  .table-scroll {
    overflow-x: visible;
    border: 0;
    background: none;
    margin-top: 22px;
  }
  .compare--games { min-width: 0; display: block; }
  .compare--games thead { display: none; }
  .compare--games tbody,
  .compare--games tr,
  .compare--games th,
  .compare--games td { display: block; }

  .compare--games tr {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 6px 16px 12px;
    margin-bottom: 12px;
  }
  .compare--games tbody th[scope="row"] {
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 10px 0 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
  }
  .compare--games tbody th[scope="row"] a { color: var(--brand-2); }
  .compare--games td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 0;
    font-size: 14.5px;
  }
  .compare--games td::before {
    content: attr(data-label);
    flex: none;
    color: var(--ink-3);
    font-size: 12.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-top: 2px;
  }
  .compare--games tbody tr:hover td { background: none; }
}

/* ---------- Карусель скриншотов: подсказка и края ---------- */
@media (max-width: 620px) {
  .shots-wrap { position: relative; }
  /* мягкий край справа — видно, что лента продолжается */
  .shots-wrap::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 10px;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(to left, var(--bg-0), transparent);
  }
  .shots-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    color: var(--ink-3);
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
  .shots-hint svg { width: 15px; height: 15px; }
  /* следующий кадр подглядывает — сигнал, что можно листать */
  .shots > * { flex: 0 0 82%; }
}
@media (min-width: 621px) {
  .shots-hint { display: none; }
}
