/* FX STESHENKO, визуал v5, 21 октября 2026.
   Чистый чёрный, белый жирный Manrope, один электрический синий акцент,
   подсвеченные карточки, дымчатый калькулятор.
   Зелёный, красный и жёлтый несут смысл результата и больше нигде не используются.
   Шрифт лежит локально, внешних запросов нет. */

@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("./assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("./assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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; }

:root {
  color-scheme: dark;
  /* Основа: чистый чёрный и нейтральные серые */
  --bg: #000000;
  --raise: #0e0e10;
  --raise-2: #151518;
  --field: #0a0a0c;
  --line: #222226;
  --line-strong: #323238;
  --ink: #f5f5f7;
  --ink-2: #c8c8ce;
  --ink-3: #9a9aa2;
  /* Акцент: электрический синий. Кнопки, ссылки, выбор, иконки, подсвеченные блоки */
  --accent: #4c7dff;
  --accent-hi: #7b9fff;
  --accent-ink: #050914;
  --accent-soft: rgba(76, 125, 255, .12);
  --accent-line: rgba(76, 125, 255, .55);
  --accent-ring: rgba(76, 125, 255, .28);
  --glow: drop-shadow(0 0 6px rgba(76, 125, 255, .75));
  --spot: linear-gradient(135deg, rgba(76, 125, 255, .16), rgba(14, 14, 16, 0) 62%);
  /* Дым: только калькулятор */
  --smoke: #15100d;
  --smoke-field: #0f0b09;
  --smoke-line: #3b2f27;
  --smoke-ink: #c4b9ab;
  --smoke-ink-3: #ab9f92;
  /* Бренд: красное FX в знаке. Только логотип, не цифры */
  --brand: #ff3344;
  /* Смысловые цвета */
  --gain: #2fdc8f;
  --loss: #ff6b6b;
  --warn: #f4c64e;
  --font-ui: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 16px;
  --header: 72px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* База */
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; font-weight: 500; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, summary, select, label:has(input[type="checkbox"]) { cursor: pointer; }
button { border: 1px solid var(--line-strong); background: transparent; border-radius: 10px; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary, .search-field, .icon, .nav-icon { transition: color .18s, background-color .18s, border-color .18s, box-shadow .18s, filter .18s, transform .18s; }
button:disabled { opacity: .38; cursor: not-allowed; }
input, select, textarea { min-width: 0; max-width: 100%; }
input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
input::placeholder, textarea::placeholder { color: #7a7a82; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
main:focus, .lesson-panel:focus { outline: none; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(42px, 5.2vw, 72px); line-height: 1.04; }
h2 { font-size: 28px; line-height: 1.15; }
h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
p { line-height: 1.65; }
strong { font-weight: 700; }
::selection { background: rgba(76, 125, 255, .45); color: #fff; }

.icon { flex: 0 0 auto; vertical-align: middle; }
.positive { color: var(--gain); }
.negative { color: var(--loss); }
.warning { color: var(--warn); }
.neutral { color: var(--ink-3); }
.muted { color: var(--ink-3); font-size: 14px; }
.eyebrow { display: block; color: var(--ink-3); font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.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; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Подсветка иконок: синий цвет и мягкое свечение на наведении, фокусе и в активном состоянии */
a:hover .icon, button:hover:not(:disabled) .icon, summary:hover .icon,
a:focus-visible .icon, button:focus-visible .icon { color: var(--accent-hi); filter: var(--glow); }

/* Шапка */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(0, 0, 0, .86); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--wrap); min-height: var(--header); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 8px 0; }
.wordmark > span:first-child { color: var(--brand); font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 0 18px rgba(255, 51, 68, .55); }
.wordmark > span:last-child { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .14em; }
.brand-fx { color: var(--brand); text-shadow: 0 0 26px rgba(255, 51, 68, .45); }
.site-header nav { display: flex; align-items: stretch; gap: 2px; }
.site-header nav a { position: relative; display: inline-flex; align-items: center; gap: 7px; height: var(--header); padding: 0 9px; color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-icon { width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a:hover .nav-icon, .site-header nav a:focus-visible .nav-icon { stroke: var(--accent-hi); filter: var(--glow); }
.site-header nav a.active { color: var(--ink); }
.site-header nav a.active .nav-icon { stroke: var(--accent-hi); filter: drop-shadow(0 0 7px rgba(76, 125, 255, .9)); }
.site-header nav a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 14px rgba(76, 125, 255, .8); }
.header-status { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.header-status:hover { color: var(--ink); border-color: var(--accent-line); }
.header-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(76, 125, 255, .2), 0 0 8px rgba(76, 125, 255, .9); }

/* Каркас */
main { display: block; max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 0; min-height: calc(100vh - 180px); }
.site-footer { max-width: calc(var(--wrap) - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); margin: 112px auto 0; padding: 28px 0 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
.site-footer b { color: var(--brand); font-weight: 800; }
.site-footer > span { color: var(--ink); font-weight: 800; letter-spacing: .06em; }
.footer-note { margin-left: 16px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.site-footer > a { color: var(--ink-2); font-weight: 600; }
.site-footer > a:hover { color: var(--accent-hi); }

/* Кнопки и поля */
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.primary-button { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); box-shadow: 0 8px 28px -12px rgba(76, 125, 255, .9); }
.primary-button:hover:not(:disabled) { background: var(--accent-hi); border-color: var(--accent-hi); box-shadow: 0 10px 36px -10px rgba(76, 125, 255, 1); }
.primary-button .icon, .primary-button:hover .icon { color: var(--accent-ink); filter: none; }
.secondary-button { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); font-weight: 700; }
.secondary-button:hover:not(:disabled) { border-color: var(--accent-line); background: var(--raise-2); }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--accent-hi); font-size: 15px; font-weight: 700; }
.text-button .icon { color: var(--accent-hi); }
.text-button:hover { color: #a8bfff; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.icon-button .icon { width: 16px; height: 16px; }
.icon-button:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.search-field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: var(--field); border: 1px solid var(--line-strong); border-radius: 99px; min-width: 0; }
.search-field .icon { width: 17px; height: 17px; color: var(--ink-3); }
.search-field input { width: 100%; border: 0; padding: 0; background: transparent; outline: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.search-field:focus-within .icon { color: var(--accent-hi); filter: var(--glow); }
select { appearance: none; -webkit-appearance: none; height: 46px; padding: 0 40px 0 14px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b9fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
select:hover { border-color: var(--accent-line); }
select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: none; }
option { background: #151518; color: var(--ink); }

/* Обзор: заголовок и фильтры */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.hero h1 { max-width: 15ch; }
.hero p { margin-top: 18px; color: var(--ink-2); font-size: 19px; }
.quiet-link { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding-bottom: 4px; color: var(--accent-hi); font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--accent-line); }
.quiet-link .icon { width: 15px; height: 15px; color: var(--accent-hi); }
.quiet-link:hover { color: #a8bfff; border-color: var(--accent-hi); }
.overview-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 0; margin-bottom: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trader-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { color: var(--ink-3); font-size: 14px; font-weight: 600; margin-right: 6px; }
.trader-filter > small { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 15px; font-weight: 700; }
.chip:hover { border-color: var(--accent-line); color: var(--ink); }
.chip.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: 0 0 18px -6px rgba(76, 125, 255, .8); }
.chip .icon { width: 15px; height: 15px; color: var(--accent-hi); stroke-width: 2.4; filter: var(--glow); }
.period-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.period-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); }
.period-tabs button { height: 36px; padding: 0 14px; border: 0; border-radius: 9px; color: var(--ink-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.period-tabs button:hover { color: var(--ink); background: var(--raise-2); }
.period-tabs button.active { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 18px -6px rgba(76, 125, 255, .9); }
.date-button { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: left; color: var(--ink); }
.date-button small { display: none; }
.date-button .icon { width: 17px; height: 17px; color: var(--accent-hi); }
.date-button:hover, .date-button.active { border-color: var(--accent); }
.date-button.active .icon { filter: var(--glow); }

/* Статистика и график */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: stretch; }
.panel { background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.performance { display: flex; flex-direction: column; padding: 28px 28px 16px; }
.panel-heading, .section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 24px; }
.panel-heading { flex-wrap: wrap; margin-bottom: 24px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.metric { min-width: 0; padding: 0 22px; border-left: 1px solid var(--line); }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric:last-child { padding-right: 0; }
.metric-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--ink-3); font-size: 14px; font-weight: 600; white-space: nowrap; }
.metric > strong { display: block; font-size: clamp(28px, 2.8vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.info-tip { position: relative; display: inline-flex; color: var(--ink-3); cursor: help; }
.info-tip > .icon { width: 15px; height: 15px; }
.info-tip:hover > .icon, .info-tip:focus > .icon { color: var(--accent-hi); filter: var(--glow); }
.info-content { display: none; position: absolute; z-index: 20; top: 24px; left: -90px; width: 240px; padding: 12px 14px; background: #18181c; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.5; white-space: normal; }
.info-tip .info-content, .info-tip:hover .info-content, .info-tip:focus .info-content { display: none; }
.tip-float { position: fixed; z-index: 1000; padding: 12px 14px; background: #18181c; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.5; white-space: normal; pointer-events: none; }
.tip-float[hidden] { display: none; }
.chart-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.chart-caption > span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.chart-caption i { width: 14px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gain) 50%, var(--loss) 50%); }
.chart { position: relative; min-width: 0; }
.main-chart { flex: 1; height: 300px; min-height: 240px; margin-top: 8px; }
.chart > svg { position: absolute; inset: 0; overflow: visible; }
.chart svg text { fill: var(--ink-3); font-family: var(--font-ui); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-gridline { stroke: #1c1c20; stroke-width: 1; }
.chart-gridline.vertical { stroke-dasharray: 2 5; opacity: .8; }
.chart-baseline { stroke: var(--line-strong); stroke-width: 1; }
.chart-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line.up { stroke: var(--gain); }
.chart-line.down { stroke: var(--loss); }
.chart-line.flat { stroke: var(--ink-3); }
.chart-end { stroke: var(--raise); stroke-width: 2; }
.chart-end.up { fill: var(--gain); filter: drop-shadow(0 0 7px rgba(47, 220, 143, .8)); }
.chart-end.down { fill: var(--loss); filter: drop-shadow(0 0 7px rgba(255, 107, 107, .8)); }
.chart-value-bg { fill: #18181c; stroke: var(--line-strong); }
.chart svg text.chart-value { fill: var(--ink); font-size: 13px; font-weight: 800; }
.chart-tooltip { position: absolute; top: 8px; z-index: 3; display: grid; gap: 2px; width: 150px; padding: 10px 14px; background: #18181c; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); pointer-events: none; }
.chart-tooltip span, .chart-tooltip small { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.chart-tooltip strong { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chart-crosshair { position: absolute; top: 24px; bottom: 34px; width: 1px; border-left: 1px dashed rgba(123, 159, 255, .55); pointer-events: none; }
.compact-chart { height: 56px; }
.compact-chart .chart-line { stroke-width: 1.8; }
.chart-empty-small { color: var(--ink-3); font-size: 13px; }

/* Калькулятор: дымчатое стекло, тёплая поверхность на холодном чёрном */
.calculator { position: relative; min-width: 0; padding: 30px 28px; color: var(--ink); border: 1px solid var(--smoke-line); border-radius: 20px;
  background: radial-gradient(120% 60% at 90% -10%, rgba(255, 210, 160, .08), transparent 60%), var(--smoke);
  box-shadow: inset 0 1px 0 rgba(255, 232, 200, .07), 0 40px 80px -48px rgba(0, 0, 0, .9); }
.calc-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.calc-heading h2 { font-size: 30px; margin-bottom: 8px; }
.calc-heading p { color: var(--smoke-ink); font-size: 15px; line-height: 1.5; }
.calculator-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--accent-line); border-radius: 12px; color: var(--accent-hi); background: var(--accent-soft); }
.calculator-icon .icon { width: 20px; height: 20px; filter: var(--glow); }
.deposit-input { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--smoke-line); }
.deposit-input:focus-within { border-color: var(--accent); }
.deposit-input > span { color: var(--smoke-ink-3); font-size: 30px; font-weight: 600; }
.deposit-input input { width: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 46px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.deposit-input .icon { width: 17px; height: 17px; color: var(--smoke-ink-3); }
.deposit-input:focus-within .icon { color: var(--accent-hi); filter: var(--glow); }
.field-error { margin-top: 10px; color: var(--loss); font-size: 14px; font-weight: 600; line-height: 1.5; }
.calculator .field-error { color: #ff9a9a; }
.deposit-slider { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 22px; margin: 18px 0 4px; padding: 0; border: 0; background: transparent; }
.deposit-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--progress, 10%), var(--smoke-line) var(--progress, 10%)); }
.deposit-slider::-moz-range-track { height: 3px; border-radius: 3px; background: var(--smoke-line); }
.deposit-slider::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--accent); }
.deposit-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 12px rgba(76, 125, 255, .8); cursor: ew-resize; transition: box-shadow .18s; }
.deposit-slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 0 12px rgba(76, 125, 255, .8); cursor: ew-resize; }
.deposit-slider:hover::-webkit-slider-thumb, .deposit-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(76, 125, 255, .22), 0 0 16px rgba(76, 125, 255, .9); }
.deposit-slider:focus-visible { outline: none; }
.slider-limits { display: flex; justify-content: space-between; color: var(--smoke-ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.amount-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.amount-presets button { height: 42px; padding: 0 2px; border: 1px solid var(--smoke-line); border-radius: 10px; color: var(--smoke-ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.amount-presets button:hover { border-color: var(--accent-line); color: var(--ink); }
.amount-presets button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.calc-select-label { display: block; margin: 24px 0 8px; color: var(--smoke-ink-3); font-size: 14px; font-weight: 600; }
.calc-picker { position: relative; }
.calc-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 50px; padding: 0 14px; list-style: none; background: var(--smoke-field); border: 1px solid var(--smoke-line); border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 700; }
.calc-picker summary::-webkit-details-marker { display: none; }
.calc-picker summary:hover, .calc-picker[open] summary { border-color: var(--accent); }
.calc-picker summary .icon { width: 17px; height: 17px; color: var(--smoke-ink-3); }
.calc-picker[open] summary .icon { color: var(--accent-hi); filter: var(--glow); transform: rotate(180deg); }
.picker-menu { position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; background: #1b1512; border: 1px solid #4a3b30; border-radius: 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, .65); }
.picker-menu label { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 10px; border-radius: 10px; font-size: 15px; font-weight: 700; }
.picker-menu label:hover { background: #251c17; }
.picker-menu label small { margin-left: auto; color: var(--smoke-ink-3); font-size: 13px; font-weight: 600; }
.picker-menu .all-option { margin-bottom: 4px; border-bottom: 1px solid var(--smoke-line); border-radius: 10px 10px 0 0; }
.select-hint { margin-top: 8px; color: var(--smoke-ink-3); font-size: 13px; font-weight: 600; }
.calc-results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 26px; padding: 18px; border: 1px solid var(--smoke-line); border-radius: 16px; background: rgba(0, 0, 0, .22); font-variant-numeric: tabular-nums; transition: border-color .3s, background .3s, box-shadow .3s; }
.calc-results > div:first-child { padding-right: 16px; }
.calc-results > div:last-child { padding-left: 18px; border-left: 1px solid var(--smoke-line); }
.calc-results h3 { margin-bottom: 6px; color: var(--smoke-ink-3); font-size: 14px; font-weight: 600; }
.calc-results strong { display: block; font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.calc-return { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; }
.calculator .positive { color: #3fe39b; }
.calculator .negative { color: #ff7d7d; }
.calculator .neutral { color: var(--smoke-ink-3); }

/* Трейдеры */
.traders-section { margin-top: 104px; background: none; border: 0; border-radius: 0; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { font-size: clamp(30px, 3vw, 40px); }
.section-heading > a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-hi); font-size: 15px; font-weight: 700; white-space: nowrap; }
.section-heading > a .icon { width: 17px; height: 17px; color: var(--accent-hi); }
.section-heading > a:hover { color: #a8bfff; }
.section-heading > .muted { font-size: 15px; font-weight: 600; }
.trader-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trader-card { position: relative; min-width: 0; padding: 24px 22px 22px; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); }
.trader-card:hover { border-color: var(--accent-line); background: var(--spot), var(--raise); }
.trader-card-top { color: var(--ink-3); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.card-title { display: inline-block; font-family: var(--font-display); font-size: clamp(34px, 3.2vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.card-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-title:hover { color: var(--ink); }
.trader-card-chart { display: grid; gap: 14px; margin: 18px 0 16px; }
.trader-card-chart > div:last-child { display: flex; align-items: baseline; gap: 10px; }
.trader-card-chart strong { font-size: 30px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.trader-card-chart > div:last-child span { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.trader-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-hi); font-size: 15px; font-weight: 700; }
.profile-link .icon { width: 17px; height: 17px; color: var(--accent-hi); }
.profile-link:hover { color: #a8bfff; }
.profile-link:hover .icon, .trader-card:hover .profile-link .icon { transform: translateX(3px); filter: var(--glow); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.approach-card { padding: 32px; }
.approach-card .section-heading { flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 0; }
.approach-card .small-badge { max-width: 100%; white-space: normal; height: auto; min-height: 30px; padding-block: 4px; }
.approach-card .section-heading h2 { font-size: 34px; }
.approach-card > p { margin: 14px 0; color: var(--ink); font-size: 18px; font-weight: 600; }
.approach-card p.muted { margin-bottom: 26px; color: var(--ink-2); font-size: 15px; font-weight: 500; line-height: 1.7; }
.small-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--accent-line); border-radius: 99px; color: var(--accent-hi); background: var(--accent-soft); font-size: 13px; font-weight: 700; white-space: nowrap; }
.instrument-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.instrument-tags span { padding: 5px 10px; background: var(--raise-2); border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.standalone-period { display: flex; justify-content: flex-end; margin: 0 0 24px; }

/* Журнал сделок */
.recent-section { margin-top: 104px; padding: 28px; }
.history-panel { margin-top: 24px; padding: 28px; }
.history-panel .panel-heading h2 { font-size: 30px; }
.table-scroll { position: relative; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
th { padding: 12px 16px; border-bottom: 1px solid var(--line-strong); color: var(--ink-3); font-size: 13px; font-weight: 600; }
td { padding: 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; font-weight: 600; }
th:first-child, td:first-child { padding-left: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(76, 125, 255, .05); }
td a { color: var(--ink); font-weight: 700; }
td a:hover { color: var(--accent-hi); }
td small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.table-instrument { color: var(--ink); font-weight: 700; }
.table-return { font-weight: 800; }
.direction { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink-2); font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.status-tag { display: inline-flex; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.status-tag.loss-status { color: #ff9a9a; border-color: rgba(255, 107, 107, .4); }
.history-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.history-tools .search-field { flex: 1; min-width: 220px; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: var(--ink-3); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination > div { display: flex; align-items: center; gap: 14px; }
.pagination button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; }
.pagination button:hover:not(:disabled) { border-color: var(--accent); }
.pagination .icon { width: 16px; height: 16px; }
.empty-state { padding: 56px 20px; text-align: center; color: var(--ink-2); }
.empty-state > .icon { width: 28px; height: 28px; color: var(--accent-hi); }
.empty-state h2, .empty-state h3 { margin: 12px 0 8px; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink); }
.empty-state p { font-size: 15px; }
.chart-empty { padding: 72px 16px; }
.page-empty { padding: 96px 16px; }
.page-empty h1 { margin-bottom: 32px; }
.overview-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 104px; }
.overview-links > a { position: relative; display: block; padding: 30px 72px 30px 30px; border: 1px solid var(--accent-line); border-radius: 20px; background: var(--spot), var(--raise); }
.overview-links .link-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border: 1px solid var(--accent-line); border-radius: 12px; color: var(--accent-hi); background: var(--accent-soft); }
.overview-links .link-icon .icon { width: 20px; height: 20px; filter: var(--glow); }
.overview-links .eyebrow { margin-bottom: 6px; color: var(--accent-hi); }
.overview-links h2 { font-size: 30px; }
.overview-links p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.overview-links .link-arrow { position: absolute; right: 30px; top: 34px; width: 22px; height: 22px; color: var(--accent-hi); }
.overview-links > a:hover { border-color: var(--accent); box-shadow: 0 20px 60px -30px rgba(76, 125, 255, .7); }
.overview-links > a:hover .link-arrow { transform: translateX(4px); }

/* Внутренние страницы */
.page-intro { max-width: 1000px; margin: 0 0 48px; }
.page-intro h1 { margin-bottom: 18px; }
.page-intro p { max-width: 620px; color: var(--ink-2); font-size: 19px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--accent-hi); font-size: 15px; font-weight: 700; }
.back-link .icon { width: 17px; height: 17px; }
.back-link:hover { color: #a8bfff; }

/* Профиль трейдера */
.profile-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.profile-heading h1 { margin: 6px 0 14px; font-size: clamp(60px, 8vw, 104px); line-height: .98; letter-spacing: -.045em; }
.profile-heading p { color: var(--ink-2); font-size: 20px; font-weight: 600; }
.profile-facts { display: grid; justify-items: end; gap: 4px; color: var(--ink-2); font-size: 15px; font-weight: 600; }
.profile-facts > span { display: inline-flex; align-items: center; gap: 8px; }
.profile-facts .icon { width: 17px; height: 17px; color: var(--accent-hi); filter: var(--glow); }
.profile-facts .instrument-tags { margin: 8px 0 0; justify-content: flex-end; }
.profile-lower { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 40px; }
.profile-posts, .bio-panel { padding: 28px; }
.profile-posts .section-heading h2 { font-size: 30px; }
.profile-tabs { display: flex; gap: 6px; margin: 18px 0 24px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.profile-tabs button { padding: 9px 16px; border: 0; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 700; white-space: nowrap; }
.profile-tabs button:hover { color: var(--ink); background: var(--raise-2); }
.profile-tabs button.active { color: var(--accent-ink); background: var(--accent); }
.signal-grid, .analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.signal-card, .analysis-card { padding: 22px; background: var(--field); border: 1px solid var(--line); border-radius: 14px; }
.signal-card:hover, .analysis-card:hover { border-color: var(--accent-line); }
.signal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 16px; }
.signal-top .muted { font-size: 13px; font-weight: 600; }
.signal-instrument { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.signal-instrument h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.signal-card > p { margin: 12px 0 18px; color: var(--ink-2); font-size: 14px; }
.signal-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.signal-levels dt { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.signal-levels dd { margin: 3px 0 0; color: var(--ink); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.signal-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.signal-bottom strong { font-size: 26px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.signal-bottom button { font-size: 14px; }
.analysis-card .eyebrow { font-size: 13px; }
.analysis-card h3 { margin-bottom: 14px; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.analysis-card p { margin-bottom: 14px; color: var(--ink-2); font-size: 15px; }
.load-more { display: block; width: 100%; height: 46px; margin-top: 20px; border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 700; }
.load-more:hover { border-color: var(--accent); background: var(--accent-soft); }
.monthly-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.month-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; text-align: left; background: var(--field); border: 1px solid var(--line); border-radius: 14px; }
.month-card:hover { border-color: var(--accent); background: var(--spot), var(--field); }
.month-card > span { color: var(--ink); font-size: 15px; font-weight: 700; text-transform: capitalize; }
.month-card strong { font-size: 28px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.month-card small { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.section-note { margin-top: 20px; color: var(--ink-3); font-size: 14px; }
.bio-panel h2 { margin-bottom: 14px; font-size: 28px; }
.bio-panel h3 { margin: 26px 0 10px; }
.bio-panel p { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.bio-panel ul { margin: 22px 0; padding: 0; list-style: none; }
.bio-panel li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.5; }
.bio-panel li .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--accent-hi); filter: var(--glow); }
.subtle-label { color: var(--ink-3); font-size: 13px; }

/* О проекте */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.about-lead { position: sticky; top: calc(var(--header) + 24px); padding: 40px; border-color: var(--accent-line); border-radius: 22px; background: var(--spot), var(--raise); }
.about-lead h2 { margin-bottom: 20px; font-size: clamp(32px, 3.2vw, 42px); line-height: 1.1; }
.about-lead p { margin-bottom: 28px; color: var(--ink-2); font-size: 16px; }
.about-details { display: grid; gap: 20px; }
.about-details article { padding: 32px; }
.about-details h2 { font-size: 26px; }
.about-details p { margin-top: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.definitions { margin: 6px 0 0; }
.definitions dt { margin-top: 20px; color: var(--ink); font-size: 15px; font-weight: 800; }
.definitions dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* Диалоги и уведомления */
dialog { width: 620px; max-width: calc(100vw - 32px); max-height: 90dvh; padding: 32px; color: var(--ink); background: #111114; border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 40px 120px rgba(0, 0, 0, .8), 0 0 0 1px rgba(76, 125, 255, .08); }
dialog::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.dialog-head h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 30px; }
.dialog-head .eyebrow { font-size: 13px; color: var(--accent-hi); }
.date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 18px; }
.date-fields label { display: grid; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.date-fields input { width: 100%; height: 48px; padding: 0 12px; background: var(--field); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); color-scheme: dark; font-weight: 600; font-variant-numeric: tabular-nums; }
.date-fields input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: none; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.trade-setup { margin-bottom: 8px; font-size: 18px; font-weight: 700; }
#trade-dialog > p { margin: 10px 0; color: var(--ink-2); font-size: 15px; }
#trade-dialog > h3 { margin-top: 8px; font-size: 22px; font-weight: 800; }
.trade-detail-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.trade-detail-levels > div { padding: 14px; background: var(--field); border: 1px solid var(--line); border-radius: 12px; }
.trade-detail-levels dt { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.trade-detail-levels dd { margin: 4px 0 0; font-size: 17px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trade-detail-levels .icon { width: 15px; height: 15px; }
.trade-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trade-result > div { display: flex; flex-direction: column; gap: 4px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.trade-result strong { font-size: 34px; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; max-width: calc(100vw - 32px); padding: 14px 20px; transform: translateX(-50%) translateY(16px); background: #111114; border: 1px solid var(--accent-line); border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* База знаний */
.knowledge-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 48px; padding: 44px; border: 1px solid var(--accent-line); border-radius: 22px; background: var(--spot), var(--raise); }
.knowledge-feature .eyebrow { color: var(--accent-hi); }
.knowledge-feature h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.08; }
.knowledge-feature p { margin: 16px 0 26px; color: var(--ink-2); font-size: 16px; }
.currency-art { padding: 24px 28px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--field); }
.currency-art > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.currency-art i { color: var(--accent); font-style: normal; }
.currency-art strong { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(54px, 6vw, 80px); font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.currency-art p { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.library-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.category-filters button { height: 40px; padding: 0 16px; border-radius: 99px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.category-filters button:hover { border-color: var(--accent-line); color: var(--ink); }
.category-filters button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.library-tools .search-field { width: 300px; }
.results-heading { margin: 28px 0 16px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.knowledge-card { display: flex; flex-direction: column; min-height: 280px; padding: 26px; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); }
.knowledge-card:hover { border-color: var(--accent-line); background: var(--spot), var(--raise); }
.knowledge-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.term-mark { margin: 26px 0 16px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: #5d5d66; font-variant-numeric: tabular-nums; transition: color .18s; }
.knowledge-card:hover .term-mark { color: var(--accent-hi); }
.knowledge-card h2 { margin-bottom: 10px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.knowledge-card p { margin-bottom: 24px; color: var(--ink-2); font-size: 15px; }
.article-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: var(--accent-hi); font-size: 15px; font-weight: 700; }
.article-link .icon { width: 17px; height: 17px; color: var(--accent-hi); }
.knowledge-card:hover .article-link .icon { filter: var(--glow); transform: translate(2px, -2px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; justify-content: space-between; gap: 64px; align-items: start; }
.article-body h1 { margin: 6px 0 20px; font-size: clamp(40px, 4.4vw, 60px); }
.article-body .eyebrow { color: var(--accent-hi); }
.article-body .article-deck { margin-bottom: 32px; color: var(--ink-2); font-size: 21px; font-weight: 600; line-height: 1.5; }
.article-body > p { max-width: 66ch; margin-top: 22px; color: #e2e2e6; font-size: 18.5px; font-weight: 500; line-height: 1.8; }
.example-box { margin: 36px 0; padding: 26px 28px; border: 1px solid var(--accent-line); border-radius: 16px; background: var(--spot), var(--raise); }
.example-box .eyebrow { color: var(--accent-hi); }
.example-box p { color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.7; }
.article-source { margin-bottom: 26px; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.article-source a { color: var(--accent-hi); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.article-source a:hover { color: #a8bfff; }
.article-related { position: sticky; top: calc(var(--header) + 24px); }
.article-related > .eyebrow { margin-bottom: 4px; }
.article-related > a { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.article-related > a strong { font-weight: 700; }
.article-related > a .icon { width: 17px; height: 17px; color: var(--ink-3); }
.article-related > a:hover strong { color: var(--accent-hi); }
.article-related .related-bot { display: block; margin-top: 28px; padding: 24px; border: 1px solid var(--accent-line); border-radius: 16px; background: var(--spot), var(--raise); }
.related-bot > span:first-child { color: var(--accent-hi); font-size: 14px; font-weight: 800; }
.related-bot strong { display: block; margin-top: 12px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.related-bot > svg { display: block; margin-top: 18px; color: var(--accent-hi); }

/* FX BOT */
.bot-banner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px 44px; border: 1px solid var(--accent-line); border-radius: 22px; background: radial-gradient(80% 120% at 100% 0%, rgba(76, 125, 255, .22), transparent 60%), var(--spot), var(--raise); }
.bot-status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--accent-hi); font-size: 14px; font-weight: 800; }
.bot-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(76, 125, 255, .2), 0 0 10px rgba(76, 125, 255, .9); }
.bot-banner h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.bot-banner p { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.bot-banner .primary-button { flex: 0 0 auto; }
.tutorial-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 40px; }
.lesson-nav { display: flex; flex-direction: column; gap: 4px; }
.lesson-nav .eyebrow { margin: 0 0 10px 14px; }
.lesson-nav button { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 14px; border-color: transparent; border-radius: 12px; color: var(--ink-2); font-size: 15px; font-weight: 700; text-align: left; }
.lesson-nav button > span:first-child { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink-3); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; transition: inherit; }
.lesson-nav button:hover { background: var(--raise); color: var(--ink); }
.lesson-nav button.done > span:first-child { border-color: var(--accent); color: var(--accent-hi); }
.lesson-nav button.active { background: var(--raise-2); border-color: var(--accent-line); color: var(--ink); }
.lesson-nav button.active > span:first-child { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px rgba(76, 125, 255, .8); }
.lesson-panel { min-height: 460px; padding: 40px; background: var(--raise); border: 1px solid var(--line); border-radius: 22px; }
.lesson-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; color: var(--ink-3); font-size: 14px; font-weight: 700; }
.lesson-progress { display: flex; gap: 4px; }
.lesson-progress i { width: 26px; height: 4px; border-radius: 4px; background: var(--line-strong); }
.lesson-progress i.on { background: var(--accent); box-shadow: 0 0 10px rgba(76, 125, 255, .8); }
.lesson-panel h2 { margin-bottom: 10px; font-size: clamp(30px, 3vw, 38px); }
.lesson-panel .lesson-lead { margin-bottom: 18px; color: var(--accent-hi); font-size: 19px; font-weight: 700; }
.lesson-panel > p { max-width: 66ch; color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.lesson-checklist { margin: 24px 0; padding: 0; list-style: none; }
.lesson-checklist li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--ink); font-size: 16px; font-weight: 600; }
.lesson-checklist span { display: inline-grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hi); }
.lesson-checklist .icon { width: 14px; height: 14px; filter: var(--glow); }
.lesson-note { padding: 16px 18px; background: var(--raise-2); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.lesson-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.lesson-actions .icon { width: 17px; height: 17px; }
.bot-faq { margin: 64px 0 0 calc(280px + 32px); }
.bot-faq h2 { margin-bottom: 12px; font-size: 32px; }
.bot-faq details { border-bottom: 1px solid var(--line); }
.bot-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; list-style: none; color: var(--ink); font-size: 17px; font-weight: 700; }
.bot-faq summary::-webkit-details-marker { display: none; }
.bot-faq summary::after { content: "+"; flex: 0 0 auto; color: var(--accent-hi); font-size: 24px; font-weight: 600; line-height: 1; }
.bot-faq details[open] summary::after { content: "−"; }
.bot-faq summary:hover { color: var(--accent-hi); }
.bot-faq details p { max-width: 70ch; padding: 0 32px 22px 0; color: var(--ink-2); font-size: 15px; }
.bot-faq a { color: var(--accent-hi); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }

/* Отзывы: только реальные опубликованные отзывы должны заменить пустое состояние */
.reviews-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.reviews-empty { padding: 44px; border: 1px solid var(--accent-line); border-radius: 22px; background: var(--spot), var(--raise); }
.quote-mark { display: block; height: 72px; font-size: 128px; font-weight: 800; line-height: .9; color: var(--accent); text-shadow: 0 0 30px rgba(76, 125, 255, .6); }
.reviews-empty h2 { margin: 18px 0 18px; font-size: clamp(40px, 4vw, 54px); line-height: 1.05; }
.reviews-empty p { color: var(--ink-2); font-size: 16px; }
.review-principles { display: flex; flex-direction: column; gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.review-principles span { display: flex; align-items: center; gap: 12px; }
.review-principles .icon { width: 18px; height: 18px; color: var(--accent-hi); filter: var(--glow); }
.review-principles b { color: var(--ink); font-size: 16px; font-weight: 700; }
.review-form-panel { padding: 36px; background: var(--raise); border: 1px solid var(--line); border-radius: 22px; }
.review-form-panel h2 { margin-bottom: 8px; font-size: 30px; }
.review-form-panel > p { margin-bottom: 24px; color: var(--ink-2); font-size: 15px; }
#review-form label { display: grid; gap: 8px; margin-bottom: 18px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
#review-form input, #review-form select, #review-form textarea { width: 100%; background-color: var(--field); border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 600; }
#review-form input, #review-form textarea { padding: 12px 14px; }
#review-form input { height: 48px; }
#review-form select { height: 48px; }
#review-form textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
#review-form input:focus-visible, #review-form textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: none; }
.form-note { margin-bottom: 20px; color: var(--ink-3); font-size: 14px; }
.review-status { margin-top: 16px; padding: 12px 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 600; }
.clear-draft { margin-left: 18px; color: var(--ink-2); }

/* ===== v6: движение, подсветка результата, портреты, новые разделы ===== */
html, body { overflow-x: clip; }

/* Вход страницы и появление блоков при прокрутке */
@keyframes fx-page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fx-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60px, 24px) scale(1.12); } }
@keyframes fx-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(76, 125, 255, .2), 0 0 8px rgba(76, 125, 255, .9); } 50% { box-shadow: 0 0 0 6px rgba(76, 125, 255, .08), 0 0 14px rgba(76, 125, 255, 1); } }
main.page-enter { animation: fx-page-in .45s cubic-bezier(.2, .7, .2, 1) both; }
[data-reveal] { transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms); }
.reveal-ready [data-reveal]:not(.in) { opacity: 0; transform: translateY(24px); }
.main-chart > svg.draw-in { animation: fx-draw 1.2s cubic-bezier(.3, .7, .2, 1) both; }
.header-status i { animation: fx-pulse 2.6s ease-in-out infinite; }

/* Главный экран: мягкое свечение за заголовком, строки поднимаются по очереди */
.hero { position: relative; isolation: isolate; }
.hero-glow { position: absolute; inset: -140px -60px -80px -120px; z-index: -1; pointer-events: none; }
.hero-glow i { position: absolute; width: 520px; height: 380px; border-radius: 50%; filter: blur(90px); opacity: .32; animation: fx-drift 16s ease-in-out infinite alternate; }
.hero-glow i:first-child { left: 0; top: 40px; background: #2f5dff; }
.hero-glow i:last-child { left: 380px; top: 120px; width: 360px; height: 260px; background: #ff3344; opacity: .16; animation-duration: 20s; animation-direction: alternate-reverse; }
.hero-copy { position: relative; }
.hero-kicker { display: inline-block; margin-bottom: 18px; }
.hero h1 .line { display: inline-block; }
main.page-enter .hero h1 .line { animation: fx-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
main.page-enter .hero h1 .line + .line { animation-delay: .12s; }
main.page-enter .hero p { animation: fx-rise .8s cubic-bezier(.2, .7, .2, 1) .24s both; }
.updated-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 99px; background: rgba(14, 14, 16, .7); color: var(--ink-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.updated-note .icon { width: 15px; height: 15px; color: var(--accent-hi); }

/* Результат торговли подчёркнут цветом результата */
.performance { position: relative; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.performance::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; }
.performance[data-tone="positive"] { border-color: rgba(47, 220, 143, .32); box-shadow: 0 40px 90px -60px rgba(47, 220, 143, .55); }
.performance[data-tone="positive"]::before { background: linear-gradient(90deg, transparent, var(--gain), transparent); }
.performance[data-tone="negative"] { border-color: rgba(255, 107, 107, .32); box-shadow: 0 40px 90px -60px rgba(255, 107, 107, .55); }
.performance[data-tone="negative"]::before { background: linear-gradient(90deg, transparent, var(--loss), transparent); }
.metric > strong.positive { text-shadow: 0 0 28px rgba(47, 220, 143, .35); }
.metric > strong.negative { text-shadow: 0 0 28px rgba(255, 107, 107, .35); }
.metric > strong.warning { text-shadow: 0 0 28px rgba(244, 198, 78, .3); }

/* Калькулятор: итог светится зелёным при прибыли и красным при убытке */
.calculator { transition: border-color .3s, box-shadow .3s; }
.calculator[data-tone="positive"] { border-color: rgba(63, 227, 155, .4); box-shadow: inset 0 1px 0 rgba(255, 232, 200, .07), 0 40px 90px -50px rgba(63, 227, 155, .5); }
.calculator[data-tone="negative"] { border-color: rgba(255, 125, 125, .4); box-shadow: inset 0 1px 0 rgba(255, 232, 200, .07), 0 40px 90px -50px rgba(255, 125, 125, .5); }
.calculator[data-tone="positive"] .calc-results { border-color: rgba(63, 227, 155, .55); background: linear-gradient(135deg, rgba(63, 227, 155, .16), rgba(0, 0, 0, .2) 70%); box-shadow: 0 0 32px -12px rgba(63, 227, 155, .65); }
.calculator[data-tone="negative"] .calc-results { border-color: rgba(255, 125, 125, .55); background: linear-gradient(135deg, rgba(255, 125, 125, .16), rgba(0, 0, 0, .2) 70%); box-shadow: 0 0 32px -12px rgba(255, 125, 125, .65); }
.calculator[data-tone="positive"] .calc-results strong.positive, .calculator[data-tone="negative"] .calc-results strong.negative { text-shadow: 0 0 22px currentColor; }
.calc-results > div:first-child { padding-right: 14px; }
.calc-results > div:last-child { padding-left: 16px; }
#calc-selected-label { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.picked { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 14px; font-weight: 800; }
.picked.positive { color: #3fe39b; background: rgba(63, 227, 155, .14); box-shadow: inset 0 0 0 1px rgba(63, 227, 155, .45); }
.picked.negative { color: #ff7d7d; background: rgba(255, 125, 125, .14); box-shadow: inset 0 0 0 1px rgba(255, 125, 125, .45); }
.picked.neutral { color: var(--ink); background: rgba(255, 255, 255, .06); }
.calc-picker summary { min-height: 52px; padding: 10px 14px; }
.picker-menu label.pick { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; padding: 8px 10px; transition: background .2s, box-shadow .2s; }
.picker-menu label.pick > span { display: grid; line-height: 1.25; }
.picker-menu label.pick small { margin: 2px 0 0; }
.picker-menu label.pick b { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.picker-menu label.pick-positive:has(input:checked) { background: rgba(63, 227, 155, .12); box-shadow: inset 0 0 0 1px rgba(63, 227, 155, .5); }
.picker-menu label.pick-negative:has(input:checked) { background: rgba(255, 125, 125, .12); box-shadow: inset 0 0 0 1px rgba(255, 125, 125, .5); }
.picker-menu label.pick-positive:has(input:checked) input { accent-color: #2fdc8f; }
.picker-menu label.pick-negative:has(input:checked) input { accent-color: #ff6b6b; }

/* Портреты трейдеров: фото, а пока его нет, аккуратное место под фото */
.portrait { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 58px; height: 58px; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-strong); background: radial-gradient(circle at 30% 18%, rgba(76, 125, 255, .38), transparent 62%), linear-gradient(165deg, #1c1e29, #0a0a0d); transition: box-shadow .3s, transform .3s; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-figure { position: absolute; left: 8%; bottom: -6%; width: 84%; fill: rgba(255, 255, 255, .07); }
.portrait-initials { position: relative; z-index: 1; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.portrait.md { width: 76px; height: 76px; border-radius: 22px; }
.portrait.md .portrait-initials { font-size: 28px; }
.portrait.xl { width: 168px; height: 168px; border-radius: 36px; }
.portrait.xl .portrait-initials { font-size: 60px; }
[data-tone="positive"] .portrait { box-shadow: 0 0 0 2px rgba(47, 220, 143, .6), 0 0 26px -4px rgba(47, 220, 143, .6); }
[data-tone="negative"] .portrait { box-shadow: 0 0 0 2px rgba(255, 107, 107, .6), 0 0 26px -4px rgba(255, 107, 107, .6); }

/* Карточки трейдеров подсвечены цветом результата за период */
.trader-card { transition: border-color .3s, box-shadow .3s, transform .3s, opacity .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms); }
.trader-card-head { display: flex; align-items: center; gap: 14px; }
.trader-card-head .card-title { font-size: clamp(28px, 2.4vw, 38px); }
.trader-card[data-tone="positive"] { border-color: rgba(47, 220, 143, .28); background: linear-gradient(165deg, rgba(47, 220, 143, .09), transparent 46%), var(--raise); }
.trader-card[data-tone="negative"] { border-color: rgba(255, 107, 107, .28); background: linear-gradient(165deg, rgba(255, 107, 107, .09), transparent 46%), var(--raise); }
.trader-card:hover { transform: translateY(-4px); }
.trader-card[data-tone="positive"]:hover { border-color: rgba(47, 220, 143, .6); background: linear-gradient(165deg, rgba(47, 220, 143, .14), transparent 52%), var(--raise); box-shadow: 0 30px 60px -36px rgba(47, 220, 143, .6); }
.trader-card[data-tone="negative"]:hover { border-color: rgba(255, 107, 107, .6); background: linear-gradient(165deg, rgba(255, 107, 107, .14), transparent 52%), var(--raise); box-shadow: 0 30px 60px -36px rgba(255, 107, 107, .6); }
.trader-card:hover .portrait { transform: scale(1.05); }
.approach-head { display: flex; align-items: center; gap: 18px; }
.approach-head .section-heading { flex: 1; min-width: 0; }

/* Профиль трейдера: портрет, история, как работает, все сделки */
.profile-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 36px; }
.profile-title h1 { margin: 4px 0 10px; }
.profile-title .profile-facts { justify-items: start; margin-top: 18px; }
.profile-title .profile-facts .instrument-tags { justify-content: flex-start; }
.profile-kpis { display: grid; gap: 14px; min-width: 220px; margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--raise); }
.profile-kpis div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.profile-kpis dt { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.profile-kpis dd { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.profile-kpis div:first-child dd { font-size: 36px; letter-spacing: -.035em; }
.profile-hero[data-tone="positive"] .profile-kpis { border-color: rgba(47, 220, 143, .35); background: linear-gradient(135deg, rgba(47, 220, 143, .12), transparent 60%), var(--raise); }
.profile-hero[data-tone="negative"] .profile-kpis { border-color: rgba(255, 107, 107, .35); background: linear-gradient(135deg, rgba(255, 107, 107, .12), transparent 60%), var(--raise); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 8px 0 48px; }
.story-card { padding: 32px; }
.story-icon, .feature-icon, .about-card-icon, .slot-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); color: var(--accent-hi); }
.story-icon .icon, .feature-icon .icon, .about-card-icon .icon, .slot-icon .icon { width: 20px; height: 20px; filter: var(--glow); }
.story-card h2 { margin-bottom: 14px; }
.story-card p { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.story-card .subtle-label { display: block; margin-top: 16px; }
.how-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.how-list li { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink); font-size: 15px; font-weight: 600; }
.how-list .icon { width: 18px; height: 18px; color: var(--accent-hi); filter: var(--glow); }
.profile-posts { margin-top: 40px; }

/* Обучение */
.free-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-bottom: 48px; padding: 32px 36px; border: 1px solid var(--accent-line); border-radius: 22px; background: var(--spot), var(--raise); }
.free-mark { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--accent-hi); text-shadow: 0 0 32px rgba(76, 125, 255, .7); }
.free-banner p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.learning-path { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.learning-path::before { content: ""; position: absolute; left: 40px; right: 40px; top: 44px; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(76, 125, 255, .15)); box-shadow: 0 0 12px rgba(76, 125, 255, .5); }
.stage-card { position: relative; display: flex; flex-direction: column; padding: 24px; background: var(--raise); border: 1px solid var(--line); border-radius: 18px; }
.stage-card:hover { border-color: var(--accent-line); }
.stage-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.stage-number { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 800; box-shadow: 0 0 0 6px var(--bg), 0 0 20px rgba(76, 125, 255, .8); }
.stage-count { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.stage-card h2 { font-size: 24px; margin-bottom: 8px; }
.stage-card > p { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.stage-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.stage-card li a { display: block; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; }
.stage-card li a:hover { color: var(--accent-hi); }
.lessons { margin-top: 88px; }
.lesson-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lesson-slot { padding: 26px; border: 1px dashed var(--line-strong); border-radius: 18px; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .015) 14px 28px), var(--field); }
.lesson-slot h3 { font-size: 18px; font-weight: 800; }
.lesson-slot p { margin-top: 6px; color: var(--ink-3); font-size: 14px; }

/* FX BOT: возможности и рамки под скриншоты */
.bot-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.feature { padding: 24px; background: var(--raise); border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, transform .3s, opacity .7s cubic-bezier(.2, .7, .2, 1) var(--delay, 0ms); }
.feature:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.feature h3 { font-size: 18px; font-weight: 800; }
.feature p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.lesson-panel { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; align-items: start; }
.lesson-content { min-width: 0; }
.phone-frame { margin: 0; width: 100%; aspect-ratio: 9 / 18; padding: 10px; border: 1px solid var(--line-strong); border-radius: 36px; background: linear-gradient(160deg, #17171c, #08080a); box-shadow: 0 30px 70px -40px rgba(76, 125, 255, .7), inset 0 0 0 1px rgba(255, 255, 255, .04); }
.phone-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.phone-placeholder { display: grid; place-content: center; justify-items: center; gap: 8px; height: 100%; border: 1px dashed var(--line-strong); border-radius: 28px; color: var(--ink-3); text-align: center; background: radial-gradient(circle at 50% 30%, rgba(76, 125, 255, .14), transparent 60%); }
.phone-placeholder .icon { width: 30px; height: 30px; color: var(--accent-hi); filter: var(--glow); }
.phone-placeholder span { color: var(--ink); font-size: 15px; font-weight: 700; }
.phone-placeholder small { font-size: 13px; font-weight: 600; }

/* Отзывы: лента опубликованных и форма со скриншотами */
.reviews-list { display: grid; gap: 16px; }
.review-card { padding: 26px; background: var(--raise); border: 1px solid var(--line); border-radius: 18px; }
.review-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.review-top span { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.review-card p { color: var(--ink-2); font-size: 15px; }
.review-shots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.review-shots img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-strong); }
.upload-field { position: relative; margin-bottom: 18px; }
.upload-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-drop { display: flex !important; align-items: center; gap: 14px; padding: 18px; border: 1px dashed var(--accent-line); border-radius: 14px; background: var(--accent-soft); cursor: pointer; transition: border-color .2s, background .2s; }
.upload-drop:hover, .upload-field:focus-within .upload-drop { border-color: var(--accent); background: rgba(76, 125, 255, .18); }
.upload-drop .icon { width: 24px; height: 24px; color: var(--accent-hi); filter: var(--glow); }
.upload-drop span { display: grid; gap: 2px; }
.upload-drop b { color: var(--ink); font-size: 15px; }
.upload-drop small { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.shot-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.shot-preview:empty { display: none; }
.shot-preview figure { margin: 0; width: 96px; }
.shot-preview img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-strong); }
.shot-preview figcaption { margin-top: 4px; color: var(--ink-3); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.form-actions .clear-draft { margin-left: 0; }

/* О проекте */
.page-intro .brand-fx { margin-right: .12em; }
.about-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.founder-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; align-items: center; padding: 32px; }
.founder-card h2 { margin: 2px 0 10px; font-size: 32px; }
.founder-card p { color: var(--ink-2); font-size: 15px; }
.social-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.social-card { position: relative; display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); transition: border-color .2s, transform .2s; }
a.social-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.social-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-hi); }
.social-icon .icon { width: 19px; height: 19px; filter: var(--glow); }
.social-card b { display: block; font-size: 15px; }
.social-card small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.social-card em { justify-self: start; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--ink-3); font-size: 12px; font-style: normal; font-weight: 700; }
.social-arrow { position: absolute; top: 16px; right: 16px; width: 16px; height: 16px; color: var(--ink-3); }
.about-top .about-lead { position: static; }
.about-do { margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; }
.about-do li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 16px; font-weight: 600; }
.about-do li > span { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-hi); }
.about-do .icon { width: 18px; height: 18px; filter: var(--glow); }
.about-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.about-card { padding: 28px; }
.about-card h2 { font-size: 24px; margin-bottom: 8px; }
.about-card p { color: var(--ink-2); font-size: 15px; }
.about-card.is-free { border-color: rgba(63, 227, 155, .6); background: linear-gradient(135deg, rgba(63, 227, 155, .2), transparent 62%), var(--raise-2); box-shadow: 0 0 40px -18px rgba(63, 227, 155, .55); }
.about-card.is-free .about-card-icon { border-color: rgba(47, 220, 143, .5); background: rgba(47, 220, 143, .12); color: var(--gain); }
.about-card.is-free .about-card-icon .icon { filter: drop-shadow(0 0 6px rgba(47, 220, 143, .7)); }
.about-card.is-todo { border-style: dashed; border-color: var(--line-strong); }
.about-details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }

/* ===== v7: инструкция FX BOT, отзывы, соцсети, поддержка, редактор ===== */
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-support { color: var(--accent-hi) !important; font-weight: 700; }
.draft-pill { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: none; padding: 8px 14px; border-radius: 99px; background: var(--warn); color: #1a1300; font-size: 13px; font-weight: 800; box-shadow: 0 10px 30px -10px rgba(244, 198, 78, .8); }
body.has-draft .draft-pill { display: inline-flex; }

/* FX BOT */
.bot-notes { display: grid; gap: 10px; margin: 24px 0 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); }
.bot-notes p { color: var(--ink-2); font-size: 16px; }
.bot-notes b { color: var(--ink); font-weight: 800; }
.bot-disclaimer { display: flex; align-items: center; gap: 10px; color: var(--ink-3) !important; font-size: 14px !important; }
.bot-disclaimer .icon { width: 18px; height: 18px; color: var(--warn); flex: 0 0 auto; }
.bot-why { margin-top: 72px; }
.bot-why > p { max-width: 70ch; margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.why-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 16px; }
.why-chips span { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); color: var(--ink); font-size: 16px; font-weight: 700; }
.why-chips .icon { width: 20px; height: 20px; color: var(--accent-hi); filter: var(--glow); }
.bot-outro { margin-top: 14px; color: var(--ink); font-size: 16px; font-weight: 700; }
.bot-sections { display: grid; gap: 28px; margin-top: 72px; }
.bot-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 48px; align-items: center; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--raise); }
.bot-section.is-flipped { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); }
.bot-section.is-flipped .bot-section-text { order: 2; }
.bot-section-index { display: inline-block; margin-bottom: 12px; color: var(--accent-hi); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bot-section h2 { margin-bottom: 10px; font-size: clamp(26px, 2.6vw, 34px); }
.bot-section-text > p:not(.bot-outro) { color: var(--ink-2); font-size: 16px; }
.bot-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bot-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.45; }
.bot-list .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--accent-hi); filter: var(--glow); flex: 0 0 auto; }
.bot-section .bot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.bot-shot { margin: 0; justify-self: center; width: 100%; }
.bot-shot img { display: block; width: 100%; max-height: 640px; object-fit: contain; object-position: top center; border-radius: 18px; border: 1px solid var(--line-strong); background: #0b0b0d; box-shadow: 0 30px 70px -40px rgba(76, 125, 255, .65); }
.bot-shot figcaption { margin-top: 10px; color: var(--ink-3); font-size: 13px; font-weight: 600; text-align: center; }
.bot-benefits, .bot-roadmap { margin-top: 72px; padding: 36px; border: 1px solid var(--accent-line); border-radius: 24px; background: var(--spot), var(--raise); }
.bot-benefits .bot-list, .bot-roadmap .bot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.bot-roadmap { border-color: var(--line); background: var(--raise); }
.bot-roadmap > p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.bot-start-title { margin: 88px 0 0; font-size: clamp(30px, 3vw, 40px); }
.lesson-panel.lesson-panel-text { display: block; }

/* Отзывы: карусель видео и сетка фото */
.video-reviews, .photo-reviews { margin-bottom: 64px; }
.carousel-controls { display: flex; gap: 8px; }
.video-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.video-card { margin: 0; scroll-snap-align: start; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--raise); }
.video-card video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #000; }
.video-card figcaption { display: grid; gap: 2px; padding: 12px 6px 4px; }
.video-card figcaption span { color: var(--ink-2); font-size: 14px; }
.video-card figcaption small { color: var(--ink-3); font-size: 13px; }
.video-placeholder { display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 9 / 16; color: var(--ink-3); border-style: dashed; text-align: center; font-weight: 700; }
.video-placeholder .icon { width: 34px; height: 34px; color: var(--accent-hi); filter: var(--glow); }
.photo-grid { columns: 3 260px; column-gap: 16px; }
.video-reviews.is-empty .video-track { grid-auto-columns: 100%; }
.video-reviews.is-empty .video-placeholder { aspect-ratio: auto; min-height: 160px; }
@media (max-width: 640px) { .photo-grid { columns: 2; column-gap: 10px; } .photo-review { margin-bottom: 10px; border-radius: 14px; } .photo-caption { padding: 10px 10px 12px; } .photo-caption b { font-size: 14px; } .photo-caption span { font-size: 13px; } }
.photo-review { display: block; width: 100%; margin: 0 0 16px; padding: 0; break-inside: avoid; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--raise); text-align: left; transition: border-color .25s, transform .25s; }
.photo-review:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.photo-review img { display: block; width: 100%; height: auto; }
.photo-caption { display: grid; gap: 2px; padding: 14px 16px 16px; }
.photo-caption b { color: var(--ink); font-size: 16px; }
.photo-caption span { color: var(--gain); font-size: 15px; font-weight: 700; }
.photo-caption small { color: var(--ink-3); font-size: 13px; }
dialog.is-review { width: 520px; }
.review-full { display: block; width: 100%; max-height: 72dvh; object-fit: contain; margin-top: 12px; border-radius: 14px; }

/* О проекте: соцсети по площадкам и поддержка */
.support-button .icon { color: var(--accent-ink) !important; filter: none !important; }
.founder-card .support-button { margin-top: 18px; }
.socials-block { margin-top: 48px; }
.social-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.social-group { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--raise); }
.social-group h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 18px; font-weight: 800; }
.social-group h3 .icon { width: 20px; height: 20px; color: var(--accent-hi); filter: var(--glow); }
.social-group-list { display: grid; gap: 10px; }
.social-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding-right: 40px; }
.is-earn .earn-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.is-earn .earn-links .secondary-button { min-height: 42px; padding: 0 14px; font-size: 14px; }
.is-earn { border-color: var(--accent-line); background: var(--spot), var(--raise); }
.support-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 32px 36px; border: 1px solid var(--accent-line); border-radius: 24px; background: radial-gradient(80% 140% at 100% 0%, rgba(76, 125, 255, .24), transparent 60%), var(--raise); }
.support-band p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.support-button.is-large { min-height: 54px; padding: 0 26px; font-size: 16px; }

/* Редактор */
.ed-bar { position: sticky; top: calc(var(--header) + 8px); z-index: 20; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(14, 14, 16, .92); backdrop-filter: blur(10px); }
.ed-tabs, .ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ed-tabs button { height: 40px; padding: 0 14px; border-radius: 10px; color: var(--ink-2); font-weight: 700; }
.ed-tabs button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ed-status { margin: 14px 0 20px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.ed-body { display: grid; gap: 18px; }
.ed-card { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); display: grid; gap: 14px; }
.ed-card h2 { font-size: 22px; }
.ed-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ed-field { display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.ed-field input, .ed-field textarea, .ed-field select { width: 100%; min-height: 44px; padding: 10px 12px; background: var(--field); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.5; }
.ed-field textarea { resize: vertical; }
.ed-field input:focus-visible, .ed-field textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: none; }
.ed-field small { color: var(--ink-3); font-size: 12.5px; }
.ed-item { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); }
.ed-media { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.ed-thumb { display: grid; place-items: center; width: 120px; height: 120px; overflow: hidden; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--ink-3); font-size: 13px; }
.ed-thumb img, .ed-thumb video { width: 100%; height: 100%; object-fit: cover; }
.ed-media-fields { display: grid; gap: 10px; }
.ed-file { position: relative; display: inline-flex; justify-self: start; align-items: center; height: 38px; padding: 0 14px; border: 1px dashed var(--accent-line); border-radius: 10px; color: var(--accent-hi); font-size: 14px; font-weight: 700; cursor: pointer; }
.ed-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ed-row-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-row-tools button { height: 34px; min-width: 34px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-weight: 700; }
.ed-row-tools .ed-danger { color: var(--loss); border-color: rgba(255, 107, 107, .4); }
.ed-empty { color: var(--ink-3); font-size: 14px; }
.ed-help { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); }
.ed-help summary { color: var(--ink); font-weight: 700; cursor: pointer; }
.ed-help ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }

@media (max-width: 1000px) {
  .bot-section, .bot-section.is-flipped { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .bot-section.is-flipped .bot-section-text { order: 0; }
  .bot-shot { max-width: 440px; }
  .social-groups { grid-template-columns: 1fr; }
  .why-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .bot-section, .bot-section.is-flipped { padding: 22px 18px; }
  .bot-section .bot-list, .bot-benefits .bot-list, .bot-roadmap .bot-list { grid-template-columns: 1fr; }
  .bot-benefits, .bot-roadmap { padding: 26px 20px; }
  .why-chips { grid-template-columns: 1fr; }
  .ed-grid { grid-template-columns: 1fr; }
  .ed-media { grid-template-columns: 1fr; }
  .ed-bar { position: static; }
  .support-band { padding: 26px 20px; }
}

/* Средняя ширина: меню переносится второй строкой, все пункты видны */

/* ===== v8 ===== */
html { scrollbar-gutter: stable; }
main { overflow-anchor: none; }

/* Фильтры: ширина чипа не меняется при выборе, панель не прыгает */
.overview-controls { flex-wrap: nowrap; }
.trader-filter { flex-wrap: nowrap; }
.trader-filter .chip { --chip-pad: 14px; padding: 0 calc(var(--chip-pad) + 11.5px); white-space: nowrap; }
.trader-filter .chip .chip-check { display: none; }
.trader-filter .chip.selected[data-id] { padding: 0 var(--chip-pad); }
.trader-filter .chip.selected .chip-check { display: block; }
@media (max-width: 760px) {
  .trader-filter { flex-wrap: wrap; }
  .trader-filter .chip { --chip-pad: 11px; }
}
.period-tabs button { padding: 0 10px; }
.overview-controls .period-controls { flex-wrap: nowrap; }
.trader-filter { gap: 6px; }
.trader-filter .chip { --chip-pad: 12px; }
@media (max-width: 1320px) {
  .overview-controls .period-controls { flex-wrap: wrap; }
  .overview-controls { flex-direction: column; align-items: stretch; gap: 14px; }
  .overview-controls .period-controls { justify-content: space-between; }
}

/* Калькулятор: фирменное свечение как в первом экране */
.dashboard-grid { position: relative; isolation: isolate; }
.calc-glow { position: absolute; z-index: -1; top: -70px; bottom: -80px; right: -110px; width: 620px; pointer-events: none; }
.calc-glow i { position: absolute; border-radius: 50%; filter: blur(80px); animation: fx-drift 16s ease-in-out infinite alternate; transition: background-color .6s, opacity .6s; }
.calc-glow i:nth-child(1) { left: 40px; top: 10px; width: 400px; height: 340px; background: #2f5dff; opacity: .34; }
.calc-glow i:nth-child(2) { right: 30px; bottom: 30px; width: 340px; height: 300px; background: #ff3344; opacity: .2; animation-duration: 20s; animation-direction: alternate-reverse; }
.calc-glow i:nth-child(3) { left: 160px; top: 40%; width: 300px; height: 240px; background: transparent; opacity: 0; animation-duration: 13s; }
.calc-glow[data-tone="positive"] i:nth-child(3) { background: #2fdc8f; opacity: .22; }
.calc-glow[data-tone="negative"] i:nth-child(3) { background: #ff6b6b; opacity: .2; }
.calculator { border: 1px solid transparent;
  background: radial-gradient(120% 60% at 90% -10%, rgba(255, 210, 160, .09), transparent 60%) padding-box, linear-gradient(rgba(21, 16, 13, .8), rgba(21, 16, 13, .86)) padding-box, linear-gradient(140deg, rgba(123, 159, 255, .9), rgba(59, 47, 39, .9) 45%, rgba(255, 51, 68, .7)) border-box;
  -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 232, 200, .08), 0 0 0 1px rgba(76, 125, 255, .08), 0 50px 120px -50px rgba(76, 125, 255, .55); }
.calculator[data-tone="positive"] { border-color: transparent; background: radial-gradient(120% 60% at 90% -10%, rgba(255, 210, 160, .09), transparent 60%) padding-box, linear-gradient(rgba(21, 16, 13, .8), rgba(21, 16, 13, .86)) padding-box, linear-gradient(140deg, rgba(123, 159, 255, .9), rgba(59, 47, 39, .9) 45%, rgba(63, 227, 155, .85)) border-box; box-shadow: inset 0 1px 0 rgba(255, 232, 200, .08), 0 50px 120px -50px rgba(63, 227, 155, .55); }
.calculator[data-tone="negative"] { border-color: transparent; background: radial-gradient(120% 60% at 90% -10%, rgba(255, 210, 160, .09), transparent 60%) padding-box, linear-gradient(rgba(21, 16, 13, .8), rgba(21, 16, 13, .86)) padding-box, linear-gradient(140deg, rgba(123, 159, 255, .9), rgba(59, 47, 39, .9) 45%, rgba(255, 125, 125, .85)) border-box; box-shadow: inset 0 1px 0 rgba(255, 232, 200, .08), 0 50px 120px -50px rgba(255, 125, 125, .5); }
.calc-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 4px 10px; border: 1px solid rgba(123, 159, 255, .45); border-radius: 99px; background: rgba(76, 125, 255, .12); color: var(--accent-hi); font-size: 13px; font-weight: 800; }
.calc-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
@media (max-width: 1000px) {
  .calc-glow { top: auto; bottom: -60px; left: -40px; right: -40px; width: auto; height: 720px; }
  .calc-glow i:nth-child(1) { width: 300px; height: 280px; }
  .calc-glow i:nth-child(2) { width: 260px; height: 240px; }
}

/* FX BOT: без лишнего движения */
.manager-button .icon { color: var(--accent-ink) !important; filter: none !important; }
.bot-notes { margin-top: 56px; }

/* База знаний: гайд, карта гайда, словарь */
.feature-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -8px 0 26px; color: var(--ink-3); font-size: 14px; font-weight: 700; }
.feature-meta span { display: inline-flex; align-items: center; gap: 7px; }
.feature-meta .icon { width: 16px; height: 16px; color: var(--accent-hi); }
.guide-map { padding: 24px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--field); }
.guide-map-title { display: block; margin-bottom: 14px; color: var(--ink); font-size: 16px; font-weight: 800; }
.guide-map > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide-map a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raise); color: var(--ink); font-size: 15px; font-weight: 700; }
.guide-map a span { display: inline-grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-hi); font-size: 13px; font-weight: 800; }
.guide-map a:hover { border-color: var(--accent-line); background: var(--spot), var(--raise); }
.guide-map p { margin: 14px 0 0; color: var(--ink-3); font-size: 14px; }
.knowledge-card.is-guide { border-color: var(--accent-line); background: var(--spot), var(--raise); }
.knowledge-card.is-guide .term-mark { color: var(--accent-hi); }
.glossary { margin-top: 72px; }
.glossary-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.glossary-head h2 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 8px; }
.glossary-head p { max-width: 62ch; color: var(--ink-2); font-size: 16px; }
.glossary-head .search-field { width: 300px; flex: 0 0 auto; }
.glossary-groups { margin-bottom: 20px; }
.glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.term-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--raise); }
.term-card:hover { border-color: var(--line-strong); }
.term-group { display: block; margin-bottom: 8px; color: var(--ink-3); font-size: 12px; font-weight: 700; }
.term-card h3 { color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.term-card small { display: block; margin-top: 3px; color: var(--accent-hi); font-size: 13px; font-weight: 700; }
.term-card p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; align-items: start; }
.guide-toc { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 4px; }
.guide-toc button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 700; text-align: left; }
.guide-toc button span { display: inline-grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 7px; background: var(--raise-2); color: var(--ink-3); font-size: 12px; font-weight: 800; }
.guide-toc button:hover { background: var(--raise); color: var(--ink); }
.guide-toc button:hover span { background: var(--accent-soft); color: var(--accent-hi); }
.guide-toc-bot { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--spot), var(--raise); }
.guide-toc-bot .icon { width: 20px; height: 20px; color: var(--accent-hi); filter: var(--glow); }
.guide-toc-bot b { display: block; font-size: 14px; }
.guide-toc-bot small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.guide-body h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.05; margin-bottom: 18px; }
.guide-body > p, .guide-section > p { margin-bottom: 16px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.guide-body p b, .guide-body li b { color: var(--ink); font-weight: 800; }
.guide-cover { margin: 8px 0 32px; }
.guide-cover img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); }
.guide-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header) + 20px); }
.guide-index { display: block; margin-bottom: 10px; color: var(--accent-hi); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.guide-section h2 { margin-bottom: 18px; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; }
.guide-section h3 { margin: 26px 0 10px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.guide-img { margin: 22px 0 26px; }
.guide-img img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 16px; border: 1px solid var(--line-strong); background: #0b0b0d; }
.guide-img.is-tall img { max-height: 620px; }
.guide-list { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.guide-list li { display: flex; gap: 12px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.55; }
.guide-list .icon { flex: 0 0 18px; margin-top: 3px; color: var(--gain); }
.guide-note { display: flex; gap: 14px; margin: 18px 0 22px; padding: 18px 20px; border: 1px solid var(--accent-line); border-radius: 16px; background: var(--spot), var(--raise); }
.guide-note .icon { flex: 0 0 20px; margin-top: 2px; color: var(--accent-hi); filter: var(--glow); }
.guide-note p { color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.6; }
.guide-rule { margin: 20px 0 22px !important; padding: 4px 0 4px 18px; border-left: 3px solid var(--gain); color: var(--ink) !important; font-size: 19px !important; font-weight: 800; line-height: 1.45 !important; letter-spacing: -.01em; }
.guide-code { display: inline-block; margin: 0 0 18px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field); color: var(--ink); font: 700 17px/1.3 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.signal-steps { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: none; }
.signal-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); }
.signal-steps li > span { display: inline-grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.signal-steps b { display: block; color: var(--ink); font-size: 16px; }
.signal-steps small { display: block; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.guide-end { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding: 30px 32px; border: 1px solid var(--accent-line); border-radius: 22px; background: radial-gradient(80% 140% at 100% 0%, rgba(76, 125, 255, .22), transparent 60%), var(--raise); }
.guide-end h2 { font-size: 26px; margin-bottom: 6px; }
.guide-end p { max-width: 46ch; color: var(--ink-2); font-size: 15px; }
.guide-end-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guide-body .article-source { margin-top: 26px; }
.guide-body .article-source a { color: var(--accent-hi); }

/* Обучение: видео-уроки */
.lesson-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; }
.lesson-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--raise); }
.lesson-card.is-main { grid-row: span 2; border-color: var(--accent-line); background: var(--spot), var(--raise); }
.lesson-card:not(.is-main) { flex-direction: row; }
.lesson-video { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 0; background: #050507; overflow: hidden; }
.lesson-card:not(.is-main) .lesson-video { flex: 0 0 44%; width: 44%; height: auto; }
.lesson-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lesson-video.is-empty { background: radial-gradient(60% 80% at 30% 20%, rgba(76, 125, 255, .22), transparent 70%), radial-gradient(50% 70% at 80% 90%, rgba(255, 51, 68, .14), transparent 70%), #07070a; }
.lesson-video.is-empty small { position: absolute; left: 14px; bottom: 12px; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.play-mark { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(76, 125, 255, .92); color: #fff; box-shadow: 0 0 0 8px rgba(76, 125, 255, .18), 0 12px 40px -8px rgba(76, 125, 255, .9); }
.play-mark .icon { width: 26px; height: 26px; margin-left: 3px; }
.lesson-card:not(.is-main) .play-mark { width: 44px; height: 44px; box-shadow: 0 0 0 5px rgba(76, 125, 255, .16); }
.lesson-card:not(.is-main) .play-mark .icon { width: 18px; height: 18px; }
button.lesson-video:hover .play-mark { transform: scale(1.06); }
.lesson-video iframe, iframe.lesson-video { border: 0; }
.lesson-card-text { padding: 20px 22px 22px; }
.lesson-card-text .eyebrow { margin-bottom: 6px; color: var(--accent-hi); }
.lesson-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.lesson-card.is-main h3 { font-size: 26px; }
.lesson-card p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.lessons { margin: 0 0 56px; }
.learning-path li.is-guide a { color: var(--accent-hi); font-weight: 800; }

/* О проекте: фирменные значки площадок */
.brand-icon { display: block; flex: 0 0 auto; }
.social-icon { width: 42px; height: 42px; border: 1px solid transparent; }
.social-icon .brand-icon { width: 22px; height: 22px; }
.social-icon.brand-youtube { background: rgba(255, 0, 51, .1); border-color: rgba(255, 0, 51, .3); box-shadow: 0 0 22px -8px rgba(255, 0, 51, .8); }
.social-icon.brand-telegram { background: rgba(38, 165, 228, .1); border-color: rgba(38, 165, 228, .32); box-shadow: 0 0 22px -8px rgba(38, 165, 228, .85); }
.social-icon.brand-instagram { background: rgba(225, 48, 108, .1); border-color: rgba(225, 48, 108, .32); box-shadow: 0 0 22px -8px rgba(225, 48, 108, .85); }
.brand-youtube .brand-icon { filter: drop-shadow(0 0 6px rgba(255, 0, 51, .65)); }
.brand-telegram .brand-icon { filter: drop-shadow(0 0 6px rgba(38, 165, 228, .7)); }
.brand-instagram .brand-icon { filter: drop-shadow(0 0 6px rgba(225, 48, 108, .65)); }
.social-group h3 .brand-icon { width: 22px; height: 22px; }
.group-youtube h3 .brand-icon { filter: drop-shadow(0 0 6px rgba(255, 0, 51, .6)); }
.group-telegram h3 .brand-icon { filter: drop-shadow(0 0 6px rgba(38, 165, 228, .65)); }
.group-instagram h3 .brand-icon { filter: drop-shadow(0 0 6px rgba(225, 48, 108, .6)); }
a.social-youtube:hover { border-color: rgba(255, 0, 51, .6); box-shadow: 0 0 30px -12px rgba(255, 0, 51, .9); }
a.social-telegram:hover { border-color: rgba(38, 165, 228, .65); box-shadow: 0 0 30px -12px rgba(38, 165, 228, .95); }
a.social-instagram:hover { border-color: rgba(225, 48, 108, .6); box-shadow: 0 0 30px -12px rgba(225, 48, 108, .9); }
.earn-links .brand-icon { width: 18px; height: 18px; }

.about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.about-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(0, 0, 0, .25); color: var(--ink); font-size: 14px; font-weight: 700; }
.about-links .icon { width: 17px; height: 17px; }
.is-free .about-links a { border-color: rgba(47, 220, 143, .35); }
.is-free .about-links .icon { color: var(--gain); }
.is-free .about-links a:hover { border-color: var(--gain); background: rgba(47, 220, 143, .1); box-shadow: 0 0 22px -10px rgba(47, 220, 143, .9); }
.about-card.is-open { border-color: rgba(167, 139, 255, .42); background: linear-gradient(135deg, rgba(167, 139, 255, .15), rgba(76, 125, 255, .05) 45%, transparent 70%), var(--raise); }
.about-card.is-open .about-card-icon { border-color: rgba(167, 139, 255, .55); background: rgba(167, 139, 255, .14); color: #c1adff; }
.about-card.is-open .about-card-icon .icon { filter: drop-shadow(0 0 6px rgba(167, 139, 255, .8)); }
.is-open .about-links a { border-color: rgba(167, 139, 255, .38); }
.is-open .about-links .icon { color: #c1adff; }
.is-open .about-links a:hover { border-color: #a78bff; background: rgba(167, 139, 255, .1); box-shadow: 0 0 22px -10px rgba(167, 139, 255, .9); }
.about-cards { margin-bottom: 0; }

@media (max-width: 1000px) {
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }
  .guide-toc { position: static; grid-template-columns: 1fr 1fr; }
  .guide-toc > .eyebrow, .guide-toc-bot { grid-column: 1 / -1; }
  .glossary-grid { grid-template-columns: 1fr 1fr; }
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-card.is-main { grid-row: auto; }
}
@media (max-width: 760px) {
  .guide-map > div { grid-template-columns: 1fr; }
  .glossary-head { flex-direction: column; align-items: stretch; }
  .glossary-head .search-field { width: 100%; }
  .glossary-grid { grid-template-columns: 1fr; }
  .glossary-groups { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
  .glossary-groups button { flex: 0 0 auto; }
  .guide-toc { grid-template-columns: 1fr; }
  .guide-toc button, .guide-toc > .eyebrow { display: none; }
  .guide-body > p, .guide-section > p { font-size: 16px; }
  .guide-rule { font-size: 17px !important; }
  .guide-end { padding: 24px 20px; }
  .lesson-card:not(.is-main) { flex-direction: column; }
  .lesson-card:not(.is-main) .lesson-video { width: 100%; }
}

@media (max-width: 1440px) { .status-date { display: none; } }
@media (max-width: 1180px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; }
  .site-header nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 12px); border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .site-header nav a { height: 52px; }
  .wordmark { padding: 16px 0; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; }
  .metric { padding: 0 14px; }
  .trader-grid { gap: 12px; }
  .trader-card { padding: 22px 18px 20px; }
  .profile-lower { grid-template-columns: minmax(0, 1fr) 300px; }
  .signal-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
}
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .quiet-link { display: none; }
  .trader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-lower { grid-template-columns: 1fr; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-lead { position: static; }
  .knowledge-grid { grid-template-columns: 1fr 1fr; }
  .knowledge-feature { padding: 34px; gap: 28px; }
  .tutorial-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 22px; }
  .bot-faq { margin-left: 0; }
  .reviews-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 48px; }
  .article-related { position: static; }
}
@media (max-width: 760px) {
  :root { --header: 60px; }
  .header-inner { padding: 0 16px; }
  .wordmark { padding: 14px 0; }
  .wordmark > span:first-child { font-size: 22px; }
  .wordmark > span:last-child { font-size: 14px; }
  .status-date { display: none; }
  .site-header nav { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); width: calc(100% + 32px); margin: 0 -16px; padding: 0; overflow: visible; }
  .site-header nav a { grid-column: span 3; flex-direction: column; justify-content: center; gap: 4px; height: 60px; padding: 0 4px; border-right: 1px solid var(--line); font-size: 13px; }
  .site-header nav a:nth-child(4) { border-right: 0; }
  .site-header nav a:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .site-header nav a:last-child { border-right: 0; }
  .site-header nav a { font-size: 12.5px; }
  .site-header nav a.active::after { left: 22%; right: 22%; }
  main { padding-top: 40px; }
  .hero { margin-bottom: 28px; }
  .hero p, .page-intro p { font-size: 17px; }
  .page-intro { margin-bottom: 36px; }
  .overview-controls { margin-bottom: 24px; }
  .performance { padding: 22px 18px 12px; }
  .panel-heading { margin-bottom: 18px; }
  .metrics { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .metric:nth-child(2) { padding-right: 0; }
  .metric > strong { font-size: 32px; }
  .main-chart { height: 240px; }
  .calculator { padding: 26px 20px; }
  .traders-section, .recent-section, .overview-links { margin-top: 72px; }
  .recent-section, .history-panel { padding: 22px 18px; }
  .overview-links { grid-template-columns: 1fr; gap: 14px; }
  .overview-links > a { padding: 24px 60px 24px 22px; }
  .overview-links .link-arrow { right: 22px; top: 28px; }
  .approach-grid, .signal-grid, .analysis-grid { grid-template-columns: 1fr; }
  .approach-card { padding: 26px 22px; }
  .profile-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .profile-facts { justify-items: start; }
  .profile-facts .instrument-tags { justify-content: flex-start; }
  .profile-posts, .bio-panel { padding: 22px 18px; }
  .monthly-grid { grid-template-columns: 1fr 1fr; }
  .history-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .history-tools .search-field { grid-column: 1 / -1; min-width: 0; }
  .history-tools select, .history-tools .secondary-button { width: 100%; }
  .standalone-period { justify-content: flex-start; }
  .knowledge-feature { grid-template-columns: 1fr; padding: 28px 22px; }
  .library-tools .search-field { width: 100%; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card { min-height: 0; }
  .tutorial-layout { grid-template-columns: 1fr; }
  .lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .lesson-nav .eyebrow { grid-column: 1 / -1; margin-left: 0; }
  .lesson-nav button { min-height: 50px; padding: 0 10px; gap: 10px; font-size: 14px; }
  .lesson-panel { min-height: 0; padding: 26px 20px; }
  .bot-banner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 30px 22px; }
  .reviews-empty, .review-form-panel { padding: 28px 22px; }
  dialog { padding: 24px 20px; }
  .dialog-head h2 { font-size: 26px; }
  .date-fields { grid-template-columns: 1fr; }
  .trade-detail-levels { grid-template-columns: 1fr 1fr; }
  .footer-note { display: block; margin: 6px 0 0; }
}
@media (max-width: 520px) {
  .chip { height: 38px; padding: 0 13px; font-size: 14px; }
  .filter-label { width: 100%; margin: 0 0 2px; }
  .period-controls { width: 100%; }
  .period-tabs { width: 100%; }
  .period-tabs button { flex: 1; padding: 0 6px; }
  .date-button { width: 100%; }
  .metric-label { font-size: 13px; }
  .metric > strong { font-size: 28px; }
  .chart-caption { font-size: 13px; }
  .deposit-input input { font-size: 40px; }
  .calc-results strong { font-size: 26px; }
  .trader-grid { gap: 10px; }
  .trader-card { padding: 18px 14px 16px; }
  .card-title { font-size: 30px; }
  .trader-card-chart strong { font-size: 24px; }
  .trader-card-chart > div:last-child { flex-direction: column; gap: 0; }
  .trader-card-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  td { padding: 14px 12px; }
  .lesson-actions .primary-button, .lesson-actions .secondary-button { padding: 0 14px; }
  .profile-heading h1 { font-size: 60px; }
}
/* Адаптив новых блоков */
@media (max-width: 1180px) {
  .profile-heading { grid-template-columns: auto minmax(0, 1fr); }
  .profile-kpis { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-kpis div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .learning-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-path::before { display: none; }
  .about-top { grid-template-columns: 1fr; }
  .lesson-panel { grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; }
}
@media (max-width: 1000px) {
  .about-details-grid { grid-template-columns: 1fr; }
  .bot-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .free-banner { grid-template-columns: auto minmax(0, 1fr); }
  .free-banner .primary-button { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .hero-glow { inset: -100px -40px -40px -60px; }
  .hero-glow i:first-child { width: 320px; height: 260px; }
  .hero-glow i:last-child { left: 160px; width: 220px; height: 200px; }
  .profile-heading { grid-template-columns: 1fr; gap: 20px; }
  .portrait.xl { width: 120px; height: 120px; border-radius: 28px; }
  .portrait.xl .portrait-initials { font-size: 44px; }
  .profile-kpis { padding: 16px; gap: 10px; }
  .profile-kpis div:first-child dd { font-size: 28px; }
  .profile-kpis dd { font-size: 19px; }
  .story-grid { grid-template-columns: 1fr; gap: 16px; }
  .story-card { padding: 24px 20px; }
  .learning-path, .lesson-slots, .about-cards { grid-template-columns: 1fr; }
  .free-banner { grid-template-columns: 1fr; padding: 26px 22px; gap: 16px; }
  .free-mark { font-size: 52px; }
  .bot-features { grid-template-columns: 1fr; }
  .lesson-panel { grid-template-columns: 1fr; }
  .phone-frame { max-width: 230px; justify-self: center; }
  .founder-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .social-list { grid-template-columns: 1fr; }
  .approach-head { align-items: flex-start; }
  .trader-card-head { gap: 12px; }
}
@media (max-width: 520px) {
  .trader-card-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .portrait { width: 48px; height: 48px; border-radius: 14px; }
  .portrait-initials { font-size: 18px; }
  .trader-card-head .card-title { font-size: 26px; }
  .portrait.md { width: 60px; height: 60px; }
  .profile-kpis { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal-ready [data-reveal]:not(.in) { opacity: 1; transform: none; }
}

/* ===== v10: видео на главной, фон по бокам, база из VIP, Академия ===== */
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("./assets/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("./assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* Фон по бокам */
.ambient-bg { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Калькулятор: результат спокойнее */
.calculator[data-tone="positive"] .calc-results { border-color: rgba(63, 227, 155, .26); background: linear-gradient(135deg, rgba(63, 227, 155, .07), rgba(0, 0, 0, .22) 70%); box-shadow: none; }
.calculator[data-tone="negative"] .calc-results { border-color: rgba(255, 125, 125, .26); background: linear-gradient(135deg, rgba(255, 125, 125, .07), rgba(0, 0, 0, .22) 70%); box-shadow: none; }
.calculator[data-tone="positive"] .calc-results strong.positive, .calculator[data-tone="negative"] .calc-results strong.negative { text-shadow: none; }
.calc-results strong.positive, .calc-results .calc-return.positive { color: #5ccf9c; }
.calc-results strong.negative, .calc-results .calc-return.negative { color: #f08585; }

/* Главный экран: видео справа от заголовка */
.hero { align-items: center; }
.hero-copy .quiet-link { margin-top: 26px; }
/* v18.7: блок видео виден сразу с обложкой (раньше выпрыгивал после загрузки начала файла); файла нет: блок убирается */
.hero-video { position: relative; flex: 0 1 520px; min-width: 0; margin: 0; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); border-radius: 22px; overflow: hidden; background: radial-gradient(70% 90% at 30% 20%, rgba(76, 125, 255, .2), transparent 70%), #050507; box-shadow: 0 30px 80px -40px rgba(76, 125, 255, .55); }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video figcaption { position: absolute; left: 16px; bottom: 14px; padding: 6px 10px; border-radius: 9px; background: rgba(0, 0, 0, .55); color: var(--ink-2); font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); }
.hv-controls { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); }
.hv-sound { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--ink); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.hv-sound:hover { border-color: var(--accent-line); }
.hero-video.has-sound .hv-sound span { display: none; }
.hv-volume { display: none; width: 92px; accent-color: var(--accent); }
.hero-video.has-sound .hv-volume { display: block; }
.hv-play { position: absolute; inset: 0; margin: auto; display: none; place-items: center; width: 68px; height: 68px; border: 0; border-radius: 50%; background: rgba(76, 125, 255, .92); color: #fff; box-shadow: 0 0 0 8px rgba(76, 125, 255, .18); cursor: pointer; }
.hero-video.needs-tap .hv-play { display: grid; }
.hv-play svg { margin-left: 4px; }

/* База знаний: пошаговая база и видео */
.vip-path { margin: 8px 0 72px; }
.vip-path .section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.vip-path .section-heading h2 { font-size: clamp(26px, 2.6vw, 34px); }
.vip-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.vip-step { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--raise); }
.vip-step::after { content: ""; position: absolute; top: 38px; right: -13px; width: 14px; height: 1px; background: var(--accent-line); }
.vip-step:last-child::after { display: none; }
.vip-step-num { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); color: var(--accent-hi); font-weight: 800; }
.vip-step h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.vip-step p { margin-top: 6px; color: var(--ink-3); font-size: 14px; line-height: 1.5; }
.vip-step-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; }
.vip-step-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-hi); font-size: 14px; font-weight: 800; }
.vip-step-links .icon { width: 14px; height: 14px; }
.kb-videos { margin-bottom: 72px; }
.kb-videos .section-heading, .lessons .section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.kb-videos .lesson-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
.kb-videos .lesson-card { flex-direction: column; }
.kb-videos .lesson-card .lesson-video { flex: none; width: 100%; }
.lesson-video.is-file video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.lesson-soon { position: absolute; inset: 0; display: none; place-items: center; background: radial-gradient(60% 80% at 30% 20%, rgba(76, 125, 255, .22), transparent 70%), radial-gradient(50% 70% at 80% 90%, rgba(255, 51, 68, .14), transparent 70%), #07070a; }
.lesson-soon small { position: absolute; left: 14px; bottom: 12px; color: var(--ink-3); font-size: 13px; font-weight: 700; }
.lesson-video.is-missing video { display: none; }
.lesson-video.is-missing .lesson-soon { display: grid; }
.lesson-card-text p { margin-top: 8px; color: var(--ink-3); font-size: 15px; }
.lesson-card-text .article-link { display: inline-flex; margin-top: 14px; }
.guide-code-block { margin: 6px 0 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--field); overflow: hidden; }
.guide-pre { max-height: 420px; margin: 0; padding: 18px 20px; overflow: auto; color: var(--ink-2); font: 500 14px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.guide-code-block .secondary-button { margin: 0 0 14px 20px; min-height: 40px; }
.guide-body .signal-steps { margin: 10px 0 24px; }

/* FX BOT: скриншот в шапке */
.bot-banner.has-shot { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 34px; padding: 28px 40px 28px 28px; }
.bot-banner-shot { position: relative; align-self: stretch; height: 230px; margin: 0; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 16px; background: #0b0f17; box-shadow: 0 20px 50px -24px rgba(76, 125, 255, .8); }
.bot-banner-shot img { display: block; width: 100%; height: auto; }
.bot-banner-shot::after { content: ""; position: absolute; inset: auto 0 0; height: 60px; background: linear-gradient(transparent, #0b0f17); }

/* Иконка Instagram как у Telegram и YouTube: сплошная */
.brand-icon .ig-glyph { fill: none; stroke: #fff; stroke-width: 1.9; }

/* ===== Академия ===== */
.academy { --ac-bg: #060b1f; --ac-panel: rgba(14, 24, 58, .55); --ac-line: rgba(92, 132, 255, .22); --ac-blue: #4c7dff; display: grid; gap: 22px; }
.ac-slide { position: relative; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--ac-line); border-radius: 26px; overflow: hidden; background: radial-gradient(70% 90% at 0% 0%, rgba(47, 93, 255, .18), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(47, 93, 255, .12), transparent 60%), var(--ac-bg); }
.ac-slide::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(120, 150, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 80%); }
.ac-slide > * { position: relative; }
.ac-display, .ac-title { font-family: "Unbounded", var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .98; }
.ac-display { font-size: clamp(40px, 6.4vw, 88px); }
.ac-title { font-size: clamp(26px, 3.4vw, 46px); }
.ac-display span, .ac-title span { color: var(--ac-blue); text-shadow: 0 0 40px rgba(76, 125, 255, .35); }
.ac-head { margin-bottom: 30px; }
.ac-kicker { display: block; margin-bottom: 14px; color: #8fa6e8; font: 600 12px/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .28em; text-transform: uppercase; }
.ac-badge { display: inline-block; margin-bottom: 22px; padding: 7px 12px; border: 1px solid var(--ac-line); border-radius: 9px; background: rgba(76, 125, 255, .08); color: #c6d3ff; font-size: 13px; font-weight: 700; }
.ac-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 560px; }
.ac-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 22px; }
.ac-chip { padding: 7px 12px; border: 1px solid var(--ac-line); border-radius: 9px; background: rgba(255, 255, 255, .03); color: #dbe3ff; font-size: 13px; font-weight: 800; }
.ac-chip.is-on, .ac-tags .is-on { border-color: var(--ac-blue); background: var(--ac-blue); color: #fff; box-shadow: 0 0 24px -6px rgba(76, 125, 255, .9); }
.ac-arrow { color: #6f86c9; font-style: normal; }
.ac-lead { max-width: 60ch; color: #c3cbe4; font-size: 17px; line-height: 1.6; }
.ac-lead b { color: #fff; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ac-cta .icon { width: 18px; height: 18px; }
.ac-sum { display: inline-block; margin-top: 24px; padding: 10px 14px; border: 1px solid var(--ac-line); border-radius: 10px; background: rgba(76, 125, 255, .08); color: #c6d3ff; font-size: 14px; }
.ac-sum b { color: #fff; }
.ac-hero-visual { position: relative; height: 420px; }
.ac-screen { position: absolute; top: 10px; left: 0; width: 82%; padding: 18px; border: 1px solid var(--ac-line); border-radius: 18px; background: linear-gradient(160deg, #f4f6fb, #dfe5f2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); transform: rotate(-3deg); }
.ac-screen .ac-candles { display: block; width: 100%; height: auto; }
.ac-screen .grid { stroke: rgba(10, 20, 60, .08); }
.ac-screen-row { display: flex; justify-content: space-between; margin-top: 10px; color: #1b2340; font-size: 13px; font-weight: 800; }
.ac-video { position: absolute; right: 0; bottom: 0; width: 62%; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--ac-line); border-radius: 18px; background: #0a1640; box-shadow: 0 40px 80px -30px rgba(47, 93, 255, .6); transform: rotate(2deg); }
.ac-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: saturate(.9) brightness(.8); }
.ac-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 10, 30, .85)); }
.ac-video .play-mark { z-index: 1; }
.ac-video small { position: absolute; z-index: 1; left: 14px; bottom: 12px; color: #fff; font-size: 13px; font-weight: 800; }
.ac-candles .c-up { fill: #2fdc8f; } .ac-candles .c-dn { fill: #ff6b6b; }
.ac-candles .w-up { stroke: #2fdc8f; } .ac-candles .w-dn { stroke: #ff6b6b; }
.ac-candles .grid { stroke: rgba(140, 170, 255, .1); fill: none; }
.ac-candles .trend { fill: none; stroke: #4c7dff; stroke-width: 1.6; stroke-dasharray: 4 4; }
.ac-progress { position: absolute; left: clamp(28px, 4vw, 56px); right: clamp(28px, 4vw, 56px); bottom: 20px; display: flex; gap: 8px; }
.ac-progress i { flex: 1; height: 2px; border-radius: 2px; background: rgba(120, 150, 255, .16); }
.ac-progress i:first-child { background: var(--ac-blue); box-shadow: 0 0 10px var(--ac-blue); }
.ac-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--ac-line); border-radius: 18px; background: var(--ac-panel); }
.ac-card h3, .ac-module h3 { margin-top: 16px; font-family: "Unbounded", var(--font-display); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.2; }
.ac-card p { margin-top: 8px; color: #aab4d4; font-size: 14px; line-height: 1.55; }
.ac-mock { position: relative; height: 170px; overflow: hidden; border: 1px solid var(--ac-line); border-radius: 12px; background: #081131; }
.ac-mock-chart { display: grid; place-items: center; padding: 12px; }
.ac-mock-chart .ac-candles { width: 100%; height: auto; }
.ac-mock-tag { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(76, 125, 255, .2); color: #c6d3ff; font-size: 11px; font-weight: 800; }
.ac-mock-team { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; }
.ac-mock-team > div { display: flex; }
.ac-mock-team .ac-avatar { width: 54px; height: 54px; margin-left: -10px; border: 2px solid #081131; }
.ac-mock-team > span { color: #aab4d4; font-size: 12px; font-weight: 700; }
.ac-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: #13204d; color: #fff; font-weight: 800; }
.ac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ac-mock-signal { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 18px; background: linear-gradient(160deg, #e7f0dc, #d3e2c0); color: #1d2a12; font-size: 13px; font-weight: 700; }
.ac-mock-signal b { font-size: 15px; }
.ac-mock-signal .ok { margin-top: 6px; align-self: flex-start; padding: 4px 8px; border: 2px solid #c9a227; border-radius: 6px; }
.ac-mock-bot img { width: 100%; height: auto; display: block; }
.ac-mock-bot::after { content: ""; position: absolute; inset: auto 0 0; height: 50px; background: linear-gradient(transparent, #081131); }
.ac-strat { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
.ac-four { padding: 22px; border: 1px solid var(--ac-line); border-radius: 18px; background: var(--ac-panel); }
.ac-four span { display: block; font-family: "Unbounded", var(--font-display); font-size: 150px; font-weight: 800; line-height: 1; color: var(--ac-blue); text-shadow: 0 0 60px rgba(76, 125, 255, .5); }
.ac-four p { margin-top: 10px; color: #aab4d4; font-size: 15px; }
.ac-line { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 26px 22px; border: 1px solid var(--ac-line); border-radius: 18px; background: var(--ac-panel); }
.ac-line-track { position: absolute; left: 12%; right: 12%; top: 60px; height: 2px; background: linear-gradient(90deg, rgba(120, 150, 255, .3), #2fdc8f); }
.ac-line ol { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ac-line li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.ac-line li .ac-avatar { width: 68px; height: 68px; margin-bottom: 8px; border: 2px solid var(--ac-blue); box-shadow: 0 0 0 6px var(--ac-bg), 0 0 24px rgba(76, 125, 255, .6); }
.ac-line li b { font-size: 17px; font-weight: 800; }
.ac-line li span { color: var(--ac-blue); font-size: 13px; font-weight: 800; }
.ac-line li small { color: #8f9ac0; font-size: 13px; }
.ac-line-ends { display: flex; justify-content: space-between; margin-top: 22px; color: #8f9ac0; font-size: 13px; font-weight: 700; }
.ac-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-module { padding: 22px; border: 1px solid var(--ac-line); border-radius: 18px; background: var(--ac-panel); }
.ac-num { color: #6f86c9; font: 700 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .2em; }
.ac-module h3 { margin-top: 10px; }
.ac-module ul { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ac-module li { position: relative; padding-left: 18px; color: #c3cbe4; font-size: 14px; }
.ac-module li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ac-blue); box-shadow: 0 0 8px var(--ac-blue); }
.ac-steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 30px 0 0; list-style: none; }
.ac-steps::before { content: ""; position: absolute; left: 8px; right: 8px; top: 38px; height: 2px; background: linear-gradient(90deg, rgba(120, 150, 255, .35), #2fdc8f); }
.ac-steps li { position: relative; display: flex; flex-direction: column; gap: 4px; }
.ac-steps li i { width: 18px; height: 18px; margin-bottom: 14px; border: 2px solid var(--ac-blue); border-radius: 50%; background: var(--ac-bg); box-shadow: 0 0 12px rgba(76, 125, 255, .7); }
.ac-steps li:last-child i { border-color: #2fdc8f; box-shadow: 0 0 12px rgba(47, 220, 143, .7); }
.ac-step-day { color: #6f86c9; font: 600 11px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .2em; text-transform: uppercase; }
.ac-steps b { font-family: "Unbounded", var(--font-display); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.ac-steps small { color: #8f9ac0; font-size: 13px; line-height: 1.45; }
.ac-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ac-tags span, .ac-tags a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--ac-line); border-radius: 10px; background: rgba(255, 255, 255, .03); color: #dbe3ff; font-size: 14px; font-weight: 700; }
.ac-tags .icon { width: 15px; height: 15px; color: #2fdc8f; }
.ac-tags a:hover { border-color: var(--ac-blue); }
.ac-final { text-align: left; padding-bottom: clamp(36px, 5vw, 64px); }
.ac-final .ac-tags { margin: 0 0 26px; }
.ac-final .ac-lead { margin-top: 22px; }

@media (max-width: 1180px) {
  .vip-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vip-step::after { display: none; }
  .ac-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 60px; }
  .ac-hero-visual { height: 360px; max-width: 620px; }
  .ac-strat { grid-template-columns: 1fr; }
  .ac-four { display: flex; align-items: center; gap: 20px; }
  .ac-four span { font-size: 96px; }
  .ac-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .ac-steps::before { display: none; }
}
@media (max-width: 960px) {
  .hero { flex-direction: column; align-items: stretch; }
  .hero-video { flex: none; width: 100%; }
  .bot-banner.has-shot { grid-template-columns: 150px minmax(0, 1fr); padding: 24px; }
  .bot-banner.has-shot .primary-button { grid-column: 1 / -1; justify-self: start; }
  .bot-banner-shot { height: 190px; }
  .kb-videos .lesson-grid { grid-template-columns: 1fr; }
  .ac-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vip-steps, .ac-grid4, .ac-modules, .ac-steps { grid-template-columns: 1fr; }
  .bot-banner.has-shot { grid-template-columns: 1fr; }
  .bot-banner-shot { height: 220px; max-width: 280px; }
  .ac-slide { border-radius: 20px; }
  .ac-hero-visual { height: 280px; }
  .ac-line ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .ac-line-track { display: none; }
  .hv-sound span { display: none; }
}
.ac-kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: currentColor; opacity: .7; }
/* Фон страницы задаёт html, у body прозрачный: иначе он перекрывает боковую анимацию */
html { background: var(--bg); }
body { background: transparent; }
.ac-display { font-size: clamp(34px, 4.6vw, 62px); }
.ac-hero-copy { position: relative; z-index: 2; }
@media (min-width: 1181px) { .ac-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); } }
.ac-final .ac-display { font-size: clamp(34px, 5.4vw, 76px); }
.bot-banner.has-shot { grid-template-columns: 290px minmax(0, 1fr) auto; }
.bot-banner-shot { height: 270px; }
@media (max-width: 960px) { .bot-banner.has-shot { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 640px) { .bot-banner.has-shot { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ac-hero-visual { height: 260px; } .ac-screen { width: 92%; } .ac-video { width: 70%; } .ac-flow { gap: 6px; } .ac-arrow { display: none; } }

/* v10.1: иконки соцсетей без свечения, логотип Telegram как в приложении */
.social-icon.brand-youtube, .social-icon.brand-telegram, .social-icon.brand-instagram { box-shadow: none; }
.brand-youtube .brand-icon, .brand-telegram .brand-icon, .brand-instagram .brand-icon { filter: none; }
.social-icon.brand-youtube { background: rgba(255, 0, 51, .08); border-color: rgba(255, 0, 51, .22); }
.social-icon.brand-telegram { background: rgba(38, 165, 228, .08); border-color: rgba(38, 165, 228, .22); }
.social-icon.brand-instagram { background: rgba(225, 48, 108, .08); border-color: rgba(225, 48, 108, .22); }
.brand-icon .ig-glyph { stroke-width: 1.7; }
.tg-logo { flex: 0 0 20px; width: 20px !important; height: 20px !important; filter: none !important; color: inherit !important; }
.ac-hero .ac-lead { margin-top: 26px; }
.ac-hero { padding-bottom: clamp(28px, 4vw, 56px); }
.primary-button .tg-logo { border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
/* v10.2: видео базы знаний грузятся только по нажатию */
.lesson-video.is-file { cursor: pointer; background: radial-gradient(60% 80% at 30% 20%, rgba(76, 125, 255, .18), transparent 70%), #07070a; }
.lesson-video.is-file > .play-mark { z-index: 1; }
.lesson-video.is-file .lesson-soon { z-index: 2; }
.lesson-video.is-missing { cursor: default; }
.lesson-video.is-missing > .play-mark { visibility: hidden; }
button.lesson-video.is-file:hover .play-mark { transform: scale(1.06); }
video.lesson-video.is-playing { display: block; background: #000; object-fit: contain; }
.lesson-card.needs-file:not(.has-file) { display: none; }
.lesson-card.needs-file.no-file { display: none; }

/* v11: калькулятор не меняет высоту при выборе трейдеров и вводе суммы, страница не прыгает */
.calc-picker summary { height: 52px; min-height: 52px; }
#calc-selected-label { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, #000 85%, transparent); }
#calc-selected-label .picked { flex: 0 0 auto; }
.calc-results > div { min-height: 104px; }
.calc-return { min-height: 21px; }
.calculator #deposit-error { position: absolute; z-index: 2; margin-top: 4px; padding: 4px 8px; border-radius: 8px; background: #1b1310; font-size: 13px; line-height: 1.3; }
.calculator { position: relative; }
.calc-results strong, .calc-results h3 { white-space: nowrap; }
.calc-results > div { min-width: 0; overflow: hidden; }
.about-lead-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.about-lead-actions .support-button { margin: 0; }
/* соцсети: все карточки одной высоты, независимо от длины описания */
.social-card { min-height: 100px; }
/* словарь: картинка, почему так происходит, ссылка на гайд */
.term-card { display: flex; flex-direction: column; }
.term-img { margin: -6px -6px 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #131722; }
.term-img img { display: block; width: 100%; height: auto; }
.term-why { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.term-why summary { cursor: pointer; color: var(--accent-hi); font-size: 14px; font-weight: 800; list-style: none; }
.term-why summary::-webkit-details-marker { display: none; }
.term-why summary::after { content: " +"; }
.term-why[open] summary::after { content: " −"; }
.term-why p { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.term-link { margin-top: auto; padding-top: 12px; font-size: 14px; }

/* v11: база знаний: описание базы, 5 шагов с картинками, видео, гайды, словарь */
.kb-base { margin: 8px 0 80px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--accent-line); border-radius: 24px; background: var(--spot), var(--raise); }
.kb-base-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 32px; align-items: end; margin-bottom: 28px; }
.kb-base-head h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
.kb-base-head p { margin-top: 14px; max-width: 70ch; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.kb-base-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kb-base-meta span { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink-3); font-size: 14px; font-weight: 700; }
.kb-base-meta b { display: block; color: var(--ink); font-size: 22px; font-weight: 800; }
.kb-base-meta .is-free b { color: var(--gain); }
.kb-base-meta .primary-button { grid-column: 1 / -1; }
.vip-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.vip-step { padding: 0; overflow: hidden; gap: 0; }
.vip-step::after { top: 66px; }
.vip-step-img { position: relative; display: block; aspect-ratio: 2 / 1; overflow: hidden; border-bottom: 1px solid var(--line); background: #131722; }
.vip-step-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .4s; }
.vip-step:hover .vip-step-img img { transform: scale(1.05); }
.vip-step-img .vip-step-num { position: absolute; left: 10px; top: 10px; background: rgba(10, 14, 30, .9); }
.vip-step-body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.vip-step-links { margin-top: auto; padding-top: 12px; }
.broker-note { display: flex; gap: 14px; margin-top: 18px; padding: 18px 22px; border: 1px solid rgba(47, 220, 143, .3); border-radius: 16px; background: linear-gradient(135deg, rgba(47, 220, 143, .07), transparent 60%), var(--raise); }
.broker-note .icon { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; color: var(--gain); }
.broker-note b { font-size: 16px; font-weight: 800; }
.broker-note p { margin-top: 6px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.kb-videos .lesson-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.library-list { margin-top: 80px; }
.library-list > .section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.glossary { margin-top: 80px; }
@media (max-width: 1180px) { .vip-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kb-base-head { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .kb-videos .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vip-steps, .kb-videos .lesson-grid { grid-template-columns: 1fr; } }

/* v11: Академия в тех же тонах, что карточки базы знаний: почти чёрный фон, лёгкий синий отсвет, синяя рамка */
.academy { --ac-bg: #0b0b0e; --ac-panel: #0f1014; --ac-line: rgba(76, 125, 255, .3); }
.ac-slide { background: var(--spot), var(--raise); border-color: var(--accent-line); }
.ac-slide::before { background-image: linear-gradient(rgba(120, 150, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 255, .035) 1px, transparent 1px); }
.ac-card, .ac-module, .ac-four, .ac-line { background: #0f1014; border-color: var(--line); }
.ac-card:hover, .ac-module:hover { border-color: var(--accent-line); }
.ac-mock { background: #131722; border-color: var(--line); }
.ac-mock-bot::after { background: linear-gradient(transparent, #131722); }
.ac-lead, .ac-module li { color: var(--ink-2); }
.ac-card p, .ac-four p { color: var(--ink-3); }
.ac-kicker { color: #8fa6e8; }
.ac-badge, .ac-sum, .ac-chip, .ac-tags span, .ac-tags a { background: rgba(255, 255, 255, .03); }
.ac-display span, .ac-title span { text-shadow: 0 0 30px rgba(76, 125, 255, .25); }
.ac-video { background: #131722; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.ac-line li .ac-avatar { box-shadow: 0 0 0 6px #0f1014, 0 0 18px rgba(76, 125, 255, .4); }
/* Академия: результаты, для кого, отзывы, вопросы */
.ac-res-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac-res { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; gap: 4px 12px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #0f1014; transition: border-color .2s; }
.ac-res:hover { border-color: var(--accent-line); }
.ac-res b { display: block; font-size: 17px; font-weight: 800; }
.ac-res small { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.ac-res strong { grid-column: 1 / -1; margin-top: 10px; font-family: "Unbounded", var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.ac-res strong.positive { color: #5ccf9c; } .ac-res strong.negative { color: #f08585; }
.ac-res > span { grid-column: 1 / -1; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.ac-res-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.ac-res-foot b { color: var(--ink); font-weight: 800; }
.ac-res-foot .secondary-button { margin-left: auto; }
.ac-note { margin-top: 14px; color: var(--ink-3); font-size: 13px; }
.ac-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-who-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #0f1014; }
.ac-who-card h3 { margin-top: 10px; font-family: "Unbounded", var(--font-display); font-size: 17px; font-weight: 700; text-transform: uppercase; line-height: 1.25; }
.ac-who-card p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.ac-reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ac-rev { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #0f1014; }
.ac-rev img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: top; }
.ac-rev figcaption { padding: 14px 16px; }
.ac-rev figcaption b { display: block; font-size: 15px; }
.ac-rev figcaption span { color: var(--ink-3); font-size: 14px; }
.ac-rev-more { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 200px; padding: 24px; border: 1px dashed var(--accent-line); border-radius: 18px; color: var(--ink); }
.ac-rev-more b { font-size: 20px; } .ac-rev-more span { color: var(--ink-3); font-size: 14px; }
.ac-rev-more .icon { color: var(--accent-hi); }
.ac-faq { display: grid; gap: 10px; max-width: 900px; }
.ac-faq-item { border: 1px solid var(--line); border-radius: 14px; background: #0f1014; }
.ac-faq-item summary { padding: 18px 22px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 800; }
.ac-faq-item summary::-webkit-details-marker { display: none; }
.ac-faq-item summary::after { content: "+"; float: right; color: var(--accent-hi); }
.ac-faq-item[open] summary::after { content: "−"; }
.ac-faq-item p { padding: 0 22px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 1180px) { .ac-res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ac-res-grid, .ac-who, .ac-reviews { grid-template-columns: 1fr; } .ac-res-foot .secondary-button { margin-left: 0; } }

/* v12 ------------------------------------------------------------------ */
/* точки-маркеры перед подписями и пунктами убраны */
.calc-kicker::before { display: none; }
.ac-module li { padding-left: 0; }
.ac-module li::before { display: none; }

/* калькулятор: риск на сделку */
.risk-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--smoke-line); }
.risk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.risk-head label { color: var(--smoke-ink); font-size: 15px; font-weight: 700; }
.risk-input { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 1px solid var(--smoke-line); border-radius: 10px; background: rgba(0, 0, 0, .25); }
.risk-input:focus-within { border-color: var(--accent); }
.risk-input input { width: 54px; border: 0; background: transparent; color: var(--ink); font-size: 20px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; outline: none; }
.risk-input b { color: var(--smoke-ink-3); font-size: 16px; }
.risk-slider { margin-top: 12px; }
.risk-presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.risk-presets button { height: 36px; padding: 0; border: 1px solid var(--smoke-line); border-radius: 9px; color: var(--smoke-ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.risk-presets button:hover { border-color: var(--accent-line); color: var(--ink); }
.risk-presets button.active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.calculator #risk-error { margin-top: 6px; font-size: 13px; }
@media (max-width: 420px) { .risk-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* главная: блок про бесплатность под заголовком */
.hero-copy .hero-free { max-width: 560px; margin-top: 26px; }
.hero-free b { font-size: 16px; }
.hero-free p { font-size: 14px; line-height: 1.55; }

/* кнопки iPhone и Android с логотипами */
.os-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 800; transition: transform .18s, box-shadow .18s, filter .18s; }
.os-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.os-logo { width: 20px; height: 20px; flex: 0 0 auto; }
.os-apple { color: #1d1d1f; background: #f5f5f7; box-shadow: 0 10px 30px -14px rgba(255, 255, 255, .45); }
.os-android { color: #062b17; background: #3ddc84; box-shadow: 0 10px 30px -12px rgba(61, 220, 132, .6); }
.os-button.is-small { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.os-button.is-small .os-logo { width: 17px; height: 17px; }
.vip-step-links .os-apple { color: #1d1d1f; }
.vip-step-links .os-android { color: #062b17; }

/* академия: «Бесплатная база знаний» зелёная, как блок про бесплатность */
.free-button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid rgba(47, 220, 143, .5); border-radius: 14px; color: #eafff4; font-size: 16px; font-weight: 800;
  background: linear-gradient(135deg, rgba(47, 220, 143, .22), rgba(47, 220, 143, .06)), var(--raise); box-shadow: 0 0 0 1px rgba(47, 220, 143, .08), 0 18px 50px -18px rgba(47, 220, 143, .7); transition: box-shadow .2s, transform .2s; }
.free-button:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(47, 220, 143, .2), 0 22px 60px -16px rgba(47, 220, 143, .9); }
.free-button .icon, .free-button svg { width: 16px; height: 16px; color: #2fdc8f; }

/* сделки: шапка в стиле базы знаний */
.trades-hero { margin-bottom: 28px; }
.trades-hero .trades-title { font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
.trades-hero .kb-base-head { margin-bottom: 0; }

/* словарь: карточки одной высоты, ссылки по низу */
.glossary-grid { align-items: stretch; }
.term-card { height: 100%; }
.term-card > p { flex: 1 0 auto; }
.term-why.is-empty { border-top: 1px solid var(--line); margin-top: 12px; min-height: 31px; }
.term-why summary { display: flex; align-items: center; gap: 8px; }
.term-why summary::after { content: none; }
.term-why summary svg { width: 18px; height: 18px; margin-left: auto; transition: transform .25s; }
.term-why[open] summary svg { transform: rotate(180deg); }
.why-read { display: none; padding: 2px 8px; border-radius: 99px; background: rgba(47, 220, 143, .12); color: #2fdc8f; font-size: 11px; font-style: normal; font-weight: 800; letter-spacing: .02em; }
.term-why.is-read .why-read { display: inline-block; }
.term-why.is-read summary span { color: var(--ink-3); }
.term-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }

/* гайд: содержание крупнее */
.guide-toc .eyebrow { font-size: 14px; }
.guide-toc button { min-height: 46px; font-size: 17px; }
.guide-toc button span { flex-basis: 28px; height: 28px; font-size: 13px; }
.vip-step-links .os-button { width: 100%; }
.term-why[open] summary::after { content: none; }
a.term-img { display: block; cursor: zoom-in; }
/* академия: три лучших отзыва в ряд, видно сам результат */
.ac-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(180px, .6fr); align-items: stretch; }
.ac-rev img { height: 420px; object-position: center 64%; }
.ac-rev-more { height: 100%; }
@media (max-width: 1100px) { .ac-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* отзывы: сетка по рядам, сверху самые крупные результаты; полный скриншот открывается по клику */
.photo-grid { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.photo-review { margin: 0; display: flex; flex-direction: column; }
.photo-review img { height: 460px; object-fit: cover; object-position: center 40%; }
.photo-review .photo-caption { flex: 1 0 auto; }
@media (max-width: 960px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .photo-grid { gap: 10px; } .photo-review { margin: 0; } .photo-review img { height: 300px; } }

/* v12.1: строки сверки с постами ИТОГИ */
.adjust-row td { background: rgba(76, 125, 255, .06); }
.adjust-row .table-instrument { color: var(--muted, #9aa3b5); font-style: normal; }
.status-tag.adjust-tag { color: #8fb0ff; background: rgba(76, 125, 255, .14); border-color: rgba(76, 125, 255, .35); }

/* ===== v13: фон «Золотое сечение», калькулятор «Градиент-меш», правки 30.10 ===== */
:root { --bg: #050506; --raise: #0c0c0f; --raise-2: #121216; --field: #08080a; --line: #1e1e24; --line-strong: #2c2c35; --gold: #e2c08a; }
html { background: radial-gradient(60% 60% at 75% 25%, rgba(226, 192, 138, .08), transparent 70%) fixed, #050506; }
.ambient-bg { display: none; }
.fx-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx-backdrop svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fib-rects { fill: none; stroke: var(--gold); stroke-opacity: .13; stroke-width: 1; }
.fib-arcs { fill: none; stroke: #f0d3a0; stroke-opacity: .38; stroke-width: 1.6; stroke-linecap: round; }
.fib-levels { stroke: var(--gold); stroke-opacity: .28; stroke-dasharray: 6 8; fill: var(--gold); fill-opacity: .45; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 15px; }
.fib-levels text { stroke: none; }
@media (max-width: 1500px) { .fib-levels { display: none; } }
@media (max-width: 760px) { .fx-backdrop { opacity: .55; } }
.hero-glow i:last-child { background: var(--gold); opacity: .12; }

/* калькулятор: сине-фиолетовый градиент, как карточки банковских приложений */
.calculator, .calculator[data-tone] {
  background: radial-gradient(90% 80% at 0% 0%, rgba(124, 77, 255, .55), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(47, 140, 255, .5), transparent 60%), #0b0b1e;
  border: 1px solid rgba(160, 140, 255, .35); box-shadow: 0 30px 90px -40px rgba(124, 77, 255, .7);
  --smoke-field: rgba(0, 0, 0, .28); --smoke-line: rgba(255, 255, 255, .14); --smoke-ink: #cfc9f2; --smoke-ink-3: #aaa3d6; }
.chart-line { stroke-width: 2.6; }
.compact-chart .chart-line { stroke-width: 2; }

/* главная: видео крупнее, блок «Мы не берём денег» компактнее */
@media (min-width: 1001px) {
  .hero { align-items: center; }
  .hero-video { flex: 0 1 600px; }
  .hero-copy { flex: 1 1 0; min-width: 0; }
  .hero-copy .hero-free { max-width: 470px; margin-top: 22px; padding: 14px 16px; gap: 12px; }
  .hero-free b { font-size: 14px; }
  .hero-free p { font-size: 13px; line-height: 1.5; }
}

/* трейдеры в один ряд */
@media (min-width: 1181px) {
  .trader-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .trader-grid[style*="--cols:5"] .trader-card { padding: 20px 16px 18px; }
  .trader-grid[style*="--cols:5"] .card-title { font-size: 26px; }
  .trader-grid[style*="--cols:5"] .trader-card-chart strong { font-size: 24px; }
}
@media (min-width: 1001px) and (max-width: 1180px) { .trader-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* под последним блоком страницы есть запас, панель задач и нижние панели браузера его не перекрывают */
main { padding-bottom: 120px; }

/* iPhone и Android: без заливки, в одну строку, разные цвета логотипов */
.os-button, .vip-step-links .os-button { background: transparent; box-shadow: none; border: 1px solid; }
.os-apple, .vip-step-links .os-apple { color: #f5f5f7; border-color: rgba(245, 245, 247, .42); }
.os-android, .vip-step-links .os-android { color: #3ddc84; border-color: rgba(61, 220, 132, .5); }
.os-apple:hover { background: rgba(245, 245, 247, .07); }
.os-android:hover { background: rgba(61, 220, 132, .08); }
.vip-step-links:has(.os-button) { flex-wrap: nowrap; gap: 8px; }
.vip-step-links .os-button.is-small { flex: 1 1 0; min-width: 0; padding: 0 8px; gap: 6px; font-size: 13px; }

/* академия: карточка сигнала была тёмным текстом на тёмном фоне */
.ac-mock-signal { background: linear-gradient(160deg, #161c2c, #0f1320); color: #e8ecf6; border-color: var(--line); }
.ac-mock-signal b { color: #3fe39b; }
.ac-mock-signal span { color: #c3cadb; }
.ac-mock-signal .ok { color: #3fe39b; border-color: rgba(63, 227, 155, .55); background: rgba(63, 227, 155, .08); }

/* гайды: отметка «прочитано» */
.read-mark { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid rgba(63, 227, 155, .45); border-radius: 99px; color: #3fe39b; background: rgba(63, 227, 155, .08); font-size: 12px; font-weight: 800; }
.read-mark svg { width: 13px; height: 13px; }
.knowledge-card.is-read { border-color: rgba(63, 227, 155, .3); }
@media (min-width: 1001px) { .hero h1 .line { display: block; white-space: nowrap; } .hero h1 { font-size: clamp(50px, 4.6vw, 80px); } }
.guide-body > .read-mark { margin: 0 0 14px; }
.vip-step.is-read .vip-step-num { background: #3fe39b; color: #04140c; border-color: #3fe39b; }

/* реферальная программа: «О проекте» и ссылка на главной */
.ref-teaser { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px 10px 10px; border: 1px solid rgba(226, 192, 138, .35); border-radius: 14px; background: linear-gradient(120deg, rgba(226, 192, 138, .12), rgba(226, 192, 138, .02)); color: var(--ink); transition: border-color .2s, transform .2s; }
.ref-teaser:hover { border-color: rgba(226, 192, 138, .7); transform: translateY(-1px); color: var(--ink); }
.ref-teaser-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(226, 192, 138, .16); color: var(--gold); }
.ref-teaser b { display: block; font-size: 14px; } .ref-teaser small { color: var(--ink-3); font-size: 12px; }
.ref-teaser > .icon:last-child { color: var(--gold); width: 16px; height: 16px; }
.referral { margin-top: 24px; padding: clamp(24px, 3vw, 40px); border-color: rgba(226, 192, 138, .3); background: radial-gradient(70% 90% at 100% 0%, rgba(226, 192, 138, .12), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(47, 220, 143, .07), transparent 60%), var(--raise); scroll-margin-top: calc(var(--header) + 20px); }
.referral-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.referral-head .about-card-icon { color: var(--gold); background: rgba(226, 192, 138, .12); border-color: rgba(226, 192, 138, .35); flex: 0 0 auto; }
.referral-head h2 { margin: 6px 0 10px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; text-wrap: balance; }
.referral-head p { max-width: 720px; color: var(--ink-2); }
.referral-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.referral-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.referral-tiers li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(0, 0, 0, .28); font-size: 15px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .02em; font-weight: 700; }
.referral-tiers li b { color: #3fe39b; font-weight: 800; }
.referral-tiers li i { flex: 1 1 auto; min-width: 20px; border-top: 2px dotted rgba(255, 255, 255, .16); }
.referral-tiers li strong { margin-left: 6px; color: #3fe39b; font-size: 26px; font-weight: 800; letter-spacing: -.01em; vertical-align: -3px; text-transform: none; }
.referral-tiers li strong.is-text { margin: 0 6px 0 0; font-size: 16px; text-transform: uppercase; vertical-align: 0; }
.referral-tiers li:last-child { border-color: rgba(226, 192, 138, .35); }
.referral-side { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, .25); }
.referral-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.referral-steps li { display: flex; gap: 12px; }
.referral-steps li > span { display: inline-grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-hi); font-weight: 800; }
.referral-steps b { display: block; } .referral-steps small { color: var(--ink-3); font-size: 13px; }
.referral-note { display: flex; gap: 10px; margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.referral-note .icon { flex: 0 0 auto; color: #3fe39b; }
@media (max-width: 900px) {
  .referral-body { grid-template-columns: 1fr; }
  .referral-tiers li { flex-wrap: wrap; font-size: 13px; padding: 14px 16px; }
  .referral-tiers li i { display: none; }
  .referral-tiers li > span:last-child { margin-left: auto; }
}

@media (min-width: 1181px) { .ac-res-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .referral-head { flex-direction: column; gap: 12px; } }

/* v13.1: мелкие правки после аудита */
@media (max-width: 520px) { .dialog-actions { flex-direction: column-reverse; } .dialog-actions > * { width: 100%; justify-content: center; } }

/* правовые страницы, нижняя полоса с рисками и окно про cookies */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 4px; }
.legal-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 700; }
.legal-nav a:hover { background: var(--raise); color: var(--ink); }
.legal-nav a.active { background: var(--accent-soft); color: var(--accent-hi); }
.legal-body { max-width: 860px; min-width: 0; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 22px; background: rgba(12, 12, 15, .92); }
.legal-body h1 { margin: 8px 0 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; }
.legal-lead { color: var(--ink-2); font-size: 18px; line-height: 1.6; margin-bottom: 28px; }
.legal-body section { padding: 22px 0; border-top: 1px solid var(--line); }
.legal-body h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 21px; }
.legal-body h2 span { display: inline-grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--raise-2); color: var(--ink-3); font-size: 13px; }
.legal-body p { color: var(--ink-2); line-height: 1.7; margin: 0 0 10px; }
.legal-body a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal-table { width: 100%; margin-bottom: 18px; }
.legal-table td { vertical-align: top; color: var(--ink-2); font-size: 14px; }
.legal-table code { color: var(--gold); font-size: 13px; }
.legal-body .secondary-button { margin-top: 16px; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 20px; } .legal-nav { position: static; display: flex; flex-wrap: wrap; } }

.legal-bar { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 11, 16, .92), rgba(5, 5, 6, .96)); }
.legal-bar-inner { max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) calc(26px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.foot-brand b { font-size: 18px; letter-spacing: .06em; }
.foot-brand b span { color: #ff3b3b; }
.foot-brand p { margin: 12px 0 18px; color: var(--ink-3); font-size: 14px; line-height: 1.6; max-width: 360px; }
.foot-brand .foot-lead { min-height: 44px; padding: 0 20px; font-size: 14px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.foot-col h3 { margin: 0 0 4px; color: var(--ink); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.foot-col a, .foot-col button { padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.foot-col a:hover, .foot-col button:hover { color: var(--ink); }
.foot-risk { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; line-height: 1.6; }
.legal-bar small { grid-column: 1 / -1; color: var(--ink-3); font-size: 12px; }
@media (max-width: 900px) { .legal-bar-inner { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .legal-bar-inner { grid-template-columns: 1fr; gap: 24px; } }
.legal-num { color: var(--ink); font-weight: 800; }
.legal-foot { margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-foot h2 { font-size: 18px; margin: 0 0 12px; }
.legal-req { display: grid; gap: 8px; margin: 0 0 18px; }
.legal-req div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; }
.legal-req dt { color: var(--ink-3); font-size: 14px; }
.legal-req dd { margin: 0; color: var(--ink-2); font-size: 14px; }
.legal-risk { font-size: 13px; color: var(--ink-3) !important; }
@media (max-width: 560px) { .legal-req div { grid-template-columns: 1fr; gap: 2px; } }

.consent { position: fixed; z-index: 90; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(880px, calc(100% - 24px)); display: flex; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(14, 14, 18, .96); backdrop-filter: blur(14px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); animation: fx-consent-in .4s ease both; }
@keyframes fx-consent-in { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.consent b { display: block; margin-bottom: 4px; }
.consent p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.55; }
.consent a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-actions button { min-height: 42px; padding: 0 16px; white-space: nowrap; }
@media (max-width: 720px) { .consent { flex-direction: column; align-items: stretch; } .consent-actions > * { flex: 1 1 0; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
@media (max-width: 640px) {
  .legal-body { padding: 18px 16px; border-radius: 16px; }
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal-table td { padding: 2px 0; border: 0; }
  .legal-table td:nth-child(2) { color: var(--ink-3); font-size: 13px; }
}
.legal-table { white-space: normal; }

/* v13.4: видео вровень с заголовком, короткие плашки, брокеры в «О проекте» */
@media (min-width: 1001px) {
  .hero { align-items: flex-start; gap: 40px; }
  .hero .hero-copy { flex: 0 0 auto; }
  .hero-video { flex: 1 1 0; max-width: 680px; margin-top: 14px; }
  .hero-copy .ref-teaser { display: flex; max-width: 470px; }
}
.hero-copy .ref-teaser.is-free { margin-top: 26px; border-color: rgba(63, 227, 155, .35); background: linear-gradient(120deg, rgba(63, 227, 155, .1), rgba(63, 227, 155, .02)); }
.ref-teaser.is-free:hover { border-color: rgba(63, 227, 155, .7); }
.ref-teaser.is-free .ref-teaser-icon { background: rgba(63, 227, 155, .14); color: #3fe39b; }
.ref-teaser.is-free > .icon:last-child { color: #3fe39b; }
.free-block { margin-top: 24px; padding: clamp(24px, 3vw, 40px); border-color: rgba(63, 227, 155, .28); background: radial-gradient(70% 90% at 100% 0%, rgba(63, 227, 155, .09), transparent 60%), var(--raise); scroll-margin-top: calc(var(--header) + 20px); }
.free-block .about-card-icon { color: #3fe39b; background: rgba(63, 227, 155, .1); border-color: rgba(63, 227, 155, .35); flex: 0 0 auto; }
.broker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.broker-card { display: grid; gap: 8px; padding: 20px 22px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(0, 0, 0, .28); color: var(--ink-2); transition: border-color .2s, transform .2s; }
.broker-card:hover { border-color: rgba(63, 227, 155, .6); transform: translateY(-1px); color: var(--ink-2); }
.broker-card b { color: var(--ink); font-size: 22px; }
.broker-card span { font-size: 14px; line-height: 1.55; }
.broker-card em { display: inline-flex; align-items: center; gap: 6px; color: #3fe39b; font-style: normal; font-weight: 800; font-size: 14px; }
.broker-card em .icon { width: 15px; height: 15px; }
.broker-risk { margin: 14px 0 0; color: var(--ink-3); font-size: 12px; }
@media (max-width: 900px) { .broker-grid { grid-template-columns: 1fr; } }

/* ===== v14 ===== */
/* главная: видео по высоте левой колонки (заголовок, плашки, кнопка), края вровень */
@media (min-width: 1001px) {
  .hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; gap: 40px; }
  .hero .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-video { max-width: none; width: 100%; height: 100%; min-height: 0; margin: 0; aspect-ratio: auto; align-self: stretch; }
  .hero-copy .ref-teaser { width: 100%; }
}
.lead-button { margin-top: 14px; min-height: 52px; padding: 0 26px; font-size: 16px; box-shadow: 0 16px 40px -14px rgba(76, 125, 255, .9); }
.hero-copy .lead-button { width: 100%; max-width: 470px; justify-content: center; }
/* плашки ярче */
.hero-copy .ref-teaser.is-free { border-color: rgba(63, 227, 155, .6); background: linear-gradient(120deg, rgba(63, 227, 155, .2), rgba(63, 227, 155, .05)); }
.hero-copy .ref-teaser:not(.is-free) { border-color: rgba(226, 192, 138, .6); background: linear-gradient(120deg, rgba(226, 192, 138, .2), rgba(226, 192, 138, .05)); }
.ref-teaser b { color: #fff; }
.ref-teaser small { color: var(--ink-2); }
.ref-teaser-icon { background: rgba(226, 192, 138, .26); }
.ref-teaser.is-free .ref-teaser-icon { background: rgba(63, 227, 155, .24); }
/* «О проекте»: блоки бесплатности и рефералки ярче */
.free-block { border-color: rgba(63, 227, 155, .5); background: radial-gradient(70% 90% at 100% 0%, rgba(63, 227, 155, .16), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(63, 227, 155, .07), transparent 60%), var(--raise-2); }
.referral { border-color: rgba(226, 192, 138, .5); background: radial-gradient(70% 90% at 100% 0%, rgba(226, 192, 138, .2), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(47, 220, 143, .1), transparent 60%), var(--raise-2); }
.broker-card, .referral-tiers li, .referral-side { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .14); }
.referral-head p, .free-block .referral-head p { color: #d9dce4; }
/* Академия: кнопка базы знаний ярче */
.free-button { background: linear-gradient(135deg, rgba(47, 220, 143, .32), rgba(47, 220, 143, .12)); border-color: rgba(47, 220, 143, .8); color: #fff; }
.free-button .tg-logo { width: 20px; height: 20px; }

/* меню на телефоне: кнопка и панель сбоку */
.nav-toggle { display: none; }
.nav-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex: 0 0 auto; width: 44px; height: 44px; margin-left: 8px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(255, 255, 255, .08); cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-inner { flex-wrap: nowrap; }
  .header-status { margin-left: auto; }
  .site-header nav, .site-header nav[id] { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; width: min(300px, 82vw); margin: 0; padding: calc(var(--header) + 14px + env(safe-area-inset-top, 0px)) 14px calc(24px + env(safe-area-inset-bottom, 0px)); border-left: 1px solid var(--line-strong); background: #0b0b0e; transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .7, .2, 1); overflow-y: auto; }
  body.nav-open .site-header nav { transform: none; box-shadow: -30px 0 80px rgba(0, 0, 0, .7); }
  .site-header nav a, .site-header nav a:nth-child(n) { grid-column: auto; flex-direction: row; justify-content: flex-start; gap: 14px; height: 54px; padding: 0 14px; border: 0; border-radius: 12px; font-size: 17px; }
  .site-header nav a .nav-icon { width: 22px; height: 22px; }
  .site-header nav a.active { background: var(--accent-soft); }
  .site-header nav a.active::after { display: none; }
  .site-header .wordmark, .site-header .header-status, .nav-toggle { position: relative; z-index: 90; }
  body.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .site-header nav, .nav-toggle span { transition: none; } }
@media (max-width: 1000px) {
  /* backdrop-filter у шапки сделал бы её рамкой для fixed-панели: на телефоне шапка без размытия */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(0, 0, 0, .96); }
  body.nav-open .site-header { z-index: 85; }
}
@media (max-width: 1000px) {
  .header-inner { gap: 8px; }
  .header-status { padding: 6px 10px; font-size: 12px; gap: 6px; min-width: 0; overflow: hidden; }
}
@media (max-width: 370px) { .header-status { display: none; } .nav-toggle { margin-left: auto; } }
.support-button.is-ghost { background: transparent; border: 1px solid var(--line-strong); box-shadow: none; color: var(--ink); }
.support-button.is-ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* окно заявки */
.lead-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); background: rgba(3, 4, 10, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fx-fade .25s ease both; cursor: pointer; }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
.lead-close { position: sticky; top: 0; z-index: 2; float: right; display: grid; place-items: center; width: 40px; height: 40px; margin: -10px -10px 0 10px; border: 1px solid var(--line-strong); border-radius: 50%; background: #15161d; color: var(--ink-2); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.lead-close:hover { color: var(--ink); border-color: var(--accent-line); background: var(--accent-soft); }
.lead-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lead-card:focus { outline: none; }
.lead-card { position: relative; width: min(600px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(22px, 4vw, 34px); border: 1px solid rgba(120, 150, 255, .35); border-radius: 22px; background: radial-gradient(90% 60% at 100% 0%, rgba(76, 125, 255, .18), transparent 60%), #0d0e14; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04); cursor: default; animation: fx-lead-in .35s cubic-bezier(.2, .7, .2, 1) both; overscroll-behavior: contain; }
@keyframes fx-lead-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
body.lead-open { overflow: hidden; }
html:has(body.lead-open), html:has(body.nav-open) { overflow: hidden; }
.lead-kicker { display: inline-block; margin-bottom: 8px; color: var(--accent-hi); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lead-card h2 { margin: 0 0 6px; font-size: clamp(24px, 3.4vw, 30px); line-height: 1.15; }
.lead-sub { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.lead-q { margin: 0 0 18px; padding: 0; border: 0; }
.lead-q legend { margin-bottom: 10px; font-weight: 800; font-size: 15px; }
.lead-opts { display: grid; gap: 8px; }
@media (min-width: 600px) { .lead-opts { grid-template-columns: 1fr 1fr; } }
.lead-opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .03); cursor: pointer; transition: border-color .15s, background .15s; }
.lead-opt:hover { border-color: rgba(120, 150, 255, .5); }
.lead-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: 0 0 auto; }
.lead-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.lead-field { display: grid; gap: 6px; margin-bottom: 14px; }
.lead-field span { font-weight: 800; font-size: 14px; }
.lead-field em { color: var(--ink-3); font-style: normal; font-weight: 600; }
.lead-field input, .lead-field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #08090d; color: var(--ink); font: inherit; font-size: 16px; }
.lead-field input:focus, .lead-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.lead-more { margin: 4px 0 14px; }
.lead-more summary { cursor: pointer; color: var(--ink-2); font-weight: 700; padding: 6px 0; }
.lead-more[open] summary { margin-bottom: 10px; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 12px; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.lead-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.lead-consent a { color: var(--accent-hi); text-decoration: underline; }
.lead-error { margin: 0 0 12px; color: #ff9a9a; font-size: 14px; font-weight: 700; }
.lead-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 8px; }
.lead-actions .primary-button { min-height: 50px; padding: 0 26px; font-size: 16px; }
.lead-actions .text-button { color: var(--ink-3); }
.lead-done { text-align: center; padding: 10px 0; }
.lead-check { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 14px; border-radius: 50%; background: rgba(63, 227, 155, .14); color: #3fe39b; border: 1px solid rgba(63, 227, 155, .5); }
.lead-hint { color: var(--ink-3); font-size: 13px; }
@media (max-width: 520px) { .lead-actions { flex-direction: column-reverse; align-items: stretch; } .lead-actions .primary-button { justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .lead-overlay, .lead-card { animation: none; } }

/* ===== v15 ===== */
/* Кнопки Оставить заявку, Написать менеджеру, Вся статистика: стекло с подсветкой, как плашки на главной, чуть ярче */
[data-action="lead-open"].primary-button, .support-button.is-glass, .manager-button.primary-button, .ac-res-foot .secondary-button {
  border: 1px solid rgba(123, 159, 255, .8); color: #fff;
  background: linear-gradient(120deg, rgba(76, 125, 255, .38), rgba(76, 125, 255, .14) 70%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(76, 125, 255, .12), 0 16px 42px -16px rgba(76, 125, 255, .95);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
[data-action="lead-open"].primary-button:hover, .support-button.is-glass:hover, .manager-button.primary-button:hover, .ac-res-foot .secondary-button:hover {
  border-color: #a9c0ff; transform: translateY(-1px); color: #fff;
  background: linear-gradient(120deg, rgba(76, 125, 255, .52), rgba(76, 125, 255, .22) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 26px -6px rgba(76, 125, 255, .8), 0 18px 46px -14px rgba(76, 125, 255, 1);
}
[data-action="lead-open"].primary-button .icon, .ac-res-foot .secondary-button .icon { color: #cfdcff; }
.support-button.is-glass .tg-logo { filter: drop-shadow(0 0 6px rgba(42, 171, 238, .6)); }

/* FX TRADES вместо скриншота сигнала */
.bot-banner-shot.is-cover img, .ac-mock-bot.is-cover img { width: 100%; height: 100%; object-fit: cover; }
.bot-banner-shot.is-cover::after, .ac-mock-bot.is-cover::after { display: none; }
.bot-banner-shot.is-cover { border-color: rgba(63, 227, 155, .5); box-shadow: 0 0 40px -14px rgba(63, 227, 155, .6); }

/* Таблицы сделок: главная, Сделки, профиль трейдера */
.table-scroll tbody tr { position: relative; transition: background .2s; }
.table-scroll tbody tr td { transition: background .2s, color .2s; }
.table-scroll tbody tr:hover td { background: rgba(76, 125, 255, .07); color: var(--ink); }
.table-scroll th:first-child, .table-scroll td:first-child { padding-left: 14px; }
.table-scroll tbody tr td:first-child { box-shadow: inset 3px 0 0 transparent; transition: box-shadow .2s, background .2s; }
.table-scroll tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.table-scroll tbody tr:has(.table-return.positive):hover td:first-child { box-shadow: inset 3px 0 0 #3fe39b; }
.table-scroll tbody tr:has(.table-return.negative):hover td:first-child { box-shadow: inset 3px 0 0 #ff6b6b; }
.table-return.positive, .table-return.negative { text-shadow: 0 0 14px currentColor; }
.direction.long { color: #7ff0bd; border-color: rgba(63, 227, 155, .45); background: rgba(63, 227, 155, .08); }
.direction.short { color: #ffa3a3; border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .08); }
.status-tag { background: rgba(255, 255, 255, .03); }
.status-tag:not(.loss-status):not(.adjust-tag) { color: #9ff2cb; border-color: rgba(63, 227, 155, .35); background: rgba(63, 227, 155, .06); }
.status-tag.loss-status { background: rgba(255, 107, 107, .08); }
.table-scroll .icon-button { transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.table-scroll tbody tr:hover .icon-button { border-color: var(--accent-line); color: #fff; background: var(--accent-soft); box-shadow: 0 0 18px -6px rgba(76, 125, 255, .9); transform: translateX(2px); }

/* Трейдеры: большие карточки с эффектом, аватар и имя ведут в профиль */
.approach-card { transition: border-color .25s, transform .25s, box-shadow .25s; position: relative; overflow: hidden; }
.approach-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 0% 0%, rgba(76, 125, 255, .14), transparent 60%); opacity: .5; transition: opacity .25s; pointer-events: none; }
.approach-card:hover { border-color: rgba(123, 159, 255, .55); transform: translateY(-3px); box-shadow: 0 24px 60px -30px rgba(76, 125, 255, .8); }
.approach-card:hover::before { opacity: 1; }
.approach-card > * { position: relative; }
.approach-avatar { display: inline-block; border-radius: 22px; transition: box-shadow .25s, transform .25s; }
.approach-avatar:hover, .approach-card:hover .approach-avatar { box-shadow: 0 0 0 2px rgba(123, 159, 255, .75), 0 0 28px -4px rgba(76, 125, 255, .8); transform: scale(1.03); }
.approach-name { color: inherit; transition: color .2s, text-shadow .2s; }
.approach-name:hover { color: var(--accent-hi); text-shadow: 0 0 18px rgba(76, 125, 255, .6); }
.approach-card .profile-link { transition: color .2s, gap .2s; }
.approach-card:hover .profile-link { color: #a9c0ff; }

/* Отзывы: стрелки и итог под скриншотом */
.review-stage { position: relative; }
.review-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(8, 9, 14, .72); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s; }
.review-nav.is-prev { left: -10px; } .review-nav.is-next { right: -10px; }
.review-nav:hover { border-color: var(--accent-line); background: rgba(76, 125, 255, .35); box-shadow: 0 0 20px -6px rgba(76, 125, 255, .9); }
.review-nav .icon { width: 18px; height: 18px; }
.review-result { margin: 14px 0 4px; color: #3fe39b; font-size: 17px; font-weight: 800; line-height: 1.45; text-shadow: 0 0 18px rgba(63, 227, 155, .35); }
.review-count { margin: 0; color: var(--ink-3); font-size: 13px; font-weight: 700; }
@media (max-width: 560px) { .review-nav.is-prev { left: 4px; } .review-nav.is-next { right: 4px; } }

/* Брокеры в своих цветах и условие доступа */
.broker-card.is-fxpro { border-color: rgba(227, 6, 19, .55); background: linear-gradient(135deg, rgba(227, 6, 19, .2), rgba(227, 6, 19, .04) 65%), rgba(12, 10, 12, .9); }
.broker-card.is-fxpro:hover { border-color: #ff3b47; box-shadow: 0 0 34px -12px rgba(227, 6, 19, .9); }
.broker-card.is-fxpro em { color: #ff5a63; }
.broker-card.is-vantage { border-color: rgba(255, 138, 31, .55); background: linear-gradient(135deg, rgba(255, 138, 31, .2), rgba(255, 138, 31, .04) 65%), rgba(12, 11, 10, .9); }
.broker-card.is-vantage:hover { border-color: #ffa04d; box-shadow: 0 0 34px -12px rgba(255, 138, 31, .9); }
.broker-card.is-vantage em { color: #ffa04d; }
.broker-access { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin-top: 16px; padding: 18px 20px; border: 1px solid rgba(255, 200, 87, .45); border-radius: 16px; background: linear-gradient(120deg, rgba(255, 200, 87, .12), rgba(255, 200, 87, .03)); }
.broker-access p { flex: 1 1 360px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.broker-access b { color: #ffd98a; font-weight: 800; }
.broker-access .support-button { margin: 0; }

/* О проекте: Пост в Telegram и Видео на YouTube светятся при наведении, как соседние ссылки */
.earn-links .secondary-button { transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.earn-links .secondary-button:hover { border-color: rgba(123, 159, 255, .75); background: rgba(76, 125, 255, .12); box-shadow: 0 0 22px -10px rgba(76, 125, 255, .95); transform: translateY(-1px); color: var(--ink); }
.bot-video { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; margin: 24px 0; padding: clamp(20px, 3vw, 32px); border: 1px solid rgba(123, 159, 255, .35); border-radius: 22px; background: radial-gradient(70% 90% at 100% 0%, rgba(76, 125, 255, .14), transparent 60%), rgba(12, 12, 15, .92); }
.bot-video h2 { margin: 8px 0 10px; font-size: clamp(24px, 3vw, 32px); }
.bot-video p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.bot-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--line-strong); background: #000; }
@media (max-width: 860px) { .bot-video { grid-template-columns: 1fr; } }

/* ===== v16 ===== */
/* Цифры в таблицах сделок без свечения */
.table-return.positive, .table-return.negative { text-shadow: none; }

/* Блоки со сделками: тёмно-синяя заливка с мягкими пятнами света вместо чёрного */
.recent-section, .history-panel {
  border-color: rgba(123, 159, 255, .22);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(76, 125, 255, .18), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(226, 192, 138, .09), transparent 65%),
    linear-gradient(160deg, #111830 0%, #0c1020 55%, #0a0c15 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 80px -50px rgba(76, 125, 255, .7);
}
.recent-section .table-scroll thead th, .history-panel .table-scroll thead th { background: transparent; }
.recent-section .table-scroll tbody tr td, .history-panel .table-scroll tbody tr td { border-color: rgba(123, 159, 255, .1); }

/* Все кнопки при наведении подпрыгивают и подсвечиваются, как Оставить заявку */
.primary-button, .secondary-button, .ref-teaser, .os-button, .free-button, .soon-tape {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
@media (hover: hover) {
  .primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 26px -6px rgba(76, 125, 255, .85), 0 18px 44px -14px rgba(76, 125, 255, 1); }
  .secondary-button:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(123, 159, 255, .75); background: rgba(76, 125, 255, .12); color: var(--ink); box-shadow: 0 0 24px -8px rgba(76, 125, 255, .9), 0 16px 40px -18px rgba(76, 125, 255, .9); }
  [data-action="lead-open"].primary-button:hover, .support-button.is-glass:hover, .manager-button.primary-button:hover, .ac-res-foot .secondary-button:hover { transform: translateY(-2px); }
  .ref-teaser:hover { transform: translateY(-2px); border-color: rgba(226, 192, 138, .85); box-shadow: 0 0 26px -8px rgba(226, 192, 138, .8), 0 18px 44px -18px rgba(226, 192, 138, .7); }
  .ref-teaser.is-free:hover { border-color: rgba(63, 227, 155, .85); box-shadow: 0 0 26px -8px rgba(63, 227, 155, .8), 0 18px 44px -18px rgba(63, 227, 155, .7); }
  .os-button:hover { transform: translateY(-2px); box-shadow: 0 0 24px -8px rgba(76, 125, 255, .85); }
}
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled), .ref-teaser:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .primary-button, .secondary-button, .ref-teaser, .os-button { transform: none !important; } }

/* Аватар трейдера: подсветка ровно по фото, без тёмного края снизу */
.approach-avatar { display: inline-flex; vertical-align: top; line-height: 0; border-radius: 22px; }
.approach-avatar .portrait { display: grid; }

/* Академия: база знаний в разработке, жёлтая лента */
.soon-tape { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; overflow: hidden; border: 1px solid rgba(244, 198, 78, .65); border-radius: 14px; background: #15130a; cursor: default; user-select: none; }
.soon-tape-band { position: absolute; inset: 0; opacity: .22; background: repeating-linear-gradient(-45deg, #f4c64e 0 14.142px, #111 14.142px 28.284px); background-size: 40px 40px; animation: soon-move 2.4s linear infinite; }
.soon-tape-text { position: relative; display: inline-flex; align-items: center; gap: 10px; color: #fff3c9; font-size: 15px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.soon-tape-text b { padding: 4px 9px; border-radius: 7px; background: #f4c64e; color: #141108; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; text-shadow: none; }
@media (hover: hover) { .soon-tape:hover { transform: translateY(-2px); box-shadow: 0 0 26px -8px rgba(244, 198, 78, .8); } }
@keyframes soon-move { to { background-position: 40px 0; } }
@media (prefers-reduced-motion: reduce) { .soon-tape-band { animation: none; } }
@media (max-width: 520px) { .soon-tape { justify-content: center; } }

/* Короткая форма заявки: Telegram или телефон */
.lead-or { margin: -6px 0 8px; color: var(--ink-3); font-size: 13px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .08em; }

/* ===== v17 ===== */
/* Карточки трейдеров на главной: свечение мягче */
.trader-card[data-tone="positive"] { border-color: rgba(47, 220, 143, .16); background: linear-gradient(165deg, rgba(47, 220, 143, .05), transparent 46%), var(--raise); }
.trader-card[data-tone="negative"] { border-color: rgba(255, 107, 107, .16); background: linear-gradient(165deg, rgba(255, 107, 107, .05), transparent 46%), var(--raise); }
.trader-card[data-tone="positive"]:hover { border-color: rgba(47, 220, 143, .36); background: linear-gradient(165deg, rgba(47, 220, 143, .08), transparent 52%), var(--raise); box-shadow: 0 24px 50px -40px rgba(47, 220, 143, .45); }
.trader-card[data-tone="negative"]:hover { border-color: rgba(255, 107, 107, .36); background: linear-gradient(165deg, rgba(255, 107, 107, .08), transparent 52%), var(--raise); box-shadow: 0 24px 50px -40px rgba(255, 107, 107, .45); }
.trader-card[data-tone] .portrait { box-shadow: 0 0 0 1.5px rgba(47, 220, 143, .35); }
.trader-card[data-tone="negative"] .portrait { box-shadow: 0 0 0 1.5px rgba(255, 107, 107, .35); }

/* Трейдеры: своя заливка, фиолетово-золотая с тонкой диагональной сеткой (не как у блоков сделок) */
.approach-card {
  border-color: rgba(167, 139, 250, .22);
  background:
    radial-gradient(75% 65% at 100% 0%, rgba(124, 77, 255, .20), transparent 62%),
    radial-gradient(60% 70% at 0% 100%, rgba(226, 192, 138, .11), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, #121124, #0c0b15);
}
.approach-card::before { background: radial-gradient(55% 70% at 0% 0%, rgba(167, 139, 250, .16), transparent 62%); }
.approach-card:hover { border-color: rgba(196, 181, 253, .5); box-shadow: 0 24px 60px -34px rgba(124, 77, 255, .7); }
.approach-card .small-badge { border-color: rgba(196, 181, 253, .45); background: rgba(124, 77, 255, .12); color: #d9ccff; }

/* Все кнопки как на главной: стеклянная заливка и подсветка */
.secondary-button {
  border: 1px solid rgba(123, 159, 255, .45); color: #fff;
  background: linear-gradient(120deg, rgba(76, 125, 255, .2), rgba(76, 125, 255, .06) 70%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 30px -20px rgba(76, 125, 255, .8);
}
[data-action="lead-open"], .support-button, .manager-button {
  border: 1px solid rgba(123, 159, 255, .8) !important; color: #fff !important;
  background: linear-gradient(120deg, rgba(76, 125, 255, .38), rgba(76, 125, 255, .14) 70%) !important;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(76, 125, 255, .12), 0 16px 42px -16px rgba(76, 125, 255, .95);
}
@media (hover: hover) {
  .secondary-button:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(169, 192, 255, .9); color: #fff; background: linear-gradient(120deg, rgba(76, 125, 255, .34), rgba(76, 125, 255, .12) 70%); box-shadow: 0 0 22px -8px rgba(76, 125, 255, .8), 0 16px 38px -18px rgba(76, 125, 255, .9); }
  [data-action="lead-open"]:hover, .support-button:hover, .manager-button:hover { transform: translateY(-2px); border-color: #a9c0ff !important; background: linear-gradient(120deg, rgba(76, 125, 255, .52), rgba(76, 125, 255, .22) 70%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 22px -6px rgba(76, 125, 255, .7), 0 18px 46px -14px rgba(76, 125, 255, 1); }
}
.secondary-button .icon, [data-action="lead-open"] .icon { color: #cfdcff; }

/* Влад: фото крупнее, всё внутри карточки */
.founder-card { grid-template-columns: 210px minmax(0, 1fr); gap: 20px 30px; align-items: start; overflow: hidden; }
.founder-card > .portrait.xl { width: 210px; height: 210px; border-radius: 26px; }
.founder-card > div { min-width: 0; }
@media (max-width: 1240px) and (min-width: 1001px) { .founder-card { grid-template-columns: 170px minmax(0, 1fr); } .founder-card > .portrait.xl { width: 170px; height: 170px; } }
@media (max-width: 1000px) and (min-width: 561px) { .founder-card { grid-template-columns: 200px minmax(0, 1fr); } .founder-card > .portrait.xl { width: 200px; height: 200px; } }
@media (max-width: 560px) { .founder-card { grid-template-columns: 1fr; } .founder-card > .portrait.xl { width: 100%; max-width: 320px; height: auto; aspect-ratio: 1; } }

/* Результаты торговли: крупная цифра не залезает на разделитель */
.metric { container-type: inline-size; }
.metric > strong { font-size: clamp(22px, 17cqi, 42px); }

/* Видео на главной: на телефоне громкость регулируют кнопки телефона, ползунка нет */
@media (hover: none) and (pointer: coarse) { .hero-video .hv-volume, .hero-video.has-sound .hv-volume { display: none !important; } }

/* База знаний: что есть ниже, с прокруткой к разделу */
.kb-jump { margin: -40px 0 72px; }
.kb-jump > .eyebrow { display: block; margin-bottom: 14px; }
.kb-jump-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kb-jump-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 6px; padding: 22px 22px 20px; text-align: left; color: var(--ink); border: 1px solid rgba(123, 159, 255, .3); border-radius: 20px; cursor: pointer;
  background: radial-gradient(80% 90% at 100% 0%, rgba(76, 125, 255, .16), transparent 60%), linear-gradient(180deg, #11162a, #0c0e18); transition: transform .2s, border-color .2s, box-shadow .2s; }
.kb-jump-num { position: absolute; top: 18px; right: 20px; color: rgba(169, 192, 255, .45); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.kb-jump-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(76, 125, 255, .16); color: #a9c0ff; }
.kb-jump-icon .icon { width: 22px; height: 22px; }
.kb-jump-card b { align-self: end; font-size: 19px; line-height: 1.2; }
.kb-jump-card small { color: var(--ink-3); font-size: 14px; line-height: 1.45; }
.kb-jump-go { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #a9c0ff; font-size: 14px; font-weight: 800; }
.kb-jump-go .icon { width: 16px; height: 16px; }
@media (hover: hover) { .kb-jump-card:hover { transform: translateY(-2px); border-color: rgba(169, 192, 255, .7); box-shadow: 0 0 24px -8px rgba(76, 125, 255, .7), 0 18px 40px -20px rgba(76, 125, 255, .8); } }
#kb-videos, #kb-guides, #glossary { scroll-margin-top: calc(var(--header) + 20px); }
@media (max-width: 860px) { .kb-jump { margin-top: -24px; } .kb-jump-grid { grid-template-columns: 1fr; gap: 12px; } .kb-jump-card { padding: 18px; } }

/* Картинки гайдов: без пустых полей и обрезки */
.guide-img img { max-height: none; }
.guide-img.is-tall img { max-height: 760px; width: auto; }
.guide-img picture { display: block; }

/* Обложки видео: кнопка Play в правом нижнем углу, не закрывает заголовок обложки */
.lesson-video.is-file:not(.is-empty) > .play-mark { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; box-shadow: 0 0 0 5px rgba(76, 125, 255, .2), 0 10px 24px -8px rgba(0, 0, 0, .8); }
.lesson-video.is-file:not(.is-empty) > .play-mark .icon { width: 18px; height: 18px; }
/* Академия на телефоне: длинное ПОДКЛЮЧАЙТЕСЬ не обрезается краем карточки */
@media (max-width: 560px) { .ac-final .ac-display { font-size: clamp(16px, 5.7vw, 34px); overflow-wrap: anywhere; } .ac-display { overflow-wrap: anywhere; } }

/* О проекте: карточка Влада шире, фото крупным квадратом, текст справа от фото */
@media (min-width: 1001px) {
  .about-top { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .founder-card { grid-template-columns: clamp(240px, 24vw, 340px) minmax(0, 1fr); gap: 20px 32px; align-items: stretch; align-content: center; }
  /* фото ровно по высоте текста: верх по заголовку, низ по последней строке */
  .founder-card > .portrait.xl { width: 100%; height: 100%; min-height: 240px; aspect-ratio: auto; align-self: stretch; }
  .founder-card > .portrait.xl img { object-position: 50% 40%; }
  .founder-card h2 { margin-top: 0; }
}
@media (min-width: 1001px) and (max-width: 1240px) { .about-top { grid-template-columns: 1fr; } .founder-card { grid-template-columns: 300px minmax(0, 1fr); } .founder-card > .portrait.xl { min-height: 0; } }

/* ===== v17.6: два цвета кнопок ===== */
/* Все сплошные синие кнопки сайта: прозрачный фон и неон, как Оставить заявку (в окне заявки кнопки остаются сплошными) */
.primary-button:not(.lead-card .primary-button) {
  border: 1px solid rgba(123, 159, 255, .8); color: #fff;
  background: linear-gradient(120deg, rgba(76, 125, 255, .38), rgba(76, 125, 255, .14) 70%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(76, 125, 255, .12), 0 16px 42px -16px rgba(76, 125, 255, .95);
}
.primary-button:not(.lead-card .primary-button) .icon { color: #cfdcff; }
@media (hover: hover) {
  .primary-button:not(.lead-card .primary-button):hover:not(:disabled) { border-color: #a9c0ff; color: #fff; background: linear-gradient(120deg, rgba(76, 125, 255, .52), rgba(76, 125, 255, .22) 70%); }
}

/* Кнопки, которые ведут в Telegram: цвет Telegram, прозрачный фон, неон */
:is(.primary-button, .secondary-button, .support-button, .manager-button, .ac-cta)[href*="t.me/"],
:is(.primary-button, .secondary-button, .support-button, .manager-button, .ac-cta)[href*="telegram.me/"] {
  border: 1px solid rgba(42, 171, 238, .85) !important; color: #fff !important;
  background: linear-gradient(120deg, rgba(42, 171, 238, .34), rgba(42, 171, 238, .1) 70%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(42, 171, 238, .14), 0 16px 42px -16px rgba(42, 171, 238, .95) !important;
}
@media (hover: hover) {
  :is(.primary-button, .secondary-button, .support-button, .manager-button, .ac-cta)[href*="t.me/"]:hover,
  :is(.primary-button, .secondary-button, .support-button, .manager-button, .ac-cta)[href*="telegram.me/"]:hover {
    border-color: #7fd0ff !important; background: linear-gradient(120deg, rgba(42, 171, 238, .5), rgba(42, 171, 238, .2) 70%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 24px -6px rgba(42, 171, 238, .85), 0 18px 46px -14px rgba(42, 171, 238, 1) !important;
  }
}
/* Кнопки на YouTube: красный YouTube */
:is(.primary-button, .secondary-button)[href*="youtube.com"], :is(.primary-button, .secondary-button)[href*="youtu.be"] {
  border-color: rgba(255, 64, 64, .8) !important; color: #fff !important;
  background: linear-gradient(120deg, rgba(255, 40, 40, .28), rgba(255, 40, 40, .08) 70%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 40px -18px rgba(255, 51, 68, .9) !important;
}
@media (hover: hover) {
  :is(.primary-button, .secondary-button)[href*="youtube.com"]:hover, :is(.primary-button, .secondary-button)[href*="youtu.be"]:hover {
    border-color: #ff8a8a !important; background: linear-gradient(120deg, rgba(255, 40, 40, .42), rgba(255, 40, 40, .16) 70%) !important;
    box-shadow: 0 0 22px -6px rgba(255, 51, 68, .8), 0 18px 44px -16px rgba(255, 51, 68, 1) !important;
  }
}

/* Что мы делаем и Как мы зарабатываем: кнопки в один ряд, ровно по левому краю текста */
.about-lead-actions { flex-wrap: nowrap; gap: 10px; }
.about-lead-actions > * { flex: 0 1 auto; min-width: 0; padding: 0 16px; font-size: 14px; }
.is-earn .earn-links { flex-wrap: nowrap; }
.is-earn .earn-links > * { flex: 0 1 auto; min-width: 0; }
@media (max-width: 1240px) { .about-lead-actions, .is-earn .earn-links { flex-wrap: wrap; } }

/* v18.3: плашка «Данные по ... · обновление раз в неделю» не обрезается на телефоне */
.updated-note { max-width: 100%; }
@media (max-width: 560px) {
  .updated-note { white-space: normal; border-radius: 14px; line-height: 1.35; }
  .updated-note .icon { flex: 0 0 auto; }
}

/* v18.4: «Написать менеджеру» с иконкой Telegram целиком. Правая карточка чуть шире, кнопки не сжимаются,
   при нехватке места вторая кнопка переносится, а не обрезается */
@media (min-width: 1241px) {
  .about-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.about-lead-actions { flex-wrap: wrap; }
.about-lead-actions > * { flex: 0 0 auto; min-width: max-content; padding: 0 15px; gap: 8px; font-size: 14px; }
.about-lead-actions .support-button svg, .about-lead-actions .support-button img { flex: 0 0 auto; }

/* v18.7: бонус +150% в короткой форме заявки (второй показ и Вы вернулись) */
.lead-bonus { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; padding: 14px 18px; border: 1px solid rgba(63, 227, 155, .55); border-radius: 16px; background: linear-gradient(120deg, rgba(63, 227, 155, .16), rgba(76, 125, 255, .1) 70%); box-shadow: 0 0 0 1px rgba(63, 227, 155, .12), 0 18px 44px -18px rgba(63, 227, 155, .7); }
.lead-bonus-num { flex: 0 0 auto; color: #3fe39b; font-size: clamp(34px, 7vw, 44px); font-weight: 900; line-height: 1; letter-spacing: -.02em; text-shadow: 0 0 26px rgba(63, 227, 155, .55); }
.lead-bonus-txt { display: grid; gap: 2px; }
.lead-bonus-txt strong { color: var(--ink); font-size: 18px; font-weight: 800; }
.lead-bonus-txt small { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.lead-bonus-note { margin: 0 0 14px; color: var(--ink-3); font-size: 12px; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) { .lead-bonus { animation: fx-bonus-glow 2.4s ease-in-out 3; } }
@keyframes fx-bonus-glow { 50% { box-shadow: 0 0 0 1px rgba(63, 227, 155, .35), 0 18px 54px -12px rgba(63, 227, 155, .95); } }

/* v18.7 скорость: свечения без filter: blur. Тот же размытый эллипс нарисован маской-градиентом (профиль размытия
   посчитан заранее, tools: perf/glowcss.py). Анимация, цвета и переходы те же; браузеру не нужно размывать каждый кадр,
   слой рисуется один раз и только сдвигается. padding + отрицательный margin расширяют элемент на 3 сигмы размытия. */
:root {
  --glow-h1: radial-gradient(closest-side, rgba(0,0,0,0.942) 0%, rgba(0,0,0,0.926) 8.3%, rgba(0,0,0,0.877) 16.7%, rgba(0,0,0,0.784) 25%, rgba(0,0,0,0.652) 33.3%, rgba(0,0,0,0.490) 41.7%, rgba(0,0,0,0.322) 50%, rgba(0,0,0,0.185) 58.3%, rgba(0,0,0,0.091) 66.7%, rgba(0,0,0,0.037) 75%, rgba(0,0,0,0.013) 83.3%, rgba(0,0,0,0.004) 91.7%, rgba(0,0,0,0.002) 100%);
  --glow-h2: radial-gradient(closest-side, rgba(0,0,0,0.751) 0%, rgba(0,0,0,0.727) 8.3%, rgba(0,0,0,0.656) 16.7%, rgba(0,0,0,0.547) 25%, rgba(0,0,0,0.418) 33.3%, rgba(0,0,0,0.292) 41.7%, rgba(0,0,0,0.180) 50%, rgba(0,0,0,0.101) 58.3%, rgba(0,0,0,0.049) 66.7%, rgba(0,0,0,0.021) 75%, rgba(0,0,0,0.008) 83.3%, rgba(0,0,0,0.003) 91.7%, rgba(0,0,0,0.001) 100%);
  --glow-h1m: radial-gradient(closest-side, rgba(0,0,0,0.718) 0%, rgba(0,0,0,0.694) 8.3%, rgba(0,0,0,0.622) 16.7%, rgba(0,0,0,0.514) 25%, rgba(0,0,0,0.390) 33.3%, rgba(0,0,0,0.268) 41.7%, rgba(0,0,0,0.165) 50%, rgba(0,0,0,0.092) 58.3%, rgba(0,0,0,0.046) 66.7%, rgba(0,0,0,0.020) 75%, rgba(0,0,0,0.008) 83.3%, rgba(0,0,0,0.003) 91.7%, rgba(0,0,0,0.001) 100%);
  --glow-h2m: radial-gradient(closest-side, rgba(0,0,0,0.492) 0%, rgba(0,0,0,0.473) 8.3%, rgba(0,0,0,0.417) 16.7%, rgba(0,0,0,0.337) 25%, rgba(0,0,0,0.250) 33.3%, rgba(0,0,0,0.168) 41.7%, rgba(0,0,0,0.103) 50%, rgba(0,0,0,0.058) 58.3%, rgba(0,0,0,0.029) 66.7%, rgba(0,0,0,0.013) 75%, rgba(0,0,0,0.005) 83.3%, rgba(0,0,0,0.002) 91.7%, rgba(0,0,0,0.001) 100%);
  --glow-c1: radial-gradient(closest-side, rgba(0,0,0,0.927) 0%, rgba(0,0,0,0.909) 8.3%, rgba(0,0,0,0.851) 16.7%, rgba(0,0,0,0.750) 25%, rgba(0,0,0,0.611) 33.3%, rgba(0,0,0,0.448) 41.7%, rgba(0,0,0,0.289) 50%, rgba(0,0,0,0.165) 58.3%, rgba(0,0,0,0.080) 66.7%, rgba(0,0,0,0.033) 75%, rgba(0,0,0,0.012) 83.3%, rgba(0,0,0,0.004) 91.7%, rgba(0,0,0,0.002) 100%);
  --glow-c2: radial-gradient(closest-side, rgba(0,0,0,0.861) 0%, rgba(0,0,0,0.839) 8.3%, rgba(0,0,0,0.769) 16.7%, rgba(0,0,0,0.658) 25%, rgba(0,0,0,0.517) 33.3%, rgba(0,0,0,0.368) 41.7%, rgba(0,0,0,0.231) 50%, rgba(0,0,0,0.130) 58.3%, rgba(0,0,0,0.063) 66.7%, rgba(0,0,0,0.027) 75%, rgba(0,0,0,0.010) 83.3%, rgba(0,0,0,0.003) 91.7%, rgba(0,0,0,0.002) 100%);
  --glow-c3: radial-gradient(closest-side, rgba(0,0,0,0.749) 0%, rgba(0,0,0,0.724) 8.3%, rgba(0,0,0,0.650) 16.7%, rgba(0,0,0,0.542) 25%, rgba(0,0,0,0.412) 33.3%, rgba(0,0,0,0.286) 41.7%, rgba(0,0,0,0.177) 50%, rgba(0,0,0,0.099) 58.3%, rgba(0,0,0,0.048) 66.7%, rgba(0,0,0,0.021) 75%, rgba(0,0,0,0.008) 83.3%, rgba(0,0,0,0.003) 91.7%, rgba(0,0,0,0.001) 100%);
  --glow-c1m: radial-gradient(closest-side, rgba(0,0,0,0.805) 0%, rgba(0,0,0,0.781) 8.3%, rgba(0,0,0,0.707) 16.7%, rgba(0,0,0,0.594) 25%, rgba(0,0,0,0.459) 33.3%, rgba(0,0,0,0.321) 41.7%, rgba(0,0,0,0.199) 50%, rgba(0,0,0,0.112) 58.3%, rgba(0,0,0,0.054) 66.7%, rgba(0,0,0,0.023) 75%, rgba(0,0,0,0.009) 83.3%, rgba(0,0,0,0.003) 91.7%, rgba(0,0,0,0.002) 100%);
  --glow-c2m: radial-gradient(closest-side, rgba(0,0,0,0.703) 0%, rgba(0,0,0,0.678) 8.3%, rgba(0,0,0,0.606) 16.7%, rgba(0,0,0,0.499) 25%, rgba(0,0,0,0.376) 33.3%, rgba(0,0,0,0.258) 41.7%, rgba(0,0,0,0.159) 50%, rgba(0,0,0,0.089) 58.3%, rgba(0,0,0,0.043) 66.7%, rgba(0,0,0,0.019) 75%, rgba(0,0,0,0.007) 83.3%, rgba(0,0,0,0.003) 91.7%, rgba(0,0,0,0.001) 100%);
}
.hero-glow i, .calc-glow i { filter: none; box-sizing: content-box; will-change: transform; -webkit-mask-image: var(--glow-m); mask-image: var(--glow-m); }
.hero-glow i { padding: 270px; margin: -270px; --glow-m: var(--glow-h1); }
.hero-glow i:last-child { --glow-m: var(--glow-h2); }
.calc-glow i { padding: 240px; margin: -240px; }
.calc-glow i:nth-child(1) { --glow-m: var(--glow-c1); }
.calc-glow i:nth-child(2) { --glow-m: var(--glow-c2); }
.calc-glow i:nth-child(3) { --glow-m: var(--glow-c3); }
@media (max-width: 1000px) {
  .calc-glow i:nth-child(1) { --glow-m: var(--glow-c1m); }
  .calc-glow i:nth-child(2) { --glow-m: var(--glow-c2m); }
}
@media (max-width: 760px) {
  .hero-glow i:first-child { --glow-m: var(--glow-h1m); }
  .hero-glow i:last-child { --glow-m: var(--glow-h2m); }
}

/* v18.7 скорость: свечения стоят, пока их не видно и пока крутят страницу (perf.mjs) */
.hero-glow.is-off i, .hero-glow.is-still i, .calc-glow.is-off i, .calc-glow.is-still i { animation-play-state: paused; }
/* Калькулятор с непрозрачным фоном (#0b0b1e): размытие под ним не видно, а без видеокарты оно пересчитывалось каждый кадр */
.calculator { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Без видеокарты (perf.mjs, класс fx-lite): матовые плашки без живого размытия, фон окна заявки чуть плотнее */
html.fx-lite *, html.fx-lite *::before, html.fx-lite *::after, html.fx-lite dialog::backdrop { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.fx-lite .lead-overlay { background: rgba(3, 4, 10, .82); }

/* ===== v19: Рулетка призов (/roulette) =====
   Колесо в золоте на тёмно-синем: на этой странице золото работает как цвет призов.
   Синий акцент сайта остаётся на кнопке, подсветках и ссылках. */
.roulette { --gold: #ffd25e; --gold-hi: #ffe9a6; --gold-ink: #1a1203; position: relative; }
.rl-intro { position: relative; isolation: isolate; text-align: center; max-width: 820px; margin: 0 auto; }
.rl-intro .hero-glow { inset: -160px -120px -80px; }
/* во время прокрутки фоновые переливы замирают, чтобы колесо шло ровно на слабых устройствах */
.roulette.is-spinning .hero-glow i, .roulette.is-spinning .rl-main, .roulette.is-spinning .rl-shine { animation-play-state: paused; }
.rl-intro .hero-glow i:first-child { left: 8%; }
.rl-intro .hero-glow i:last-child { left: 46%; }
.rl-intro .eyebrow { color: var(--gold); letter-spacing: .18em; }
.rl-intro h1 { margin: 10px 0 0; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.02em; }
.rl-intro h1 { background: linear-gradient(95deg, #fff 0%, #fff6dc 30%, var(--gold-hi) 55%, var(--gold) 80%, #f0b443 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.rl-intro h1 span { color: inherit; }
.rl-intro p { margin: 16px auto 0; color: var(--ink-2); font-size: 18px; max-width: 620px; }
.rl-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.rl-pool span { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border-radius: 999px; font-weight: 700; font-size: 16px; color: var(--ink-2);
  border: 1px solid rgba(255, 210, 94, .42); background: linear-gradient(120deg, rgba(255, 210, 94, .11), rgba(255, 210, 94, .02) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 20px -10px rgba(255, 210, 94, .35); }
.rl-pool span b { color: #fff; font-weight: 800; }
.rl-pool img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 50%; border: 1px solid rgba(255, 210, 94, .6); background: #0b0c14; box-shadow: 0 0 12px -4px rgba(255, 210, 94, .45); }

.rl-stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start; margin-top: 48px; }
.rl-wheel-col { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
@media (min-width: 1001px) { .rl-wheel-col { position: sticky; top: calc(var(--header) + 24px); } }
/* плашка режима под колесом: жёлтая, пока есть пробная; зелёная, когда дальше только по коду */
.rl-chip { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 0; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; text-align: center;
  color: #ffe08a; border: 1px solid rgba(255, 210, 94, .5); background: rgba(255, 210, 94, .08); transition: color .3s, border-color .3s, background .3s; }
.rl-chip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: rl-blink 1.6s ease-in-out infinite; }
.rl-chip.is-real { color: #8ff0c0; border-color: rgba(47, 220, 143, .5); background: rgba(47, 220, 143, .08); }
.rl-chip.is-real i { background: var(--gain); box-shadow: 0 0 10px var(--gain); }
@keyframes rl-blink { 50% { opacity: .35; } }

.rl-wheel { position: relative; width: min(580px, 100%); aspect-ratio: 1; margin-top: clamp(44px, 10%, 68px); }
@media (min-width: 1001px) { .rl-wheel { width: min(580px, 100%, max(400px, calc(100vh - 350px))); } }
.rl-rays { position: absolute; inset: -20%; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 94, .05) 0deg 5deg, transparent 5deg 15deg, rgba(76, 125, 255, .06) 15deg 20deg, transparent 20deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 36%, transparent 70%); mask-image: radial-gradient(circle, #000 36%, transparent 70%);
  animation: rl-turn 60s linear infinite; }
.rl-wheel.is-spinning .rl-rays { animation-duration: 8s; }
@keyframes rl-turn { to { transform: rotate(360deg); } }
.rl-halo { position: absolute; inset: -4%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, transparent 60%, rgba(76, 125, 255, .16) 67%, rgba(255, 210, 94, .06) 72%, transparent 76%); filter: blur(10px); animation: rl-pulse 3s ease-in-out infinite; }
.rl-wheel.is-spinning .rl-halo { animation-duration: .8s; }
@keyframes rl-pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .85; transform: scale(1.01); } }
.rl-rotor { position: absolute; inset: 0; will-change: transform; }
.rl-rotor svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.rl-rotor .rl-base { will-change: transform; }
.rl-rotor .rl-lights { will-change: transform; }
.rl-wheel::before { content: ""; position: absolute; inset: 6% 6% -4%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, .85), transparent 70%); }
.rl-lbl { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.rl-lbl-top { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
.rl-bulb { fill: #3a2e12; transition: fill .15s; }
.rl-bulb.on { fill: var(--gold-hi); filter: drop-shadow(0 0 3px rgba(255, 210, 94, .6)); }
.rl-bulb.is-blue { fill: #1b2650; }
.rl-bulb.is-blue.on { fill: #bfd0ff; filter: drop-shadow(0 0 3px rgba(76, 125, 255, .6)); }
.rl-win { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.rl-win.go { animation: rl-flash .45s ease-in-out 5; }
@keyframes rl-flash { 50% { opacity: 1; } }
.rl-gloss { position: absolute; inset: 3%; border-radius: 50%; pointer-events: none; background: radial-gradient(75% 45% at 50% 15%, rgba(255, 255, 255, .08), transparent 62%); }
.rl-pointer { position: absolute; left: 50%; top: -11.2%; width: 12%; z-index: 3; transform: translateX(-50%); transform-origin: 50% 25%; will-change: transform; filter: drop-shadow(0 0 5px rgba(255, 210, 94, .35)) drop-shadow(0 6px 6px rgba(0, 0, 0, .7)); }
.rl-pointer svg { display: block; width: 100%; height: auto; }
.rl-hub { position: absolute; left: 50%; top: 50%; z-index: 2; width: 31%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transform: translate(-50%, -50%); transition: transform .25s; }
.rl-hub img { display: block; width: 100%; height: 100%; pointer-events: none; }
.rl-wheel { container-type: inline-size; }
.rl-hub-mark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; pointer-events: none; line-height: 1; }
.rl-hub-mark b { color: var(--brand); font-size: 22px; font-size: 8.4cqw; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 0 18px rgba(255, 51, 68, .5); }
.rl-hub-mark span { color: #fff; font-size: 7px; font-size: 2.35cqw; font-weight: 800; letter-spacing: .16em; margin-right: -.16em; }
.rl-hub::after { content: ""; position: absolute; inset: -5%; border-radius: 50%; border: 1.5px solid rgba(255, 210, 94, .55); opacity: 0; animation: rl-ring 2s ease-out infinite; }
.rl-hub:disabled { cursor: default; }
.rl-hub:disabled::after { animation: none; }
@keyframes rl-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.22); opacity: 0; } }
.rl-hub:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.04); }
.rl-hub:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.rl-result { min-height: 24px; margin: -4px 0 0; color: var(--ink-3); font-weight: 700; text-align: center; }
.rl-result b { color: var(--gold-hi); }

.rl-spin { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 300px; min-height: 60px; padding: 0 40px; border: 0; border-radius: 16px; cursor: pointer;
  color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: linear-gradient(135deg, #6a92f5 0%, #3f6ee6 50%, #2c52cc 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 94, .38), inset 0 1px 0 rgba(255, 255, 255, .2), 0 12px 32px -14px rgba(76, 125, 255, .7);
  transition: transform .2s, filter .2s, opacity .2s; }
.rl-spin::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-20deg); animation: rl-sweep 4s ease-in-out infinite; }
@keyframes rl-sweep { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.rl-spin:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05); }
.rl-spin:active:not(:disabled) { transform: translateY(1px); }
.rl-spin:disabled { opacity: .65; cursor: default; }
.rl-spin:disabled::after { animation: none; }
.rl-spin:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.rl-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rl-card { padding: 24px; }
.rl-card h2 { margin: 0 0 16px; font-size: 22px; }
.rl-steps-card { border-color: rgba(76, 125, 255, .38); background: var(--spot), var(--raise); box-shadow: 0 0 30px -20px rgba(76, 125, 255, .5); }
.rl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: rl; }
.rl-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.rl-steps li::before { counter-increment: rl; content: counter(rl); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-weight: 800; color: var(--gold-ink); background: linear-gradient(180deg, #f3dc9a, #e2b94e); box-shadow: none; }
.rl-steps b { color: var(--ink); }
.rl-steps a { color: var(--gold-hi); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.rl-code { border-color: rgba(255, 210, 94, .38); background: linear-gradient(135deg, rgba(255, 210, 94, .06), rgba(14, 14, 16, 0) 60%), var(--raise); box-shadow: 0 0 30px -22px rgba(255, 210, 94, .45); }
.rl-code label { display: block; margin-bottom: 10px; font-size: 17px; font-weight: 800; }
.rl-code-row { display: flex; gap: 10px; }
.rl-code input { flex: 1; min-width: 0; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--field); color: var(--gold-hi); font: inherit; font-size: 22px; font-weight: 800; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; transition: border-color .2s, box-shadow .2s; }
.rl-code input::placeholder { color: #4a4a54; }
.rl-code input:focus { outline: none; border-color: rgba(255, 210, 94, .7); box-shadow: 0 0 0 3px rgba(255, 210, 94, .14); }
.rl-code button { flex: none; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 800; color: var(--gold-ink); background: linear-gradient(180deg, #f3dc9a, #e2b94e); box-shadow: 0 8px 20px -12px rgba(255, 210, 94, .55); transition: transform .2s, filter .2s; }
.rl-code button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.rl-code-msg { min-height: 21px; margin: 10px 0 0; color: var(--ink-3); font-size: 14px; }
.rl-code-msg.is-error { color: var(--loss); }
.rl-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rl-list li { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); transition: border-color .2s, transform .2s, box-shadow .2s; }
.rl-list li:hover { border-color: rgba(76, 125, 255, .4); transform: translateX(3px); box-shadow: 0 0 18px -12px rgba(76, 125, 255, .6); }
.rl-list li.is-gold { border-color: rgba(255, 210, 94, .42); background: linear-gradient(90deg, rgba(154, 110, 20, .42), rgba(90, 63, 8, .16) 75%), var(--field); }
.rl-list li.is-blue { border-color: rgba(76, 125, 255, .38); background: linear-gradient(90deg, rgba(42, 66, 160, .45), rgba(26, 40, 98, .18) 75%), var(--field); }
.rl-list li.is-base { border-color: var(--line); background: linear-gradient(90deg, #0c1024, #07080f 75%); }
.rl-list li.is-gold:hover { border-color: rgba(255, 210, 94, .6); box-shadow: 0 0 18px -12px rgba(255, 210, 94, .5); }
.rl-list img { width: 46px; height: 46px; flex: none; }
.rl-list b { display: block; font-size: 15px; font-weight: 800; line-height: 1.3; }
.rl-list li.is-gold b { color: var(--gold-hi); }
.rl-list li.is-blue b { color: #d6e3ff; }
.rl-list small { display: block; color: var(--ink-3); font-size: 13px; }
.rl-list em { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-hi); background: rgba(255, 210, 94, .1); border: 1px solid rgba(255, 210, 94, .35); }
.rl-hint { margin: 0; color: var(--ink-3); font-size: 14px; }

.rl-mains-wrap { margin-top: 88px; }
.rl-mains-wrap h2 { margin: 0 0 24px; text-align: center; font-size: clamp(28px, 3.4vw, 38px); }
.rl-mains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@property --rl-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.rl-main { position: relative; padding: 10px 10px 20px; border-radius: 22px; text-align: center; isolation: isolate;
  background: linear-gradient(#0b0c12, #0b0c12) padding-box, conic-gradient(from var(--rl-ang), var(--gold), var(--accent), #7a5cff, var(--accent), var(--gold)) border-box;
  border: 2px solid transparent; animation: rl-border 8s linear infinite; transition: transform .25s; }
.rl-main::after { content: ""; position: absolute; inset: -6px; z-index: -1; border-radius: 26px; background: conic-gradient(from var(--rl-ang), var(--gold), var(--accent), #7a5cff, var(--accent), var(--gold)); filter: blur(18px); opacity: .12; }
@keyframes rl-border { to { --rl-ang: 360deg; } }
.rl-main:hover { transform: translateY(-4px); }
.rl-main-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 14px; background: #050507; }
.rl-main-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rl-main:hover .rl-main-img img { transform: scale(1.04); }
.rl-shine { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .25) 50%, transparent 65%); transform: translateX(-100%); animation: rl-shine 4.5s ease-in-out infinite; }
.rl-main:nth-child(2) .rl-shine { animation-delay: 1.5s; } .rl-main:nth-child(3) .rl-shine { animation-delay: 3s; }
@keyframes rl-shine { 0%, 65% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.rl-main h3 { margin: 16px 0 2px; font-size: 24px; background: linear-gradient(180deg, #fff, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rl-main p { margin: 0; padding: 0 12px; color: var(--ink-3); font-size: 14px; }

.rl-dialog { position: fixed; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden auto; scrollbar-width: none; overscroll-behavior: contain; margin: auto; padding: 32px 26px 26px; text-align: center; color: var(--ink);
  border: 1px solid rgba(255, 210, 94, .6); border-radius: 24px; background: #0b0c14; box-shadow: 0 0 40px -16px rgba(255, 210, 94, .3), 0 0 90px -40px rgba(76, 125, 255, .55); }
.rl-dialog::backdrop { background: rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rl-dialog[open] { animation: rl-pop-in .45s cubic-bezier(.2, 1.4, .35, 1); }
@keyframes rl-pop-in { from { transform: translateY(18px) scale(.92); opacity: 0; } }
.rl-d-raysbox { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.rl-d-rays { position: absolute; left: 50%; top: 112px; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; background: repeating-conic-gradient(rgba(255, 210, 94, .09) 0deg 8deg, transparent 8deg 20deg); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 60%); mask-image: radial-gradient(circle, #000 20%, transparent 60%); animation: rl-turn 18s linear infinite; }
.rl-d-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--field); color: var(--ink-2); font-size: 20px; line-height: 1; cursor: pointer; }
.rl-d-img { position: relative; display: block; width: 160px; height: 160px; margin: 0 auto 8px; animation: rl-pop .8s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes rl-pop { from { transform: scale(.3) rotate(-30deg); } }
.rl-d-kick { position: relative; margin: 0; color: var(--gold); font-size: 15px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-shadow: none; }
.rl-dialog.is-top .rl-d-kick { font-size: 18px; }
.rl-dialog h2 { position: relative; margin: 6px 0 8px; font-size: 30px; line-height: 1.15; background: linear-gradient(180deg, #fff 30%, var(--gold-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rl-d-desc { position: relative; margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.rl-d-note { position: relative; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); color: var(--ink-3); font-size: 14px; }
.rl-d-actions { position: relative; display: grid; gap: 10px; }
.rl-d-actions .primary-button, .rl-d-actions .secondary-button { width: 100%; min-height: 52px; font-size: 16px; white-space: normal; }
.rl-fx { position: fixed; inset: 0; z-index: 2147483000; width: 100%; height: 100%; pointer-events: none; }

@media (max-width: 1000px) {
  .rl-stage { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .rl-side { width: 100%; max-width: 580px; margin: 0 auto; }
  .rl-mains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rl-intro p { font-size: 16px; }
  .rl-pool span { font-size: 14px; padding: 7px 14px 7px 7px; }
  .rl-pool img { width: 34px; height: 34px; }
  .rl-stage { margin-top: 32px; }
  .rl-spin { width: 100%; min-width: 0; font-size: 18px; }
  .rl-card { padding: 20px; }
  .rl-mains { grid-template-columns: minmax(0, 1fr); }
  .rl-mains-wrap { margin-top: 64px; }
}
.roulette, .rl-wheel-col { overflow-x: clip; }
/* телефоны и планшеты в горизонтали: колесо целиком в экране */
@media (max-height: 560px) and (orientation: landscape) and (max-width: 1000px) {
  .rl-wheel { width: min(580px, 100%, calc(100vh - 140px)); margin-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .rl-rays, .rl-halo, .rl-spin::after, .rl-shine, .rl-main, .rl-hub::after, .rl-chip i, .rl-d-rays { animation: none !important; }
}

/* v19.3: лимит пробной прокрутки и спокойные кнопки в окне */
.rl-block { max-width: 340px; margin: -8px 0 0; color: var(--loss); font-size: 14px; font-weight: 700; line-height: 1.45; text-align: center; }
.rl-block a { color: var(--loss); text-decoration: underline; text-underline-offset: 3px; }
.rl-block.is-shake { animation: rl-shake .4s ease; }
@keyframes rl-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.rl-d-win, .rl-d-info { position: relative; }
.rl-d-lock { display: grid; place-items: center; width: 84px; height: 84px; margin: 6px auto 14px; border-radius: 50%; color: var(--gold-hi); border: 1px solid rgba(255, 210, 94, .45); background: radial-gradient(circle at 35% 30%, rgba(255, 210, 94, .18), rgba(10, 11, 18, .9) 70%); }
.rl-dialog { box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .9), 0 0 40px -24px rgba(255, 210, 94, .35); }
.rl-d-rays { opacity: .5; }
.rl-dialog .rl-d-actions .primary-button, .rl-dialog .rl-d-actions .secondary-button { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important; filter: none !important; }
.rl-dialog .rl-d-actions .primary-button::before, .rl-dialog .rl-d-actions .primary-button::after, .rl-dialog .rl-d-actions .secondary-button::before, .rl-dialog .rl-d-actions .secondary-button::after { display: none !important; }
.rl-dialog .rl-d-actions :is(.primary-button, .secondary-button):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 8px 22px -14px rgba(76, 125, 255, .6) !important; }
@media (prefers-reduced-motion: reduce) { .rl-block.is-shake { animation: none; } }

/* v19.4: режим прокрутки на приз, номер выигрыша, экономия на слабых устройствах */
.rl-ticket { color: var(--gold-hi); font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.rl-dialog.is-real .rl-d-note { color: var(--ink-2); border-color: rgba(255, 210, 94, .35); }
.rl-code-msg a { color: var(--gold-hi); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rl-code button:disabled { opacity: .7; cursor: default; transform: none; }
.rl-result b + b { margin-left: 2px; }
/* лучи и ореол стоят, когда колесо вне экрана и пока страницу прокручивают (perf.mjs) */
.rl-rays.is-off, .rl-rays.is-still, .rl-halo.is-off, .rl-halo.is-still { animation-play-state: paused; }
.rl-wheel.is-off .rl-hub::after { animation-play-state: paused; }
/* без видеокарты: лучи и ореол без движения, рамки главных призов не крутятся */
html.fx-lite .rl-rays, html.fx-lite .rl-halo, html.fx-lite .rl-main, html.fx-lite .rl-shine, html.fx-lite .rl-d-rays { animation: none !important; }
html.fx-lite .rl-halo { filter: none; opacity: .5; }
html.fx-lite .rl-main::after { display: none; }
.rl-hub:disabled { opacity: 1; filter: none; }

.rl-code input { letter-spacing: .12em; font-size: 19px; text-transform: uppercase; }
.rl-code input::placeholder { letter-spacing: .04em; font-size: 15px; text-transform: none; }
.rl-soon p { color: var(--ink-2); margin-bottom: 22px; }
.rl-soon p a { color: var(--accent-2, #7B9FFF); text-decoration: underline; text-underline-offset: 3px; }

/* v19.7: Бесплатная академия (бот с мини-курсом). Золотая заливка и мягкое свечение, без неона */
.ac-free { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid rgba(244, 198, 78, .6); border-radius: 14px;
  max-width: 100%; color: #fff3c9; font-size: 16px; font-weight: 800; line-height: 1.2; text-decoration: none;
  background: linear-gradient(120deg, rgba(244, 198, 78, .24), rgba(244, 198, 78, .07) 70%), #12100a;
  box-shadow: inset 0 1px 0 rgba(255, 241, 191, .14), 0 14px 34px -20px rgba(244, 198, 78, .6);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.ac-free-icon { flex: none; color: #f4c64e; }
@media (hover: hover) {
  .ac-free:hover { transform: translateY(-2px); border-color: rgba(255, 223, 134, .85);
    background: linear-gradient(120deg, rgba(244, 198, 78, .32), rgba(244, 198, 78, .1) 70%), #12100a;
    box-shadow: inset 0 1px 0 rgba(255, 241, 191, .18), 0 0 20px -10px rgba(244, 198, 78, .7), 0 16px 38px -18px rgba(244, 198, 78, .7); }
}
.ac-free:active { transform: translateY(0); }
.ac-free:focus-visible { outline: 2px solid #ffdf86; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ac-free { transition: none; } .ac-free:hover { transform: none; } }
@media (max-width: 520px) { .ac-free { justify-content: center; width: 100%; } }

@media (max-width: 380px) { .ac-hero-copy .ac-display { font-size: clamp(24px, 8.4vw, 34px); } }   /* v19.7: АКАДЕМИЯ и ПОДКЛЮЧАЙТЕСЬ не рвутся на узком телефоне */

/* v20: окна рулетки. Без полосы прокрутки (на низком экране окно всё равно листается пальцем и колесом мыши) */
.rl-dialog::-webkit-scrollbar { display: none; }
.rl-d-row { display: flex; gap: 10px; }
.rl-d-row > * { flex: 1 1 0; min-width: 0; }
.rl-d-row > [hidden] { display: none; }
.rl-d-actions > [hidden] { display: none; }
.rl-dialog .rl-d-actions .rl-go { border: 0; color: var(--gold-ink); background: linear-gradient(180deg, #ffe9a6, #f3c64e 55%, #d9a531); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 26px -14px rgba(255, 210, 94, .8) !important; }
.rl-dialog .rl-d-actions .rl-go:hover { filter: brightness(1.05) !important; }
.rl-d-info .rl-ic-ticket, .rl-d-info[data-icon="ticket"] .rl-ic-lock { display: none; }
.rl-d-info[data-icon="ticket"] .rl-ic-ticket { display: block; }
.rl-block span { font-weight: 800; }
@media (max-width: 420px) { .rl-chip { padding: 7px 12px; font-size: clamp(12px, 3.6vw, 14px); white-space: nowrap; } }
/* низкий экран (iPhone SE, маленькие Android): окно приза влезает целиком, без прокрутки */
@media (max-height: 760px) {
  .rl-dialog { padding: 22px 18px 18px; }
  .rl-d-img { width: 112px; height: 112px; margin-bottom: 4px; }
  .rl-d-lock { width: 64px; height: 64px; margin: 2px auto 8px; }
  .rl-d-lock svg { width: 34px; height: 34px; }
  .rl-dialog h2 { font-size: 24px; margin: 4px 0 6px; }
  .rl-d-desc { margin-bottom: 10px; font-size: 14px; }
  .rl-d-note { margin-bottom: 14px; padding: 10px 12px; font-size: 13px; }
  .rl-d-actions { gap: 8px; }
  .rl-d-row { gap: 8px; }
  .rl-d-actions .primary-button, .rl-d-actions .secondary-button { min-height: 46px; font-size: 15px; }
}

.rl-result:empty { display: none; }
.rl-code-msg:empty { min-height: 0; margin: 0; }
.rl-d-row .secondary-button { white-space: nowrap; padding-inline: 8px; }

/* v20.2: заголовок Рулетка призов переливается золотом (градиент медленно бежит по буквам) */
.rl-intro h1 { background-image: linear-gradient(100deg, #fff 0%, #fff6dc 12%, var(--gold-hi) 26%, var(--gold) 38%, #f0b443 46%, #fff3c4 54%, var(--gold-hi) 64%, var(--gold) 76%, #fff6dc 90%, #fff 100%); background-size: 200% 100%; background-repeat: repeat-x; }
@media (prefers-reduced-motion: no-preference) { .rl-intro h1 { animation: rl-title-flow 7s linear infinite; } }
@keyframes rl-title-flow { from { background-position: 0% 50%; } to { background-position: -200% 50%; } }
.roulette.is-spinning .rl-intro h1 { animation-play-state: paused; }

/* v20.2: плашки главных призов в своих цветах: деньги зелёные, проп серебро, GTA 6 закатные розово-фиолетовые */
.rl-pool span:nth-child(1) { border-color: rgba(63, 227, 155, .5); background: linear-gradient(120deg, rgba(63, 227, 155, .13), rgba(63, 227, 155, .02) 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 22px -9px rgba(63, 227, 155, .6); }
.rl-pool span:nth-child(1) b { color: #c9ffe4; }
.rl-pool span:nth-child(1) img { border-color: rgba(63, 227, 155, .7); box-shadow: 0 0 12px -3px rgba(63, 227, 155, .6); }
.rl-pool span:nth-child(2) { border-color: rgba(206, 214, 228, .5); background: linear-gradient(120deg, rgba(206, 214, 228, .12), rgba(206, 214, 228, .02) 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 22px -9px rgba(206, 214, 228, .55); }
.rl-pool span:nth-child(2) b { color: #f3f6fb; }
.rl-pool span:nth-child(2) img { border-color: rgba(214, 222, 236, .75); box-shadow: 0 0 12px -3px rgba(214, 222, 236, .55); }
.rl-pool span:nth-child(3) { border-color: rgba(236, 104, 196, .5); background: linear-gradient(120deg, rgba(255, 138, 76, .1), rgba(196, 82, 230, .12) 55%, rgba(196, 82, 230, .02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 22px -9px rgba(214, 86, 230, .6); }
.rl-pool span:nth-child(3) b { color: #ffd9f0; }
.rl-pool span:nth-child(3) img { border-color: rgba(236, 104, 196, .75); box-shadow: 0 0 12px -3px rgba(214, 86, 230, .6); }

/* v20.2: код применён, колесо ждёт кнопку */
.rl-code-msg.is-ok { color: #8ff0c0; font-weight: 700; }
.rl-chip.is-armed { color: #ffe9a6; border-color: rgba(255, 210, 94, .7); background: linear-gradient(90deg, rgba(47, 220, 143, .12), rgba(255, 210, 94, .12)); }
.rl-chip.is-armed i { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.rl-spin.is-armed { box-shadow: inset 0 0 0 1.5px rgba(255, 224, 138, .9), inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 0 rgba(255, 210, 94, .55), 0 14px 36px -12px rgba(76, 125, 255, .85); }
@media (prefers-reduced-motion: no-preference) { .rl-spin.is-armed:not(:disabled) { animation: rl-armed 1.6s ease-in-out infinite; } }
@keyframes rl-armed { 50% { box-shadow: inset 0 0 0 1.5px rgba(255, 224, 138, 1), inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 8px rgba(255, 210, 94, 0), 0 0 34px 2px rgba(255, 210, 94, .55); } }

/* v20.2.1: на высоком экране ПК колесо с кнопкой ниже (до 120px). Сдвиг растёт с высотой окна и равен нулю до 930px,
   чтобы закреплённая колонка с кнопкой Крутить колесо всегда помещалась в экран */
@media (min-width: 1001px) { .rl-wheel-col { padding-top: clamp(0px, calc(100vh - 930px), 120px); } }
