/* Шрифты лежат на нашем сервере (/fonts): не ждём Google Fonts, текст виден сразу (font-display: swap) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Design system: Swiss Modernism · light · trust navy (ui-ux-pro-max) */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --line: #e3e7ed;
  --line-2: #cdd3dc;
  --text: #0f172a;
  --muted: #556074;
  --dim: #6b7486;
  --primary: #1e3a8a;
  --primary-hover: #172e6e;
  --primary-soft: #eef2fb;
  --up: #15803d;
  --up-soft: #ecf6ef;
  --down: #b42318;
  --down-soft: #fbeeec;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px -6px rgba(15, 23, 42, .08);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
body > main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.container { width: min(1160px, 100% - 48px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(246, 247, 249, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--primary); color: #fff; }
.logo small { display: none; }
.nav { display: flex; gap: 4px; margin-right: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.burger { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; place-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
  touch-action: manipulation;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--muted); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- common ---------- */
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--primary); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.accent { color: var(--primary); }
.up { color: var(--up); }
.down { color: var(--down); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }

.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; margin: 10px 0 14px; max-width: 760px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 640px; }
.crumbs { font-size: 14px; color: var(--dim); }
.crumbs a:hover { color: var(--text); }

.section { padding: 88px 0 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; }
.section-head p { color: var(--muted); }
.link-more { color: var(--primary); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 24px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin: 16px 0 20px; }
.hero h1 span { color: var(--primary); }
.hero-lead { color: var(--muted); font-size: 18px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero-meta b { display: block; font: 600 24px var(--mono); letter-spacing: -.02em; }
.hero-meta span { color: var(--dim); font-size: 14px; }

/* превью сигнала */
.terminal { padding: 24px; box-shadow: var(--shadow); }
.term-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--dim); }
.term-top .live { display: inline-flex; align-items: center; gap: 6px; color: var(--up); font-weight: 600; }
.term-pair { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 14px; }
.term-pair h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.term-pair .price { font: 500 14px var(--mono); color: var(--muted); }
.dir-pill { font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.dir-pill.call, .sig-dir.call { background: var(--up-soft); color: var(--up); }
.dir-pill.put, .sig-dir.put { background: var(--down-soft); color: var(--down); }
.chart { width: 100%; height: 150px; display: block; border-radius: var(--radius-sm); background: var(--surface-2); }
.term-grid, .sig-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.term-grid div, .sig-stats div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.term-grid small, .sig-stats small { display: block; font-size: 12px; color: var(--dim); }
.term-grid b, .sig-stats b { font: 600 15px var(--mono); }
.conf { margin-top: 16px; }
.conf-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: inherit; transition: width .5s var(--ease); }
.float-badge { display: none; }

/* ---------- ticker ---------- */
.ticker { margin-top: 56px; border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.ticker-track { display: flex; gap: 40px; width: max-content; padding: 14px 0; animation: marquee 60s linear infinite; }
.ticker-item { display: flex; gap: 10px; align-items: center; font: 500 13px var(--mono); white-space: nowrap; color: var(--muted); }
.ticker-item b { color: var(--text); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- features / steps / tiers ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; }
.feature h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.icon-box { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 24px; }
.step-n { font: 600 13px var(--mono); color: var(--primary); margin-bottom: 28px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { padding: 28px; position: relative; }
.tier.hot { border-color: var(--primary); box-shadow: var(--shadow); }
.tier .name { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.tier.hot .name { color: var(--primary); }
.tier .dep { font-size: 36px; font-weight: 700; letter-spacing: -.03em; margin: 14px 0 0; }
.tier .dep small { font-size: 15px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.tier ul { list-style: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.tier li::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231e3a8a' stroke-width='2'%3E%3Cpath d='M4.5 8.5l2.2 2L11.5 6'/%3E%3C/svg%3E") center/16px no-repeat; }
.ribbon { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 600; background: var(--primary-soft); color: var(--primary); padding: 4px 10px; border-radius: 99px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--dim); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* ---------- prose / articles ---------- */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.prose { max-width: 720px; font-size: 17px; line-height: 1.75; }
.prose h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.02em; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 16px; color: #2b3445; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { border-left: 3px solid var(--primary); padding: 4px 0 4px 18px; color: var(--muted); margin: 20px 0; }
.aside { padding: 24px; position: sticky; top: 88px; }
.aside h3 { font-size: 16px; margin-bottom: 8px; }
.aside p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, box-shadow .2s; }
.article-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.article-card .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.article-card .cat { color: var(--primary); font-weight: 600; }
.article-card h3 { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.article-card p { color: var(--muted); font-size: 15px; flex: 1; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stats-row .card { padding: 24px; }
.stats-row b { display: block; font: 600 30px var(--mono); letter-spacing: -.02em; }
.stats-row span { color: var(--muted); font-size: 15px; }

/* ---------- cta / footer ---------- */
.cta { margin-top: 88px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--primary); color: #fff; border: 0; }
.cta h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .78); max-width: 520px; }
.cta .btn-primary { background: #fff; color: var(--primary); }
.cta .btn-primary:hover { background: #e9eefb; }
.footer { margin-top: 88px; border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--dim); font-size: 14px; background: var(--surface); }
.footer .container { display: grid; gap: 20px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
.footer .logo { color: var(--text); }

/* ---------- forms ---------- */
.auth-wrap { display: grid; place-items: center; padding: 64px 20px; }
.auth-card { width: min(420px, 100%); padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; margin: 10px 0 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; font-size: 15px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.input { height: 46px; width: 100%; padding: 0 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-2); outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-error { color: var(--down); font-size: 14px; min-height: 20px; margin: 2px 0 12px; }
.form-note { color: var(--muted); font-size: 15px; text-align: center; margin-top: 18px; }
.form-note a { color: var(--primary); font-weight: 600; }

/* ---------- cabinet ---------- */
.cab { padding: 40px 0 0; display: grid; gap: 20px; }
.cab-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cab-head h1 { font-size: 30px; letter-spacing: -.025em; }
.status-chip { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }
.status-chip.on { color: var(--up); border-color: #b9dcc3; background: var(--up-soft); }

.onboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ob { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ob.active { border-color: var(--primary); }
.ob.locked { opacity: .6; }
.ob-top { display: flex; justify-content: space-between; align-items: center; }
.ob-n { font-size: 13px; font-weight: 600; color: var(--dim); }
.ob-state { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.ob.done .ob-state { background: var(--up-soft); color: var(--up); }
.ob.active .ob-state { background: var(--primary-soft); color: var(--primary); }
.ob h3 { font-size: 17px; font-weight: 600; }
.ob p { color: var(--muted); font-size: 15px; }
.ob .actions { margin-top: auto; display: grid; gap: 10px; }
.inline-form { display: flex; gap: 8px; }
.msg { font-size: 14px; }
.msg.err { color: var(--down); }
.msg.ok { color: var(--up); }
.deposit-meter { display: grid; gap: 8px; }
.deposit-meter .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.deposit-meter .row span:last-child { font-family: var(--mono); }

.sig-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; align-items: start; }
.panel { padding: 24px; position: relative; }
.panel h2 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.panel .sub { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.label { font-size: 14px; font-weight: 600; margin: 20px 0 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); font: 500 14px var(--mono); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--muted); }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip .otc { font-size: 10px; opacity: .7; margin-left: 4px; }
.limit-row { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 10px; font-size: 14px; color: var(--muted); }
.limit-row span:last-child { font-family: var(--mono); }

.result { min-height: 460px; padding: 24px; display: flex; flex-direction: column; position: relative; }
.result-empty { margin: auto; text-align: center; color: var(--muted); display: grid; gap: 16px; justify-items: center; max-width: 320px; }
.radar { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--line-2); }
.radar.fast { border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-log { font: 500 13px/1.9 var(--mono); color: var(--muted); text-align: left; min-height: 120px; }
.scan-log .ok { color: var(--up); }

.sig-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.sig-head h3 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.sig-head .meta { font-size: 13px; color: var(--dim); margin-top: 2px; }
.sig-dir { font-size: 22px; font-weight: 700; padding: 10px 16px; border-radius: var(--radius-sm); display: flex; align-items: center; gap: 8px; }
.sig-stats { margin: 16px 0; }
.ind-list { display: grid; gap: 6px; }
.ind { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; }
.ind span:first-child { color: var(--muted); }
.ind .v { font: 500 13px var(--mono); }
.ind .tag-s { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.ind .tag-s.b { background: var(--up-soft); color: var(--up); }
.ind .tag-s.s { background: var(--down-soft); color: var(--down); }
.sig-note { margin-top: 14px; padding: 14px; border-radius: var(--radius-sm); background: var(--primary-soft); color: #2b3a66; font-size: 14px; }

.history { padding: 24px; }
.history table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history th { text-align: left; color: var(--dim); font-weight: 600; font-size: 13px; padding: 0 10px 10px; }
.history td { padding: 12px 10px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.lock-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 28px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(3px); border-radius: inherit; }
.lock-overlay h3 { font-size: 18px; margin: 12px 0 6px; }
.lock-overlay p { color: var(--muted); max-width: 300px; font-size: 15px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--text); color: #fff; font-weight: 500; font-size: 15px; transition: opacity .25s, transform .25s var(--ease); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.animate .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.animate .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .animate .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .features, .articles { grid-template-columns: 1fr 1fr; }
  .steps, .stats-row { grid-template-columns: 1fr 1fr; }
  .tiers, .onboard { grid-template-columns: 1fr; }
  .sig-layout, .two-col { grid-template-columns: 1fr; }
  .aside { position: static; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 32px); }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .burger { display: grid; }
  .header .container { gap: 12px; justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
  .features, .articles, .steps, .stats-row { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
  .cta { grid-template-columns: 1fr; padding: 32px 24px; }
  .term-grid, .sig-stats { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 24px; }
  .inline-form { flex-direction: column; }
  .auth-card { padding: 24px; }
  .page-head { padding: 40px 0 28px; margin-bottom: 32px; }
}

.steps.steps-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .steps.steps-2 { grid-template-columns: 1fr; } }
.cab { grid-template-columns: minmax(0, 1fr); }
.cab > *, .sig-layout > *, .onboard > * { min-width: 0; }

/* ---------- брендовые градиенты (в стилистике торговых платформ) ---------- */
:root {
  --grad-primary: linear-gradient(95deg, #27a4f2 0%, #2f62e8 100%);
  --grad-primary-hover: linear-gradient(95deg, #1f97e4 0%, #2753d6 100%);
  --grad-call: linear-gradient(135deg, #2fe0a0 0%, #12c27e 100%);
  --grad-put: linear-gradient(135deg, #ff8a7a 0%, #f0476b 100%);
  --call-ink: #043b29;
}
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 98, 232, .55); }
.btn-primary:hover:not(:disabled) { background: var(--grad-primary-hover); box-shadow: 0 10px 24px -8px rgba(47, 98, 232, .65); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.logo-mark { background: var(--grad-primary); }
.chip.on { background: var(--grad-primary); border-color: transparent; }
.bar i { background: var(--grad-primary); }
.tag { color: #2f62e8; }
.hero h1 span { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier.hot { border-color: #2f62e8; box-shadow: 0 16px 40px -20px rgba(47, 98, 232, .45); }
.ribbon { background: var(--grad-primary); color: #fff; }
.icon-box { background: linear-gradient(135deg, #e6f3fe, #e9edfc); color: #2f62e8; }

.dir-pill.call, .sig-dir.call { background: var(--grad-call); color: var(--call-ink); box-shadow: 0 8px 20px -8px rgba(18, 194, 126, .55); }
.dir-pill.put, .sig-dir.put { background: var(--grad-put); color: #fff; box-shadow: 0 8px 20px -8px rgba(240, 71, 107, .55); }

.cta { background: linear-gradient(120deg, #1f6fe0 0%, #2f4fd6 55%, #3b3fc4 100%); }
.cta .btn-primary { background: #fff; color: #2f4fd6; box-shadow: none; }
.cta .btn-primary:hover { background: #eef3ff; }

/* время входа по сигналу */
.entry { margin: 4px 0 12px; padding: 14px 16px; border-radius: var(--radius-sm); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.entry b { font-family: var(--mono); }
.entry.wait { background: var(--primary-soft); color: #23336b; }
.entry.now { background: var(--up-soft); color: var(--up); font-weight: 600; }
.entry.late { background: var(--down-soft); color: var(--down); }
.result.expired .sig-dir, .result.expired .chart { opacity: .45; filter: grayscale(.6); }
.tier .dep small { display: block; margin-bottom: 2px; }

/* ---------- рабочая область кабинета ---------- */
.cab-summary { margin-top: 8px; color: var(--muted); font-size: 15px; }
.cab-summary a { color: #2f62e8; font-weight: 600; }
.workspace { position: relative; padding: 20px; }
.ws-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 12px; gap: 4px; }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.seg button[aria-selected="true"] svg { color: #2f62e8; }
.limit-mini { font-size: 14px; color: var(--muted); }
.limit-mini b { color: var(--text); margin-left: 6px; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; }
.ws-controls .label:first-of-type { margin-top: 14px; }

.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; }
.cats button { position: relative; min-height: 38px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cats button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.mk { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.mk.open { background: #12b47a; box-shadow: 0 0 0 3px rgba(18, 180, 122, .15); }
.mk.closed { background: #e59a2f; box-shadow: 0 0 0 3px rgba(229, 154, 47, .15); }
.market-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 500; }
.market-note.open { color: var(--up); }
.market-note.closed { color: #9a5b07; }
.chip .otc { font-family: var(--font); font-weight: 700; }

.ws-view { min-width: 0; }
.ws-right { min-width: 0; display: grid; align-content: start; gap: 4px; }
.ws-action { padding-top: 4px; }
.ws-action .label { margin-top: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ch-title { display: flex; align-items: center; gap: 8px; font-size: 22px; letter-spacing: -.02em; }
.ch-src { font-size: 13px; color: var(--dim); margin-top: 2px; }
.ch-price { text-align: right; }
.ch-price b { display: block; font-size: 22px; font-weight: 600; }
.ch-price span { font-size: 13px; }
.badge-otc { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: #fdf1df; color: #9a5b07; }
.chart-wrap { position: relative; border-radius: var(--radius-sm); background: #fbfcfd; border: 1px solid var(--line); overflow: hidden; }
.chart-wrap canvas { display: block; width: 100%; height: 340px; }
.chart-live { position: absolute; top: 10px; left: 12px; display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); color: var(--up); background: rgba(255, 255, 255, .85); padding: 3px 8px; border-radius: 6px; }
.chart-live .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* сканирующая линия поверх графика / скриншота */
.scan-overlay { position: absolute; inset: 0; pointer-events: none; background: rgba(47, 98, 232, .05); }
.scan-overlay i { position: absolute; left: 0; right: 0; height: 60px; top: -60px; background: linear-gradient(180deg, transparent, rgba(47, 98, 232, .22)); border-bottom: 2px solid #2f62e8; animation: scanline 1.4s var(--ease) infinite; }
@keyframes scanline { to { top: 100%; } }

.drop { position: relative; display: grid; place-items: center; min-height: 380px; border: 2px dashed var(--line-2); border-radius: var(--radius); background: #fbfcfd; cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over, .drop:focus-visible { border-color: #2f62e8; background: #f5f8ff; }
.drop.has-img { border-style: solid; border-color: var(--line); background: #0f172a; }
.drop-empty { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 24px; color: var(--muted); max-width: 360px; }
.drop-empty svg { color: #2f62e8; }
.drop-empty b { color: var(--text); font-size: 17px; }
.drop-empty span { font-size: 14px; }
.drop img { max-width: 100%; max-height: 460px; display: block; }
.scan-tip { margin-top: 10px; font-size: 14px; color: var(--dim); }

/* результат */
.result { min-height: 0; scroll-margin-top: 84px; /* чтобы при автопрокрутке карточку не перекрывала липкая шапка */ }
.result .result-empty { padding: 32px 0; }
.res-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.res-tags { display: flex; gap: 6px; margin-bottom: 6px; }
.rtag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--primary-soft); color: #2f62e8; }
.rtag.otc { background: #fdf1df; color: #9a5b07; }

@media (max-width: 1024px) {
  .ws-grid, .res-grid { grid-template-columns: minmax(0, 1fr); }
  /* на узком экране: график → выбор пары → экспирация и кнопка */
  .ws-right { display: contents; }
  .ws-view { order: -1; }
  .ws-action { order: 1; }
  .chart-wrap canvas { height: 280px; }
}
@media (max-width: 768px) {
  .workspace { padding: 16px; }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; padding: 0 8px; font-size: 14px; }
  .drop { min-height: 260px; }
}

/* очень узкие экраны: короткие подписи в шапке */
.only-xs { display: none; }
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .only-xs { display: inline; }
  .header-actions .btn { padding: 0 14px; }
  .logo { font-size: 16px; }
}

/* ---------- график TradingView, волатильность, история ---------- */
.ch-sub { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.vol-chip { white-space: nowrap; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.vol-chip.low { background: #eef2f7; color: #4b5b73; }
.vol-chip.normal { background: var(--up-soft); color: var(--up); }
.vol-chip.elevated { background: #fdf1df; color: #9a5b07; }
.vol-chip.high { background: var(--down-soft); color: var(--down); }
.vol-banner { margin-top: 10px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.vol-banner.elevated { background: #fdf4e3; color: #6d4306; }
.vol-banner.high { background: var(--down-soft); color: var(--down); }
.no-trade { margin: auto; max-width: 440px; text-align: center; padding: 24px 8px; display: grid; gap: 8px; }
.no-trade b { font-size: 18px; }
.no-trade p { color: var(--muted); }
.no-trade span { font-size: 13px; color: var(--dim); }
.hist-more { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.hist-more .btn { height: 38px; font-size: 14px; }
.hist-more span { font-size: 14px; color: var(--dim); margin-left: auto; }

/* ---------- группы валютных пар и поиск ---------- */
.pair-search { height: 42px; margin-bottom: 12px; }
.pair-group + .pair-group { margin-top: 14px; }
.pg-title { font-size: 12px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.pairs-empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
/* сворачиваемые группы (телефон) */
details.pair-group summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
details.pair-group summary::-webkit-details-marker { display: none; }
details.pair-group summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
details.pair-group[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details.pair-group[open] summary { margin-bottom: 10px; }
details.pair-group + .pair-group, .pair-group + details.pair-group { margin-top: 10px; }
