/* Лендинг Dasta — один шаблон для всех игр.
   Стиль семейства dastacreative.uz (тёмная тема, бенто-карточки, градиентные акценты),
   структура страницы игры — Supercell, ряд карточек — King, лента игр — Playrix.
   Цвет игры (--accent) приходит из админки. Тема: data-theme="dark" | "light" на <html>. */

:root {
  --blue: #2C5CFF;
  --violet: #7C5CFF;
  --cyan: #00B8D9;
  --navy: #091075;
  --accent: #F59E0B;
  --grad: linear-gradient(92deg, var(--blue), var(--violet) 50%, var(--cyan));
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar: 1200px;
  --gutter: max(16px, (100vw - var(--bar)) / 2);
  --header-h: 64px;
  --r: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* Тёмная тема — по умолчанию */
:root, [data-theme="dark"] {
  --bg: #0D1223;
  --surface: #141A30;
  --surface-2: #1B2240;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, .62);
  --glass: rgba(20, 26, 48, .72);
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
  --grid-line: rgba(255, 255, 255, .045);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF0F8;
  --border: rgba(13, 18, 35, .08);
  --border-strong: rgba(13, 18, 35, .16);
  --text: #0D1223;
  --muted: #5A6080;
  --glass: rgba(255, 255, 255, .78);
  --shadow: 0 24px 60px rgba(13, 18, 35, .12);
  --grid-line: rgba(13, 18, 35, .05);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--bar), 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 24px; height: 24px; flex: none; }
.ic--sm { width: 18px; height: 18px; }
.ic--xs { width: 14px; height: 14px; }

/* ---------- Типографика ---------- */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display { margin: 0; font-size: clamp(40px, 5.2vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; }
.h2 { margin: 0; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 36px; }
.section-sub { margin: 12px 0 0; max-width: 520px; color: var(--muted); }
.lead { color: var(--muted); margin: 18px 0 28px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); }
[data-theme="dark"] .eyebrow { color: #7D9BFF; }

/* ---------- Карточка-плитка (основа бенто) ---------- */
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.tile--grid {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(80% 90% at 20% 0%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 60%),
    var(--surface);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 12px;
  background: var(--blue); color: #fff;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 24px -10px rgba(44, 92, 255, .7);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(44, 92, 255, .8); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn--ghost:hover { box-shadow: none; border-color: var(--border-strong); }
.btn--white { background: #fff; color: #0D1223; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }

.chip-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 12px;
  border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 700;
  transition: border-color .2s;
}
.chip-btn:hover { border-color: var(--border-strong); }
.chip-btn .ic { color: var(--blue); }
.chip-btn--icon { width: 40px; padding: 0; justify-content: center; }
.chip-btn--icon .ic { color: var(--text); }
[data-theme="dark"] .theme-ic--moon, [data-theme="light"] .theme-ic--sun { display: none; }

.round-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); color: #0D1223;
  transition: transform .3s var(--ease), background .2s;
}

.soon { display: inline-block; padding: 12px 22px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; }
.soon-pill { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--blue) 18%, transparent); color: #7D9BFF; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
[data-theme="light"] .soon-pill { color: var(--blue); }

/* Бейджи магазинов — в официальном виде App Store / Google Play */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  height: 58px; padding: 0 20px 0 14px;
  border-radius: 11px;
  background: #000; color: #fff;
  border: 1.5px solid #A6A6A6;
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .3); }
.badge__ic { width: 30px; height: 30px; flex: none; }
.badge--apple .badge__ic { width: 34px; height: 34px; margin-top: -3px; }
.badge__ic--android { color: #3DDC84; }
.badge span { display: flex; flex-direction: column; line-height: 1; }
.badge small { font-size: 12px; font-weight: 500; letter-spacing: .01em; }
.badge b { margin-top: 1px; font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.badge--play { padding-left: 13px; }
.badge--play small { font-size: 11px; letter-spacing: .04em; }
.badge--play b { font-family: "Product Sans", "Google Sans", Roboto, -apple-system, Arial, sans-serif; letter-spacing: -.01em; }
.stores--small { gap: 8px; }
.stores--small .badge { height: 44px; padding: 0 12px 0 10px; border-radius: 9px; }
.stores--small .badge__ic { width: 22px; height: 22px; }
.stores--small .badge--apple .badge__ic { width: 25px; height: 25px; }
.stores--small .badge small { font-size: 9px; }
.stores--small .badge b { font-size: 18px; }

/* ---------- Шапка ---------- */
.header { position: fixed; inset: 12px 0 auto; z-index: 60; pointer-events: none; }
.header__bar {
  pointer-events: auto;
  width: min(var(--bar), 100% - 24px);
  height: var(--header-h);
  margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 0 10px 0 18px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.header__logo img { height: 36px; width: auto; }
.header__nav { flex: 1; display: flex; justify-content: center; }
.menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.menu__item { position: relative; }
.menu__item > a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.menu__item > a:hover { color: var(--text); background: var(--surface-2); }
.menu__sub {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 320px; padding: 8px;
  translate: -50% 0;
  border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.menu__sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.menu__item--drop:hover .menu__sub, .menu__item--drop:focus-within .menu__sub { opacity: 1; visibility: visible; transform: none; }
.menu__game { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; transition: background .2s; }
.menu__game:hover, .menu__game.is-current { background: var(--surface-2); }
.menu__game img, .menu__dot { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.menu__game span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.menu__game b { font-size: 15px; }
.menu__game small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header__right { display: flex; align-items: center; gap: 8px; }
.lang-drop { position: relative; }
.lang-drop__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px; padding: 6px;
  border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.lang-drop.is-open .lang-drop__menu { opacity: 1; visibility: visible; transform: none; }
.lang-drop__menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.lang-drop__menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-drop__menu a.is-active { color: var(--text); background: var(--surface-2); }
.header__burger { display: none; width: 40px; height: 40px; position: relative; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.header__burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.header__burger span:nth-child(1) { top: 13px; }
.header__burger span:nth-child(2) { top: 19px; }
.header__burger span:nth-child(3) { top: 25px; }
.is-menu-open .header__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-menu-open .header__burger span:nth-child(2) { opacity: 0; }
.is-menu-open .header__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню */
.mmenu {
  position: fixed; inset: 0; z-index: 55;
  overflow-y: auto;
  padding: calc(var(--header-h) + 36px) 20px 40px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 14px;
}
.mmenu[hidden] { display: none; }
.mmenu__label { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.mmenu__games { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mmenu__games a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; }
.mmenu__games a span { flex: 1; }
.mmenu__games img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.mmenu__link { padding: 14px 10px; font-size: 20px; font-weight: 800; }
.mmenu__langs { display: flex; gap: 6px; flex-wrap: wrap; }
.mmenu__langs a { padding: 9px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 700; color: var(--muted); }
.mmenu__langs a.is-active { background: var(--blue); color: #fff; }

/* ---------- Главная: первый экран-витрина ---------- */
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17px; border-radius: 14px; }
.home-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 64px) 0 40px; }
/* Переливающийся фон: три размытых пятна медленно плывут */
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: aurora 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -6%; top: 0; background: var(--blue); }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: 4%; top: 6%; background: var(--violet); animation-delay: -6s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 38%; top: 34%; background: var(--accent); opacity: .3; animation-delay: -12s; }
/* Светлая тема: пастельные пятна, иначе синий с белым даёт грязно-серый */
[data-theme="light"] .aurora span { opacity: .55; filter: blur(110px); }
[data-theme="light"] .aurora span:nth-child(1) { background: #A9BEFF; }
[data-theme="light"] .aurora span:nth-child(2) { background: #D5C8FF; }
[data-theme="light"] .aurora span:nth-child(3) { background: #FFD89C; opacity: .5; }
@keyframes aurora { 50% { transform: translate(6%, 8%) scale(1.12); } 100% { transform: translate(-6%, -4%) scale(.95); } }
.home-hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.home-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.home-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.home-hero .display { font-size: clamp(44px, 5.6vw, 84px); }
.home-hero__sub { margin: 0; max-width: 520px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.home-hero__actions .trailer-btn { margin: 0; }
.home-hero .stores--small, .home-hero .stores { gap: 10px; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border-strong);
  font-size: 14px; font-weight: 700;
  backdrop-filter: blur(10px);
}
.badge-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.stack { display: flex; align-items: center; gap: 12px; }
.stack__icons { display: flex; }
.stack__icons > * { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--surface-2); }
.stack__icons > :first-child { margin-left: 0; }
.stack__note { max-width: 240px; font-size: 13px; line-height: 1.4; color: var(--muted); }


.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin-top: 56px; border-radius: 20px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(14px); }
.stats__item { display: flex; flex-direction: column; gap: 2px; padding: 22px 26px; }
.stats__item + .stats__item { border-left: 1px solid var(--border); }
.stats__item b { font-size: clamp(30px, 3vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.stats__item b em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats__item span { font-size: 14px; color: var(--muted); }

/* ---------- Витрина игры (Supercell) ---------- */
.spotlight { padding: 90px 0 20px; }
.spotlight__card { position: relative; height: clamp(460px, 44vw, 600px); border-radius: 28px; overflow: hidden; isolation: isolate; background: #050944; }
.stories-bar { position: absolute; z-index: 5; top: 18px; left: 22px; right: 22px; display: flex; gap: 6px; }
.stories-bar:has(span:only-child) { display: none; }
.stories-bar span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.stories-bar i { display: block; height: 100%; width: 0; background: #fff; }
.stories-bar span.is-done i { width: 100%; }
.stories-bar span.is-active i { animation: story var(--story, 5s) linear forwards; }
@keyframes story { to { width: 100%; } }
.story { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.story.is-active { opacity: 1; visibility: visible; }
.story__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; transform: scale(1.08); transition: transform 7s linear; }
.story.is-active .story__art { transform: scale(1); }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 8, 30, .92) 0%, rgba(5, 8, 30, .7) 34%, rgba(5, 8, 30, 0) 68%), linear-gradient(0deg, rgba(5, 8, 30, .6), transparent 40%); }
.spotlight__content { position: absolute; z-index: 2; left: clamp(24px, 4vw, 56px); top: 50%; translate: 0 -50%; max-width: 480px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.spotlight__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.spotlight__logo { width: clamp(200px, 22vw, 300px); height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .4)); }
.spotlight__name { margin: 0; font-size: clamp(38px, 4vw, 56px); font-weight: 800; letter-spacing: -.03em; }
.spotlight__tagline { margin: 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -.01em; }
.spotlight__tagline .grad { background: linear-gradient(92deg, #FFD27A, var(--accent)); -webkit-background-clip: text; background-clip: text; }
.spotlight__desc { margin: 0; color: rgba(255, 255, 255, .8); font-size: 16px; }
.spotlight__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }

/* ---------- Бегущая строка ---------- */
.marquee { margin: 30px 0 0; padding: 26px 0; overflow: hidden; border-block: 1px solid var(--border); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; gap: 56px; padding-right: 56px; }
.marquee__group span { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--muted); white-space: nowrap; opacity: .75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Чипы-фильтры ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); font-weight: 700; font-size: 14px; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Бенто-сетка игр ---------- */
.games { padding: 100px 0 40px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 16px; grid-auto-flow: dense; }
.gcard {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  grid-row: span 2;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.gcard:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.gcard[hidden] { display: none; }
/* Ритм как у «Dasta's own products»: большая, широкая, две маленьких */
.bento > * { grid-row: span 2; }
.bento > :nth-child(4n+1) { grid-row: span 3; }
.bento > :nth-child(4n+2) { grid-column: span 2; }
.gcard__img { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--surface-2); }
.gcard__img > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; transition: transform .7s var(--ease); }
.gcard:hover .gcard__img > img:first-child { transform: scale(1.05); }
.gcard__logo { position: absolute; left: 50%; top: 12%; width: 44%; max-width: 300px; height: auto; translate: -50% 0; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); transition: transform .6s var(--ease); }
.gcard:hover .gcard__logo { transform: scale(1.05); }
.gcard__ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%), linear-gradient(160deg, #1A23A8, #050944); }
.gcard__ph img { width: 50%; height: auto; }
.gcard__ph .gcard__ph-icon { width: auto; height: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 24%; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); }
.gcard .round-arrow { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; }
.gcard:hover .round-arrow { transform: rotate(45deg); }
.gcard__body { display: flex; align-items: center; gap: 14px; padding: 16px 18px 18px; background: var(--surface); }
.gcard__icon { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: none; }
.gcard__info { min-width: 0; }
.gcard__title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.gcard__tagline { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--muted); }

/* ---------- Первый экран игры ---------- */
.hero {
  position: relative;
  height: clamp(440px, 42vw, 780px);
  overflow: hidden;
  background: #050944;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(0deg, var(--bg), transparent); pointer-events: none; }
.hero__art { position: absolute; inset: 0; will-change: transform; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__logo {
  position: absolute; z-index: 2;
  left: 50%; top: calc(var(--header-h) + clamp(28px, 3.6vw, 60px));
  width: clamp(200px, 21vw, 340px); height: auto;
  translate: -50% 0;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35));
  animation: logoIn .9s var(--ease) both .1s;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(-24px) scale(.88); } to { opacity: 1; transform: none; } }
.hero__name { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.hero--plain {
  height: clamp(380px, 34vw, 560px);
  background:
    radial-gradient(50% 70% at 50% 60%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(160deg, #1A23A8, #050944);
}
.hero--plain .hero__logo { top: 50%; translate: -50% -40%; width: clamp(240px, 28vw, 420px); }

/* ---------- «Картинка + текст» (интро и «следите за нами») ---------- */
.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  min-height: 594px;
  padding: 70px var(--gutter);
  overflow: hidden;
}
.split__media { position: relative; display: flex; justify-content: center; }
.split__media::before { /* мягкое свечение цвета игры за телефоном */
  content: ""; position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 62%); filter: blur(24px); z-index: -1; opacity: .7;
}
.split__text { max-width: 560px; }
.split__icon { width: min(300px, 70%); border-radius: 22%; box-shadow: var(--shadow); transform: rotate(-6deg); }
.split--flip .split__media { order: 2; }
.split--dark {
  color: #fff;
  margin: 40px 16px;
  border-radius: 28px;
  padding-inline: calc(var(--gutter) - 16px);
  background: linear-gradient(135deg, #1A23A8, #050944);
  isolation: isolate;
}
.split--dark .lead { color: rgba(255, 255, 255, .82); }
.split__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.split.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 9, 40, .86) 0%, rgba(5, 9, 40, .55) 50%, rgba(5, 9, 40, .1)); }

.trailer-btn { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; font-weight: 700; font-size: 15px; }
.trailer-btn__circle { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .8); transition: transform .2s var(--ease); }
.trailer-btn__circle .ic { width: 20px; height: 20px; margin-left: 3px; }
.trailer-btn:hover .trailer-btn__circle { transform: scale(1.1); }

.follow-label { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.follow { display: flex; flex-wrap: wrap; gap: 8px; }
.follow a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .14); transition: background .2s, transform .2s var(--ease); }
.follow a:hover { background: var(--blue); transform: translateY(-2px); }

/* ---------- Телефоны: iPhone 17 Pro Max + Galaxy S25 Ultra (реальные пропорции) ----------
   Все размеры — доли короткой стороны телефона (--s), поэтому пропорции не плывут на любом экране.
   iPhone 17 Pro Max: 78.0 × 163.4 мм; Galaxy S25 Ultra: 77.6 × 162.8 мм. */
.phones { position: relative; width: min(640px, 92vw); aspect-ratio: 480 / 600; margin-inline: auto; container-type: inline-size; }

.device {
  --s: 50cqw;
  position: absolute;
  width: var(--s);
  height: calc(var(--s) * 2.095);
  transition: transform .7s var(--ease);
}
.device__glass { position: absolute; overflow: hidden; background: #000; }
.device__screen { position: absolute; overflow: hidden; background: #000; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; user-select: none; }
.device__sheen { /* отражение на стекле */
  position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 22%, transparent 36%),
    linear-gradient(300deg, rgba(255, 255, 255, .06) 0%, transparent 18%);
}
.device__key { position: absolute; z-index: -1; }

/* --- iPhone 17 Pro Max: тонкие ровные рамки, Dynamic Island, кнопки слева и справа --- */
.device--iphone {
  left: 4%; top: 2%; z-index: 2;
  border-radius: calc(var(--s) * .175);
  background: linear-gradient(145deg, #7C7F86 0%, #34363B 16%, #1C1D20 48%, #2E3034 82%, #8E9198 100%);
  box-shadow:
    inset 0 0 0 calc(var(--s) * .004) rgba(255, 255, 255, .45),
    inset 0 0 0 calc(var(--s) * .009) rgba(0, 0, 0, .55),
    0 calc(var(--s) * .14) calc(var(--s) * .26) rgba(0, 0, 0, .5),
    0 calc(var(--s) * .03) calc(var(--s) * .06) rgba(0, 0, 0, .35);
  transform: rotate(-5deg);
}
.device--iphone .device__glass { inset: calc(var(--s) * .013); border-radius: calc(var(--s) * .163); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.device--iphone .device__screen { inset: calc(var(--s) * .028); border-radius: calc(var(--s) * .135); }
.device__island {
  position: absolute; z-index: 3; left: 50%; translate: -50% 0;
  top: calc(var(--s) * .05);
  width: calc(var(--s) * .27); height: calc(var(--s) * .079);
  border-radius: 999px; background: #000;
}
.device__island::after { /* линза фронтальной камеры */
  content: ""; position: absolute; right: 13%; top: 50%; translate: 0 -50%;
  width: calc(var(--s) * .034); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3A4A78 0%, #121A33 45%, #05070D 70%);
}
.device--iphone .device__key { width: calc(var(--s) * .012); background: linear-gradient(90deg, #2A2C30, #6E7178 60%, #3A3C41); border-radius: calc(var(--s) * .01); }
.device--iphone .device__key--action { left: calc(var(--s) * -.008); top: 15%; height: 3.6%; }
.device--iphone .device__key--vol1 { left: calc(var(--s) * -.008); top: 21%; height: 6.6%; }
.device--iphone .device__key--vol2 { left: calc(var(--s) * -.008); top: 29%; height: 6.6%; }
.device--iphone .device__key--power { right: calc(var(--s) * -.008); top: 24%; height: 10%; }
.device--iphone .device__key--capture { right: calc(var(--s) * -.005); top: 60%; height: 6.4%; width: calc(var(--s) * .008); background: linear-gradient(90deg, #1C1D20, #4A4C52); }

/* --- Galaxy S25 Ultra: плоская титановая рамка, углы меньше, камера-точка --- */
.device--galaxy {
  right: 3%; top: 9%; z-index: 1;
  height: calc(var(--s) * 2.098);
  border-radius: calc(var(--s) * .09);
  background: linear-gradient(90deg, #4E5055 0%, #A3A6AC 1.6%, #6F7277 4%, #63666B 50%, #6F7277 96%, #A3A6AC 98.4%, #4E5055 100%);
  box-shadow:
    inset 0 0 0 calc(var(--s) * .004) rgba(255, 255, 255, .3),
    0 calc(var(--s) * .12) calc(var(--s) * .24) rgba(0, 0, 0, .45);
  transform: rotate(7deg);
}
.device--galaxy .device__glass { inset: calc(var(--s) * .012); border-radius: calc(var(--s) * .08); }
.device--galaxy .device__screen { inset: calc(var(--s) * .022); border-radius: calc(var(--s) * .062); }
.device__cam {
  position: absolute; z-index: 3; left: 50%; translate: -50% 0;
  top: calc(var(--s) * .042);
  width: calc(var(--s) * .036); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3A4A78 0%, #121A33 40%, #000 65%);
  box-shadow: 0 0 0 calc(var(--s) * .004) #0B0B0D;
}
.device--galaxy .device__key { right: calc(var(--s) * -.009); width: calc(var(--s) * .012); background: linear-gradient(90deg, #5B5E63, #A9ACB2 55%, #6A6D72); border-radius: 2px; }
.device--galaxy .device__key--vol { top: 17%; height: 12%; }
.device--galaxy .device__key--power { top: 32%; height: 6.5%; }
/* Задний телефон чуть приглушён — чтобы главный был iPhone */
.device--galaxy .device__screen { filter: brightness(.86); }

.phones:hover .device--iphone { transform: rotate(-3deg) translate(-3%, -2%); }
.phones:hover .device--galaxy { transform: rotate(9deg) translate(4%, 1%); }
.split--flip .device--iphone { left: auto; right: 4%; transform: rotate(5deg); }
.split--flip .device--galaxy { right: auto; left: 3%; transform: rotate(-7deg); }
.split--flip .phones:hover .device--iphone { transform: rotate(3deg) translate(3%, -2%); }
.split--flip .phones:hover .device--galaxy { transform: rotate(-9deg) translate(-4%, 1%); }

/* Горизонтальный скрин: один iPhone лёжа (Galaxy прячем) */
.phones.is-landscape { width: min(880px, 94vw); aspect-ratio: 2.095 / 1.06; }
.phones.is-landscape .device--galaxy { display: none; }
.phones.is-landscape .device--iphone { --s: 47.7cqw; left: 0; top: 3%; width: 100%; height: var(--s); transform: none; }
.phones.is-landscape .device__island { left: calc(var(--s) * .05); top: 50%; translate: 0 -50%; width: calc(var(--s) * .079); height: calc(var(--s) * .27); }
.phones.is-landscape .device__island::after { right: auto; left: 50%; top: 13%; translate: -50% 0; }
.phones.is-landscape .device__key { display: none; }
.phones.is-landscape:hover .device--iphone { transform: translateY(-2%); }

/* ---------- Внутри игры: бесконечная лента ---------- */
.inside { padding: 90px 0; overflow: hidden; }
.inside .section-head { margin-bottom: 20px; }
.loop { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.loop__lane { display: flex; width: max-content; padding: 24px 0 34px; animation: loop var(--loop-time, 40s) linear infinite; }
.loop:hover .loop__lane { animation-play-state: paused; }
@keyframes loop { to { transform: translateX(calc(-1 * var(--loop-w, 50%))); } }
.loop__group { display: flex; gap: 26px; padding-right: 26px; }
.icard { flex: 0 0 clamp(190px, 19vw, 250px); margin: 0; transition: transform .35s var(--ease); }
.icard:nth-child(odd) { transform: rotate(-2deg); }
.icard:nth-child(even) { transform: rotate(2deg) translateY(12px); }
.icard:hover { transform: rotate(0) translateY(-10px) scale(1.03); }
.icard__img { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); background: #fff; }
.icard__img img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.icard__title { margin-top: 14px; text-align: center; font-weight: 800; font-size: 16px; }

/* ---------- Интро по центру (Playrix) ---------- */
.intro { position: relative; padding: 70px 0 40px; text-align: center; isolation: isolate; }
.intro__text { display: flex; flex-direction: column; align-items: center; }
.intro__title { margin: 6px 0 0; font-size: clamp(44px, 5.4vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.intro__tagline { margin: 12px 0 0; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.01em; }
.intro__desc { max-width: 820px; margin: 18px auto 30px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); }
.intro .stores { justify-content: center; }
.intro__phones { position: relative; margin-top: 56px; }
.intro__phones::before { /* свечение цвета игры за телефонами */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; translate: -50% -50%;
  width: min(760px, 100%); aspect-ratio: 1.4; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--blue) 18%, transparent) 55%, transparent);
  filter: blur(30px);
}

/* ---------- Как играть ---------- */
.steps { padding: 40px 0 90px; }
.steps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 26px; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; transition: border-color .3s, transform .3s var(--ease); }
.step:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.step__num { position: absolute; top: 14px; right: 20px; font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--border-strong); }
.step:hover .step__num { -webkit-text-stroke-color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.step__title { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.step__text { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Новости ---------- */
.news { padding: 50px 0 80px; }
.news__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news__grid--one { grid-template-columns: minmax(0, 640px); }
.ncard { overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease); }
a.ncard:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.ncard__img { aspect-ratio: 16 / 9; overflow: hidden; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.ncard:hover .ncard__img img { transform: scale(1.05); }
.ncard__body { padding: 18px 20px 22px; }
.ncard__title { margin: 6px 0 0; font-size: 19px; font-weight: 800; line-height: 1.35; }

/* ---------- Видео ---------- */
.videos { padding: 60px 0 80px; }
.videos__viewport { position: relative; }
.videos__track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter);
  scroll-padding-inline: var(--gutter);
  scroll-behavior: smooth;
}
.videos__track::-webkit-scrollbar { display: none; }
.vcard { flex: 0 0 min(590px, 82vw); scroll-snap-align: start; text-align: left; overflow: hidden; }
.vcard__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vcard:hover .vcard__img img { transform: scale(1.04); }
.vcard__play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; border: 2px solid rgba(255, 255, 255, .9); backdrop-filter: blur(6px); transition: background .2s, transform .2s var(--ease); }
.vcard__play .ic { width: 28px; height: 28px; margin-left: 4px; }
.vcard:hover .vcard__play { background: var(--blue); border-color: var(--blue); transform: scale(1.08); }
.vcard__title { display: flex; align-items: center; gap: 8px; padding: 16px 18px; font-weight: 700; font-size: 16px; }
.vcard__title .ic { color: var(--muted); }
.carousel-arrow { position: absolute; top: calc(50% - 30px); z-index: 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(10px); transition: opacity .2s, background .2s; }
.carousel-arrow:hover { background: var(--blue); color: #fff; }
.carousel-arrow[disabled] { opacity: 0; pointer-events: none; }
.carousel-arrow--prev { left: max(8px, var(--gutter) - 28px); }
.carousel-arrow--next { right: max(8px, var(--gutter) - 28px); }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.dots button { width: 10px; height: 10px; border-radius: 999px; background: var(--border-strong); transition: width .3s var(--ease), background .3s; }
.dots button.is-active { width: 28px; background: var(--blue); }

/* ---------- Частые вопросы ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 48px; padding: 60px 0 90px; }
.faq__head { position: sticky; top: 110px; align-self: start; }
.faq__list { display: grid; gap: 10px; }
.faq__item { padding: 0; transition: border-color .3s; }
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__toggle { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--blue); transition: transform .3s var(--ease), background .3s, color .3s; }
.faq__item[open] .faq__toggle { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); color: #fff; }
.faq__answer { padding: 0 22px 20px; color: var(--muted); font-size: 16px; }

/* ---------- Лента всех игр ---------- */
.shelf { padding: 30px 0 80px; }
.shelf__list { display: flex; justify-content: safe center; gap: 24px; list-style: none; margin: 0; overflow-x: auto; scrollbar-width: none; padding: 10px var(--gutter); }
.shelf__list::-webkit-scrollbar { display: none; }
.shelf__item { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 120px; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.25; }
.shelf__item img, .shelf__ph { width: 104px; height: 104px; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.shelf__ph { display: grid; place-items: center; background: var(--accent); font-size: 40px; font-weight: 800; color: #fff; }
.shelf__item:hover img, .shelf__item:hover .shelf__ph { transform: translateY(-6px) rotate(-3deg); }
.shelf__item.is-current img, .shelf__item.is-current .shelf__ph { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--blue); }

/* ---------- Контакты ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; padding: 40px 0 70px; }
.contact__main {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 24px;
  background: linear-gradient(120deg, var(--blue), var(--violet));
  color: #fff;
}
.contact__main::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.contact__title { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; max-width: 520px; }
.contact__title .grad { background: none; color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: rgba(255, 255, 255, .5); }
.contact__text { margin: 0 0 8px; max-width: 460px; color: rgba(255, 255, 255, .85); }
.contact__list { display: grid; gap: 10px; align-content: start; }
.info { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s var(--ease); }
a.info:hover { border-color: var(--border-strong); transform: translateX(4px); }
.info__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); }
[data-theme="dark"] .info__ic { color: #7D9BFF; }
.info__ic .ic { width: 20px; height: 20px; }
.info span:last-child { display: flex; flex-direction: column; min-width: 0; }
.info small { font-size: 12px; color: var(--muted); }
.info b { font-size: 16px; overflow-wrap: anywhere; }

/* ---------- Подвал ---------- */
.footer { padding-bottom: 24px; }
.footer__card {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
}
.footer__logo img { height: 40px; width: auto; }
.footer__brand p { margin: 16px 0 18px; max-width: 280px; font-size: 14px; color: var(--muted); }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border-strong); transition: background .2s, color .2s; }
.footer__social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px; }
.footer__col a, .footer__col span { color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__head { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: .8; }
.footer__company { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 4px 0; font-size: 13px; color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { min-height: 78svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-top: var(--header-h); text-align: center; }
.notfound__code { font-size: clamp(110px, 20vw, 220px); font-weight: 800; line-height: 1; letter-spacing: -.05em; }

/* ---------- Видео в модальном окне ---------- */
.modal { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 8, 25, .92); color: #fff; }
.modal::backdrop { background: transparent; }
.modal[open] { display: grid; place-items: center; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal__body { width: min(1100px, 100% - 32px); }
.modal__body iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); }
.modal__close:hover { background: rgba(255, 255, 255, .26); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .3s, box-shadow .3s; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .step.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.js .gcard.reveal.is-in:hover, .js .step.reveal.is-in:hover, .js a.ncard.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
.js a.info.reveal.is-in:hover { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .stories-bar span.is-active i { width: 100%; }
}

/* ---------- Планшет ---------- */
@media (max-width: 1050px) {
  .header__bar { gap: 16px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > :nth-child(4n+2) { grid-column: span 1; }
  .footer__card { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq__head { position: static; }
}

/* ---------- Телефон ---------- */
@media (max-width: 790px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; }
  .header { top: 8px; }
  .header__bar { width: calc(100% - 16px); padding: 0 8px 0 14px; border-radius: 14px; }
  .header__logo img { height: 32px; }
  .header__nav, .lang-drop, .header__cta { display: none; }
  .header__burger { display: block; }

  .marquee { margin-top: 20px; padding: 18px 0; }
  .marquee__group span { font-size: 18px; }
  .games { padding-top: 64px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .bento > *, .bento > :nth-child(4n+1), .bento > :nth-child(4n+2) { grid-column: auto; grid-row: span 2; }

  .hero { height: auto; aspect-ratio: 6 / 5; }
  .hero--plain { aspect-ratio: 1; }
  .hero__logo { width: 62vw; top: calc(var(--header-h) + 22px); }
  .hero--plain .hero__logo { top: 52%; }

  .split { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding-top: 48px; padding-bottom: 60px; text-align: center; }
  .split__text { max-width: none; justify-self: center; }
  .split .stores, .follow { justify-content: center; }
  .split__media, .split--flip .split__media { order: 2; }
  .split--dark { margin: 20px 8px; border-radius: 22px; padding-inline: 18px; }
  .phones { width: min(360px, 92vw); }
  .intro { padding-top: 48px; }
  .intro__phones { margin-top: 40px; }
  .split.has-bg::before { background: rgba(5, 9, 40, .72); }

  .steps__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step { min-height: 170px; padding: 18px; }
  .step__num { font-size: 42px; right: 14px; }
  .news__grid { grid-template-columns: 1fr; }
  .carousel-arrow { display: none; }
  .vcard { flex-basis: 86vw; }
  .contact { grid-template-columns: 1fr; }
  .footer__card { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 420px) {
  .steps__grid { grid-template-columns: 1fr; }
  .stack__note { max-width: none; }
}

/* Стандартный логотип белый — в светлой теме инвертируем (оранжевый «GAME» остаётся оранжевым) */
[data-theme="light"] .logo-default { filter: invert(1) hue-rotate(180deg) saturate(1.4); }
.split__media { isolation: isolate; }
.header__right { margin-left: auto; }

/* ---------- Другие наши игры ---------- */
.more { padding: 40px 0 90px; }
.more__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.more__grid .gcard { grid-row: auto; min-height: 360px; }
.soon-card {
  display: flex; flex-direction: column; min-height: 360px;
  border-radius: var(--r); overflow: hidden;
  border: 1.5px dashed var(--border-strong);
  background: var(--surface);
}
.soon-card__art {
  position: relative; flex: 1; display: grid; place-items: center; overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--violet) 26%, transparent), transparent 65%);
}
.soon-card__art::after { /* бегущий блик — «загружается» */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%);
  transform: translateX(-100%); animation: shimmer 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .4s);
}
@keyframes shimmer { 60%, 100% { transform: translateX(100%); } }
.soon-card__q { font-size: 110px; font-weight: 800; line-height: 1; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .85; animation: float 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.2s); }
@keyframes float { 50% { transform: translateY(-10px) rotate(-4deg); } }
.soon-card .soon-pill { position: absolute; top: 14px; right: 14px; margin: 0; }
.soon-card .gcard__body { background: transparent; }
.soon-card__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; border: 1.5px dashed var(--border-strong); color: var(--muted); }
@media (max-width: 1050px) { .more__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 790px) {
  .more__grid { grid-template-columns: 1fr; }
  .more__grid .gcard, .soon-card { min-height: 300px; }
  .more__grid .soon-card:nth-child(n+3) { display: none; }
}

/* ---------- Страница «О компании» (playrix.com/company) ---------- */
.chero { padding-top: calc(var(--header-h) + 36px); }
.chero__card {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(420px, 48vw, 680px);
  border-radius: 28px;
  display: grid; place-items: center; text-align: center;
  background: #050944;
}
.chero__img { position: absolute; inset: -6% 0 0; width: 100%; height: 106%; object-fit: cover; z-index: -2; will-change: transform; }
.chero__card::after { /* градиент снизу — фирменные цвета, как у Playrix */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 9, 40, .15) 0%, rgba(5, 9, 40, .35) 45%, color-mix(in srgb, var(--violet) 70%, transparent) 100%);
}
.chero__card--plain {
  background:
    radial-gradient(60% 70% at 50% 100%, color-mix(in srgb, var(--violet) 55%, transparent), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(160deg, #1A23A8, #050944);
}
.chero__text { padding: 0 20px; color: #fff; }
.chero__title { margin: 0; font-size: clamp(42px, 6.4vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -.04em; text-shadow: 0 8px 40px rgba(0, 0, 0, .35); }
.chero__title .grad { background: linear-gradient(92deg, #8FB0FF, #C3B4FF 50%, #7FE6F5); -webkit-background-clip: text; background-clip: text; }
.chero__sub { margin: 18px 0 0; font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; opacity: .9; }
.chero__deco { position: absolute; inset: 0; z-index: -1; }
.chero__float { position: absolute; width: clamp(64px, 8vw, 120px); aspect-ratio: 1; object-fit: cover; border-radius: 24%; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); animation: float 6s ease-in-out infinite; }
.chero__float--1 { left: 8%; top: 18%; rotate: -12deg; }
.chero__float--2 { right: 9%; top: 22%; rotate: 10deg; animation-delay: -2s; }
.chero__float--3 { left: 16%; bottom: 14%; rotate: 8deg; animation-delay: -4s; }
.chero__float--4 { right: 18%; bottom: 12%; rotate: -8deg; animation-delay: -1s; }
.chero__float--5 { left: 40%; top: 8%; rotate: 6deg; animation-delay: -3s; width: clamp(44px, 5vw, 70px); }
.chero__float--6 { right: 38%; bottom: 6%; rotate: -6deg; animation-delay: -5s; width: clamp(44px, 5vw, 70px); }

.manifesto { padding: clamp(90px, 12vw, 170px) 0; text-align: center; }
.manifesto__text { margin: 0 auto; max-width: 15em; font-size: clamp(34px, 5vw, 72px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }

.cblock { padding: 40px 0 90px; }
.cblock__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.cblock__text { margin-top: 16px; font-size: 18px; color: var(--muted); }
.cblock__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 940px; margin-inline: auto; }
.cblock__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.cblock__photo { aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.cblock__photo img, .cblock__wide img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cblock__photo:hover img, .cblock__wide:hover img { transform: scale(1.04); }
.js .cblock__photo.reveal { transition-delay: calc(var(--i, 0) * 90ms); }
.cblock__wide { position: relative; aspect-ratio: 21 / 9; border-radius: 28px; overflow: hidden; }
.cblock__wide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--violet) 55%, transparent)); pointer-events: none; }
.cblock__btn { margin-top: 36px; text-align: center; }

.cgames { padding: 50px 0 40px; }
.cgames__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.js .cgames__list .reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.cgames__item { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 140px; text-align: center; font-weight: 800; font-size: 15px; }
.cgames__item img, .cgames__item .shelf__ph, .cgames__soon { width: 128px; height: 128px; border-radius: 30px; object-fit: cover; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
a.cgames__item:hover img { transform: translateY(-8px) rotate(-4deg); }
.cgames__soon { display: grid; place-items: center; border: 1.5px dashed var(--border-strong); box-shadow: none; font-size: 54px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cgames__item--soon { color: var(--muted); }

.final { padding: clamp(80px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); text-align: center; overflow: hidden; }
.final__text {
  margin: 0 auto; max-width: 14em;
  font-size: clamp(36px, 6vw, 88px); font-weight: 800; line-height: 1.05; letter-spacing: -.04em;
  transform: scale(var(--grow, 1)); transform-origin: center; will-change: transform;
}

@media (max-width: 790px) {
  .chero { padding-top: calc(var(--header-h) + 22px); }
  .chero__card { height: 70svh; border-radius: 22px; }
  .cblock__grid, .cblock__grid--3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cblock__photo { border-radius: 16px; }
  .cblock__wide { aspect-ratio: 4 / 3; border-radius: 22px; }
  .cgames__list { gap: 18px; }
  .cgames__item { width: 100px; font-size: 13px; }
  .cgames__item img, .cgames__item .shelf__ph, .cgames__soon { width: 92px; height: 92px; border-radius: 22px; }
}
@media (max-width: 420px) {
  .stores { gap: 8px; }
  .badge { height: 48px; padding: 0 12px 0 10px; border-radius: 9px; gap: 7px; }
  .badge__ic { width: 24px; height: 24px; }
  .badge--apple .badge__ic { width: 27px; height: 27px; }
  .badge small { font-size: 9.5px; }
  .badge b { font-size: 19px; }
}

/* Строка статуса поверх скриншота: время слева, сеть / Wi-Fi / батарея справа */
.device__status {
  position: absolute; z-index: 3; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; pointer-events: none;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
.device__status b { font-weight: 600; letter-spacing: -.01em; }
.device__status i { display: flex; align-items: center; font-style: normal; }
.device__status svg { fill: currentColor; height: auto; }
.device__status--ios { top: calc(var(--s) * .062); height: calc(var(--s) * .055); padding: 0 calc(var(--s) * .1) 0 calc(var(--s) * .13); font-size: calc(var(--s) * .046); }
.device__status--ios i { gap: calc(var(--s) * .014); }
.device__status--ios svg:nth-child(1) { width: calc(var(--s) * .046); }
.device__status--ios svg:nth-child(2) { width: calc(var(--s) * .042); }
.device__status--ios svg:nth-child(3) { width: calc(var(--s) * .066); }
.device__status--android { top: calc(var(--s) * .036); height: calc(var(--s) * .05); padding: 0 calc(var(--s) * .075); font-size: calc(var(--s) * .036); }
.device__status--android b { font-weight: 500; font-family: Roboto, "Google Sans", Arial, sans-serif; }
.device__status--android i { gap: calc(var(--s) * .012); }
.device__status--android svg:nth-child(1) { width: calc(var(--s) * .036); }
.device__status--android svg:nth-child(2) { width: calc(var(--s) * .034); }
.device__status--android svg:nth-child(3) { width: calc(var(--s) * .05); }
.phones.is-landscape .device__status { display: none; }

/* ---------- Главная: звёздочки в бегущей строке, «Почему Dasta», ленты карточек ---------- */
.marquee__group { align-items: center; }
.marquee__star { width: 18px; height: 18px; color: var(--accent); opacity: .8; flex: none; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }

.why { padding: 90px 0 40px; }
.why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.why__tile { position: relative; overflow: hidden; padding: 28px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .3s var(--ease), border-color .3s; }
.why__tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%); }
.why__tile:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.why__tile:first-child { grid-row: span 2; background: linear-gradient(150deg, var(--blue), var(--violet)); border-color: transparent; color: #fff; }
.why__tile:first-child .why__text { color: rgba(255, 255, 255, .85); }
.why__tile:first-child .why__icon { width: 150px; height: 150px; top: 30px; right: 30px; }
.why__icon { position: absolute; top: 22px; right: 22px; width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .3)); transition: transform .5s var(--ease); }
.why__tile:hover .why__icon { transform: rotate(-8deg) scale(1.08) translateY(-4px); }
.why__title { position: relative; margin: 0 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.why__text { position: relative; margin: 0; font-size: 15px; color: var(--muted); max-width: 300px; }
.js .why__tile.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.js .why__tile.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

.lanes { padding: 90px 0 60px; overflow: hidden; }
.lanes .section-head { margin-bottom: 16px; }
.lanes .loop__lane { padding: 12px 0; }
.loop--reverse .loop__lane { animation-direction: reverse; }
.lanes .loop__group { gap: 18px; padding-right: 18px; }
.lcard { position: relative; flex: 0 0 auto; width: clamp(150px, 14vw, 200px); aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); transition: transform .35s var(--ease); }
.lcard img { width: 100%; height: 100%; object-fit: cover; }
.lcard span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.lcard:hover { transform: translateY(-6px) rotate(-2deg); }
.lcard:hover span { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .home-hero__inner { grid-template-columns: 1fr; }
  .home-hero__text { align-items: center; text-align: center; }
  .home-hero__sub { margin-inline: auto; }
  .home-hero__actions, .home-hero .stores { justify-content: center; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__tile:first-child { grid-row: auto; grid-column: 1 / -1; min-height: 260px; }
}
@media (max-width: 790px) {
  .home-hero { padding-top: calc(var(--header-h) + 40px); }
  .stack { justify-content: center; }
  .stats { margin-top: 36px; }
  .stats__item { padding: 16px 18px; }
  .spotlight { padding-top: 60px; }
  .spotlight__card { height: 560px; }
  .story::after { background: linear-gradient(0deg, rgba(5, 8, 30, .95) 0%, rgba(5, 8, 30, .7) 50%, rgba(5, 8, 30, .1) 100%); }
  .spotlight__content { top: auto; bottom: 24px; translate: none; right: 24px; }
  .story__art { object-position: 50% 40%; }
  .why__grid { grid-template-columns: 1fr; }
  .why__tile { min-height: 190px; }
}

/* Бенто без дыр при любом числе карточек: последняя карточка добирает пустое место */
.bento > :nth-child(4n+1):last-child { grid-column: 1 / -1; }
.bento > :nth-child(4n+2):last-child { grid-row: span 3; }
.bento > :nth-child(4n+3):last-child { grid-column: span 2; }
/* «Почему Dasta»: плитка, оставшаяся одна в ряду, растягивается на всю ширину */
.why__tile:nth-child(3n):last-child { grid-column: 1 / -1; min-height: 170px; }
.why__tile:nth-child(3n):last-child .why__text { max-width: 520px; }
@media (max-width: 1050px) {
  .bento > :nth-child(4n+3):last-child { grid-column: auto; }
  .why__tile:nth-child(3n):last-child { grid-column: auto; }
}
@media (max-width: 790px) {
  .bento > :nth-child(4n+1):last-child, .bento > :nth-child(4n+2):last-child { grid-row: span 2; }
}

/* ---------- Главная студии: «стена игр» ---------- */
.home-hero__inner { min-height: 560px; }
.wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  height: clamp(480px, 46vw, 620px);
  overflow: hidden;
  transform: rotate(4deg);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.wall__track { display: flex; flex-direction: column; gap: 14px; animation: wall-up 38s linear infinite; }
.wall__col--down .wall__track { animation-name: wall-down; animation-duration: 44s; }
.wall:hover .wall__track { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 7px)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 7px)); } to { transform: translateY(0); } }
.wall__item { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-strong); box-shadow: 0 16px 34px rgba(0, 0, 0, .3); transition: transform .4s var(--ease); }
.wall__item--cover { aspect-ratio: 4 / 3.4; }
.wall__item > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.wall__item:hover { transform: scale(1.03); }
.wall__logo { position: absolute; left: 50%; top: 10%; width: 62%; translate: -50% 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.stack__icons > a { display: block; margin-left: -10px; border-radius: 50%; }
.stack__icons > a:first-child { margin-left: 0; }
.stack__icons > a > * { margin: 0 !important; }
.stack__icons .stack__more { background: var(--grad); }

/* ---------- Тизер «О компании» ---------- */
.about-teaser {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center;
  margin-top: 70px; padding: clamp(24px, 3vw, 40px);
  border-radius: 28px; background: var(--surface); border: 1px solid var(--border);
}
.about-teaser__media { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 11; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--violet) 30%, transparent), transparent 70%), var(--surface-2); }
.about-teaser__media > img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser__icons { height: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 22px; padding: 28px; }
.about-teaser__icons > * { flex: 0 0 24%; }
.about-teaser__icons img, .about-teaser__icons .cgames__soon { width: 100%; max-width: 110px; height: auto; aspect-ratio: 1; border-radius: 24%; object-fit: cover; box-shadow: var(--shadow); }
.about-teaser__icons .cgames__soon { font-size: 40px; }
.about-teaser__icons > :nth-child(odd) { transform: translateY(-14px) rotate(-6deg); }
.about-teaser__icons > :nth-child(even) { transform: translateY(14px) rotate(6deg); }
.about-teaser__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.about-teaser__text .section-sub { margin: 0; font-size: 18px; }

@media (max-width: 1050px) {
  .home-hero__inner { min-height: 0; }
  .wall { height: 420px; transform: rotate(3deg); margin-top: 20px; }
  .about-teaser { grid-template-columns: 1fr; }
}
@media (max-width: 790px) {
  .wall { height: 360px; gap: 10px; }
  .wall__track { gap: 10px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item:nth-child(odd) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .about-teaser { margin-top: 40px; }
}

/* ---------- Мало игр (до 3 карточек): три ровные колонки одной высоты ---------- */
.bento:not(:has(> :nth-child(4))) { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.bento:not(:has(> :nth-child(4))) > * { grid-column: auto !important; grid-row: auto !important; height: clamp(420px, 36vw, 500px); }
.more__grid > * { height: clamp(380px, 32vw, 460px); min-height: 0; }

/* ---------- Заглушка «Скоро»: закрытая колода ---------- */
.soon-card { border-style: dashed; background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.soon-card:hover { border-color: color-mix(in srgb, var(--violet) 60%, transparent); transform: translateY(-4px); }
.soon-card__art { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(60% 60% at 50% 55%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px; }
.soon-card__q { display: none; }
.mcard {
  position: absolute; left: 50%; top: 50%;
  width: min(38%, 150px); aspect-ratio: 4 / 5;
  translate: -50% -50%;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, .14);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, color-mix(in srgb, var(--violet) 40%, var(--surface-2)), color-mix(in srgb, var(--blue) 25%, var(--surface)));
  box-shadow: 0 18px 36px rgba(0, 0, 0, .3);
  transition: transform .5s var(--ease);
}
[data-theme="light"] .mcard { border-color: rgba(13, 18, 35, .1); box-shadow: 0 18px 36px rgba(13, 18, 35, .14); }
.mcard--back { transform: translate(-34%, 4%) rotate(-14deg); opacity: .55; }
.mcard--mid { transform: translate(32%, 2%) rotate(11deg); opacity: .75; }
.mcard--front { display: grid; place-items: center; transform: translateY(-4%); background: linear-gradient(150deg, var(--blue), var(--violet)); border-color: rgba(255, 255, 255, .3); }
.mcard--front b { font-size: clamp(40px, 4vw, 58px); font-weight: 800; color: #fff; text-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.mcard__spark { position: absolute; top: 10%; right: 12%; width: 16px; height: 16px; color: rgba(255, 255, 255, .85); animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6) rotate(45deg); } }
.soon-card:hover .mcard--back { transform: translate(-46%, 6%) rotate(-20deg); }
.soon-card:hover .mcard--mid { transform: translate(44%, 4%) rotate(16deg); }
.soon-card:hover .mcard--front { transform: translateY(-8%) scale(1.04); }
.soon-card__art::after { z-index: 2; }
.soon-card .soon-pill { z-index: 3; }

@media (max-width: 1050px) {
  .bento:not(:has(> :nth-child(4))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento:not(:has(> :nth-child(4))) > :first-child { grid-column: 1 / -1 !important; }
}
@media (max-width: 790px) {
  .bento:not(:has(> :nth-child(4))) { grid-template-columns: 1fr; }
  .bento:not(:has(> :nth-child(4))) > * { height: 340px; }
  .more__grid > * { height: 320px; }
}
@media (max-width: 790px) {
  /* На телефоне одной заглушки достаточно */
  .bento > .soon-card ~ .soon-card { display: none; }
}

/* ---------- Каталог игр: карточки как у Playrix ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pcard {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: 64px;
  border-radius: 26px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.pcard[hidden] { display: none; }
a.pcard:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.pcard__art { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.pcard__art > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard__art > img.pcard__art--hero { object-position: center 85%; }
a.pcard:hover .pcard__art > img { transform: scale(1.05); }
.pcard__ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%), linear-gradient(160deg, #1A23A8, #050944); }
.pcard__ph img { width: 34%; aspect-ratio: 1; object-fit: cover; border-radius: 24%; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); }
.pcard__badge { position: absolute; z-index: 3; top: 16px; right: 16px; margin: 0; }
/* Логотип наезжает на нижний край арта */
.pcard__logo { position: relative; z-index: 2; height: 96px; width: 76%; margin-top: -58px; display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease); }
.pcard__logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
a.pcard:hover .pcard__logo { transform: translateY(-4px) scale(1.04); }
.pcard__name { padding: 10px 22px; border-radius: 14px; background: var(--accent); color: #1A1200; font-size: 22px; font-weight: 800; letter-spacing: -.01em; box-shadow: 0 10px 22px rgba(0, 0, 0, .3); }
.pcard__name--soon { background: linear-gradient(120deg, var(--blue), var(--violet)); color: #fff; }
.pcard__desc { margin: 10px 26px 0; color: var(--muted); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__go {
  position: absolute; right: 20px; bottom: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #1A1200;
  transition: transform .3s var(--ease);
}
a.pcard:hover .pcard__go { transform: rotate(45deg) scale(1.08); }
.pcard__go--soon { background: transparent; color: var(--muted); border: 1.5px dashed var(--border-strong); }
.pcard--soon { border-style: dashed; border-color: var(--border-strong); }
.pcard--soon .pcard__art { background: transparent; }
.pcard--soon:hover .mcard--back { transform: translate(-46%, 6%) rotate(-20deg); }
.pcard--soon:hover .mcard--mid { transform: translate(44%, 4%) rotate(16deg); }
.pcard--soon:hover .mcard--front { transform: translateY(-8%) scale(1.04); }
.js .pcard.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.js a.pcard.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0s; }
@media (max-width: 1050px) { .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid > .pcard--soon ~ .pcard--soon { display: none; }
}

/* Бейдж без ссылки: виден, но приглушён и подписан «Скоро» */
.badge.is-soon { position: relative; cursor: default; }
.badge.is-soon > svg, .badge.is-soon > span { opacity: .5; filter: grayscale(.7); }
.badge.is-soon:hover { transform: none; box-shadow: none; }
.badge__soon {
  position: absolute; top: -9px; right: -8px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--violet); color: #fff;
  font: 800 10px/1.6 var(--font); font-style: normal; letter-spacing: .04em; text-transform: uppercase;
  filter: none;
}

/* ---------- «О компании» v2 ---------- */
.page-company .stats { margin-top: 18px; }
.chero__card { isolation: isolate; }
.chero__card--plain { background: linear-gradient(160deg, #141B5C, #050944 70%); }
.chero__card--plain::after { background: radial-gradient(60% 55% at 50% 100%, color-mix(in srgb, var(--violet) 45%, transparent), transparent 70%); }
.chero__card .aurora { inset: -10%; height: auto; }
.chero__card .aurora span { opacity: .45; }
.chero__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 900px; }
.chero__sub { margin: 0; max-width: 620px; }
.chero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.badge-pill--light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .25); box-shadow: none; backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); box-shadow: none; }

/* Персонажи из приложения вокруг заголовка — «компания друзей» */
.crowd { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.crowd__face {
  position: absolute; width: clamp(56px, 6.4vw, 96px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4), 0 0 0 3px rgba(255, 255, 255, .5);
  animation: drift 7s ease-in-out infinite;
}
.crowd__face--1 { left: 6%; top: 14%; }
.crowd__face--2 { left: 9%; top: 54%; width: clamp(64px, 7.4vw, 112px); animation-delay: -1s; }
.crowd__face--3 { left: 4%; bottom: 8%; width: clamp(44px, 4.6vw, 70px); animation-delay: -2s; }
.crowd__face--4 { left: 24%; top: 6%; width: clamp(44px, 4.6vw, 70px); animation-delay: -3s; opacity: .85; }
.crowd__face--5 { right: 6%; top: 12%; width: clamp(64px, 7.4vw, 112px); animation-delay: -4s; }
.crowd__face--6 { right: 9%; top: 52%; animation-delay: -5s; }
.crowd__face--7 { right: 4%; bottom: 10%; width: clamp(44px, 4.6vw, 70px); animation-delay: -1.5s; }
.crowd__face--8 { right: 26%; top: 8%; width: clamp(40px, 4vw, 60px); animation-delay: -2.5s; opacity: .8; }
.crowd__face--9 { left: 36%; bottom: 6%; width: clamp(40px, 4vw, 60px); animation-delay: -3.5s; opacity: .8; }
.crowd__face--10 { right: 38%; bottom: 4%; width: clamp(48px, 5vw, 76px); animation-delay: -4.5s; }
.crowd__face--11 { left: 2.5%; top: 40%; width: clamp(36px, 3.4vw, 52px); animation-delay: -6s; opacity: .7; filter: blur(1px); }
.crowd__face--12 { right: 2.5%; top: 36%; width: clamp(36px, 3.4vw, 52px); animation-delay: -5.5s; opacity: .7; filter: blur(1px); }
@keyframes drift { 50% { transform: translateY(-14px) rotate(4deg); } }

.manifesto { position: relative; }
.manifesto__quote { display: block; width: 34px; height: 34px; margin: 0 auto 22px; color: var(--accent); }

/* Блок «текст + фото», чередуется */
.cside { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: 50px 0 90px; }
.cside--flip .cside__media { order: 2; }
.cside__media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.cside__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cside__media:hover img { transform: scale(1.04); }
.cside__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: none; }
.cside__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cside__num { font-size: 15px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }
.cside__text .cblock__text { margin: 0; }

/* Мозаика фото: первое крупное */
.mosaic { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 220px); }
.mosaic__item { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic--4 .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic--4 .mosaic__item:nth-child(2) { grid-column: span 2; }
.mosaic--3 .mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic--3 .mosaic__item:nth-child(n+2) { grid-column: span 2; }
.mosaic--2 .mosaic__item { grid-column: span 2; grid-row: span 2; }
.js .mosaic__item.reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* Таймлайн: линия по центру, карточки по очереди слева и справа */
.timeline { padding: 70px 0 90px; }
.timeline__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.timeline__list::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; translate: -50% 0; background: linear-gradient(180deg, var(--blue), var(--violet), transparent); }
.timeline__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.timeline__item:nth-child(odd) .timeline__card { grid-column: 1; text-align: right; }
.timeline__item:nth-child(even) .timeline__card { grid-column: 2; }
.timeline__dot { position: absolute; left: 50%; top: 30px; width: 18px; height: 18px; translate: -50% 0; border-radius: 50%; background: var(--bg); border: 3px solid var(--violet); box-shadow: 0 0 0 6px color-mix(in srgb, var(--violet) 18%, transparent); z-index: 1; }
.timeline__card { padding: 24px 26px; transition: border-color .3s, transform .3s var(--ease); }
.timeline__card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.timeline__when { display: inline-block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline__title { margin: 6px 0 6px; font-size: 19px; font-weight: 800; }
.timeline__text { margin: 0; color: var(--muted); font-size: 15px; }
.timeline__item.is-future .timeline__card { border-style: dashed; }
.timeline__item.is-future .timeline__dot { border-style: dashed; animation: ping 2s infinite; }
.js .timeline__item.reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* Команда */
.team { padding: 40px 0 90px; }
.team__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px; }
.team__card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.team__photo { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; margin-bottom: 8px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--border-strong); transition: transform .4s var(--ease); }
.team__card:hover .team__photo { transform: translateY(-6px) rotate(-3deg); }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__photo span { font-size: 54px; font-weight: 800; color: #fff; }
.team__name { font-size: 17px; }
.team__role { font-size: 14px; color: var(--muted); }

/* Присоединяйтесь */
.join { padding: 70px 0 20px; }
.join__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  padding: clamp(36px, 5vw, 70px) 24px;
  border-radius: 30px;
  background: linear-gradient(120deg, var(--blue), var(--violet) 60%, #A35CFF);
  color: #fff;
}
.join__card::before, .join__card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.join__card::before { width: 320px; height: 320px; left: -90px; bottom: -150px; }
.join__card::after { width: 240px; height: 240px; right: -70px; top: -90px; }
.join__faces { display: flex; }
.join__faces img { width: 56px; height: 56px; border-radius: 50%; margin-left: -12px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.join__faces img:first-child { margin-left: 0; }
.join__title { margin: 0; max-width: 760px; font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.join__title .grad { background: none; color: #FFD27A; }
.join__text { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .85); font-size: 18px; }

@media (max-width: 860px) {
  .cside, .cside--flip { grid-template-columns: 1fr; padding: 30px 0 60px; }
  .cside--flip .cside__media { order: 0; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaic--4 .mosaic__item:nth-child(2), .mosaic--3 .mosaic__item:nth-child(n+2) { grid-column: span 1; }
  .timeline__list::before { left: 9px; translate: none; }
  .timeline__item { grid-template-columns: 1fr; padding-left: 36px; gap: 0; }
  .timeline__item:nth-child(odd) .timeline__card, .timeline__item:nth-child(even) .timeline__card { grid-column: 1; text-align: left; }
  .timeline__dot { left: 0; translate: none; }
  .crowd__face--4, .crowd__face--8, .crowd__face--9, .crowd__face--11, .crowd__face--12 { display: none; }
  .crowd__face--2 { top: auto; bottom: 18%; }
  .crowd__face--6 { top: auto; bottom: 20%; }
}
@media (max-width: 600px) {
  .crowd__face--2, .crowd__face--6, .crowd__face--10 { display: none; }
}

/* Длинный заголовок плитки переносится раньше значка, а не наезжает на него */
@media (max-width: 560px) {
  .why__tile:not(:first-child) .why__icon { width: 72px; height: 72px; top: 18px; right: 18px; }
  .why__tile:not(:first-child) .why__title { padding-right: 76px; }
}
