/* ============================================================
   HellaRP — styles
   ============================================================ */

:root {
  --bg: #05070c;
  --bg-2: #080b12;
  --surface: #0c1019;
  --surface-2: #111724;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f5f9;
  --muted: #8a93a6;
  --blue: #1f6bff;
  --cyan: #33d1ff;
  --warm: #d8ccb2;
  --grad: linear-gradient(100deg, #3fd6ff 0%, #1d7dff 45%, #0a3dff 100%);

  --f-display: 'Geologica', 'Manrope', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sec: clamp(88px, 11vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Плёночное зерно поверх сайта — статичная картинка, GPU не нагружает */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.i { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Textures ---------- */
.tex-grid {
  background-image:
    linear-gradient(rgba(120, 160, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
}
.tex-hatch { background-image: repeating-linear-gradient(-62deg, rgba(140, 170, 255, .05) 0 1px, transparent 1px 12px); }
.tex-dots {
  background-image: radial-gradient(rgba(140, 170, 255, .16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 10%, transparent 75%);
}
.tex-topo {
  background-image:
    repeating-radial-gradient(ellipse 60% 45% at 18% 30%, transparent 0 22px, rgba(90, 140, 255, .08) 23px 24px),
    repeating-radial-gradient(ellipse 50% 60% at 85% 75%, transparent 0 26px, rgba(90, 140, 255, .06) 27px 28px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

/* ---------- Type ---------- */
.title, .hero__title, .final__title {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  font-variation-settings: 'slnt' -9;
  letter-spacing: -.02em;
  line-height: .95;
}
.title { font-size: clamp(34px, 5vw, 68px); }
.title .grad, .final__title .grad { padding-right: .08em; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.kicker span {
  display: grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 8px;
  border: 1px solid var(--line-2); border-radius: 6px; color: var(--text);
  transform: skewX(-9deg);
}
.head { margin-bottom: clamp(36px, 5vw, 64px); }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.head__aside { max-width: 380px; }
.link { display: inline-flex; align-items: center; gap: 10px; transition: color .3s; }
.link:hover { color: var(--text); }

/* ---------- Tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  border: 1px solid var(--line-2); border-radius: 7px;
  font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
  background: rgba(255, 255, 255, .03);
  white-space: nowrap;
}
.tag .i { width: 13px; height: 13px; }
.tag--blue { background: rgba(31, 107, 255, .16); border-color: rgba(31, 107, 255, .5); color: #9cc0ff; }
.tag--warm { background: rgba(216, 204, 178, .08); border-color: rgba(216, 204, 178, .35); color: var(--warm); }
.tag--live { color: #8dffc1; border-color: rgba(70, 230, 140, .3); background: rgba(70, 230, 140, .07); }
.live__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fe68c; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 230, 140, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(63, 230, 140, 0); } }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border-radius: 12px;
  font: 700 15px/1 var(--f-body);
  white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, border-color .3s, box-shadow .4s;
}
.btn .i { transition: transform .4s var(--ease); }
.btn:hover .i:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn--xl { --h: 64px; padding: 0 40px; font-size: 17px; border-radius: 16px; }
.btn--block { width: 100%; }
/* Основная кнопка: белая, при наведении — синяя */
.btn--primary {
  background: #fff; color: #0a1330;
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, .35);
}
.btn--primary::before { /* бегущий блик (паттерн shimmer-button) */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn--primary:hover { background: var(--blue); color: #fff; box-shadow: 0 16px 40px -10px rgba(31, 107, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover::before { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .07); }

.glass { background: rgba(12, 16, 25, .66); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---------- Spotlight cards (паттерн с 21st.dev, на чистом CSS) ---------- */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 107, 255, .14), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(80, 160, 255, .9), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- Декор фонов: блики, слова, серые логотипы ---------- */
.deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.deco__tex { position: absolute; inset: 0; }
.deco__flare { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(31, 107, 255, .26), transparent 65%); }
.deco__flare--cyan { background: radial-gradient(circle, rgba(51, 209, 255, .14), transparent 65%); }
.deco__word {
  position: absolute; left: var(--gutter); top: var(--y);
  font: 900 clamp(90px, 16vw, 260px)/.85 var(--f-display); font-variation-settings: 'slnt' -10; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .075); white-space: nowrap; user-select: none;
}
.deco__word--right { left: auto; right: var(--gutter); }
.deco__logo { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -50%) rotate(var(--r)); filter: grayscale(1) brightness(2); opacity: .045; }

/* ---------- Фоновая текстура секций: тёмно-синий градиент + широкие диагональные полосы + тёмные осколки ---------- */
.tex-stripes {
  background:
    repeating-linear-gradient(-56deg, rgba(90, 140, 255, .045) 0 64px, transparent 64px 128px),
    radial-gradient(ellipse 55% 65% at 78% 35%, rgba(31, 107, 255, .2), transparent 70%),
    linear-gradient(160deg, #0c1734 0%, #091025 45%, #06090f 100%);
}
.shard { position: absolute; bottom: -1px; height: clamp(60px, 9vw, 130px); background: var(--bg); }
.shard--l { left: 0; width: 38%; clip-path: polygon(0 25%, 100% 100%, 0 100%); }
.shard--r { right: 0; width: 55%; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.footer__cta .shard { background: var(--bg-2); }

/* Мягкое круглое свечение за персонажем */
.char-glow { position: absolute; left: 50%; top: 46%; width: 110%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle closest-side, rgba(31, 107, 255, .45), rgba(31, 107, 255, .12) 50%, transparent 100%); pointer-events: none; }

/* ---------- Экран загрузки ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(31, 107, 255, .14), transparent 70%), var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.js .loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__inner img { width: 168px; animation: loaderIn .8s var(--ease) both; }
.loader__bar { width: 168px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.loader__bar i { display: block; width: 40%; height: 100%; background: var(--grad); animation: loaderBar 1.1s ease-in-out infinite; }
.loader__txt { font-size: 10px; color: var(--muted); letter-spacing: .2em; }
@keyframes loaderIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes loaderBar { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

/* ============ HEADER: прозрачный сверху, тёмная панель при прокрутке ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h); padding-inline: var(--gutter);
  transition: transform .6s var(--ease);
}
.header::before { /* фон панели появляется при прокрутке */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 7, 12, .92), rgba(5, 7, 12, .78));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  opacity: 0; transition: opacity .5s;
}
.header::after { /* тонкая синяя линия снизу */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 107, 255, .7) 30%, rgba(51, 209, 255, .7) 50%, rgba(31, 107, 255, .7) 70%, transparent);
  opacity: 0; transition: opacity .5s;
}
.header.is-scrolled::before, .header.is-scrolled::after { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header__bar { max-width: calc(var(--wrap) + 40px); height: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.header__logo { justify-self: start; }
.header__logo img { width: 118px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link { padding: 10px 14px; font-size: 14px; font-weight: 600; color: #8f98aa; transition: color .25s; }
.nav__link:hover, .nav__link.is-active { color: #fff; }
.header__actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.header__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #aab3c4; transition: color .3s, background-color .3s; }
.header__icon:hover { color: #fff; background: rgba(31, 107, 255, .16); }
.header__icon .i { width: 19px; height: 19px; }
.header__play { height: 42px; }
.header__cab { height: 42px; border-color: transparent; background: transparent; color: #c3cad8; }
.header__cab:hover { color: #fff; }
.burger { display: none; position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); }
.burger span { position: absolute; left: 12px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease), opacity .3s, width .5s var(--ease); }
.burger span:nth-child(1) { top: 14px; width: 18px; }
.burger span:nth-child(2) { top: 20px; width: 12px; }
.burger span:nth-child(3) { top: 26px; width: 16px; }
.menu-open .burger span:nth-child(1) { width: 18px; transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.menu-open .burger span:nth-child(3) { width: 18px; transform: translateY(-6px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 45; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 104px var(--gutter) 24px;
  background: var(--bg);
  clip-path: inset(0 0 100% 0 round 0 0 28px 28px);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility .7s;
}
.menu-open .menu { clip-path: inset(0 0 0 0 round 0); visibility: visible; }
.menu__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.menu__glow { position: absolute; right: -30%; top: 20%; width: 120vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(31, 107, 255, .3), transparent 60%); }
.menu__word { position: absolute; left: -4%; bottom: 22%; font: 900 42vw/1 var(--f-display); font-variation-settings: 'slnt' -10; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .05); white-space: nowrap; }
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.menu__idx { font: 500 11px var(--f-mono); color: var(--muted); }
.menu__txt { font: 800 clamp(26px, 7.4vw, 38px)/1 var(--f-display); text-transform: uppercase; font-variation-settings: 'slnt' -9; letter-spacing: -.01em; }
.menu__link .i { color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.menu__link:active .i, .menu__link:hover .i { color: var(--cyan); transform: translate(3px, -3px); }
.menu__foot { display: grid; gap: 14px; }
.menu__status { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; color: var(--muted); }
.menu__status b { color: var(--text); }
.menu__socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.menu__socials a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .03); }

/* ============ HERO: крупный лайнап, цвет проявляется под курсором ============ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 720px; max-height: 1250px;
  padding: calc(var(--header-h) + 40px) var(--gutter) 0;
  text-align: center;
}
.hero__bg { position: absolute; inset: 0; z-index: -4; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) brightness(.24) contrast(1.15); }
.hero__grid { position: absolute; inset: 0; z-index: -3; }
.hero__aura {
  position: absolute; z-index: -2; left: 50%; bottom: -10%;
  width: min(1700px, 150vw); height: 85%; transform: translateX(-50%);
  background: radial-gradient(ellipse 50% 55% at 50% 60%, rgba(31, 107, 255, .45), transparent 70%), radial-gradient(ellipse 30% 30% at 18% 70%, rgba(51, 209, 255, .14), transparent 70%);
}
.hero__content { position: relative; z-index: 3; max-width: 1100px; margin: 0 auto; }
.hero__online { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero__online b { color: var(--text); font-variant-numeric: tabular-nums; }
.hero__beta { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero__beta span {
  position: absolute; left: var(--x); top: var(--y);
  font: 900 calc(var(--s) * clamp(70px, 9vw, 150px))/1 var(--f-display); font-variation-settings: 'slnt' -10; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(110, 160, 255, .13);
  transform: rotate(var(--r));
}
.hero__title { font-size: clamp(46px, 7vw, 116px); margin-bottom: 16px; text-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.hero__title .grad { padding-right: .06em; }
.hero__lead { max-width: 540px; margin: 0 auto; font-size: clamp(15px, 1.2vw, 18px); color: #b9c1d0; }
/* лайнап занимает всю нижнюю часть экрана; ширина ограничена, высота подстраивается */
.lineup-wrap { position: absolute; z-index: 1; left: -50%; right: -50%; bottom: 0; top: 30%; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.lineup {
  position: relative; pointer-events: auto; cursor: crosshair;
  height: 100%; max-width: 106vw; aspect-ratio: 2000 / 558;
  --mx: 50%; --my: 50%; --r: 0px;
}
.lineup img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 34%); mask-image: linear-gradient(0deg, transparent 0%, #000 34%); }
.lineup__gray { filter: grayscale(1) brightness(.6) contrast(1.15); }
/* цветной слой виден только внутри «фонарика» (и тоже растворяется снизу) */
.lineup .lineup__color {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 45%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 34%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle var(--r) at var(--mx) var(--my), #000 45%, transparent 100%), linear-gradient(0deg, transparent 0%, #000 34%);
  mask-composite: intersect;
}
.hero__dock { position: absolute; z-index: 3; left: 0; right: 0; bottom: clamp(28px, 5vh, 56px); display: grid; justify-items: center; gap: 16px; padding-inline: var(--gutter); pointer-events: none; }
.hero__dock > * { pointer-events: auto; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.btn--glass { border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 14, 22, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.lineup__hint { font-size: 10px; color: #8a93a6; transition: opacity .5s; }
.hero.is-touched .lineup__hint { opacity: 0; }

/* ============ ABOUT + PATHS ============ */
.about {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: var(--sec) var(--gutter);
  text-align: center;
}
.about__tex { position: absolute; inset: 0; z-index: -3; }
.about__side { position: absolute; z-index: -1; bottom: 0; width: min(36vw, 560px); transition: filter .7s var(--ease), transform 1s var(--ease); filter: grayscale(.35) brightness(.62); }
.about__side img { width: 100%; -webkit-mask-image: linear-gradient(0deg, transparent 2%, #000 35%); mask-image: linear-gradient(0deg, transparent 2%, #000 35%); }
.about__side--law { left: -3vw; }
.about__side--street { right: -3vw; }
.about__side::before { content: ''; position: absolute; inset: 10% 0 0; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: 0; transition: opacity .7s; }
.about__side--law::before { background: rgba(31, 107, 255, .5); }
.about__side--street::before { background: rgba(216, 204, 178, .25); }
.about[data-path="law"] .about__side--law, .about[data-path="street"] .about__side--street { filter: none; transform: scale(1.03); }
.about[data-path="law"] .about__side--law::before, .about[data-path="street"] .about__side--street::before { opacity: 1; }
.about[data-path="law"] .about__side--street, .about[data-path="street"] .about__side--law { filter: grayscale(1) brightness(.3); }
.about__center { position: relative; max-width: 660px; }
.about__title {
  font: 800 clamp(48px, 7vw, 108px)/.9 var(--f-display); text-transform: uppercase; font-variation-settings: 'slnt' -9; letter-spacing: -.03em;
  margin-bottom: 26px;
}
.about__title .grad { display: block; padding-right: .06em; }
.about__text { max-width: 520px; margin: 0 auto 44px; font-size: clamp(16px, 1.25vw, 18px); color: #b9c1d0; }
.about__text b { color: #fff; }

/* Выбор пути: два «дуэльных» блока */
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.duel__side {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 6px; padding: 22px 24px 20px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: rgba(8, 11, 18, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .4s, transform .5s var(--ease), background-color .4s;
}
.duel__side--street { text-align: right; }
.duel__side::before { /* цветная заливка, выезжает при выборе */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
}
.duel__side--law::before { background: linear-gradient(135deg, rgba(31, 107, 255, .45), rgba(31, 107, 255, .05) 70%); }
.duel__side--street::before { background: linear-gradient(225deg, rgba(216, 204, 178, .3), rgba(216, 204, 178, .03) 70%); }
.duel__side small { font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.duel__side b { font: 800 clamp(34px, 3.6vw, 52px)/.95 var(--f-display); text-transform: uppercase; font-variation-settings: 'slnt' -9; letter-spacing: -.02em; }
.duel__side--law b { color: #cfe0ff; }
.duel__side--street b { color: var(--warm); }
.duel__side span { font-size: 13px; color: var(--muted); }
.duel__side:hover, .duel__side.is-on { transform: translateY(-4px); }
.duel__side--law:hover, .duel__side--law.is-on { border-color: rgba(31, 107, 255, .8); }
.duel__side--street:hover, .duel__side--street.is-on { border-color: rgba(216, 204, 178, .7); }
.duel__side:hover::before, .duel__side.is-on::before { opacity: 1; }
.duel__side.is-on span { color: #dfe5ef; }
.duel__or {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg);
  font: 700 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.about__note { margin-top: 22px; min-height: 1.6em; font-size: 14px; color: var(--muted); transition: color .3s; }
.about[data-path="law"] .about__note { color: #9cc0ff; }
.about[data-path="street"] .about__note { color: var(--warm); }

/* ============ INTERFACE (вкладки + экран) ============ */
.ui { position: relative; isolation: isolate; padding: var(--sec) 0; background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.ui .wrap { position: relative; }
.ui__body { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.ui__tabs { display: grid; gap: 4px; }
.ui__tab {
  position: relative; overflow: hidden; width: 100%;
  display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto 0fr; column-gap: 8px;
  padding: 16px 18px; border-radius: 14px; text-align: left;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, grid-template-rows .5s var(--ease);
}
.ui__tab .mono { padding-top: 3px; color: var(--muted); }
.ui__tab b { font-size: 16px; color: var(--muted); transition: color .3s; }
.ui__tab small { grid-column: 2; overflow: hidden; color: var(--muted); font-size: 14px; }
.ui__tab:hover b { color: var(--text); }
.ui__tab.is-active { grid-template-rows: auto 1fr; background: var(--surface-2); border-color: var(--line-2); }
.ui__tab.is-active b { color: var(--text); }
.ui__tab.is-active .mono { color: var(--cyan); }
.ui__tab.is-active small { padding-top: 6px; }
.ui__bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--line); opacity: 0; }
.ui__bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.ui__tab.is-active .ui__bar { opacity: 1; }
.screen { position: relative; }
.screen__glow { position: absolute; inset: 8% 6% -8%; z-index: 0; background: radial-gradient(ellipse closest-side, rgba(31, 107, 255, .5), transparent); }
.screen__frame {
  position: relative; z-index: 1; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 16 / 9.2;
  border-radius: 18px; border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), 0 0 0 8px rgba(255, 255, 255, .025);
}
.screen__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.03); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.screen__frame img.is-active { opacity: 1; transform: none; }
.screen__zoom { position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; border-radius: 8px; background: rgba(5, 7, 12, .75); border: 1px solid var(--line-2); font-size: 10px; opacity: 0; transition: opacity .3s; }
.screen__frame:hover .screen__zoom { opacity: 1; }

/* ============ MECHANICS (bento) ============ */
.mech { position: relative; isolation: isolate; overflow: hidden; padding: var(--sec) 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 9.4; }
.card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media > img { transform: scale(1.035); }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, transparent 35%); pointer-events: none; }
.card__body { padding: 8px 28px 28px; }
.card__body h3 { font: 800 clamp(22px, 2vw, 28px)/1.1 var(--f-display); text-transform: uppercase; font-variation-settings: 'slnt' -9; margin: 14px 0 8px; }
.card__body p { color: var(--muted); font-size: 15px; max-width: 460px; }
.card--radial .card__media { background: #000; }
.card--radial .card__media > img { object-fit: contain; }

/* HUD: игровой кадр с метками */
.hudcard { margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.hudcard__frame { position: relative; aspect-ratio: 1800 / 1009; overflow: hidden; }
.hudcard__shot { width: 100%; height: 100%; object-fit: cover; }
.hudcard__frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 -80px 80px -40px var(--surface-2); }
.hudcard__gauge { position: absolute; right: 3%; bottom: 3%; width: 21%; filter: drop-shadow(0 0 18px rgba(0, 0, 0, .6)); }
.hudcard__body { display: grid; grid-template-columns: auto 1fr; gap: 16px 56px; align-items: end; padding: 26px 28px 30px; }
.hudcard__text h3 { font: 800 clamp(22px, 2vw, 28px)/1.1 var(--f-display); text-transform: uppercase; font-variation-settings: 'slnt' -9; margin: 14px 0 0; }
.hudcard__desc { max-width: 620px; color: var(--muted); font-size: 15px; }

/* ============ MAP (на весь фон) ============ */
.map { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: var(--sec) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.map__art { position: absolute; z-index: -1; top: 50%; right: max(0px, calc(50% - 720px)); height: 124%; aspect-ratio: 1125 / 2000; transform: translateY(-50%); }
.map__glow { position: absolute; left: 50%; top: 66%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle closest-side, rgba(31, 107, 255, .42), rgba(31, 107, 255, .1) 55%, transparent); }
.map__img { position: relative; height: 100%; }
/* screen: чёрная суша исчезает, остаются дороги и береговая линия, подкрашенные в синий */
.map__img img {
  width: 100%; height: 100%;
  mix-blend-mode: screen;
  filter: sepia(.35) hue-rotate(175deg) saturate(1.8) brightness(.95);
  -webkit-mask-image: radial-gradient(ellipse 58% 52% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 52% at 50% 50%, #000 62%, transparent 100%);
}
.map::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--bg-2) 32%, rgba(8, 11, 18, .5) 52%, transparent 70%); }
.map__inner { position: relative; }
.map__text { max-width: 520px; }
.map__text > .muted { margin: 22px 0 32px; }
.districts { border-top: 1px solid var(--line); }
.districts button {
  width: 100%; display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 8px;
  padding: 16px 4px; border-bottom: 1px solid var(--line); text-align: left;
  font: 700 clamp(17px, 1.5vw, 21px)/1.2 var(--f-display); text-transform: uppercase; font-variation-settings: 'slnt' -9;
  color: #9aa3b5; transition: color .3s, padding .5s var(--ease);
}
.districts .mono { color: var(--muted); font-size: 11px; }
.districts small { font: 500 13px var(--f-body); text-transform: none; color: var(--muted); }
.districts button:hover, .districts button.is-active { color: var(--text); padding-left: 14px; }
.districts button.is-active .mono { color: var(--cyan); }
/* ============ START ============ */
.start { position: relative; isolation: isolate; padding: var(--sec) 0; overflow: hidden; }
.start__tex { position: absolute; inset: 0; z-index: -2; }
.start__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.steps { display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 8px 20px;
  padding: 24px 24px 24px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(12, 16, 25, .75);
}
.step__num { font: 800 34px/1 var(--f-display); font-variation-settings: 'slnt' -9; color: transparent; -webkit-text-stroke: 1px rgba(140, 180, 255, .7); }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }
.step--servers { grid-template-columns: 64px 1fr; }
.servers { grid-column: 2 / -1; display: grid; gap: 8px; margin-top: 12px; }
.server {
  display: grid; grid-template-columns: minmax(150px, 1fr) 1.2fr 84px; align-items: center; gap: 16px;
  padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
  font-size: 14px;
}
.server__name { display: flex; align-items: center; gap: 10px; font: 800 15px/1 var(--f-display); letter-spacing: .04em; }
.server__load { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.server__load span { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(var(--p)); transform-origin: left; transition: transform 1.4s var(--ease) .3s; }
.js .server__load span { transform: scaleX(0); }
.js .is-in .server__load span { transform: scaleX(var(--p)); }
.server__count { white-space: nowrap; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.server__count b { color: var(--text); }
.start__char { position: relative; align-self: end; margin-bottom: calc(var(--sec) * -1); }
.start__char img { position: relative; z-index: 1; width: 100%; -webkit-mask-image: linear-gradient(0deg, transparent, #000 12%); mask-image: linear-gradient(0deg, transparent, #000 12%); }
.start__badge { position: absolute; z-index: 2; left: 0; bottom: 30%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; font-size: 13px; }
.start__badge .i { width: 24px; height: 24px; color: var(--cyan); }
.start__badge b { display: block; font-size: 14px; }
.start__badge span { color: var(--muted); }

/* ============ VIDEO ============ */
.video { padding: var(--sec) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line-2); background: #000; }
.player > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.9); transition: transform 1.4s var(--ease), filter .6s; }
.player:hover > img { transform: scale(1.03); filter: brightness(.82); }
.player::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 7, 12, .9), transparent 45%); pointer-events: none; }
.player__btn { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.player__play {
  position: relative; display: grid; place-items: center;
  width: clamp(76px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); color: #fff;
  box-shadow: 0 20px 60px -10px rgba(31, 107, 255, .8);
  transition: transform .6s var(--ease);
}
.player__play::before, .player__play::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); animation: ring 2.6s var(--ease) infinite; }
.player__play::after { animation-delay: 1.3s; }
.player__play .i { width: 34%; height: 34%; fill: #fff; margin-left: 6%; }
.player__btn:hover .player__play { transform: scale(1.08); }
.player__cap { position: absolute; z-index: 3; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); display: grid; gap: 8px; justify-items: start; pointer-events: none; }
.player__cap b { font: 800 clamp(20px, 2.4vw, 34px)/1.1 var(--f-display); text-transform: uppercase; font-variation-settings: 'slnt' -9; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }
.player.is-playing::after, .player.is-playing .player__cap { display: none; }

/* ============ FAQ ============ */
.faq { position: relative; isolation: isolate; overflow: clip; padding: var(--sec) 0; }
.faq__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 40px); }
.help {
  display: flex; align-items: center; gap: 14px; margin-top: 36px; max-width: 380px;
  padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .3s, transform .5s var(--ease);
}
.help:hover { transform: translateY(-3px); border-color: var(--line-2); }
.help__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(88, 101, 242, .16); color: #8b97ff; flex: none; }
.help__ico .i { width: 24px; height: 24px; }
.help b { display: block; }
.help small { color: var(--muted); font-size: 13px; }
.help__arrow { margin-left: auto; color: var(--muted); }
.faq__list { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .3s, background-color .3s; }
.qa[open] { border-color: rgba(31, 107, 255, .45); background: var(--surface-2); }
.qa summary {
  display: flex; align-items: center; gap: 18px;
  padding: 22px; cursor: pointer; list-style: none;
  font: 700 clamp(16px, 1.4vw, 18px)/1.35 var(--f-body);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .mono { color: var(--muted); font-size: 11px; }
.qa[open] summary .mono { color: var(--cyan); }
.qa__ico { position: relative; flex: none; margin-left: auto; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 10px; transition: background-color .3s, border-color .3s; }
.qa__ico::before, .qa__ico::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease); }
.qa__ico::after { transform: rotate(90deg); }
.qa[open] .qa__ico { background: var(--blue); border-color: var(--blue); }
.qa[open] .qa__ico::after { transform: rotate(0); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 70px 22px 52px; color: var(--muted); }

/* ============ FOOTER ============ */
.footer { position: relative; background: var(--bg-2); border-top: 1px solid var(--line); }
.footer__cta { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.footer__cta-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 32px; min-height: 600px; }
.footer__cta-text { align-self: center; padding: 96px 0; }
.final__title { font-size: clamp(34px, 4.4vw, 66px); margin-bottom: 22px; }
.final__title span { display: block; white-space: nowrap; }
.footer__cta-text > .muted { margin-bottom: 34px; font-size: 18px; }
.final__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.footer__char { position: relative; align-self: end; }
.footer__char img {
  position: relative; z-index: 1; width: 100%; max-width: 540px; margin-left: auto;
  /* исходник обрезан по краям кресла — растворяем низ и боковые края */
  -webkit-mask-image: linear-gradient(0deg, transparent, #000 18%), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(0deg, transparent, #000 18%), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}

.footer__main { position: relative; isolation: isolate; padding-top: 64px; overflow: hidden; }
.socials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 72px; }
.social {
  display: flex; align-items: center; gap: 16px;
  padding: 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .5s var(--ease), border-color .3s;
}
.social > .i:first-child { width: 30px; height: 30px; transition: color .3s; }
.social b { display: block; font-size: 17px; }
.social small { display: block; color: var(--muted); font-size: 13px; }
.social__arrow { margin-left: auto; color: var(--muted); transition: transform .5s var(--ease), color .3s; }
.social:hover { transform: translateY(-4px); border-color: var(--line-2); }
.social:hover .social__arrow { transform: translate(3px, -3px); color: var(--text); }
.social--discord:hover > .i:first-child { color: #7b8cff; }
.social--telegram:hover > .i:first-child { color: #3fb5ff; }
.social--youtube:hover > .i:first-child { color: #ff4646; }

.footer__top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand img { width: 150px; margin-bottom: 18px; }
.footer__brand p { max-width: 280px; margin-bottom: 18px; font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__col h4 { font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.footer__col a { color: #c3cad8; transition: color .3s; width: fit-content; }
.footer__col a:hover { color: #fff; }
.footer__download .mono { font-size: 11px; }
.footer__word {
  position: relative; display: flex; justify-content: center; gap: .04em;
  font: 800 clamp(64px, 16.5vw, 290px)/.86 var(--f-display); letter-spacing: -.04em; text-transform: uppercase; font-variation-settings: 'slnt' -9;
  padding: 0 var(--gutter) .14em; user-select: none;
}
/* ровное овальное свечение за вордмарком, гаснет до нижней линии */
.footer__word::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 52%; width: min(1100px, 90vw); height: 80%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 107, 255, .32), rgba(31, 107, 255, .08) 60%, transparent);
}
.footer__word span:first-child { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .2); }
.footer__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__up { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }

/* ============ MODAL / LIGHTBOX ============ */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(3, 5, 9, .8); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
  width: min(500px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  padding: 40px; border: 1px solid var(--line-2); border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(31, 107, 255, .25), transparent 60%), var(--surface);
  overflow: auto;
}
.modal__tex { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.modal__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 7, 12, .6); transition: background-color .3s; z-index: 2; }
.modal__close:hover { background: rgba(255, 255, 255, .1); }
.modal__logo { width: 130px; margin-bottom: 28px; }
.modal__title { font: 800 32px/1 var(--f-display); text-transform: uppercase; font-variation-settings: 'slnt' -9; margin-bottom: 10px; }
.modal__steps { display: grid; gap: 8px; margin: 28px 0; }
.modal__steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-weight: 600; font-size: 15px; }
.modal__steps .mono { color: var(--cyan); }
.modal__actions { display: grid; gap: 10px; margin-bottom: 18px; }
.modal__meta { display: block; text-align: center; font-size: 11px; }
.lightbox { padding: 0; border: 0; background: none; max-width: min(1400px, 94vw); max-height: 92svh; overflow: visible; }
.lightbox img { max-height: 92svh; width: auto; border-radius: 14px; border: 1px solid var(--line-2); }
.lightbox .modal__close { top: -52px; right: 0; }

/* ============ Стартовые состояния для анимаций (только если JS запустился) ============ */
.js [data-reveal] { opacity: 0; }
.js .hero__content > *, .js .lineup, .js .hero__dock { opacity: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .nav, .header__icon, .header__cab { display: none; }
  .header__bar { grid-template-columns: auto 1fr; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__download { grid-column: 1 / -1; max-width: 320px; }
  .ui__body { grid-template-columns: 280px 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .head--row { flex-direction: column; align-items: flex-start; }

  .header__logo img { width: 100px; }
  .hero { height: auto; min-height: 100svh; max-height: none; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + 36px); }
  .hero__title { font-size: clamp(44px, 13vw, 90px); }
  .hero { min-height: 0; padding-bottom: 28px; }
  .lineup-wrap { position: relative; left: auto; right: auto; top: auto; margin: 18px calc(var(--gutter) * -1) 0; height: auto; }
  .lineup { height: auto; width: 270vw; max-width: none; flex: none; }
  .hero__dock { position: relative; bottom: auto; margin-top: -56px; padding: 0; }
  .lineup__hint { display: none; }

  .about { display: block; min-height: 0; padding-top: 0; }
  .about__side { position: relative; display: inline-block; width: 50%; vertical-align: bottom; filter: grayscale(.2) brightness(.8); }
  .about__side--law { left: auto; margin-right: -4px; }
  .about__side--street { right: auto; }
  .about__center { margin: 24px auto 0; }

  .ui__body { grid-template-columns: 1fr; }
  .ui__tabs { order: 2; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-snap-type: x mandatory; }
  .ui__tabs::-webkit-scrollbar { display: none; }
  .ui__tabs li { flex: none; scroll-snap-align: start; }
  .ui__tab { width: 230px; height: 100%; border-color: var(--line); grid-template-rows: auto 1fr; }
  .ui__tab small { padding-top: 6px; }

  .bento { grid-template-columns: 1fr; }
  .hudcard__body { grid-template-columns: 1fr; padding: 20px; }
  .deco__logo { display: none; }
  .card__body { padding: 4px 20px 22px; }

  .map { display: block; min-height: 0; }
  .map__art { position: relative; top: auto; right: auto; width: min(80%, 380px); height: auto; margin: -10px auto 0; transform: none; }
  .map__img img { height: auto; }
  .map::after { background: linear-gradient(180deg, transparent 30%, var(--bg-2) 55%); }
  .map__inner { margin-top: -60px; }

  .start__inner { grid-template-columns: 1fr; }
  .start__char { max-width: 460px; margin: 0 auto calc(var(--sec) * -1); }

  .faq__inner { grid-template-columns: 1fr; }
  .faq__head { position: static; }

  .footer__cta-inner { grid-template-columns: 1fr; min-height: 0; }
  .footer__cta-text { padding: 72px 0 0; }
  .final__title span { white-space: normal; }
  .footer__char { max-width: 400px; margin: 0 auto; }
  .socials { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header__play { height: 38px; padding: 0 14px; }
  .hero__beta span:nth-child(n+3) { display: none; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .duel { grid-template-columns: 1fr; gap: 10px; }
  .duel__side, .duel__side--street { text-align: center; padding: 18px; }
  .duel__or { justify-self: center; width: 40px; height: 40px; margin: -4px 0; }
  .step { grid-template-columns: 44px 1fr; padding: 20px 16px; }
  .step > .btn { grid-column: 2; justify-self: start; }
  .step__num { font-size: 26px; }
  .servers { grid-column: 1 / -1; }
  .server { grid-template-columns: 1fr auto; gap: 10px 12px; }
  .server__load { grid-column: 1 / -1; grid-row: 2; }
  .start__badge { left: 0; bottom: 18%; }
  .qa summary { padding: 18px 16px; gap: 12px; }
  .qa__a p { padding: 0 16px 18px; }
  .socials { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__col:nth-of-type(3) { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .final__actions .btn { width: 100%; }
  .modal { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .hero__content > *, .js .lineup, .js .hero__dock { opacity: 1; }
  .js .server__load span { transform: scaleX(var(--p)); }
}

/* ============ Дисклеймер и cookie-баннер ============ */
.notices { position: fixed; z-index: 90; left: 20px; bottom: 20px; display: grid; gap: 10px; width: min(440px, calc(100vw - 40px)); }
.notice {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 18px 18px 18px 16px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(14, 22, 44, .96), rgba(8, 11, 18, .96));
  border: 1px solid rgba(31, 107, 255, .3);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.notice::before { content: ''; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-56deg, rgba(90, 140, 255, .04) 0 26px, transparent 26px 52px); }
.notice::after { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--grad); }
.notices.is-in .notice { opacity: 1; transform: none; }
.notices.is-in .notice:nth-child(2) { transition-delay: .12s; }
.notice.is-leaving { opacity: 0 !important; transform: translateX(-24px) !important; transition-delay: 0s !important; }
.notice__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(31, 107, 255, .16); color: #9cc0ff; }
.notice__ico .i { width: 19px; height: 19px; }
.notice__body { display: grid; gap: 6px; min-width: 0; }
.notice__body b { font: 800 14px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .04em; font-variation-settings: 'slnt' -9; }
.notice__body p { font-size: 13px; line-height: 1.5; color: #a9b2c4; }
.notice__body a { color: #7cb4ff; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.notice--cookie { grid-template-columns: auto 1fr; }
.notice__close { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--muted); border: 1px solid var(--line); transition: color .25s, background-color .25s; }
.notice__close:hover { color: #fff; background: rgba(255, 255, 255, .06); }
@media (max-width: 600px) {
  .notices { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .notices { gap: 8px; }
  .notice { grid-template-columns: 1fr auto; padding: 12px 12px 12px 16px; gap: 10px; border-radius: 14px; }
  .notice--cookie { grid-template-columns: 1fr; }
  .notice__ico { display: none; }
  .notice__body { gap: 4px; }
  .notice__body p { font-size: 12px; line-height: 1.45; }
  .notice__actions { margin-top: 4px; }
  .notice__actions .btn { flex: 1; }
}

/* Внешняя ссылка в меню (форум) */
.nav__link--ext { display: inline-flex; align-items: center; gap: 4px; }
.nav__link--ext .i { width: 13px; height: 13px; opacity: .6; }
.link-inline { color: #7cb4ff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1280px) { .header__cab { display: none; } }
