﻿/* Liquid Hunt — сайт продукта. Ethereal Glass: OLED-чёрный, брендовый градиент cyan→green,
   двухбортные карточки, живой фон. Радиусы: кнопки pill, внешний борт 28, ядро 21, поля 12. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-lat.woff2") format("woff2");
  unicode-range: U+0000-024F, U+2000-206F;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-cyr.woff2") format("woff2");
  unicode-range: U+0400-04FF;
  font-weight: 200 800;
  font-display: swap;
}
/* Orbitron первым в стеке и только на цифры: все числа автоматически «приборные» */
@font-face {
  font-family: "Orbitron Digits";
  src: url("/assets/fonts/Orbitron.woff2") format("woff2");
  unicode-range: U+0030-0039;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #050508;
  --ink: #f2f4f8;
  --muted: #9aa3b4;
  --dim: #8892a6;                /* контраст ~5.5:1 на фоне — проходит WCAG AA */
  --cyan: #4dabf7;                /* лёгкий голубой, как C.blue в приложении */
  --green: #4ade80;               /* только семантика PnL, не акцент */
  --accent-ink: #04101c;          /* текст на залитой градиентной кнопке */
  --grad: linear-gradient(92deg, #4dabf7, #85c8ff);
  --red: #ff6b6b;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(255, 255, 255, 0.045);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* плавный кросс-фейд сайт↔кабинет; фон и шапка общие (см. view-transition-name) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.6s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
::view-transition-old(lh-bg), ::view-transition-new(lh-bg),
::view-transition-old(lh-nav), ::view-transition-new(lh-nav) { animation: none; }

html { scroll-behavior: smooth; }

/* clip, а не hidden: горизонтальный скролл невозможен даже программно,
   иначе выпирающие декорации (акула, маркиза) сдвигают контент под fixed-навом */
html, body { overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Orbitron Digits", "Manrope", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- Живой фон: дрейфующие свечения + мерцающие узлы ликвидности ---------- */

.bg-scene { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; view-transition-name: lh-bg; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.blob-a { width: 640px; height: 640px; left: -12%; top: -18%; background: radial-gradient(circle, rgba(77, 171, 247, 0.20), transparent 65%); animation: drift-a 34s var(--ease) infinite alternate; }
.blob-b { width: 560px; height: 560px; right: -14%; top: -8%; background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 65%); animation: drift-b 41s var(--ease) infinite alternate; }
.blob-c { width: 520px; height: 520px; left: 32%; bottom: -28%; background: radial-gradient(circle, rgba(59, 130, 246, 0.10), transparent 65%); animation: drift-c 47s var(--ease) infinite alternate; }
@keyframes drift-a { to { transform: translate(140px, 90px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-120px, 130px) scale(0.92); } }
@keyframes drift-c { to { transform: translate(90px, -110px) scale(1.08); } }

.node { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); opacity: 0; animation: twinkle 7s ease-in-out infinite; box-shadow: 0 0 12px rgba(77, 171, 247, 0.8); }
.node.g { background: #85c8ff; box-shadow: 0 0 12px rgba(133, 200, 255, 0.8); }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.7); }
  50% { opacity: 0.75; transform: translateY(-14px) scale(1); }
}

/* зерно поверх всего: физика плёнки, фиксированный слой без перерисовок */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gs { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Браузерная подсветка скрыта по всему сайту: outline фокуса и вспышка тапа */
* { -webkit-tap-highlight-color: transparent; }
a:focus, button:focus, summary:focus, [tabindex]:focus, input:focus, select:focus, textarea:focus,
a:focus-visible, button:focus-visible, summary:focus-visible,
[tabindex]:focus-visible, input:focus-visible {
  outline: none;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Плавающая нав-пилюля ---------- */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 16px 13px 24px;
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  view-transition-name: lh-nav;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17.5px; letter-spacing: 0.045em; }
.logo > span { white-space: nowrap; }
.logo img { width: 42px; height: 42px; object-fit: contain; transform: scale(1.3); filter: drop-shadow(0 0 12px rgba(77, 171, 247, 0.35)); }
.logo .tag { display: block; font-size: 9.5px; letter-spacing: 0.34em; color: var(--dim); font-weight: 700; margin-top: 2px; }
.nav-links { display: flex; gap: 30px; font-size: 15.5px; color: var(--muted); }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.3s var(--ease); }
.nav-ico { width: 15px; height: 15px; flex: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav .btn-sm { padding: 12px 24px; font-size: 14.5px; }

/* Чип залогиненного аккаунта в шапке: аватар-инициал + ник, ведёт в кабинет */
.account-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.account-chip:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.05); }
.account-chip .ac-ava {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--grad);
  color: var(--accent-ink);
  font: 800 14px "Orbitron Digits", "Manrope", sans-serif;
}
.account-chip img.ac-ava {
  object-fit: cover;
  background: var(--glass);
  border: 1px solid var(--line);
}
.account-chip .ac-name {
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700; font-size: 14.5px;
}

/* ---------- Выбор языка ---------- */

.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 700 13.5px "Orbitron Digits", "Manrope", sans-serif;
  letter-spacing: 0.08em;
  padding: 11px 16px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lang-btn::after { content: "▾"; font-size: 10px; opacity: 0.7; }
.lang-btn:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.25); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 118px;
  display: grid;
  padding: 6px;
  border-radius: 16px;
  background: rgba(10, 12, 18, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 50px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.lang-menu a.on { color: var(--cyan); }
.flag {
  display: inline-flex; flex: none;
  width: 24px; height: 16px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.flag svg { width: 100%; height: 100%; display: block; }
.lang-btn .flag { width: 22px; height: 15px; }
/* на страницах входа нав-панели нет: переключатель живёт в углу */
.lang-corner { position: fixed; top: 20px; right: 20px; z-index: 50; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font: 700 15px/1 "Orbitron Digits", "Manrope", sans-serif;
  padding: 14px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 6px 24px rgba(77, 171, 247, 0.22); position: relative; overflow: hidden; }
.btn-primary:hover { box-shadow: 0 10px 42px rgba(77, 171, 247, 0.45); transform: translateY(-1px); }
/* бегущий блик: полоса света проходит по кнопке раз в ~4с, только transform */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: btn-sheen 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-sheen {
  0% { transform: translateX(-100%); }
  55%, 100% { transform: translateX(100%); }
}
/* стрелка живёт в собственном кружке и на ховере уезжает по диагонали */
.btn .ic {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: transform 0.5s var(--ease);
}
.btn-ghost .ic { background: rgba(255, 255, 255, 0.08); }
.btn:hover .ic { transform: translate(3px, -2px) scale(1.06); }
.btn-ghost { background: var(--glass); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ---------- Типографика ---------- */

h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.h-display { font-size: clamp(34px, 4.6vw, 58px); }
.h-section { font-size: clamp(28px, 3.4vw, 40px); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { color: var(--muted); font-size: 17px; max-width: 58ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  background: rgba(77, 171, 247, 0.07);
  border: 1px solid rgba(77, 171, 247, 0.20);
  border-radius: 999px;
  padding: 6px 14px;
}
.num { font-variant-numeric: tabular-nums; }

section { padding: 130px 0; position: relative; }

/* элементы, которыми управляет GSAP; до инициализации спрятаны мягко */
.gs { opacity: 0; transform: translateY(46px); filter: blur(8px); will-change: transform, opacity; }
/* после появления снимаем GPU-промоушен: 40 слоёв не висят всю жизнь страницы */
.no-js .gs, .gs.shown { opacity: 1; transform: none; filter: none; will-change: auto; }

/* ---------- Двухбортная карточка (стекло в алюминиевом лотке) ---------- */

.shell {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 7px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.core {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.92), rgba(9, 11, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 21px;
  padding: 28px;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10);
}
/* спотлайт: пятно света следует за курсором (координаты ставит JS) */
.core::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -40%), rgba(77, 171, 247, 0.10), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.shell:hover .core::before { opacity: 1; }
.shell { transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.shell:hover { transform: translateY(-4px); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); }

/* ---------- Герой ---------- */

.hero { padding: 168px 0 120px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 0.96fr 1.04fr; gap: 48px; align-items: center; }
.hero-copy .h-display { margin: 20px 0 18px; max-width: 15ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
/* акула-вотермарк: дышит за контентом, параллакс на скролле */
.shark {
  position: absolute;
  right: -6%;
  top: 4%;
  width: min(56vw, 760px);
  opacity: 0.16;
  z-index: -1;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: shark-breathe 9s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes shark-breathe { to { transform: translateY(-18px) scale(1.025); } }

/* Телефон: реалистичный корпус + живая мини-версия главного экрана приложения */
.phone-tilt { perspective: 1100px; }
.phone {
  position: relative;
  width: min(370px, 92vw);
  margin: 0 auto;
  border-radius: 58px;
  background: linear-gradient(155deg, #4a505c, #16181f 26%, #2b303b 62%, #0d0f14);
  padding: 3px;
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.65), 0 0 90px rgba(77, 171, 247, 0.08);
  transition: transform 0.7s var(--ease);
  will-change: transform;
  animation: phone-float 7s ease-in-out infinite alternate;
}
/* боковые кнопки корпуса */
.phone::before, .phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #454b57, #23262e);
}
.phone::before { left: -3px; top: 130px; height: 64px; }   /* громкость */
.phone::after { right: -3px; top: 150px; height: 82px; }   /* питание */
@keyframes phone-float { to { transform: translateY(-12px); } }
.phone-bezel { background: #000; border-radius: 55px; padding: 9px; }
.phone-screen { border-radius: 46px; background: #05060b; overflow: hidden; padding: 12px 13px 10px; position: relative; }
.phone-screen::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(320px 210px at 24% -6%, rgba(77, 171, 247, 0.13), transparent 62%);
  pointer-events: none;
}
/* остров с камерой и статус-бар */
.p-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 25px;
  background: #000; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
}
.p-island::after {
  content: "";
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #22303f, #0a0e14 60%);
}
.p-status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; color: #d4dae4; padding: 2px 10px 10px; }
.p-status .batt { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; letter-spacing: 0.06em; }
.p-status .batt i { display: inline-block; width: 20px; height: 10px; border: 1px solid rgba(255,255,255,0.45); border-radius: 3px; position: relative; }
.p-status .batt i::before { content: ""; position: absolute; inset: 1.5px; right: 5.5px; background: var(--green); border-radius: 1.5px; }
.p-status .batt i::after { content: ""; position: absolute; right: -3.5px; top: 2.5px; width: 2px; height: 4px; background: rgba(255,255,255,0.45); border-radius: 1px; }
/* шапка приложения */
.p-apphead { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 10px; }
.p-apphead b { font-size: 15px; letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 7px; }
.p-apphead b img { width: 18px; height: 18px; }
/* верхние вкладки раздела ИИ: Наблюдение · Обучение · Консультант */
.p-toptabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 9px;
}
.p-toptab {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 9px; font-weight: 700; color: var(--dim);
  padding: 6px 2px; border-radius: 9px;
}
.p-toptab svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }
.p-toptab.on { color: var(--cyan); background: rgba(77, 171, 247, 0.10); }
.p-pills { display: flex; gap: 6px; }
.p-pill { font-size: 8.5px; font-weight: 800; letter-spacing: 0.1em; border-radius: 999px; padding: 4px 9px; }
.p-pill.demo { color: var(--amber, #ffcf4d); border: 1px solid rgba(255, 207, 77, 0.4); }
.p-pill.watch { color: var(--green); border: 1px solid rgba(74, 222, 128, 0.4); }
/* карточки экрана */
.p-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 13px;
  margin-bottom: 9px;
  font-size: 12px;
  line-height: 1.5;
}
.p-lbl { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; }
.p-lbl::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(74, 222, 128, 0.8); }
.p-bal { font-size: 29px; font-weight: 700; letter-spacing: -0.01em; margin: 6px 0 2px; }
.p-bal small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.p-upnl { font-size: 12px; font-weight: 700; color: var(--green); }
.p-peaks { font-size: 10px; color: var(--dim); margin-top: 3px; }
.p-peaks .dn { color: var(--red); }
.p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 9px; }
.p-tile { background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 13px; padding: 9px 11px; }
.p-tile .k { font-size: 8px; font-weight: 800; letter-spacing: 0.14em; color: var(--dim); text-transform: uppercase; }
.p-tile .v { font-size: 17px; font-weight: 700; margin-top: 2px; }
.p-ds { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--muted); }
.p-ds b { color: var(--ink); }
.p-ds .r { color: var(--cyan); font-weight: 700; }
.p-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); margin-top: 8px; overflow: hidden; }
.p-bar i { display: block; height: 100%; width: 13.5%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--green)); }
.p-sec { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 800; padding: 3px 2px 7px; }
.p-sec span { font-size: 9.5px; color: var(--dim); font-weight: 600; }
.p-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-chip { font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em; border-radius: 7px; padding: 3px 7px; flex: none; }
.p-chip.long { color: var(--green); border: 1px solid rgba(74, 222, 128, 0.45); }
.p-chip.in { color: var(--cyan); border: 1px solid rgba(77, 171, 247, 0.45); }
.p-chip.out { color: var(--red); border: 1px solid rgba(255, 107, 107, 0.45); }
.p-pair { font-size: 12px; font-weight: 800; }
.p-pair .long { color: var(--green); font-size: 10px; }
.p-pair .short { color: var(--red); font-size: 10px; }
.p-dim { font-size: 9.5px; color: var(--dim); }
.p-dim .warn { color: var(--amber, #ffcf4d); }
.p-green { color: var(--green); font-weight: 800; }
.p-ai {
  flex: none; width: 26px; height: 26px;
  filter: drop-shadow(0 0 8px rgba(108, 181, 247, 0.55));
}
.p-note {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 9px; padding-top: 8px;
  font-size: 10.5px; line-height: 1.55; color: #c4d9f2;
}
/* таб-бар: 5 слотов, по центру акула-кнопка раздела ИИ */
.p-tabs {
  display: grid; grid-template-columns: 1fr 1fr 56px 1fr 1fr;
  align-items: end;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 8px 4px 7px;
  text-align: center;
}
.p-tab { font-size: 8px; font-weight: 700; color: var(--dim); display: grid; gap: 3px; justify-items: center; position: relative; }
.p-tab svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.p-tab.on { color: var(--cyan); }
.p-tab .dot { position: absolute; top: -2px; right: 26%; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.p-tab-shark { position: relative; height: 30px; }
.p-tab-shark img {
  position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 58px; height: 52px; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(108, 181, 247, 0.6));
}

/* ---------- Лента бирж (стиль карусели партнёров) ---------- */

.exstrip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0 40px; overflow: hidden; }
.exstrip .p-head { text-align: center; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.28em; margin-bottom: 28px; }
.ex-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ex-track { display: flex; align-items: center; width: max-content; animation: marquee 46s linear infinite; }
.lx {
  display: flex; align-items: center; gap: 18px; flex: none;
  margin-inline-end: clamp(64px, 9vw, 150px);
  opacity: 0.6;
  filter: grayscale(1) brightness(1.35);
  transition: opacity 0.25s var(--ease), filter 0.25s var(--ease);
}
.lx:hover { opacity: 1; filter: none; }
.lx img { height: 52px; width: 52px; border-radius: 12px; }
/* словомарка вместо иконки+текста; засечка «I» выше букв, поэтому
   оптическое выравнивание: буквы приподняты к линии соседних названий */
.lx img.wm { height: 34px; width: auto; border-radius: 0; transform: translateY(-4px); }
.lx span { font-weight: 800; font-size: 30px; letter-spacing: 0.04em; color: #e8edf5; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 560px) {
  .lx { margin-inline-end: 52px; }
  .lx img { height: 36px; width: 36px; }
  .lx img.wm { height: 23px; width: auto; transform: translateY(-3px); }
  .lx span { font-size: 20px; }
}

/* ---------- Биржи ---------- */

.exchanges { padding: 64px 0 0; }
.ex-label { text-align: center; color: var(--dim); font-size: 14px; margin-bottom: 20px; }
.ex-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ex-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: #cdd3de;
  font-weight: 800; font-size: 14.5px; letter-spacing: 0.06em;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.ex-chip img { width: 22px; height: 22px; border-radius: 6px; }
.ex-chip:hover { color: #fff; border-color: rgba(77, 171, 247, 0.35); transform: translateY(-2px); }

/* ---------- Шаги ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.step-core { padding: 30px 28px; min-height: 100%; }
.step-core .n {
  font-size: 52px; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.9;
}
.step-core h3 { font-size: 19px; margin: 16px 0 8px; }
.step-core p { color: var(--muted); font-size: 14.5px; }

/* ---------- Сплит-фичи ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev .split-visual { order: -1; }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--muted); }
.split ul { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.split li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); font-size: 15.5px; }
.split li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); transform: translateY(-2px); box-shadow: 0 0 10px rgba(77, 171, 247, 0.6); }
.chat-demo { display: grid; gap: 12px; }
.chat-demo .msg { border-radius: 16px; padding: 13px 16px; font-size: 14px; line-height: 1.55; max-width: 94%; }
.chat-demo .from-user { background: rgba(77, 171, 247, 0.09); border: 1px solid rgba(77, 171, 247, 0.22); justify-self: end; }
.chat-demo .from-bot { background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); }
.chat-demo .warn { border-color: rgba(255, 107, 107, 0.32); background: rgba(255, 107, 107, 0.06); }

/* Карточки ответов ИИ: голубое стекло с бейджем AI */
.ai-card {
  background: linear-gradient(180deg, rgba(77, 171, 247, 0.09), rgba(77, 171, 247, 0.03));
  border: 1px solid rgba(77, 171, 247, 0.30);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 0 30px rgba(77, 171, 247, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ai-head { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 800; margin-bottom: 7px; }
.ai-badge {
  width: 26px; height: 26px; flex: none;
  filter: drop-shadow(0 0 8px rgba(108, 181, 247, 0.55));
}
.ai-card p { font-size: 14px; line-height: 1.55; color: #d9e5f2; }
.ai-card p b { color: #fff; font-weight: 800; }

/* Алерты монитора риска: как в приложении, с пульсом и подсветкой цифр */
.alert-card {
  background: linear-gradient(180deg, rgba(255, 80, 80, 0.10), rgba(255, 80, 80, 0.04));
  border: 1px solid rgba(255, 107, 107, 0.38);
  border-radius: 16px;
  padding: 15px 17px 12px;
  box-shadow: 0 0 34px rgba(255, 80, 80, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.alert-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #ff8b8b;
  margin-bottom: 8px;
}
.alert-head::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.9);
  animation: alert-pulse 2s ease-in-out infinite;
}
@keyframes alert-pulse { 50% { opacity: 0.4; transform: scale(0.8); } }
.alert-card p { font-size: 14px; line-height: 1.55; color: #f0d9d9; }
.alert-card p b { color: #fff; font-weight: 800; }
.alert-time { margin-top: 9px; font-size: 10.5px; color: var(--dim); text-align: right; }

/* ---------- Кино-баннер ---------- */

.banner { padding: 0; position: relative; overflow: hidden; }
.banner img.bg { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 477; min-height: 340px; object-fit: cover; will-change: transform; }
.banner .veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg), transparent 24%, transparent 76%, var(--bg)),
    linear-gradient(90deg, rgba(5, 5, 8, 0.94), rgba(5, 5, 8, 0.55) 34%, transparent 60%);
}
.banner .caption { position: absolute; inset: 0; display: flex; align-items: center; }
/* стеклянная притемнённая рамка: текст не тонет в акуле */
.banner-panel {
  display: inline-block;
  max-width: 620px;
  padding: 40px 46px;
  border-radius: 26px;
  background: rgba(6, 8, 13, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.banner-panel h2 { max-width: 13ch; font-size: clamp(32px, 3.9vw, 48px); }
.banner-panel .sub { margin-top: 14px; max-width: 38ch; color: #cdd6e2; font-size: 18.5px; }
@media (max-width: 900px) {
  .banner-panel { max-width: 100%; padding: 24px 26px; }
  .banner-panel h2 { font-size: 26px; }
  .banner-panel .sub { font-size: 15px; }
}

/* ---------- Бенто ---------- */

.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 16px; margin-top: 64px; }
.bento .wide { grid-column: span 2; }
.bento h3 { font-size: 18px; margin-bottom: 8px; }
.bento p { color: var(--muted); font-size: 14.5px; }
.bento .stat { font-size: 40px; font-weight: 700; margin-bottom: 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bento .core { height: 100%; }
.bento .cell-shark { position: absolute; right: -34px; bottom: -46px; width: 220px; opacity: 0.22; mix-blend-mode: screen; pointer-events: none; }

/* ---------- Карусель возможностей ---------- */

.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.carousel-head p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.carousel-nav button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  font-size: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), opacity 0.3s var(--ease);
}
.carousel-nav button:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); }
.carousel-nav button:disabled { opacity: 0.35; cursor: default; }

.carousel-track {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 0 20px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 97%, transparent);
  mask-image: linear-gradient(90deg, #000 97%, transparent);
}
.carousel-track::-webkit-scrollbar { display: none; }
.feat {
  flex: 0 0 clamp(300px, 40%, 440px);
  scroll-snap-align: start;
  min-height: 100%;
}
.feat .core { height: 100%; display: flex; flex-direction: column; padding: 30px 30px 28px; }
.feat .fico {
  width: 52px; height: 52px; border-radius: 15px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, rgba(77, 171, 247, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(77, 171, 247, 0.28);
  margin-bottom: 20px;
}
.feat .fico svg { width: 26px; height: 26px; stroke: var(--cyan); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 21px; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.feat .fmeta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.feat .fchip {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px;
}
.feat .flink { margin-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; }
.feat.hot .core { border-color: rgba(77, 171, 247, 0.32); background: linear-gradient(180deg, rgba(77, 171, 247, 0.07), rgba(9, 11, 18, 0.94)); }
.feat.hot .fbadge {
  align-self: flex-start; margin-bottom: 16px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--grad);
  border-radius: 999px; padding: 5px 12px;
}

/* ---------- Витрина фишек: текст слева, экран приложения справа ---------- */

.show-grid { display: grid; grid-template-columns: 1fr 0.86fr; gap: 64px; align-items: center; }
.show-copy { min-height: 400px; display: flex; flex-direction: column; }

.show-panes { position: relative; flex: 1; }
.show-pane {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  pointer-events: none;
}
.show-pane.on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.show-pane .step { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.show-pane h3 { font-size: clamp(24px, 2.5vw, 32px); margin: 14px 0 14px; }
.show-pane p { color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 46ch; }
.show-pane ul { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.show-pane li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); font-size: 15.5px; }
.show-pane li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); transform: translateY(-2px); box-shadow: 0 0 10px rgba(77, 171, 247, 0.6); }

.show-nav { display: flex; align-items: center; gap: 18px; margin-top: 36px; }
.show-nav button.arw {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  font-size: 17px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.show-nav button.arw:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.07); }
.show-dots { display: flex; gap: 2px; }
.show-dots button {
  width: 9px; height: 9px; border-radius: 50%; padding: 8px;
  box-sizing: content-box; background-clip: content-box; /* хит-зона 25px, точка визуально 9px */
  border: 0; cursor: pointer; background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.show-dots button.on { width: 26px; border-radius: 999px; background: var(--grad); }

/* ---------- Роудмап: нумерованные вехи, ведущие по странице ---------- */

.road { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; position: relative; }
.road::before {
  content: "";
  position: absolute; left: 17px; bottom: calc(100% + 10px);
  height: 72px;
  border-left: 2px dashed rgba(77, 171, 247, 0.26);
}
.road-n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: var(--accent-ink);
  font-weight: 700; font-size: 14px;
  box-shadow: 0 0 18px rgba(77, 171, 247, 0.45);
}
.road-l { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.road.center { justify-content: center; }
.road.center::before { left: 50%; transform: translateX(-1px); }
.road { scroll-margin-top: 96px; }

/* Скраббер роудмапа: на телефоне зажимаешь правый край — появляются номера шагов,
   ведёшь пальцем вверх-вниз и прыгаешь между разделами */
.road-scrub { display: none; }
@media (max-width: 720px) {
  .road-scrub {
    display: block; position: fixed; top: 0; right: 0; bottom: 0;
    width: 44px; z-index: 45; touch-action: none;
  }
  /* тонкая ручка-подсказка у края, всегда видна; гаснет во время захвата */
  .rs-handle {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 44px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s var(--ease);
  }
  .road-scrub.active .rs-handle { opacity: 0; }
  /* колонка номеров, всплывает при захвате — без рамки, только цифры и подпись */
  .rs-list {
    position: absolute; right: 15px; top: 50%;
    display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
    opacity: 0; pointer-events: none; transform: translate(24px, -50%);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease);
  }
  .road-scrub.active .rs-list { opacity: 1; transform: translate(0, -50%); }
  .rs-item {
    display: flex; align-items: center; flex-direction: row-reverse; gap: 0;
    height: 32px; border-radius: 999px; overflow: hidden;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }
  .rs-n {
    flex: none; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    font: 700 12px "Orbitron Digits", "Manrope", sans-serif;
    color: var(--muted);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9), 0 0 3px rgba(0, 0, 0, 0.9);
    transition: color 0.2s var(--ease);
  }
  .rs-l {
    max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
    font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
    color: var(--accent-ink);
    transition: max-width 0.24s var(--ease), opacity 0.2s var(--ease), padding 0.24s var(--ease);
  }
  /* активный пункт — цельная градиентная пилюля: подпись читается как тёмный текст на градиенте */
  .rs-item.cur { background: var(--grad); box-shadow: 0 0 18px rgba(77, 171, 247, 0.55); }
  .rs-item.cur .rs-n { color: var(--accent-ink); text-shadow: none; }
  .rs-item.cur .rs-l { max-width: 240px; opacity: 1; padding-left: 13px; padding-right: 4px; }
}

.show-visual { display: flex; justify-content: center; }
.show-visual .phone { animation: none; width: min(340px, 92vw); }
/* шторка как в герое (родные отступы), низ без поля — кадры доходят до рамки */
.show-visual .phone-screen, .phone-screen.shot { padding: 12px 13px 0; }
/* .shot.full — реальный скрин на весь экран: свой системный бар у кадра,
   свою шторку прячем, но бровь-остров iPhone оставляем */
.phone-screen.shot.full { padding: 0; }
.phone-screen.shot.full::before,
.phone-screen.shot.full .p-status { display: none; }
.phone-screen.shot.full .shot-wrap { width: 100%; margin-left: 0; }
.shot-wrap { position: relative; width: calc(100% + 26px); margin-left: -13px; container-type: inline-size; }
.shot-wrap img { display: block; width: 100%; max-width: none; height: auto; }
.shot-bal {
  position: absolute; left: 7.6%; top: 21.7%;
  font-size: 38px; font-size: 12.8cqw;
  font-weight: 700; line-height: 1; color: #f2f3f8;
  letter-spacing: -0.01em; white-space: nowrap;
  transform: scaleX(0.72); transform-origin: 0 0;   /* кадровые цифры уже орбитроновских */
  text-shadow: 0 0 26px rgba(120, 190, 255, 0.4);
}
.shot-bal small {
  font-size: 27%; font-weight: 600; color: #9aa3b4;
  letter-spacing: 0.02em; margin-left: 10px;
  text-shadow: none;
}

/* ── стек устройств в герое: ноутбук (веб) + телефон спереди ── */
.device-stack { position: relative; max-width: 620px; margin: 0 auto; padding-bottom: 7%; }
.laptop { position: relative; z-index: 1; width: 100%; }
.laptop-lid {
  position: relative; padding: 9px 9px 11px; border-radius: 15px;
  background: linear-gradient(158deg, #40454f, #14161c 33%, #262a33 66%, #0c0e12);
  box-shadow: 0 42px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(77, 171, 247, 0.07);
}
.laptop-cam { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: #14171d; box-shadow: inset 0 0 2px rgba(120, 180, 255, 0.5); }
.laptop-screen { border-radius: 6px; overflow: hidden; background: #05060b; aspect-ratio: 1500 / 965; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04); }
.laptop-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* дека-основание (петля с прорезью), шире крышки */
.laptop-base {
  position: relative; height: 14px; margin: 0 -6.5%;
  border-radius: 0 0 13px 13px;
  background: linear-gradient(180deg, #2c313b, #4b515d 26%, #20232b 58%, #0f1116);
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.5);
}
.laptop-base::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent); }
.laptop-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24%; height: 7px; border-radius: 0 0 9px 9px; background: rgba(0, 0, 0, 0.42); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4); }
/* телефон спереди-справа, меньшего размера */
.device-stack .phone-tilt { position: absolute; right: -4%; bottom: -4%; z-index: 3; transform: scale(0.6); transform-origin: bottom right; }
.device-stack .phone { width: 300px; margin: 0; animation: none; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 70px rgba(77, 171, 247, 0.1); }

/* платформы: android / ios / desktop — под кнопками героя, слева */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pf { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--ink); font: 700 15px "Manrope", sans-serif; letter-spacing: 0.01em; }
.pf svg { width: 26px; height: 26px; fill: var(--cyan); }
/* полные скриншоты приложения из превью, обрезаны по контенту; первый слайд держит высоту стопки */
.show-stack { position: relative; }
.show-screen {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden; transform: scale(0.98);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.show-screen[data-i="0"] { position: relative; }
.show-screen.on { opacity: 1; visibility: visible; transform: none; }
/* боковые поля кадра срезаны в самом PNG: картинка растянута ровно на всю ширину экрана,
   26px компенсируют отступы контейнера, которые нужны шторке.
   max-width: none обязателен, иначе глобальный img { max-width:100% } клампит ширину */
.show-screen img { display: block; width: calc(100% + 26px); max-width: none; margin-left: -13px; height: auto; }


@media (max-width: 900px) {
  .show-grid { grid-template-columns: 1fr; gap: 32px; }
  .show-copy { min-height: 0; }
  .show-panes { position: static; }
  .show-pane { position: static; display: none; }
  .show-pane.on { display: block; }
  /* веха роудмапа и текст идут первыми, телефон под ними: нить пути не разрывается */
  .show-visual { order: 0; }
  .show-nav { margin-top: 24px; }
}

/* ---------- Страница Битвы ---------- */

.battle-hero { padding: 168px 0 40px; text-align: center; position: relative; }
.battle-hero .swords {
  width: 68px; height: 68px; margin: 0 auto 22px;
  color: var(--cyan);
  filter: drop-shadow(0 0 18px rgba(77, 171, 247, 0.5));
}
.battle-hero .swords svg { width: 100%; height: 100%; }
.battle-hero h1 { max-width: 18ch; margin: 0 auto 18px; }
.battle-hero .sub { margin: 0 auto; }

.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.prize {
  position: relative; overflow: hidden;
  border-radius: 24px;
  padding: 30px 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 42%),
    linear-gradient(160deg, #23262e, #0c0e13);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.prize::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 171, 247, 0.18), transparent 68%);
  pointer-events: none;
}
.prize .coin {
  width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #6fb6ff, #2f7fd6 62%, #1a4d86);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #eaf4ff;
  box-shadow: 0 0 20px rgba(77, 171, 247, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
}
.prize .amount {
  font-size: 34px; font-weight: 700;
  background: linear-gradient(180deg, #fff, #aeb6c2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.prize .amount small { font-size: 15px; font-weight: 600; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.prize h3 { font-size: 19px; margin: 12px 0 10px; }
.prize p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.prize .cdetail { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12.5px; font-weight: 700; color: var(--cyan); }

.rules { max-width: 760px; margin: 44px auto 0; }
.rules .core { padding: 30px 32px; }
.rules h3 { font-size: 19px; margin-bottom: 18px; }
.rules ul { list-style: none; display: grid; gap: 13px; text-align: left; }
.rules li { display: flex; gap: 13px; align-items: baseline; color: var(--muted); font-size: 15px; line-height: 1.5; }
.rules li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); transform: translateY(-2px); box-shadow: 0 0 10px rgba(77, 171, 247, 0.6); }
.rules li b { color: var(--ink); font-weight: 700; }

.btabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 34px; background: var(--glass); }
.btabs button {
  border: 0; background: transparent; color: var(--muted);
  font: 700 14px "Orbitron Digits", "Manrope", sans-serif;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  transition: color 0.3s var(--ease);
  display: inline-flex; align-items: center; gap: 8px;
}
.btabs button.on { background: var(--grad); color: var(--accent-ink); }
.btabs button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.bpanel { display: none; }
.bpanel.on { display: block; }

.rank-list { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.rank { display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-align: left; }
.rank .pos { font-size: 20px; font-weight: 700; width: 34px; flex: none; color: var(--dim); }
.rank.top1 .pos, .rank.top2 .pos, .rank.top3 .pos { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rank .who { flex: 1; }
.rank .who .nick { font-weight: 800; font-size: 15.5px; }
.rank .who .meta { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.rank .roi { font-weight: 700; font-size: 17px; color: var(--green); }
.rank .roi.dn { color: var(--red); }

.strat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.strat .core { padding: 22px 24px; text-align: left; }
.strat .stop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.strat .nick { font-weight: 800; font-size: 15px; }
.strat .likes { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--cyan); }
.strat .likes svg { width: 15px; height: 15px; fill: currentColor; }
.strat h3 { font-size: 16.5px; margin-bottom: 8px; }
.strat p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.strat .stats { display: flex; gap: 18px; margin-top: 14px; }
.strat .stats div { font-size: 12px; color: var(--dim); }
.strat .stats b { display: block; font-size: 16px; color: var(--ink); font-weight: 700; margin-top: 2px; }
.strat .stats b.up { color: var(--green); }

/* ---------- Тарифы ---------- */

.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 28px 0 44px;
  background: var(--glass);
}
.billing-toggle button {
  position: relative;
  border: 0; background: transparent; color: var(--muted);
  font: 700 14px "Orbitron Digits", "Manrope", sans-serif;
  padding: 9px 22px; border-radius: 999px; cursor: pointer;
  transition: color 0.3s var(--ease);
}
.billing-toggle button.on { background: var(--grad); color: var(--accent-ink); }
.billing-toggle .save { font-size: 11px; margin-left: 6px; opacity: 0.85; }
/* бейдж скидки в правом верхнем углу кнопки годовой оплаты */
.billing-toggle .disc {
  position: absolute; top: -11px; right: -8px;
  background: #fff; color: #05060b;
  font: 800 10.5px "Orbitron Digits", "Manrope", sans-serif;
  letter-spacing: 0.01em;
  padding: 3px 7px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); gap: 20px; justify-content: center; align-items: stretch; }
/* обе карточки одной высоты: ячейка → обёртка → shell → core тянутся, кнопка прижата вниз */
.plans > * { display: flex; }
.plans > .shell, .plans .shellwrap > .shell { width: 100%; flex-direction: column; }
.plans .shellwrap { flex-direction: column; }
.plans .shellwrap > .shell { flex: 1; }   /* Pro внутри обёртки под бейдж тоже во всю высоту */
.plans .shell > .core { flex: 1; }
.plan-core { padding: 36px 32px; display: flex; flex-direction: column; height: 100%; text-align: left; }
.plan-best .shellwrap { position: relative; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: var(--grad); color: var(--accent-ink);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 14px;
}
.plan-core h3 { font-size: 21px; }
.plan-core .price { font-size: 46px; font-weight: 700; margin: 14px 0 2px; }
.plan-core .price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan-core .price-note { color: var(--dim); font-size: 13.5px; min-height: 20px; }
.plan-core ul { list-style: none; margin: 24px 0 30px; display: grid; gap: 11px; flex: 1; }
.plan-core li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: var(--muted); }
.plan-core li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); transform: translateY(-2px); }
.plan-core li.no { opacity: 0.5; }
.plan-core li.no::before { background: var(--dim); }

/* ---------- FAQ ---------- */

.faq { max-width: 780px; margin: 56px auto 0; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--glass); overflow: hidden; transition: border-color 0.4s var(--ease); }
.faq details[open] { border-color: rgba(77, 171, 247, 0.30); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 19px 24px;
  font-weight: 700; font-size: 15.5px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 22px; font-weight: 300; transition: transform 0.5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }

/* ---------- Финальный CTA ---------- */

.final { text-align: center; padding: 150px 0 130px; position: relative; overflow: hidden; }
.final .h-section { margin-bottom: 14px; }
.final .sub { margin: 0 auto 36px; }
/* мягкое свечение вместо вотермарки: подсветка сцены, а не пятно */
.final::before {
  content: "";
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(940px, 92vw); height: 460px;
  background: radial-gradient(closest-side, rgba(77, 171, 247, 0.12), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Футер ---------- */

footer { border-top: 1px solid var(--line); padding: 52px 0 44px; color: var(--dim); font-size: 13.5px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 30px; align-items: center; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { transition: color 0.3s var(--ease); }
.foot-links a:hover { color: var(--ink); }
.disclaimer { max-width: 900px; line-height: 1.6; }

/* ---------- Страницы auth / кабинет ---------- */

.auth-body { min-height: 100dvh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(430px, 100%); }
.auth-core { padding: 38px 34px; }
.auth-core .logo { justify-content: center; margin-bottom: 12px; }
.auth-core .switch { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-core .switch a { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.btn-google { width: 100%; background: #fff; color: #14161c; font-weight: 700; }
.btn-google:hover { box-shadow: 0 8px 30px rgba(255, 255, 255, 0.16); transform: translateY(-1px); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 12.5px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: 500 15px "Orbitron Digits", "Manrope", sans-serif;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input::placeholder { color: var(--dim); }
.field input:focus { border-color: rgba(77, 171, 247, 0.55); box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.12); }
.form-error { color: var(--red); font-size: 13.5px; min-height: 20px; margin: 4px 0 10px; }
.auth-core .btn-primary { width: 100%; }
.auth-legal { text-align: center; color: var(--dim); font-size: 12.5px; margin-top: 22px; }
.auth-legal a { text-decoration: underline; }

/* Кабинет */
.account { max-width: 720px; margin: 0 auto; padding: 140px 24px 110px; display: grid; gap: 20px; }
.acc-core h2 { font-size: 20px; margin-bottom: 16px; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 15px; }
.acc-row:last-of-type { border-bottom: 0; }
.acc-row .k { color: var(--muted); }
.pill { display: inline-block; border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; }
.pill-trial { background: rgba(77, 171, 247, 0.10); color: var(--cyan); border: 1px solid rgba(77, 171, 247, 0.3); }
.pill-pro { background: rgba(74, 222, 128, 0.10); color: var(--green); border: 1px solid rgba(74, 222, 128, 0.3); }
.pill-off { background: rgba(255, 107, 107, 0.10); color: var(--red); border: 1px solid rgba(255, 107, 107, 0.3); }
.acc-note { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* ---------- Мобильная раскладка ---------- */

@media (max-width: 900px) {
  section { padding: 80px 0; }
  .nav { gap: 14px; padding: 8px 10px 8px 16px; max-width: calc(100vw - 24px); }
  .nav-links { display: none; }
  .hero { padding: 150px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy .h-display { max-width: none; }
  .shark { right: -30%; top: 0; width: 120vw; opacity: 0.10; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  /* текст с вехой роудмапа выше визуала в обоих направлениях сплита */
  .split .split-visual, .split.rev .split-visual { order: 1; }
  .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  .account { padding-top: 120px; }
  .carousel-head { flex-direction: column; align-items: flex-start; }
  .carousel-nav { display: none; }
  .feat { flex-basis: 82%; }
  .battle-hero { padding: 128px 0 32px; }
  .prizes { grid-template-columns: 1fr; }
  .strat-grid { grid-template-columns: 1fr; }
  .btabs { flex-wrap: wrap; }
}

/* ---------- Телефоны: шапка в два ряда, компактная типографика ---------- */

@media (max-width: 720px) {
  /* шапка на телефоне: только логотип и «Войти». Разделы человек листает сам,
     язык определяется автоматически, поэтому ни ссылок, ни тумблера тут нет */
  .nav { padding: 9px 10px 9px 14px; border-radius: 999px; }
  .logo { gap: 9px; font-size: 15px; letter-spacing: 0.03em; }
  .logo img { width: 34px; height: 34px; }
  .logo .tag { font-size: 8px; letter-spacing: 0.26em; }
  .nav-cta .lang, .nav-cta .btn-primary, .lang-corner { display: none; }
  .nav .btn-sm { padding: 11px 20px; font-size: 13.5px; }

  .hero { padding: 150px 0 64px; }
  .battle-hero { padding: 126px 0 32px; }
  .account { padding-top: 122px; }
  .h-display { font-size: clamp(31px, 8.6vw, 44px); }
  .h-section { font-size: clamp(24px, 6.6vw, 32px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  /* три плашки устройств — в одну линию на телефоне, чуть ужимаем и центрируем */
  .platforms { flex-wrap: nowrap; justify-content: center; gap: 7px; }
  .pf { flex: 0 1 auto; min-width: 0; padding: 9px 12px; gap: 7px; font-size: 12.5px; white-space: nowrap; }
  .pf svg { width: 20px; height: 20px; }
  .pf-web { display: none; }   /* «Desktop · Web» → «Desktop», чтобы три плашки влезли в строку */
  /* устройства ниже плашек: телефон масштабируется от низа и на узком экране
     торчит выше короткого ноутбука — даём отступ и запас высоты стеку */
  .hero-visual { margin-top: 30px; }
  .device-stack { max-width: 380px; padding-top: 36px; padding-bottom: 0; }
  .device-stack .phone-tilt { transform: scale(0.5); }

  /* веха: цифра и подпись не расползаются на узком экране */
  .road { gap: 11px; margin-bottom: 18px; }
  .road-n { width: 32px; height: 32px; font-size: 13px; }
  .road-l { font-size: 10.5px; letter-spacing: 0.13em; }
  .road::before { left: 15px; height: 52px; }

  /* тумблер оплаты: подпись про подарок уходит под цену, а не рвёт пилюлю */
  .billing-toggle { width: 100%; max-width: 340px; }
  .billing-toggle button { flex: 1; padding: 11px 12px; font-size: 13px; }
  .billing-toggle .save { display: block; margin: 3px 0 0; font-size: 9.5px; }

  .show-visual .phone, .hero-visual .phone { width: min(300px, 86vw); }
  .carousel-head p { font-size: 14.5px; }
  .feat { flex-basis: 88%; }
  .plan-core .price { font-size: 44px; }
  .faq summary { font-size: 15px; padding: 18px 20px; }
  .faq .a { padding: 0 20px 18px; font-size: 14.5px; }
}

/* ---------- Оптимизация производительности на мобильных ----------
   На iPhone сайт грелся и подтормаживал при скролле из-за самых дорогих
   GPU-эффектов. Здесь снимаем их ТОЛЬКО на мобилке (десктоп не затронут):
   - backdrop-filter на липкой шапке и панели баннера перерисовывается на
     каждый кадр скролла — заменяем на плотный фон без блюра;
   - у фоновых пятен снижаем радиус размытия и убираем вечный дрейф.
   Визуально почти неотличимо: тёмное стекло чуть плотнее, пятна чуть резче. */
@media (max-width: 900px) {
  .nav {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(8, 10, 16, 0.94);
  }
  .banner-panel {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(6, 8, 13, 0.92);
  }
  .lang-menu { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .blob { filter: blur(42px); animation: none; will-change: auto; }
}

/* узкие экраны: меньше боковой отступ, больше места контенту */
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* ───────── Мобильная навигация (бургер) ─────────
   Раньше на телефоне ссылки, язык и «Начать» были недоступны из шапки.
   Бургер раскрывает их выпадающим меню; десктоп не затронут. */
/* Отдельная кнопка-бургер ПОД шапкой + выпадающее меню (строится в site.js на мобилке).
   Сама шапка .nav не трогается — остаётся как была. */
.burger-lines, .burger-lines::before, .burger-lines::after {
  display: block; width: 54px; height: 2px; border-radius: 3px; background: currentColor;
  transition: transform 0.34s var(--ease), opacity 0.28s var(--ease); }
.burger-lines { position: relative; }
.burger-lines::before { content: ""; position: absolute; left: 0; top: -6px; }
.burger-lines::after { content: ""; position: absolute; left: 0; top: 6px; }
.nav-overlay { position: fixed; inset: 0; z-index: 44; background: rgba(3, 5, 10, 0.55);
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.nav-overlay.on { opacity: 1; pointer-events: auto; }
/* мгновенное закрытие при переходе по разделу — без затухания */
.nav-overlay.no-anim { transition: none; }
.mnav.no-anim .mnav-drawer { transition: none; }
.mnav { display: none; }
@media (max-width: 900px) {
  .mnav { display: block; position: fixed; left: 16px; right: 16px; z-index: 45; }
  .mnav-burger { width: 100%; height: 34px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; color: #cfd6e4; cursor: pointer;
    transition: color 0.2s var(--ease); }
  /* чуть приподнять сами полоски (тап-зону кнопки не меняем) */
  .mnav-burger .burger-lines { transform: translateY(-5px); }
  .mnav.open .mnav-burger { color: var(--cyan); }
  /* три полоски -> одна линия при открытии */
  .mnav.open .burger-lines::before { transform: translateY(6px); opacity: 0; }
  .mnav.open .burger-lines::after { transform: translateY(-6px); opacity: 0; }
  /* выпадающее меню: фон/скругление на базе, чтобы при сворачивании фон и
     текст схлопывались одним блоком; паддинг тоже анимируется. Закрытое —
     max-height:0 + padding:0 → нулевая высота, ничего не видно. */
  .mnav-drawer { max-height: 0; overflow: hidden; margin-top: 8px; padding: 0 6px;
    border-radius: 16px; background: rgba(13, 17, 27, 0.97);
    transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1), padding 0.4s cubic-bezier(.4, 0, .2, 1); }
  .mnav.open .mnav-drawer { max-height: 80vh; overflow-y: auto; padding: 6px;
    scrollbar-width: none; -ms-overflow-style: none; }
  /* прячем сам скролл-бар (мелькал при развороте), прокрутка остаётся */
  .mnav-drawer::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .mnav-drawer a:not(.mnav-start), .mnav-drawer .mnav-lang { display: flex; align-items: center; gap: 8px;
    padding: 13px 12px; border-radius: 10px; color: var(--muted); font-size: 16px; text-decoration: none; }
  .mnav-drawer a:not(.mnav-start):hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
  .mnav-lang { color: var(--ink); font-weight: 700; letter-spacing: 0.04em; }
  .mnav-lang .flag { width: 22px; height: 15px; }
  .mnav-start { display: flex; justify-content: center; margin-top: 6px; width: 100%; }
}

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