/* coolhack — оформление витрины.
   Тема «полярная ночь»: тёмно-синий фон, северное сияние, лёд.
   Розовый (--pink) — «слой чита»: рамки ESP, макет меню, агрессивность.
   Ледяной (--ice) — кнопки и ссылки сайта. Цвета и радиусы — в :root. */

@font-face { font-family: 'Fira Sans'; src: url('../fonts/FiraSans-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('../fonts/FiraSans-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('../fonts/FiraSans-SemiBold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('../fonts/FiraSans-ExtraBold.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;

  --bg: #0A1220;
  --surface: #111D33;
  --surface-2: #15243F;
  --card: linear-gradient(180deg, #12203A 0%, #0E192D 100%);
  --line: rgba(150, 182, 232, .12);
  --line-2: rgba(150, 182, 232, .22);

  --text: #EAF2FF;
  --text-2: #C6D4EC;
  --muted: #93A6C4;
  --muted-2: #7488AA;

  --ice: #8FE1FF;
  --ice-2: #BDEBFF;
  --ice-ink: #04162A;
  --pink: #FF4D8D;
  --violet: #8E7BFF;
  --ok: #5EE39A;
  --warn: #FFC85C;
  --frozen: #A9B7FF;
  --error: #FF8A9A;

  --font: 'Fira Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r-s: 8px;
  --r: 12px;
  --r-l: 18px;
  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 68px;
  --shadow: 0 28px 60px -30px rgba(0, 0, 0, .8);
}

/* ---------- основа */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-color: rgba(150, 182, 232, .28) transparent; interpolate-size: allow-keywords; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 640px at 6% -10%, rgba(94, 214, 255, .09), transparent 62%),
    radial-gradient(900px 560px at 98% -6%, rgba(142, 123, 255, .09), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }

main { flex: 1; outline: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--ice); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ice-2); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
::selection { background: rgba(143, 225, 255, .3); }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: var(--r-s); background: var(--ice); color: var(--ice-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.noscript { padding: 40px var(--gutter); text-align: center; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.boot { display: grid; place-items: center; min-height: 60vh; }
.boot__mark { width: 34px; height: 34px; border: 2px solid var(--pink); border-right-color: transparent; border-bottom-color: transparent; border-radius: 4px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot__error { max-width: 46ch; color: var(--muted); text-align: center; }

/* ---------- полосы прокрутки и появление при прокрутке ---------- */

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(150, 182, 232, .18); border: 3px solid var(--bg); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(150, 182, 232, .32); }

html.rv-on .rv { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .9, .25, 1); transition-delay: var(--rv-delay, 0ms); }
html.rv-on .rv.is-in { opacity: 1; transform: none; }

/* ---------- кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn--primary {
  background: linear-gradient(180deg, #BDF1FF 0%, #86D5FF 100%); color: var(--ice-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 30px -14px rgba(120, 210, 255, .7);
}
.btn--primary:hover { color: var(--ice-ink); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 16px 36px -12px rgba(120, 210, 255, .9); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { color: var(--text); background: rgba(255, 255, 255, .08); border-color: rgba(143, 225, 255, .45); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: rgba(255, 255, 255, .05); color: var(--muted-2); border-color: var(--line); box-shadow: none; transform: none; cursor: not-allowed; }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--muted); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .07); }

.link-btn { padding: 0; border: 0; background: none; color: var(--ice); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- полоса разработки и шапка */

.dev-bar { background: linear-gradient(90deg, rgba(255, 200, 92, .13), rgba(255, 200, 92, .04)); border-bottom: 1px solid rgba(255, 200, 92, .2); color: var(--warn); font-size: 13px; }
.dev-bar .wrap { padding-block: 7px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(10, 18, 32, .74); -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { position: relative; display: inline-block; flex: none; padding: 3px 9px 4px; color: var(--text); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; text-decoration: none; }
.logo:hover { color: var(--text); }
.logo::before, .logo::after { content: ''; position: absolute; width: 8px; height: 8px; border: 2px solid var(--pink); transition: transform .25s ease; }
.logo::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.logo::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.logo:hover::before { transform: translate(-3px, -3px); }
.logo:hover::after { transform: translate(3px, 3px); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .15s, background-color .15s; }
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); background: rgba(255, 255, 255, .07); }
.nav__extra { display: none; }

.header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header__burger { display: none; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 255, 255, .04); }
.lang a { padding: 4px 9px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.lang a:hover { color: var(--text); }
.lang a.is-on { background: rgba(143, 225, 255, .15); color: var(--text); }

.btn--account { gap: 7px; padding: 0 14px 0 10px; }
.btn--account .icon { width: 18px; height: 18px; }

/* ---------- общие блоки */

.section { padding-block: 84px; }
.section--rule { border-top: 1px solid var(--line); }
.section--tight { padding-block: 56px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 30px; }
.section__head--spaced { margin-top: 64px; }
.section__title { font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.5rem); }
.section__sub { margin-top: 10px; max-width: 60ch; color: var(--muted); }

.page-head { padding: 6px 0 36px; }
.page-head h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1.05; }
.page-head p { max-width: 60ch; margin-top: 14px; color: var(--text-2); font-size: 18px; }
.page-head--game { --h: 200; position: relative; isolation: isolate; margin-bottom: 28px; padding: 40px 36px 38px; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
  background: radial-gradient(90% 140% at 100% 0%, hsla(var(--h), 85%, 55%, .28), transparent 55%), var(--card); }
.page-head--game::after { content: attr(data-mark); position: absolute; right: -6px; bottom: -42px; z-index: -1; color: transparent; font-size: 180px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; -webkit-text-stroke: 1.5px hsla(var(--h), 90%, 72%, .2); }
.page-head__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 26px 0 20px; list-style: none; color: var(--muted); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--muted-2); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip small { margin-left: 5px; font-size: 13px; opacity: .65; }

.stat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }

.select {
  min-height: 38px; padding: 0 36px 0 15px; border: 1px solid var(--line-2); border-radius: 999px; appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, .03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393A6C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 16px;
  color: var(--text); font: inherit; font-size: 14px;
}
.select option { background: var(--surface); color: var(--text); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar label { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }

.status { --tone: var(--muted); display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 13%, transparent); color: var(--tone); font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status--ok { --tone: var(--ok); }
.status--warn { --tone: var(--warn); }
.status--frozen { --tone: var(--frozen); }
@media (prefers-reduced-motion: no-preference) {
  .status--ok i { animation: pulse-dot 2.4s ease-in-out infinite; }
}
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 8px currentColor; } 50% { box-shadow: 0 0 2px currentColor; opacity: .7; } }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(8, 15, 28, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.35; }
.badge--hit { border-color: rgba(255, 77, 141, .55); color: #FFC2D8; }
.badge--new { border-color: rgba(143, 225, 255, .55); color: var(--ice-2); }
.badge--sale { border-color: rgba(255, 200, 92, .55); color: #FFE2A8; }

.empty { color: var(--muted); max-width: 60ch; }

/* ---------- герой */

.hero { position: relative; isolation: isolate; padding: 64px 0 72px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; z-index: -2; left: -12%; right: -12%; top: -30%; height: 125%;
  background:
    radial-gradient(36% 46% at 16% 36%, rgba(84, 220, 255, .19), transparent 70%),
    radial-gradient(32% 42% at 56% 16%, rgba(142, 123, 255, .2), transparent 70%),
    radial-gradient(26% 40% at 88% 56%, rgba(255, 77, 141, .13), transparent 72%);
  filter: blur(26px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: aurora 16s ease-in-out infinite alternate; }
}
@keyframes aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2%, 2%, 0) scale(1.08); } }
.hero::after {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: url('../img/stars.svg') repeat 0 0 / 480px 480px; opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 92%); mask-image: linear-gradient(to bottom, #000 25%, transparent 92%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px 56px; }
.hero__lead { max-width: 44ch; color: var(--text-2); font-size: 18px; line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.esp { position: relative; display: inline-block; max-width: calc(100% - 16px); margin: 34px 0 44px 16px; padding: 28px 40px 32px 34px; }
.esp__c { position: absolute; width: 26px; height: 26px; border: 2px solid var(--pink); filter: drop-shadow(0 0 6px rgba(255, 77, 141, .55)); }
.esp__c--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; --dx: -20px; --dy: -20px; }
.esp__c--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; --dx: 20px; --dy: -20px; }
.esp__c--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; --dx: -20px; --dy: 20px; }
.esp__c--br { bottom: 0; right: 0; border-left: 0; border-top: 0; --dx: 20px; --dy: 20px; }
.esp__tag { position: absolute; left: 0; bottom: 100%; margin-bottom: 8px; color: var(--pink); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.esp__hp { position: absolute; top: 0; bottom: 0; left: -16px; width: 4px; border-radius: 2px; background: rgba(234, 242, 255, .1); overflow: hidden; }
.esp__hp i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--hp, 1) * 100%); background: var(--ok); box-shadow: 0 0 10px var(--ok); transform-origin: bottom; }
.esp--hp-warn .esp__hp i { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.esp--hp-low .esp__hp i { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.esp__label { position: absolute; right: 0; top: 100%; margin-top: 8px; color: var(--pink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.esp__label:hover { color: var(--text); text-decoration: underline; }
.hero__title { font-size: clamp(2.2rem, 1rem + 4vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; text-shadow: 0 2px 30px rgba(10, 18, 32, .6); }

@media (prefers-reduced-motion: no-preference) {
  .esp--animate .esp__c { animation: esp-lock .65s cubic-bezier(.2, .9, .25, 1) both; }
  .esp--animate .esp__hp i { animation: esp-hp .7s .45s ease-out both; }
  .esp--animate .esp__tag, .esp--animate .esp__label { animation: esp-fade .35s .6s both; }
}
@keyframes esp-lock { 0% { opacity: 0; transform: translate(var(--dx), var(--dy)); } 45% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes esp-hp { from { transform: scaleY(0); } }
@keyframes esp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .hero--intro .hero__title, .hero--intro .hero__lead, .hero--intro .hero__actions { animation: fade-up .45s ease both; }
  .hero--intro .hero__lead { animation-delay: .1s; }
  .hero--intro .hero__actions { animation-delay: .2s; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

.showcase { --h: 210; position: relative; padding: 24px 0 40px; perspective: 1400px; }
.showcase__glow { position: absolute; inset: 0 4% 10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, hsla(var(--h), 90%, 62%, .42), transparent); filter: blur(34px); }
.showcase .mock { max-width: 470px; margin-left: auto; transform: rotateY(-13deg) rotateX(7deg) rotateZ(.5deg); transform-origin: 60% 50%; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .05); }
.showcase__img { width: 100%; max-width: 520px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 14px; transform: rotateY(-13deg) rotateX(7deg); transform-origin: 60% 50%; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95); }
.showcase__chip {
  position: absolute; left: 0; bottom: 6px; display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border: 1px solid var(--line-2); border-radius: 16px; background: rgba(14, 24, 43, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.showcase__chip:hover { color: var(--text); border-color: rgba(143, 225, 255, .5); transform: translateY(-2px); }
.showcase__chip strong { display: block; font-size: 16px; }
.showcase__chip span { color: var(--muted); font-size: 13px; }
.showcase__chip .icon { color: var(--muted); }

/* ---------- преимущества */

.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-l); background: linear-gradient(180deg, rgba(21, 36, 63, .6), rgba(15, 26, 45, .45)); overflow: hidden; }
.why__item { display: flex; align-items: flex-start; gap: 14px; padding: 22px; }
.why__item + .why__item { border-left: 1px solid var(--line); }
.why__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(143, 225, 255, .1); color: var(--ice); }
.why__item:nth-child(2) .why__icon { background: rgba(142, 123, 255, .14); color: #B9AEFF; }
.why__item:nth-child(3) .why__icon { background: rgba(169, 183, 255, .12); color: var(--frozen); }
.why__item:nth-child(4) .why__icon { background: rgba(255, 77, 141, .12); color: #FF9CC1; }
.why h3 { margin-bottom: 4px; font-size: 16px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.why p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- игры */

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.game-tile {
  --h: 30; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 236px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
  background: radial-gradient(110% 150% at 100% 0%, hsla(var(--h), 85%, 55%, .3), transparent 55%), var(--card);
  color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.game-tile::after { content: attr(data-mark); position: absolute; right: -8px; bottom: -44px; z-index: -1; color: transparent; font-size: 176px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; -webkit-text-stroke: 1.5px hsla(var(--h), 90%, 72%, .22); }
.game-tile:hover { color: var(--text); border-color: hsla(var(--h), 85%, 65%, .5); transform: translateY(-3px); box-shadow: 0 30px 60px -34px hsla(var(--h), 90%, 50%, .6); }
.game-tile h3 { font-size: 30px; }
.game-tile p { max-width: 42ch; margin-top: 10px; color: var(--text-2); }
.game-tile__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.game-tile__go { position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--text); transition: background-color .2s; }
.game-tile:hover .game-tile__go { background: hsla(var(--h), 85%, 60%, .35); }

/* ---------- карточки товаров */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }

.card {
  --h: 200; display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); color: inherit; text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.card:hover { color: inherit; transform: translateY(-4px); border-color: hsla(var(--h), 80%, 72%, .38); box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .9), 0 0 50px -30px hsla(var(--h), 90%, 60%, .5); }
.card::before { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; z-index: 2; background: linear-gradient(90deg, transparent, hsla(var(--h), 90%, 72%, .9), transparent); opacity: 0; transition: opacity .3s ease; }
.card:hover::before { opacity: 1; }
.card__cover {
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 22px 26px; overflow: hidden; perspective: 900px;
  background:
    radial-gradient(90% 120% at 12% 0%, hsla(var(--h), 85%, 60%, .4), transparent 60%),
    radial-gradient(80% 100% at 100% 100%, hsla(calc(var(--h) + 40), 85%, 58%, .24), transparent 60%),
    #0A1426;
}
.card__cover::after { content: ''; position: absolute; inset: 0; background: url('../img/stars.svg') repeat 0 0 / 300px 300px; opacity: .25; pointer-events: none; }
.card__cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__cover > img { transform: scale(1.06); }
.card__cover .mock { position: relative; z-index: 1; transform: rotateX(9deg) rotateY(-7deg); transition: transform .35s ease; }
.card:hover .card__cover .mock { transform: rotateX(3deg) rotateY(-2deg) translateY(-3px); }
.card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.card__game { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 500; }
.card__game i { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--gh, 200), 85%, 62%); }
.card__title { font-size: 23px; }
.card__text { color: var(--muted); font-size: 15px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.card__price { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- макет меню чита */

.mock {
  width: 100%; max-width: 440px; overflow: hidden;
  border: 1px solid rgba(160, 190, 240, .16); border-radius: 10px; background: rgba(8, 16, 30, .94);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8);
  color: var(--text-2); font-size: 13px; line-height: 1.3; text-align: left; user-select: none;
}
.mock__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid rgba(160, 190, 240, .12); background: rgba(19, 33, 58, .7); }
.mock__brand { color: var(--pink); font-weight: 800; letter-spacing: -0.01em; }
.mock__name { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.mock__body { display: grid; grid-template-columns: 118px minmax(0, 1fr); min-height: 200px; }
.mock__tabs { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-right: 1px solid rgba(160, 190, 240, .1); }
.mock__tab { overflow: hidden; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--muted); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
button.mock__tab { cursor: pointer; }
button.mock__tab:hover { color: var(--text); }
.mock__tab.is-on { background: rgba(255, 77, 141, .13); box-shadow: inset 2px 0 0 var(--pink); color: var(--text); }
.mock__panes { min-width: 0; padding: 6px 14px 8px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(160, 190, 240, .08); background: none; color: inherit; text-align: left; }
.mock__row:last-child { border-bottom: 0; }
button.mock__row { cursor: pointer; }
.mock__row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__switch { position: relative; flex: none; width: 28px; height: 16px; border-radius: 8px; background: rgba(160, 190, 240, .2); transition: background-color .15s; }
.mock__switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: transform .15s, background-color .15s; }
.mock__row.is-on .mock__switch { background: var(--pink); box-shadow: 0 0 10px rgba(255, 77, 141, .45); }
.mock__row.is-on .mock__switch::after { transform: translateX(12px); background: #fff; }
.mock__slider { position: relative; flex: none; width: 76px; height: 4px; border-radius: 2px; background: rgba(160, 190, 240, .2); }
.mock__slider::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: var(--v, 50%); border-radius: 2px; background: var(--pink); }
.mock__slider::after { content: ''; position: absolute; top: 50%; left: var(--v, 50%); width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.mock__num { flex: none; min-width: 26px; color: var(--text-2); font-size: 11px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.mock__value { flex: none; max-width: 110px; overflow: hidden; padding: 2px 9px; border: 1px solid rgba(160, 190, 240, .18); border-radius: 7px; background: rgba(160, 190, 240, .08); color: var(--text-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

.mock--compact { font-size: 11px; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .9); }
.mock--compact .mock__bar { padding: 6px 10px; }
.mock--compact .mock__body { grid-template-columns: 84px minmax(0, 1fr); min-height: 0; }
.mock--compact .mock__tabs { padding: 6px; }
.mock--compact .mock__tab { padding: 5px 7px; }
.mock--compact .mock__panes { padding: 3px 10px 5px; }
.mock--compact .mock__row { padding: 6px 0; }
.mock--compact .mock__switch { width: 22px; height: 12px; }
.mock--compact .mock__switch::after { width: 8px; height: 8px; }
.mock--compact .mock__row.is-on .mock__switch::after { transform: translateX(10px); }
.mock--compact .mock__slider { width: 54px; }

.mock--large { max-width: 520px; font-size: 14px; }
.mock--large .mock__body { grid-template-columns: 134px minmax(0, 1fr); min-height: 236px; }

/* ---------- страница товара */

.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "media head" "media buy"; grid-template-rows: auto 1fr; gap: 0 48px; align-items: start; }
.product__head { grid-area: head; }
.media { grid-area: media; }
@media (min-width: 961px) { .media { position: sticky; top: calc(var(--header-h) + 20px); } }
.buy { grid-area: buy; }

.product__game { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.product__game i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--gh, 200), 85%, 62%); }
.product__title { margin-top: 6px; font-size: clamp(2.4rem, 1.6rem + 2.2vw, 3.3rem); line-height: 1.02; letter-spacing: -0.03em; }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 14px; color: var(--muted); font-size: 14px; }
.product__lead { color: var(--text-2); font-size: 17px; }
.product__badge { margin-top: 14px; }

.media__stage {
  --h: 200; position: relative; display: grid; place-items: center; min-height: 400px; padding: 40px 28px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-l);
  background: radial-gradient(70% 90% at 50% 0%, hsla(var(--h), 85%, 60%, .24), transparent 70%), radial-gradient(60% 70% at 100% 100%, hsla(calc(var(--h) + 40), 85%, 58%, .14), transparent 70%), #0A1426;
}
.media__stage::before {
  content: ''; position: absolute; inset: 14px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--pink), var(--pink)) left top / 18px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) left top / 2px 18px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right top / 18px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right top / 2px 18px no-repeat,
    linear-gradient(var(--pink), var(--pink)) left bottom / 18px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) left bottom / 2px 18px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 18px 2px no-repeat,
    linear-gradient(var(--pink), var(--pink)) right bottom / 2px 18px no-repeat;
}
.media__stage::after { content: ''; position: absolute; inset: 0; background: url('../img/stars.svg') repeat 0 0 / 360px 360px; opacity: .3; pointer-events: none; }
.media__stage > * { position: relative; z-index: 1; }
.media__view { width: 100%; display: grid; place-items: center; }
.media__view > img { width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: var(--r-s); cursor: zoom-in; }
.media__view > video, .media__view > iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-s); background: #000; }
.media__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(8, 15, 28, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--text); opacity: .45; cursor: pointer; transition: background-color .15s, border-color .15s, opacity .2s; }
.media__stage:hover .media__arrow, .media__arrow:focus-visible { opacity: 1; }
.media__arrow:hover { color: var(--text); background: rgba(143, 225, 255, .2); border-color: rgba(143, 225, 255, .5); }
.media__arrow--prev { left: 12px; }
.media__arrow--next { right: 12px; }
.media__arrow .icon { width: 18px; height: 18px; }
.media__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.media__thumbs::-webkit-scrollbar { display: none; }
.media__thumb { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 46px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s; }
.media__thumb img { width: 60px; height: 38px; border-radius: 6px; object-fit: cover; }
.media__thumb > .icon { margin-left: 10px; }
.media__thumb[aria-pressed="true"] { border-color: rgba(143, 225, 255, .7); color: var(--text); background: rgba(143, 225, 255, .07); transform: translateY(-1px); }
.media__caption { margin-top: 12px; color: var(--muted-2); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .media__view > * { animation: media-in .3s ease; }
}
@keyframes media-in { from { opacity: 0; transform: scale(.985); } }

.plans { display: grid; gap: 10px; min-width: 0; margin: 26px 0 18px; padding: 0; border: 0; }
.plans legend { margin-bottom: 10px; padding: 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.plan {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "dot days price" "dot per best";
  align-items: center; gap: 2px 14px; padding: 14px 18px 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, .03); cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.plan:hover { border-color: rgba(143, 225, 255, .4); }
.plan input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.plan__dot { grid-area: dot; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--line-2); border-radius: 50%; transition: border-color .15s; }
.plan__dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ice); transform: scale(0); transition: transform .15s; }
.plan.is-checked { border-color: rgba(143, 225, 255, .75); background: linear-gradient(180deg, rgba(143, 225, 255, .11), rgba(143, 225, 255, .04)); box-shadow: 0 0 0 3px rgba(143, 225, 255, .08); }
.plan.is-checked .plan__dot { border-color: var(--ice); }
.plan.is-checked .plan__dot::after { transform: scale(1); }
.plan:has(input:focus-visible) { outline: 2px solid var(--ice); outline-offset: 2px; }
.plan.is-disabled { opacity: .5; cursor: not-allowed; }
.plan__days { grid-area: days; font-weight: 600; }
.plan__price { grid-area: price; justify-self: end; font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__per { grid-area: per; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.plan__best { grid-area: best; justify-self: end; color: var(--ice); font-size: 13px; font-weight: 600; }

.buy__note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.buy__after { margin-top: 18px; }
.buy__ask { margin-top: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 14px; }
.buy__ask strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 15px; }

.pnav { position: sticky; top: var(--header-h); z-index: 20; margin-top: 64px; border-bottom: 1px solid var(--line); background: rgba(10, 18, 32, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pnav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pnav__in::-webkit-scrollbar { display: none; }
.pnav__btn { flex: none; padding: 16px 12px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; transition: color .15s, border-color .15s; }
.pnav__btn:hover { color: var(--text); }
.pnav__btn.is-on { border-bottom-color: var(--ice); color: var(--text); }

.psec { padding-block: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 56px); }
.psec:last-child { border-bottom: 0; }
.psec__title { margin-bottom: 26px; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); }

.specs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.spec-list { margin: 0; padding: 6px 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(255, 255, 255, .02); }
.spec-list > div { display: grid; grid-template-columns: minmax(150px, 40%) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; }

.risk { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: linear-gradient(180deg, rgba(255, 77, 141, .07), rgba(255, 77, 141, .01)); }
.risk__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.risk__title { font-weight: 600; }
.risk__value { color: var(--pink); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.risk__bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.risk__bar i { height: 10px; border-radius: 3px; background: rgba(160, 190, 240, .16); }
.risk__bar i.on { background: var(--pink); box-shadow: 0 0 10px rgba(255, 77, 141, .35); }
.risk__note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.risk__note strong { color: var(--text); font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.feature-group { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(255, 255, 255, .025); }
.feature-group h3 { margin-bottom: 14px; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); }
.checklist .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--ice); }

.hotkeys { margin-top: 28px; }
.hotkeys h3 { margin-bottom: 14px; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.hotkeys dl { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; }
.hotkeys dl > div { display: flex; align-items: center; gap: 10px; }
.hotkeys dd { margin: 0; color: var(--text-2); }
kbd { display: inline-block; min-width: 32px; padding: 4px 9px; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 7px; background: var(--surface); color: var(--text); font: 600 13px/1.4 var(--font); text-align: center; }

.prose { max-width: 68ch; }
.prose p { color: var(--text-2); font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }

.steps { display: grid; max-width: 780px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--text-2); counter-increment: step; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-top: -4px; border: 1px solid rgba(143, 225, 255, .35); border-radius: 50%; background: rgba(143, 225, 255, .08); color: var(--ice); font-size: 14px; font-weight: 600; }

.howto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.howto li { position: relative; padding-top: 56px; counter-increment: step; }
.howto li::before { content: counter(step); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(143, 225, 255, .35); border-radius: 50%; background: rgba(143, 225, 255, .08); color: var(--ice); font-weight: 700; }
.howto li::after { content: ''; position: absolute; top: 20px; left: 54px; right: -18px; height: 1px; background: linear-gradient(90deg, rgba(143, 225, 255, .35), var(--line)); }
.howto li:last-child::after { display: none; }
.howto h3 { margin-bottom: 8px; font-size: 19px; font-weight: 600; letter-spacing: 0; }
.howto p { color: var(--muted); font-size: 15px; }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline > li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline > li:first-child { padding-top: 0; }
.timeline > li:last-child { border-bottom: 0; }
.timeline time { padding-top: 2px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.timeline h3 { margin-bottom: 6px; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.timeline h3 a { color: var(--text); }
.timeline ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.timeline li li + li { margin-top: 4px; }
.timeline__product { display: block; margin-bottom: 2px; color: var(--muted); font-size: 14px; }

.accordion { display: grid; gap: 10px; max-width: 860px; }
.acc { border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); transition: border-color .2s, background-color .2s; }
.acc[open] { border-color: var(--line-2); background: rgba(255, 255, 255, .045); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 600; list-style: none; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--ice-2); }
.acc summary .icon { color: var(--muted); transition: transform .2s; }
.acc[open] summary .icon { transform: rotate(180deg); }
.acc::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.acc[open]::details-content { block-size: auto; }
.acc__body { max-width: 72ch; padding: 0 18px 18px; color: var(--text-2); }

/* ---------- отзывы */

.reviews__sum { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; color: var(--muted); }
.reviews__sum strong { color: var(--text); font-size: 34px; font-weight: 800; }
.reviews__list { display: grid; gap: 14px; max-width: 860px; margin: 0 0 28px; padding: 0; list-style: none; }
.review { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(255, 255, 255, .025); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.review__head time { color: var(--muted-2); font-size: 13px; }
.review__verified { color: var(--ok); font-size: 13px; font-weight: 600; }
.review p { color: var(--text-2); }
.review__reply { margin-top: 12px; padding-left: 12px; border-left: 2px solid rgba(143, 225, 255, .4); color: var(--muted); font-size: 15px; }
.stars { display: inline-flex; gap: 2px; color: var(--warn); }
.stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.stars .off { color: rgba(160, 190, 240, .25); }

.review-form { display: grid; gap: 18px; max-width: 620px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }
.review-form h3 { font-size: 20px; letter-spacing: 0; }
.stars-input { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stars-input label { padding: 2px; border-radius: 4px; color: rgba(160, 190, 240, .28); cursor: pointer; }
.stars-input .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--warn); }
.stars-input input:focus-visible + label { outline: 2px solid var(--ice); outline-offset: 1px; }
.login-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 620px; margin-top: 20px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-l); color: var(--muted); }

/* ---------- формы */

.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label:not(.check), .field > legend, .field__label { padding: 0; color: var(--text); font-size: 14px; font-weight: 500; }
.field > legend { margin-bottom: 7px; }
.field__inline { display: flex; gap: 8px; }
.field__inline .input { flex: 1; min-width: 0; }
.field__hint { color: var(--muted-2); font-size: 13px; }
.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: rgba(6, 13, 25, .7); color: var(--text); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted-2); }
.input:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(143, 225, 255, .16); }
.input[aria-invalid="true"] { border-color: var(--error); }
textarea.input { height: auto; min-height: 120px; padding: 11px 14px; line-height: 1.5; resize: vertical; }
.field__error, .form-error { color: var(--error); font-size: 14px; }
.field__msg { color: var(--ok); font-size: 13px; }
.field__msg.is-error { color: var(--error); }

.check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ice); }

.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay { display: flex; flex: 1 1 auto; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(255, 255, 255, .03); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: border-color .15s, background-color .15s; }
.pay input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pay__dot { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 50%; }
.pay__dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); transform: scale(0); transition: transform .15s; }
.pay.is-checked { border-color: rgba(143, 225, 255, .7); background: rgba(143, 225, 255, .08); }
.pay.is-checked .pay__dot { border-color: var(--ice); }
.pay.is-checked .pay__dot::after { transform: scale(1); }
.pay:has(input:focus-visible) { outline: 2px solid var(--ice); outline-offset: 2px; }

/* ---------- модальные окна */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(3, 8, 16, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: min(100%, 500px); padding: 30px; border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(180deg, #13213B 0%, #0D1729 100%); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); outline: none; }
.modal__box--wide { width: min(100%, 1080px); padding: 18px; }
.modal__box--search { align-self: start; width: min(100%, 640px); margin-top: 8vh; padding: 18px; }
.modal__close { position: absolute; top: 16px; right: 16px; }
.modal__title { margin-bottom: 8px; padding-right: 40px; font-size: 26px; }
.modal__lead { margin-bottom: 20px; color: var(--muted); }
.modal__text { color: var(--text-2); }
.modal__text + .modal__text { margin-top: 10px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.modal__box--wide img { width: 100%; height: auto; border-radius: var(--r-s); }

@media (prefers-reduced-motion: no-preference) {
  .modal { animation: modal-fade .16s ease-out; }
  .modal__box { animation: modal-rise .24s cubic-bezier(.2, .9, .25, 1); }
}
@keyframes modal-fade { from { opacity: 0; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.order { margin: 16px 0 22px; padding: 4px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.order__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.order__row:last-child { border-bottom: 0; }
.order__row > span:first-child { color: var(--muted); }
.order__row--head > span:first-child { color: var(--text); font-weight: 600; }
.order__row--discount > span:last-child { color: var(--ok); }
.order__row--total strong { font-size: 22px; font-weight: 800; }

.checkout { display: grid; gap: 18px; }
.checkout__as { color: var(--muted); font-size: 14px; }
.checkout__note { color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- вход и регистрация */

.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 22px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .03); }
.auth__tab { min-height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.auth__tab[aria-selected="true"] { background: rgba(143, 225, 255, .14); color: var(--text); }
.auth__form { display: grid; gap: 16px; }
.auth__foot { color: var(--muted-2); font-size: 13px; }
.auth-page { display: grid; place-items: center; padding: 40px 0 96px; }
.auth-card { width: min(100%, 460px); padding: 32px; border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(180deg, rgba(19, 33, 59, .92), rgba(13, 23, 41, .92)); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 30px; }
.auth-card > p { margin: 8px 0 24px; color: var(--muted); }

/* ---------- личный кабинет */

.account { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 96px; }
.account__side { position: sticky; top: calc(var(--header-h) + 20px); padding: 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }
.avatar { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--ice) 0%, var(--violet) 100%); color: #07142A; font-size: 23px; font-weight: 800; text-transform: uppercase; }
.account__email { margin-top: 14px; font-weight: 600; overflow-wrap: anywhere; }
.account__since { margin-top: 2px; color: var(--muted); font-size: 13px; }
.account__nav { display: grid; gap: 4px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.account__navbtn { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 500; text-align: left; cursor: pointer; }
.account__navbtn:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.account__navbtn.is-on { color: var(--text); background: rgba(143, 225, 255, .1); }
.account__main h2 { margin-bottom: 20px; font-size: 28px; }

.orders { display: grid; gap: 16px; }
.order-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }
.order-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.order-card__game { color: var(--muted); font-size: 13px; }
.order-card__title { margin-top: 2px; font-size: 22px; }
.order-card__title a { color: var(--text); text-decoration: none; }
.order-card__title a:hover { text-decoration: underline; }
.order-card__meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 18px 0 0; }
.order-card__meta dt { color: var(--muted); font-size: 13px; }
.order-card__meta dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.order-card__note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 200, 92, .08); color: #FFE2A8; font-size: 14px; }
.order-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pill { display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill--pending { background: rgba(255, 200, 92, .14); color: var(--warn); }
.pill--paid { background: rgba(94, 227, 154, .14); color: var(--ok); }
.pill--cancelled { background: rgba(160, 190, 240, .12); color: var(--muted); }
.keybox { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 10px 10px 16px; border: 1px dashed rgba(143, 225, 255, .45); border-radius: 12px; background: rgba(6, 13, 25, .75); }
.keybox__label { color: var(--muted); font-size: 13px; }
.keybox code { flex: 1; min-width: 0; color: var(--ice-2); font-size: 15px; overflow-wrap: anywhere; }
.empty-state { padding: 40px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-l); text-align: center; }
.empty-state p { margin-bottom: 18px; color: var(--muted); }
.settings-card { max-width: 520px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }
.settings-card form { display: grid; gap: 16px; }

/* ---------- поиск */

.search__field { position: relative; }
.search__field .icon { position: absolute; top: 50%; left: 15px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.search__input { height: 54px; padding-left: 46px; padding-right: 48px; font-size: 18px; }
.search__list { max-height: 60vh; margin: 10px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.search__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; color: inherit; text-decoration: none; }
.search__list a:hover, .search__list a:focus-visible, .search__list a.is-first { background: rgba(255, 255, 255, .05); }
.search__name { font-weight: 600; }
.search__game { display: block; color: var(--muted); font-size: 13px; }
.search__empty { padding: 14px 12px 6px; color: var(--muted); }

/* ---------- уведомления */

#toasts { position: fixed; bottom: 20px; left: 50%; z-index: 200; display: grid; gap: 8px; width: min(92vw, 440px); transform: translateX(-50%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in .25s ease; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.toast { padding: 13px 16px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7); font-size: 14px; font-weight: 500; transition: opacity .3s, transform .3s; }
.toast.is-out { opacity: 0; transform: translateY(6px); }

/* ---------- статус, помощь, документы */

.table-wrap { border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(255, 255, 255, .02); overflow: hidden; }
.status-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.status-table th { padding: 14px 18px; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; }
.status-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.status-table tr:last-child td { border-bottom: 0; }
.status-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.status-table a { color: var(--text); font-weight: 600; text-decoration: none; }
.status-table a:hover { text-decoration: underline; }
.status-table .t-game-inline { display: none; color: var(--muted); font-size: 13px; }
.status-table .t-date { color: var(--muted); white-space: nowrap; }

.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.legend > div { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(255, 255, 255, .02); }
.legend p { margin-top: 10px; color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: start; }

.support { position: relative; overflow: hidden; padding: 28px; border: 1px solid var(--line-2); border-radius: var(--r-l); background: radial-gradient(120% 120% at 100% 0%, rgba(142, 123, 255, .2), transparent 55%), var(--card); }
.support h2 { margin-bottom: 10px; font-size: 22px; }
.support p { color: var(--muted); }
.support__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.doc { max-width: 74ch; padding-bottom: 72px; }
.doc h2 { margin: 36px 0 10px; font-size: 22px; }
.doc p { color: var(--text-2); }
.doc p + p { margin-top: 10px; }

.after-pay { max-width: 860px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(255, 255, 255, .025); color: var(--text-2); }

.notfound { padding-bottom: 96px; }

/* ---------- подвал */

.footer { margin-top: 24px; padding: 56px 0 30px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(8, 15, 28, .2), rgba(8, 15, 28, .9)); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__brand p { max-width: 38ch; margin-top: 14px; color: var(--muted); font-size: 14px; }
.footer__warn { color: var(--muted-2) !important; font-size: 13px !important; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col h2 { margin-bottom: 4px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.footer__col a, .footer__col span { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer__col a:hover { color: var(--text); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; }

/* ---------- адаптив */

@media (max-width: 1100px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__item:nth-child(3) { border-left: 0; }
  .why__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .howto { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
  .howto li:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .header__in { gap: 12px; }
  .header__burger { display: inline-grid; }
  .header__tools .lang, .header__support { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 20px; border-bottom: 1px solid var(--line); background: rgba(10, 18, 32, .98); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .8);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px; font-size: 16px; }
  .nav__extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; padding: 14px 12px 0; border-top: 1px solid var(--line); }
  .nav__extra .lang { display: inline-flex; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .showcase { max-width: 560px; }
  .showcase .mock, .showcase__img { margin-left: 0; transform: rotateY(-8deg) rotateX(5deg); }
  .showcase__chip { left: auto; right: 0; }
  .product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "media" "buy"; grid-template-rows: auto; gap: 24px; }
  .specs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .legend { grid-template-columns: minmax(0, 1fr); }
  .account { grid-template-columns: minmax(0, 1fr); }
  .account__side { position: static; }
  .account__nav { grid-template-columns: repeat(3, auto); justify-content: start; }
}

@media (max-width: 720px) {
  .games { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .btn--account span { display: none; }
  .btn--account { width: 40px; padding: 0; }
  .section { padding-block: 60px; }
  .hero { padding: 40px 0 48px; }
  .esp { max-width: calc(100% - 12px); margin: 30px 0 42px 12px; padding: 20px 22px 24px 20px; }
  .esp__c { width: 20px; height: 20px; }
  .esp__hp { left: -12px; width: 3px; }
  .hero__lead { font-size: 17px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .showcase { padding-bottom: 64px; }
  .showcase__chip { left: 0; right: 0; }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why__item + .why__item { border-left: 0; border-top: 1px solid var(--line); }
  .game-tile { min-height: 0; padding: 24px; }
  .game-tile h3 { font-size: 26px; }
  .page-head--game { padding: 28px 22px; }
  .howto { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .howto li { padding: 0 0 0 56px; }
  .howto li::after { display: none; }
  .media__stage { min-height: 0; padding: 34px 16px; }
  .mock__body, .mock--large .mock__body { grid-template-columns: 96px minmax(0, 1fr); min-height: 0; }
  .mock--large { font-size: 13px; }
  .spec-list { padding: 4px 16px; }
  .spec-list > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
  .timeline > li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .status-table .t-game { display: none; }
  .status-table .t-game-inline { display: block; }
  .status-table th, .status-table td { padding-inline: 12px; }
  .modal { padding: 12px; }
  .modal__box { padding: 24px 18px; border-radius: 18px; }
  .auth-card { padding: 24px 20px; }
  .account__nav { grid-template-columns: minmax(0, 1fr); }
  .order-card { padding: 18px; }
  .order-card__meta { gap: 10px 22px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
