/* KAIROS demo v2 — «тихая премиальность»: почти чёрный холодный фон, один акцент бренда,
   тонкие линии, свечение за главным объектом, стекло только на плавающих слоях.
   Акцент приходит из brands.json (--accent), всё остальное выводится из него в oklch. */
:root {
  --bg: #07090F;
  --bg-2: #0B0E17;
  --surface: rgba(255, 255, 255, .028);
  --surface-2: rgba(255, 255, 255, .05);
  --surface-3: rgba(255, 255, 255, .08);
  --hair: rgba(255, 255, 255, .075);
  --hair-2: rgba(255, 255, 255, .13);
  --text: #EEF0F6;
  --muted: #8C93A6;
  --faint: #596075;
  --up: oklch(0.80 0.15 162);
  --down: oklch(0.70 0.18 18);
  --draw: #A4ABBD;
  --accent: #8C7BFF;
  --accent-ink: #0B1226;
  --accent-soft: color-mix(in oklch, var(--accent) 18%, transparent);
  --accent-line: color-mix(in oklch, var(--accent) 45%, transparent);
  --r-xl: 24px; --r-lg: 18px; --r-md: 12px; --r-sm: 9px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--body);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* фоновое свечение бренда: два мягких пятна, едва дышат */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 78% 8%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(36vmax 26vmax at 6% 92%, color-mix(in oklch, var(--accent) 9%, transparent), transparent 70%);
  animation: breathe 18s var(--ease) infinite alternate;
}
@keyframes breathe { to { transform: translate3d(-2vmax, 1.5vmax, 0) scale(1.05); } }
/* тонкая сетка — едва видна, даёт «инженерную» фактуру */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--hair) 1px, transparent 1px), linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 75%);
  opacity: .35;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
a { color: var(--accent); text-underline-offset: 3px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
[hidden] { display: none !important; }

/* ================================================================ стекло */
.glass {
  background: color-mix(in oklch, var(--bg-2) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--hair-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 50px -20px rgba(0, 0, 0, .7);
}

/* ================================================================ шапка */
.top {
  position: sticky; top: 10px; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  max-width: 1280px; margin: 10px auto 0; padding: 8px 8px 8px 16px;
  border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 15px/1 var(--display); letter-spacing: .08em; color: var(--text); }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 210deg, var(--accent), transparent 70%, var(--accent)); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 3px var(--accent); }
.nav { display: flex; gap: 2px; margin: 0 auto; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); }
.nav button {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav button svg { width: 16px; height: 16px; }
.nav button:hover { color: var(--text); }
.nav button[aria-current="page"] { color: var(--text); background: var(--surface-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.me { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav:not([hidden]) + .me { margin-left: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--hair); font-size: 13px; color: var(--muted); white-space: nowrap;
}
.chip b { color: var(--text); font: 600 13px var(--mono); }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hair-2); background: linear-gradient(135deg, var(--accent), color-mix(in oklch, var(--accent) 30%, #000)); display: grid; place-items: center; font: 700 12px var(--display); color: var(--accent-ink); }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--hair-2); }
.icon-btn svg { width: 16px; height: 16px; }

/* нижний док — мобильная навигация */
.dock { display: none; }

/* ================================================================ раскладка */
main { max-width: 1280px; margin: 0 auto; padding: 28px 20px 120px; view-transition-name: main-view; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 6px 4px 22px; }
.page-head h1 { margin: 0; font: 600 clamp(26px, 3.2vw, 38px)/1.05 var(--display); letter-spacing: -.02em; }
.page-head p { margin: 8px 0 0; color: var(--muted); max-width: 580px; }
.eyebrow { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 color-mix(in oklch, var(--up) 60%, transparent); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } }

/* плитка: тонкая рамка + подсветка рамки за курсором */
.tile {
  position: relative; border-radius: var(--r-xl); padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  isolation: isolate;
}
.tile::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, -999px) var(--my, -999px), var(--accent-line), transparent 60%);
  -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 .3s;
}
.tile:hover::before { opacity: 1; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tile-title { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.tile h2 { margin: 0; font: 600 20px/1.2 var(--display); letter-spacing: -.01em; }

/* ================================================================ бенто экрана сигнала */
.bento { display: grid; gap: 14px; grid-template-columns: 290px minmax(0, 1fr) 320px; align-items: start; }
.col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; min-width: 0; }
.col-left { position: sticky; top: 84px; }

/* ================================================================ контролы */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(0, 0, 0, .25); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 6px; border-radius: 9px; color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.seg button[aria-pressed="true"] { color: var(--text); background: var(--surface-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 3px rgba(0, 0, 0, .4); }
.field { display: grid; gap: 8px; margin-top: 18px; }
.field > label, .field-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.field > label b { color: var(--text); font: 600 13px var(--mono); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--surface-3) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--surface-3); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 20%, transparent); transition: transform .2s var(--spring); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.pairs { display: flex; flex-wrap: wrap; gap: 6px; max-height: 164px; overflow: auto; scrollbar-width: thin; }
.pairs button { border: 1px solid var(--hair); background: rgba(0, 0, 0, .2); border-radius: 999px; padding: 4px 10px; font: 12px var(--mono); color: var(--muted); transition: all .2s; }
.pairs button i { font-style: normal; color: var(--faint); margin-left: 4px; }
.pairs button[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.hint { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; line-height: 1.5; }
.strategy-on { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--accent-line); font-size: 13px; }
.strategy-on button { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--hair-2); background: var(--surface-2); color: var(--text);
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn.primary {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px -12px var(--accent);
}
.btn.primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 40px -10px var(--accent); }
.btn.ghost { background: none; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }

/* ================================================================ сигнал */
.sig-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.pair-name { font: 600 clamp(24px, 2.6vw, 32px)/1.05 var(--display); letter-spacing: -.02em; }
.pair-sub { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 500 12px var(--mono); color: var(--muted); background: var(--surface-2); border: 1px solid var(--hair); }
.badge.accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
button.badge { cursor: pointer; }
.badge svg { width: 13px; height: 13px; flex: none; }
button.badge:hover { color: var(--text); }
.sig-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 18px; }
.sig-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair); }
.sig-foot .btn.primary { flex: 1 1 200px; }

/* --- циферблат момента: фирменный элемент --- */
.dial { position: relative; width: 248px; aspect-ratio: 1; flex: none; }
.dial::before {
  content: ""; position: absolute; inset: 16%; border-radius: 50%; filter: blur(36px); opacity: .38;
  background: var(--glow, var(--accent)); transition: background .5s; z-index: 0;
}
.dial[data-dir="up"] { --glow: var(--up); --ring: var(--up); }
.dial[data-dir="down"] { --glow: var(--down); --ring: var(--down); }
.dial > svg { position: relative; z-index: 1; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dial .ticks line { stroke: var(--hair-2); stroke-width: 1.5; }
.dial .track { stroke: rgba(255, 255, 255, .06); }
.dial .sweep { stroke: var(--ring, var(--accent)); stroke-linecap: round; filter: drop-shadow(0 0 6px var(--ring, var(--accent))); transition: stroke .3s; }
.dial .payout-arc { stroke: color-mix(in oklch, var(--accent) 60%, transparent); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.dial-center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; }
.dial-face { width: 70%; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .07), rgba(0, 0, 0, .4)); border: 1px solid var(--hair); }
.dial-arrow { width: 50px; height: 50px; margin: 0 auto; color: var(--ring, var(--faint)); transition: transform .6s var(--spring), color .3s; }
.dial[data-dir="down"] .dial-arrow { transform: rotate(180deg); }
.dial-dir { font: 600 11.5px/1 var(--display); letter-spacing: .2em; color: var(--ring, var(--muted)); margin-top: 6px; }
.dial-time { font: 600 26px/1.1 var(--mono); font-variant-numeric: tabular-nums; margin-top: 8px; letter-spacing: -.02em; }
.dial-sub { font-size: 11px; color: var(--faint); }
.dial[data-scan="1"] > svg { animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(270deg); } }
.stamp {
  position: absolute; inset: 15%; z-index: 3; border-radius: 50%; display: grid; place-content: center; text-align: center;
  font: 700 21px/1.1 var(--display); letter-spacing: .12em;
  background: color-mix(in oklch, var(--bg) 80%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 2px solid currentColor; opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .25s, transform .6s var(--spring);
}
.stamp small { display: block; font: 600 15px var(--mono); letter-spacing: 0; margin-top: 6px; }
.stamp.show { opacity: 1; transform: scale(1); }
.stamp.win { color: var(--up); box-shadow: 0 0 70px -12px var(--up); }
.stamp.loss { color: var(--down); box-shadow: 0 0 70px -12px var(--down); }
.stamp.draw { color: var(--draw); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--hair); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hair); }
.stat { background: var(--bg-2); padding: 12px 14px; min-width: 0; }
.stat > span { display: block; font-size: 12px; color: var(--muted); }
.stat b { display: block; font: 600 20px/1.3 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.stat .meter { height: 3px; border-radius: 3px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.stat .meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .6s var(--ease); }
.stat.wide { grid-column: 1 / -1; }
.spark { width: 100%; height: 40px; display: block; margin-top: 6px; overflow: visible; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.risk-note { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-md); background: color-mix(in oklch, var(--down) 10%, transparent); border: 1px solid color-mix(in oklch, var(--down) 30%, transparent); font-size: 13px; }

/* --- ИИ-разбор --- */
.ai-badge {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px;
  font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--text);
  background: linear-gradient(90deg, var(--accent-soft), color-mix(in oklch, var(--accent) 5%, transparent)); border: 1px solid var(--accent-line);
}
.ai-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: ping 2s infinite; }
.ai-title { font: 600 20px/1.25 var(--display); letter-spacing: -.015em; margin: 14px 0 0; }
.ai-body { margin: 8px 0 0; font-size: 15.5px; color: #D7DBE7; min-height: 3em; }
.ai-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ai-list li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 14px; color: var(--muted); }
.ai-list li::before { content: ""; width: 6px; height: 6px; margin: 8px 0 0 4px; border-radius: 2px; background: var(--accent); opacity: .7; transform: rotate(45deg); }
.ai-proof { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(0, 0, 0, .24); border: 1px solid var(--hair); }
.ring { width: 46px; height: 46px; flex: none; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); display: grid; place-items: center; }
.ring::after { content: attr(data-v); width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font: 600 11px var(--mono); }
.ai-proof b { font: 600 15px var(--mono); }
.ai-proof span { display: block; font-size: 12.5px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted); background: var(--surface); }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.skeleton { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-3) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; margin-top: 12px; }
.skeleton.w60 { width: 60%; } .skeleton.w80 { width: 80%; } .skeleton.w40 { width: 40%; height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --- перекрытие --- */
.cover { margin-top: 16px; padding: 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, color-mix(in oklch, var(--down) 10%, transparent), transparent); border: 1px solid color-mix(in oklch, var(--down) 28%, transparent); }
.cover h3 { margin: 0; font: 600 16px/1.3 var(--display); }
.cover p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.chain { display: flex; gap: 6px; margin: 12px 0; overflow-x: auto; padding-bottom: 2px; }
.chain div { flex: 1 0 86px; padding: 8px 10px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .25); border: 1px solid var(--hair); font: 11.5px var(--mono); color: var(--muted); }
.chain div b { display: block; font-size: 15px; color: var(--text); }

/* --- лента --- */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; max-height: 470px; overflow: auto; scrollbar-width: none; mask-image: linear-gradient(#000 82%, transparent); }
.feed li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: var(--r-sm); }
.feed li:hover { background: var(--surface); }
.feed li.fresh { animation: slide .6s var(--ease); }
@keyframes slide { from { opacity: 0; transform: translateY(-8px); background: var(--accent-soft); } }
.res-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 700 14px var(--mono); }
.res-ic.win { background: color-mix(in oklch, var(--up) 14%, transparent); color: var(--up); }
.res-ic.loss { background: color-mix(in oklch, var(--down) 14%, transparent); color: var(--down); }
.res-ic.draw { background: var(--surface-2); color: var(--draw); }
.f-pair { font-size: 13.5px; font-weight: 500; }
.f-meta { font: 11.5px var(--mono); color: var(--faint); }
.f-res { font: 600 12px var(--mono); text-align: right; }
.kpi-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpi-mini { padding: 10px 12px; border-radius: var(--r-md); background: rgba(0, 0, 0, .22); border: 1px solid var(--hair); }
.kpi-mini span { font-size: 12px; color: var(--muted); display: block; }
.kpi-mini b { font: 600 18px var(--mono); }

/* --- задания --- */
.goal { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; }
.goal + .goal { border-top: 1px solid var(--hair); }
.goal .ring { width: 38px; height: 38px; }
.goal .ring::after { width: 30px; height: 30px; }
.goal.done .ring::after { content: "✓"; color: var(--accent); font-size: 14px; }
.goal span { font-size: 13.5px; }
.goal b { font: 600 12px var(--mono); color: var(--muted); }

/* ================================================================ выплаты */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--hair-2); position: relative; transition: background .25s; margin: 0; flex: none; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .35s var(--spring); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.cell {
  position: relative; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--hair); overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in oklch, var(--accent) calc(var(--heat) * 1%), transparent), transparent 70%),
    var(--surface);
  transition: border-color .3s, transform .3s var(--ease);
}
.cell:hover { transform: translateY(-2px); border-color: var(--hair-2); }
.c-pair { font-size: 13px; color: var(--muted); }
.c-pay { font: 600 30px/1.1 var(--mono); letter-spacing: -.03em; margin-top: 4px; }
.c-be { font: 11.5px var(--mono); color: var(--faint); }
.crowd { display: flex; height: 4px; border-radius: 4px; overflow: hidden; margin-top: 12px; gap: 2px; }
.crowd i { background: var(--up); border-radius: 4px; transition: width .6s var(--ease); }
.crowd s { flex: 1; background: var(--down); border-radius: 4px; }
.crowd-l { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--faint); margin-top: 5px; }
.star { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--faint); display: grid; place-items: center; transition: color .2s, transform .3s var(--spring); }
.star svg { width: 16px; height: 16px; }
.star[aria-pressed="true"] { color: var(--accent); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.star:active { transform: scale(1.3); }
.cell.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 20% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); } }

/* ================================================================ стратегии */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.strat h3 { margin: 0; font: 600 18px/1.25 var(--display); letter-spacing: -.01em; }
.strat p { color: var(--muted); font-size: 14px; margin: 8px 0 16px; min-height: 42px; }
.strat .nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px; }
.strat .nums span { display: block; font-size: 12px; color: var(--faint); }
.strat .nums b { font: 600 20px var(--mono); letter-spacing: -.02em; }
.wr-bar { position: relative; height: 6px; margin: 18px 0 6px; border-radius: 6px; background: var(--surface-3); }
.wr-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--accent); }
.wr-bar em { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--text); border-radius: 2px; }
.wr-l { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--faint); }
.strat[aria-current="true"] { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), transparent 70%); }

/* ================================================================ журнал */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi span { display: block; font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font: 600 28px/1.2 var(--mono); letter-spacing: -.03em; margin-top: 6px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--faint); font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--surface); }
canvas { width: 100%; display: block; }
.empty { display: grid; place-items: center; gap: 12px; text-align: center; color: var(--muted); padding: 36px 20px; border: 1px dashed var(--hair-2); border-radius: var(--r-lg); }
.stack { display: grid; gap: 14px; }

/* ================================================================ риск */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.span-2 { grid-column: 1 / -1; }
.input { width: 100%; height: 44px; background: rgba(0, 0, 0, .25); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 0 14px; font: 15px var(--mono); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 4px var(--accent-soft); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--muted); }
.row:last-child { border-bottom: 0; }
.row b { font: 600 15px var(--mono); color: var(--text); text-align: right; }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.verdict { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); font-size: 14px; line-height: 1.55; background: rgba(0, 0, 0, .22); border: 1px solid var(--hair); }

/* ================================================================ прогресс */
.level-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.lvl-ring { width: 112px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); display: grid; place-items: center; box-shadow: 0 0 50px -14px var(--accent); }
.lvl-ring div { width: 94px; aspect-ratio: 1; border-radius: 50%; background: var(--bg-2); display: grid; place-content: center; text-align: center; }
.lvl-ring b { font: 700 34px/1 var(--display); }
.lvl-ring span { font: 10px var(--mono); color: var(--muted); letter-spacing: .12em; margin-top: 4px; }
.tiers { display: grid; gap: 8px; margin-top: 18px; }
.tier { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--hair); background: rgba(0, 0, 0, .2); align-items: baseline; }
.tier b { font: 600 14px var(--display); }
.tier span { font: 12px var(--mono); color: var(--faint); }
.tier p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--muted); }
.lead-row { display: grid; grid-template-columns: 24px 32px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: var(--r-sm); }
.lead-row.me { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.lead-row .pos { font: 600 13px var(--mono); color: var(--faint); }
.lead-row .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--display); background: var(--surface-3); }
.lead-row b { font: 600 14px var(--mono); }
.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ach-card { padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--hair); background: var(--surface); display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; filter: grayscale(1); opacity: .45; transition: all .3s; }
.ach-card.got { filter: none; opacity: 1; border-color: var(--accent-line); }
.ach-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ach-card .ic svg { width: 20px; height: 20px; }
.ach-card b { display: block; font-size: 14px; }
.ach-card span { font-size: 12px; color: var(--muted); }

/* ================================================================ гость */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0 10px; }
.hero h1 { font: 600 clamp(34px, 4.4vw, 60px)/1.04 var(--display); letter-spacing: -.035em; margin: 20px 0 0; }
.hero h1 .w { display: inline-block; animation: word 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes word { from { opacity: 0; transform: translateY(.35em); filter: blur(8px); } }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), color-mix(in oklch, var(--accent) 45%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted); max-width: 540px; margin: 22px 0 0; }
.login { display: grid; gap: 10px; max-width: 400px; margin-top: 28px; }
.login .note { font-size: 12.5px; color: var(--faint); margin: 0; }
.login .err { color: var(--down); font-size: 13px; margin: 0; min-height: 1em; }
.hero-stage { position: relative; display: grid; justify-items: center; padding: 30px 20px 24px; border-radius: 32px; }
.hero-stage .dial { width: min(320px, 74vw); }
.hero-pair { font: 600 20px var(--display); margin-top: 14px; letter-spacing: -.01em; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.float-card { position: absolute; padding: 10px 14px; border-radius: 16px; font-size: 12.5px; color: var(--muted); animation: float 6s var(--ease) infinite alternate; }
.float-card b { display: block; font: 600 16px var(--mono); color: var(--text); }
.float-card.a { top: 9%; left: -7%; }
.float-card.b { bottom: 18%; right: -7%; animation-delay: -3s; }
@keyframes float { to { transform: translateY(-10px); } }
.marquee { overflow: hidden; margin: 44px 0; padding: 14px 0; border-block: 1px solid var(--hair); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 30px; width: max-content; animation: marquee 60s linear infinite; font: 13px var(--mono); color: var(--muted); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }
.section-title { font: 600 clamp(24px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.025em; margin: 0 4px 18px; }
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@supports (animation-timeline: view()) {
  .features .tile, .steps .tile { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
}
@keyframes reveal { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.f-wide { grid-column: span 4; } .f-mid { grid-column: span 3; } .f-small { grid-column: span 2; }
.features h3 { margin: 12px 0 6px; font: 600 19px/1.25 var(--display); letter-spacing: -.01em; }
.features p { margin: 0; color: var(--muted); font-size: 14.5px; }
.mini-heat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 16px; }
.mini-heat div { padding: 8px 10px; border-radius: 10px; font: 600 15px var(--mono); background: color-mix(in oklch, var(--accent) calc(var(--heat) * 1%), var(--surface)); border: 1px solid var(--hair); }
.mini-heat div small { display: block; font: 10.5px var(--mono); color: var(--muted); }
.ai-sample { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: rgba(0, 0, 0, .25); border: 1px solid var(--hair); font-size: 14px; color: #D7DBE7; }
.ai-sample b { display: block; font: 600 15px var(--display); margin: 8px 0 4px; color: var(--text); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); border: 1px solid var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.steps h3 { margin: 14px 0 6px; font: 600 17px var(--display); }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.promo { font-family: var(--mono); padding: 1px 8px; border-radius: 6px; border: 1px dashed var(--accent-line); color: var(--text); }
.legal { margin: 40px 4px 0; font-size: 12.5px; color: var(--faint); max-width: 760px; }

/* ================================================================ демо-панель и тосты */
.brand-switch { position: fixed; right: 16px; bottom: 16px; z-index: 40; border-radius: 18px; padding: 10px; display: grid; gap: 8px; }
.brand-switch small { color: var(--faint); font: 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.brand-switch .row-b { display: flex; gap: 6px; }
.brand-switch button { border: 1px solid var(--hair); background: var(--surface); border-radius: 999px; padding: 5px 11px; font: 600 11.5px var(--display); letter-spacing: .04em; transition: all .2s; }
.brand-switch button[aria-pressed="true"] { border-color: currentColor; box-shadow: 0 0 16px -4px currentColor; }
.speed { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.speed select { height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--hair); padding: 0 8px; }
.toasts { position: fixed; right: 16px; top: 80px; z-index: 50; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.toast {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: 16px; font-size: 14px;
  transition: opacity .3s, transform .45s var(--spring);
}
@starting-style { .toast { opacity: 0; transform: translateY(-10px) scale(.96); } }
.toast.out { opacity: 0; transform: translateX(24px); }
.toast .t-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 14px var(--mono); }
.toast.win .t-ic { background: color-mix(in oklch, var(--up) 16%, transparent); color: var(--up); }
.toast.loss .t-ic { background: color-mix(in oklch, var(--down) 16%, transparent); color: var(--down); }

/* переходы между вкладками (View Transitions API, где есть) */
::view-transition-old(main-view) { animation: vt-out .16s var(--ease) both; }
::view-transition-new(main-view) { animation: vt-in .4s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }


/* ================================================================ v3: экран сигнала для новичка */
.signal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; max-width: 1180px; margin: 0 auto; }
.signal-layout .side { position: sticky; top: 84px; }
.setup { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 10px 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--hair); }
.setup-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.setup-item .seg { min-width: 0; }
.setup-item .seg button { padding: 6px 12px; font-size: 13.5px; white-space: nowrap; }
.pick-row { max-height: none; padding: 2px; }
.pick-row button { padding: 6px 12px; font-size: 12.5px; }
.sig-body.single { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.howto { min-width: 0; }
.howto-title { font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.howto-title b { font-size: 15px; letter-spacing: 0; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hair); background: var(--hair); }
.steps-list li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 10px; align-items: center; padding: 11px 14px; background: var(--bg-2); font-size: 14px; color: var(--muted); }
.steps-list .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--mono); color: var(--accent); background: var(--accent-soft); }
.steps-list b { font: 600 16px var(--mono); color: var(--text); text-align: right; }
.steps-list li:not(:first-child) b { grid-column: 3 / 5; }
.steps-list li.dir-up { background: color-mix(in oklch, var(--up) 10%, var(--bg-2)); }
.steps-list li.dir-down { background: color-mix(in oklch, var(--down) 10%, var(--bg-2)); }
.steps-list li.dir-up b { color: var(--up); font-family: var(--display); letter-spacing: .06em; }
.steps-list li.dir-down b { color: var(--down); font-family: var(--display); letter-spacing: .06em; }
.copy { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--hair); background: var(--surface); color: var(--muted); display: grid; place-items: center; }
.copy:hover { color: var(--text); border-color: var(--hair-2); }
.copy svg { width: 14px; height: 14px; }
.mini-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.mini-facts > div { padding: 10px 12px; border-radius: var(--r-md); background: rgba(0, 0, 0, .22); border: 1px solid var(--hair); min-width: 0; }
.mini-facts span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.mini-facts b { display: block; font: 600 19px/1.3 var(--mono); }
.mini-facts em { display: block; font-style: normal; font-size: 11.5px; color: var(--faint); }
.mini-facts .meter { display: block; height: 3px; border-radius: 3px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.mini-facts .meter i { display: block; height: 100%; background: var(--accent); }
.q { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--hair-2); font: 600 9.5px var(--body); font-style: normal; color: var(--faint); cursor: help; }
.q:hover, .q:focus { color: var(--text); border-color: var(--muted); }
.price-line { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.price-line b { font-family: var(--mono); }
.hint.center { text-align: center; }
.more { margin-top: 12px; border: 0; background: none; padding: 0; color: var(--accent); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.feed-sum { margin: -4px 0 10px; font-size: 13.5px; color: var(--muted); }
.feed-sum b { color: var(--text); font-family: var(--mono); }
.inline-ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--accent); }
.icon-btn { font: 600 14px var(--body); }

/* выплаты: плитка — кнопка «сигнал по паре» */
button.cell { display: block; width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.cell .c-pair, .cell .c-pay, .cell .c-sub { display: block; }
.c-sub { font: 12px var(--mono); color: var(--muted); }
.c-go { display: block; margin-top: 12px; font-size: 12.5px; color: var(--accent); opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s var(--ease); }
.cell:hover .c-go, .cell:focus-visible .c-go { opacity: 1; transform: none; }
.cell .crowd { display: flex; }
.cell .crowd-l { display: flex; }

.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.features.four .tile { grid-column: auto; }
details.adv { margin-top: 18px; border-top: 1px solid var(--hair); padding-top: 14px; }
details.adv summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px; }
details.adv summary::before { content: "›"; display: inline-block; transition: transform .2s; font-size: 18px; line-height: 1; }
details.adv[open] summary::before { transform: rotate(90deg); }
details.adv summary::-webkit-details-marker { display: none; }

/* знакомство */
.tour-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(3, 5, 10, .6); backdrop-filter: blur(3px); }
@starting-style { .tour-backdrop { opacity: 0; } }
.tour-backdrop { transition: opacity .3s; }
.tour { width: min(420px, 100%); padding: 26px; border-radius: 26px; }
@starting-style { .tour { transform: translateY(14px) scale(.97); } }
.tour { transition: transform .45s var(--spring); }
.tour h2 { margin: 14px 0 8px; font: 600 24px/1.2 var(--display); letter-spacing: -.02em; }
.tour p { margin: 0; color: #CDD2DE; font-size: 15.5px; }
.tour .actions { margin-top: 22px; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--surface-3); }
.tour-dots i.on { background: var(--accent); }

@media (max-width: 1100px) {
  .signal-layout { grid-template-columns: minmax(0, 1fr); }
  .signal-layout .side { position: static; }
  .features.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .signal-layout .col { display: grid; }
  .setup { gap: 8px; }
  .setup-item { width: 100%; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  .setup-item .seg button { padding: 6px 4px; font-size: 13px; }
  .steps-list li { padding: 10px 12px; gap: 8px; }
  .steps-list b { font-size: 15px; }
  .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.three .kpi b { font-size: 20px; }
  .features.four { grid-template-columns: minmax(0, 1fr); }
  .mini-facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}


/* ================================================================ v3: «Пары» */
.tier-high { --tier: oklch(0.82 0.14 172); }
.tier-mid  { --tier: oklch(0.76 0.12 245); }
.tier-low  { --tier: oklch(0.80 0.11 75); }
.tier-off  { --tier: #5F6678; }
.prow.tier-off { opacity: .6; }
.prow.tier-off .pgo { visibility: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -6px 4px 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--tier); box-shadow: 0 0 10px -2px var(--tier); }
.flags { display: inline-flex; flex: none; }
.cur { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--body); color: #fff; letter-spacing: -.02em;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklch, var(--c) 70%, #fff), var(--c) 70%); box-shadow: 0 0 0 2px var(--bg), inset 0 -2px 4px rgba(0, 0, 0, .25); }
.cur + .cur { margin-left: -5px; }
.cur:first-child { position: relative; z-index: 1; }
.flags.big .cur { width: 40px; height: 40px; font-size: 14px; }
.flags.big .cur + .cur { margin-left: -7px; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.feat {
  position: relative; display: grid; gap: 6px; text-align: left; padding: 18px; border-radius: var(--r-xl); cursor: pointer; color: inherit; font: inherit; overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--tier) 30%, var(--hair));
  background:
    radial-gradient(90% 70% at 100% 0%, color-mix(in oklch, var(--tier) 16%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.feat:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--tier) 55%, var(--hair)); box-shadow: 0 20px 40px -24px var(--tier); }
.feat-top { display: flex; align-items: center; justify-content: space-between; }
.rank { font: 600 12px var(--mono); color: var(--faint); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--hair); }
.feat-name { font: 600 17px var(--display); letter-spacing: -.01em; margin-top: 8px; }
.feat-pay { display: flex; align-items: baseline; gap: 10px; }
.feat-pay .pay-val { font: 600 44px/1 var(--mono); letter-spacing: -.04em; color: var(--tier); }
.tier-chip { font: 500 11.5px var(--mono); padding: 3px 8px; border-radius: 999px; color: var(--tier); background: color-mix(in oklch, var(--tier) 14%, transparent); }
.feat-ret { font: 13px var(--mono); color: var(--muted); }
.feat-spark { display: block; height: 44px; margin: 6px 0 2px; opacity: .9; }
.feat-spark svg, .pspark svg { width: 100%; height: 100%; display: block; }
.feat .crowd { margin-top: 4px; }
.feat-go { margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--tier); }

.plist { padding: 8px 8px 6px; }
.plist .tile-head { padding: 10px 12px 4px; margin-bottom: 4px; }
.prow {
  display: grid; grid-template-columns: auto minmax(130px, 1fr) 120px minmax(120px, 1.4fr) 110px 18px; gap: 18px; align-items: center;
  width: 100%; padding: 11px 12px; border: 0; border-radius: var(--r-md); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background .2s;
}
.prow + .prow { box-shadow: 0 -1px 0 var(--hair); }
.prow:hover { background: var(--surface-2); }
.pname b { display: block; font: 600 15px var(--body); }
.pname small { font: 11.5px var(--mono); color: var(--faint); }
.pspark { display: block; height: 28px; }
.prow .pspark polyline { stroke: var(--muted); opacity: .55; }
.prow:hover .pspark polyline { opacity: 1; }
.cur.sm { font-size: 9px; letter-spacing: -.04em; }
.flags.big .cur.sm { font-size: 12px; }
.pbar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, color-mix(in oklch, var(--tier) 40%, transparent), var(--tier)); transition: width .6s var(--ease); }
.ppay { text-align: right; }
.ppay b { display: block; font: 600 20px/1.1 var(--mono); color: var(--tier); letter-spacing: -.02em; }
.ppay small { font: 11px var(--mono); color: var(--faint); }
.pgo { color: var(--faint); font-size: 22px; line-height: 1; transition: transform .2s, color .2s; }
.prow:hover .pgo { color: var(--text); transform: translateX(3px); }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

@media (max-width: 1100px) {
  .prow { grid-template-columns: auto minmax(110px, 1fr) 110px 100px 18px; }
  .prow .pbar { display: none; }
}
@media (max-width: 860px) {
  .podium { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -14px 14px; padding: 0 14px 4px; }
  .podium::-webkit-scrollbar { display: none; }
  .feat { scroll-snap-align: center; }
  .feat-pay .pay-val { font-size: 38px; }
  .prow { grid-template-columns: auto minmax(0, 1fr) 64px 84px; gap: 12px; padding: 11px 8px; }
  .prow .pgo { display: none; }
}

/* ================================================================ адаптив */
@media (max-width: 1180px) {
  .bento { grid-template-columns: minmax(0, 1fr) 320px; }
  .col-left { position: static; grid-column: 1 / -1; order: 3; }
}
@media (max-width: 860px) {
  .top { top: 8px; margin: 8px 10px 0; }
  .nav { display: none; }
  .chip.hide-m { display: none; }
  .dock {
    display: flex; position: fixed; z-index: 35; left: 50%; bottom: 14px; transform: translateX(-50%);
    gap: 2px; padding: 6px; border-radius: 24px; max-width: calc(100vw - 20px);
  }
  .dock button { display: grid; justify-items: center; gap: 3px; width: 54px; padding: 7px 0 5px; border: 0; background: none; border-radius: 17px; color: var(--muted); font-size: 10px; transition: color .2s, background .2s; }
  .dock button svg { width: 20px; height: 20px; }
  .dock button[aria-current="page"] { color: var(--text); background: var(--surface-3); }
  main { padding: 18px 14px 130px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .col { display: contents; }
  .a-signal { order: 1; } .a-ai { order: 2; } .a-filters { order: 3; } .a-goals { order: 4; } .a-feed { order: 5; }
  .sig-body { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; }
  .sig-body > div:not(.dial) { width: 100%; }
  .dial { width: min(200px, 56vw); }
  .dial-time { font-size: 22px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 12px; }
  .float-card { display: none; }
  .grid-2, .steps, .fields-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: minmax(0, 1fr); }
  .f-wide, .f-mid, .f-small { grid-column: auto; }
  .brand-switch { right: 10px; bottom: 96px; padding: 6px; border-radius: 14px; }
  .brand-switch small, .brand-switch .speed { display: none; }
  .brand-switch button:not([aria-pressed="true"]) { display: none; }
  .brand-switch button { padding: 4px 8px; font-size: 10px; }
  .page-head { flex-direction: column; align-items: start; }
  .toasts { top: 70px; }
  .tile { padding: 16px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-old(main-view), ::view-transition-new(main-view) { animation: none !important; }
}
