@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/62213be8a78b.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/e17cfd15fb96.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/db5ff4db83e5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/83c005d49d8a.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/62213be8a78b.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/e17cfd15fb96.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/db5ff4db83e5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/83c005d49d8a.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/62213be8a78b.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/e17cfd15fb96.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/db5ff4db83e5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/83c005d49d8a.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/268f03691b3d.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/68e5e01d6265.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/14e7d3079b75.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/052df7453325.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/268f03691b3d.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/68e5e01d6265.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/14e7d3079b75.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/052df7453325.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/268f03691b3d.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/68e5e01d6265.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/14e7d3079b75.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/052df7453325.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/268f03691b3d.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/68e5e01d6265.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/14e7d3079b75.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/052df7453325.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/268f03691b3d.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/68e5e01d6265.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/14e7d3079b75.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/052df7453325.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* TonyFlow — стили. Цвета взяты с графика и панели ордеров DeepCharts. */

:root {
  --bg: #1a1a1a;
  --bg-alt: #1d1d1d;
  --bg-deep: #161616;
  --surface: #1e1e1e;
  --field: #2a2a2a;
  --line: #2a2a2a;
  --line-2: #313131;
  --line-3: #3a3a3a;

  --text: #e4e4e4;
  --strong: #f4f4f4;
  --soft: #cfcfcf;
  --muted: #a8a8a8;
  --muted-2: #9a9a9a;
  --faint: #8c8c8c;

  --buy: #66e466;          /* свеча покупок */
  --buy-hover: #a6f2a6;
  --buy-fill: #0e5b0d;     /* кнопка BUY */
  --buy-fill-hover: #14731a;
  --buy-tint: #172317;
  --sell: #a07bc1;         /* свеча продаж */
  --sell-text: #b996d9;
  --sell-fill: #4a1f6f;    /* кнопка SELL */
  --sell-fill-hover: #5a2787;
  --level: #5f9ea0;        /* линия уровня */
  --crypto: #d9a441;
  --crypto-tint: #2a2316;
  --warn: #ff7e00;         /* Cancel and Flat */

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 6px;
  --wrap: 1200px;
  --gutter: 24px;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }

a { color: var(--buy); }
a:hover { color: var(--buy-hover); }

:focus-visible { outline: 2px solid var(--buy); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { margin: 0; color: var(--strong); letter-spacing: -0.03em; line-height: 1.1; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.mt-14 { margin-top: 14px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px; }

.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 {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--buy-fill); color: #fff; padding: 10px 16px; border-radius: 4px; text-decoration: none;
}
.skip:focus { left: 16px; color: #fff; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid #2c2c2c;
}
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 72px; }

.brand {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--strong); text-decoration: none;
  font-weight: 800; font-size: 21px; letter-spacing: -0.02em;
}
.brand:hover { color: var(--strong); }
.brand svg { flex: 0 0 auto; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 20px; }

.lang { display: flex; gap: 6px; font-family: var(--mono); font-size: 13px; }
.lang a { color: var(--faint); text-decoration: none; padding: 10px 6px; min-width: 36px; text-align: center; }
.lang a:hover { color: var(--strong); }
.lang a[aria-current] { color: var(--strong); box-shadow: inset 0 -1px 0 var(--buy); }

/* Меню разделов: один <nav> — выпадающие списки на компьютере, полноэкранное меню на телефоне */
.nav-list, .nav-links { list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-all { text-decoration: none; }
.tabbar { display: none; }

@media (min-width: 1001px) {
  .nav-head, .nav-foot, .nav-title { display: none; }
  .nav-list { display: flex; gap: 2px; }
  .nav-item { position: relative; }
  .nav-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
    background: none; border: 0; border-radius: 4px; color: var(--soft); font: inherit; font-size: 15px; cursor: pointer;
  }
  .nav-btn:hover, .nav-item.is-open .nav-btn { color: var(--strong); }
  .nav-item.is-current .nav-btn { color: var(--strong); box-shadow: inset 0 -2px 0 var(--buy); }
  .nav-caret { opacity: 0.7; }
  .nav-item.is-open .nav-caret { transform: rotate(180deg); }
  .nav-dd {
    display: none; position: absolute; left: 0; top: 100%; z-index: 30; min-width: 250px; padding: 8px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
  .nav-item:nth-last-child(-n+2) .nav-dd { left: auto; right: 0; }
  .nav-item--wide .nav-dd { min-width: 440px; }
  .nav-item.is-open > .nav-dd { display: block; }
  .nav-links a, .nav-all { display: block; padding: 9px 12px; border-radius: 4px; color: var(--text); font-size: 15px; white-space: nowrap; }
  .nav-links a:hover, .nav-all:hover { background: var(--field); color: var(--strong); }
  .nav-links a[aria-current] { color: var(--buy); }
  .nav-links--more { columns: 2; column-gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-2); }
  .nav-all { margin-top: 6px; padding-top: 11px; border-top: 1px solid var(--line-2); color: var(--buy); border-radius: 0 0 4px 4px; }
}
@media (min-width: 1001px) and (hover: hover) {
  .nav-item:hover > .nav-dd { display: block; }
}

@media (max-width: 1000px) {
  :root { --tabbar-h: 60px; }
  html { scroll-padding-bottom: calc(var(--tabbar-h) + 16px); }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .header-inner { gap: 16px; min-height: 64px; }
  .header-tools { gap: 10px; }

  .nav {
    display: none; position: fixed; inset: 0 0 calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)) 0; z-index: 40;
    overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: 0 var(--gutter) 24px;
  }
  .nav:target, .nav.is-open { display: block; }
  html.menu-open { overflow: hidden; }
  .nav-head {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 64px;
    background: var(--bg); border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 800; color: var(--strong);
  }
  .nav-close {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--line-3); border-radius: var(--radius); color: var(--soft); font-size: 28px; line-height: 1; text-decoration: none;
  }
  .nav-btn { display: none; }
  .nav-dd { padding: 18px 0 4px; }
  .nav-title { margin-bottom: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
  .nav-item.is-current .nav-title { color: var(--buy); }
  .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nav-links a, .nav-all {
    display: flex; align-items: center; min-height: 52px; padding: 10px 14px; overflow-wrap: anywhere;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font-size: 15px; line-height: 1.25;
  }
  .nav-links a[aria-current] { border-color: var(--buy); background: var(--buy-tint); color: var(--strong); }
  .nav-links--more { margin-top: 8px; }
  .nav-all { margin-top: 8px; color: var(--buy); }
  .nav-foot { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-foot a { padding: 10px 0; color: var(--soft); text-decoration: none; }
  .nav-foot a[aria-current] { color: var(--buy); }
  .nav-langs { display: flex; gap: 20px; width: 100%; }

  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #161616; border-top: 1px solid var(--line-2);
  }
  .tab {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--faint); text-decoration: none; font-size: 11px; line-height: 1.15;
  }
  .tab span { max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab:hover { color: var(--strong); }
  .tab.is-current, .tab[aria-expanded="true"] { color: var(--buy); }
}

@media (max-width: 400px) {
  .header-inner { gap: 10px; }
  .header-tools { gap: 6px ; }
  .lang a { padding: 10px 4px; min-width: 32px; }
  .brand { font-size: 19px; gap: 8px; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 4px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-buy { background: var(--buy-fill); color: #fff; }
.btn-buy:hover { background: var(--buy-fill-hover); color: #fff; }
.btn-sell { background: var(--sell-fill); color: #fff; }
.btn-sell:hover { background: var(--sell-fill-hover); color: #fff; }
.btn-outline { border-color: var(--buy); color: var(--buy); background: transparent; }
.btn-outline:hover { background: var(--buy-tint); color: var(--buy); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* ---------- Первый экран ---------- */

.hero {
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
  padding-top: 80px; padding-bottom: 96px;
}
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero .panel { flex: 1 1 380px; max-width: 460px; }

.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--level);
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04;
  letter-spacing: -0.035em; font-weight: 800;
}
.hl { color: var(--buy); }

.lead { margin-top: 24px; max-width: 560px; font-size: 19px; color: var(--muted); }
.lead--sm { font-size: 17px; margin-top: 20px; }

.actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.actions--center { justify-content: center; margin-top: 12px; }

.meta-line {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--mono); font-size: 13px; color: var(--faint);
}

@media (max-width: 640px) {
  .hero { padding-top: 44px; padding-bottom: 64px; gap: 40px; }
  .lead { font-size: 17px; }
  .hero .panel { max-width: none; }
}

/* ---------- Калькулятор ---------- */

.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

.seg {
  margin-top: 16px;
  display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px;
}
.seg button {
  min-height: 44px; padding: 0 8px;
  border: 1px solid var(--line-3); border-radius: 4px;
  background: var(--field); color: var(--muted);
  font-family: var(--mono); font-weight: 700; font-size: 15px; cursor: pointer;
}
.seg button:hover { color: var(--strong); }
.seg button[aria-pressed="true"] { background: var(--buy-fill); border-color: var(--buy-fill); color: #fff; }
.seg--text button { font-family: var(--font); font-weight: 600; font-size: 14px; }
.seg--wrap button { line-height: 1.2; padding: 6px 8px; }
.calc .seg + .seg, .calc .seg + div > .seg { margin-top: 8px; }

.fields { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted-2); }
.field--wide { grid-column: 1 / -1; }
.field input {
  height: 48px; width: 100%; padding: 0 12px;
  background: var(--field); border: 1px solid var(--line-3); border-radius: 4px;
  color: var(--strong); font-family: var(--mono); font-size: 18px;
}
.field input:hover { border-color: #4a4a4a; }
.field input:focus { border-color: var(--buy); outline: none; }
.field input:focus-visible { outline: 2px solid var(--buy); outline-offset: 1px; }

.result { margin-top: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 18px; }
.result-main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.result-main span { font-size: 14px; color: var(--muted-2); }
.result-main output {
  font-family: var(--mono); font-size: 52px; font-weight: 700; line-height: 1;
  color: var(--buy); font-variant-numeric: tabular-nums;
}
.result-rows { margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.result-rows div { display: flex; justify-content: space-between; gap: 12px; }
.result-rows dt { color: var(--muted-2); }
.result-rows dd { margin: 0; font-family: var(--mono); color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }

.warn { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--warn); }
.panel-note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--faint); }
.panel-note a { font-family: var(--mono); white-space: nowrap; }

.calc-full {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px; align-items: start;
}
.calc-full .panel { padding: 28px; }
.group + .group { margin-top: 28px; }
.group-label { font-size: 13px; color: var(--muted-2); }
.group .seg { margin-top: 8px; }
.result--big { margin-top: 0; padding: 28px; position: sticky; top: 96px; }
.result--big .result-main output { font-size: 80px; }
.result--big .result-rows { font-size: 15px; gap: 10px; margin-top: 24px; }

@media (max-width: 860px) {
  .calc-full { grid-template-columns: minmax(0, 1fr); }
  .result--big { position: static; }
  .result--big .result-main output { font-size: 64px; }
}
@media (max-width: 420px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .panel, .calc-full .panel, .result--big { padding: 18px; }
}

/* ---------- Лента тиков ---------- */

.tape { border-top: 1px solid var(--line); background: var(--bg-deep); }
.tape ul {
  list-style: none; margin: 0 auto; max-width: var(--wrap);
  padding: 16px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 8px 40px;
  font-family: var(--mono); font-size: 14px; color: var(--muted);
}
.tape b { color: var(--strong); font-weight: 500; margin-right: 6px; }
.tape .lvl { color: var(--level); }

/* ---------- Секции ---------- */

.section { border-top: 1px solid var(--line); padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.section-head h2, .h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; }
.section-head p { max-width: 520px; color: var(--muted-2); }

/* Фильтры */
.chips { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-3); border-radius: 999px;
  background: transparent; color: var(--soft);
  font: inherit; font-size: 14px; cursor: pointer;
}
.chips button:hover { color: var(--strong); border-color: #4a4a4a; }
.chips button[aria-pressed="true"] { background: var(--buy-fill); border-color: var(--buy-fill); color: #fff; font-weight: 600; }

/* Карточки калькуляторов */
.cards { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 10px; min-height: 196px; padding: 24px;
  background: var(--surface); border: 1px solid #2c2c2c; border-radius: var(--radius);
  color: var(--text); text-decoration: none;
}
a.card:hover { border-color: var(--buy); color: var(--text); }
.card-title { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--strong); }
.card-text { font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.card-foot { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--buy); }
.card--soon .card-foot { color: var(--faint); }

.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.tag--futures { color: var(--buy); }
.tag--prop, .tag--poly { color: var(--sell-text); }
.tag--risk, .tag--time { color: var(--level); }
.tag--crypto { color: var(--crypto); }

/* Терминалы */
.terms { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.term {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.term-name { font-size: 22px; font-weight: 800; color: var(--strong); letter-spacing: -0.02em; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 3px; }
.pill--futures { background: var(--buy-tint); color: var(--buy); }
.pill--crypto { background: var(--crypto-tint); color: var(--crypto); }
.term-status { font-size: 15px; color: var(--soft); }
.term-status--muted { color: var(--muted-2); }
.term-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--faint); }

.rows { list-style: none; margin: 24px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 18px; font-weight: 600; color: var(--strong); line-height: 1.35;
}
.soon {
  flex: 0 0 auto; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted);
  border: 1px solid var(--line-3); border-radius: 3px; padding: 4px 10px;
}
.small-note { margin-top: 20px; font-size: 14px; color: var(--faint); }
.muted-note { margin-top: 16px; font-size: 15px; color: var(--muted-2); }

/* Гайды */
.guides { list-style: none; margin: 40px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.guide { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.guide-num { width: 40px; font-family: var(--mono); font-size: 15px; color: var(--level); }
.guide-body { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.guide-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--strong); line-height: 1.3; }
.guide-text { font-size: 16px; color: var(--muted-2); }
@media (max-width: 640px) {
  .guide { gap: 8px 16px; padding: 22px 0; }
  .guide-num { width: auto; }
  .guide-body { flex-basis: 100%; order: 2; }
  .guide .soon { order: 1; }
}

/* Две колонки */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.split-main { flex: 1 1 440px; min-width: 0; }
.split-side { flex: 1 1 360px; max-width: 480px; }
@media (max-width: 860px) { .split-side { max-width: none; } }

.checks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: 0 0 auto; margin-top: 3px; color: var(--buy); }

.box { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px; }
.box--surface { background: var(--surface); }
.box-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--faint); }
.box-title { margin-top: 8px; font-size: 24px; font-weight: 800; color: var(--strong); letter-spacing: -0.02em; line-height: 1.2; }
.box p:not(.box-label):not(.box-title):not(.muted-note) { margin-top: 10px; color: var(--soft); font-size: 15px; }
.box-btn { margin-top: 20px; }

/* Стримы */
.streams { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.streams-copy { flex: 1 1 360px; min-width: 0; }
.video {
  flex: 1 1 520px; min-width: 0;
  position: relative; display: block; aspect-ratio: 16 / 9;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
}
.video:hover { border-color: var(--buy); }
.video .chart { position: absolute; top: 14%; left: 4%; width: 92%; height: 74%; }
.video-label { position: absolute; top: 14px; left: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--buy-fill); border: 1px solid var(--buy);
}
.video:hover .video-play { background: var(--buy-fill-hover); }

.chart .u { fill: var(--buy); stroke: var(--buy); }
.chart .d { fill: var(--sell); stroke: var(--sell); }
.chart line { stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart rect { stroke: none; }
.chart .lvl { stroke: var(--level); stroke-dasharray: 5 5; }

/* ---------- Подвал ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 24px; margin-top: 32px; }
.footer-brand { max-width: 420px; }
.footer-brand b { font-size: 20px; font-weight: 800; color: var(--strong); }
.footer-brand p { margin-top: 10px; max-width: 340px; font-size: 15px; color: var(--muted-2); }
.footer-col { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.footer-col h2 { margin-bottom: 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.footer-col a { color: var(--soft); text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: var(--strong); }
.disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--faint); }

/* ---------- Страница калькулятора ---------- */

.crumbs { padding-top: 28px; font-size: 14px; color: var(--faint); }
/* Крошки всегда в одну строку (последняя — с многоточием): перенос, зависящий от загрузки шрифта, сдвигал страницу (CLS) */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 8px; white-space: nowrap; }
.crumbs li { flex: 0 0 auto; }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: #555; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--strong); }

.page-head { padding: 28px 0 40px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.08; max-width: 920px; }

.prose { max-width: 760px; padding: 72px 0 96px; }
.prose h2 { margin-top: 56px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 16px; color: var(--soft); }
.prose ul { margin: 16px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.prose strong { color: var(--strong); }
.formula {
  font-family: var(--mono); font-size: 16px; color: var(--strong) !important;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; padding: 16px 18px;
}
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); }
table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: baseline; }
thead th { font-size: 13px; font-weight: 600; color: var(--muted-2); background: var(--surface); }
tbody th { font-weight: 700; color: var(--strong); }
tbody th .faint { display: block; font-weight: 400; font-size: 13px; }
td.num { font-family: var(--mono); color: var(--strong); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.faq { margin-top: 20px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0; font-size: 18px; font-weight: 600; color: var(--strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 15px; font-family: var(--mono); font-size: 22px; color: var(--buy); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; }

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

.center-page {
  min-height: 100vh; padding: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-align: center;
}
.center-title { font-size: 28px; font-weight: 800; color: var(--strong); letter-spacing: -0.02em; }
.center-code { font-size: 64px; font-weight: 700; color: var(--buy); line-height: 1; }
.center-text { color: var(--muted); }

/* ---------- Чек-лист перед входом и правила сессии ---------- */

.tag--system { color: var(--buy); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-3); border-radius: 4px; background: transparent;
  color: var(--soft); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
}
.btn-ghost:hover { color: var(--strong); border-color: #4a4a4a; }
.btn-ghost[aria-pressed="true"] { border-color: var(--buy); color: var(--buy); }

.plan-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start;
  grid-template-areas: "rules rules" "check session" "check calc";
}
.plan-rules { grid-area: rules; }
.plan-check { grid-area: check; }
.plan-session { grid-area: session; }
.plan-calc { grid-area: calc; }
.plan-rules .rule-list:not(.is-editing) { display: block; columns: 2; column-gap: 48px; }
.plan-rules .rule-list:not(.is-editing) li { break-inside: avoid; margin-bottom: 10px; }
@media (max-width: 860px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rules" "check" "session" "calc"; }
  .plan-rules .rule-list:not(.is-editing) { columns: 1; }
}

.check-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px;
}
.check-item input[type="checkbox"] {
  flex: 0 0 auto; width: 22px; height: 22px; margin: 2px 0 0; cursor: pointer; accent-color: var(--buy-fill);
}
.check-item label { cursor: pointer; font-size: 16px; line-height: 1.45; color: var(--soft); }
.check-item:has(input:checked) { border-color: var(--buy-fill); background: var(--buy-tint); }
.check-item:has(input:checked) label { color: var(--strong); }
.check-item .plan-edit-row { flex: 1 1 auto; }

.plan-status {
  margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line-3); border-radius: 4px;
  font-weight: 600; color: var(--muted);
}
.plan-status.is-ok { border-color: var(--buy); background: var(--buy-tint); color: var(--buy); }

.counters { margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.counters div { padding: 12px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; }
.counters dt { font-size: 13px; color: var(--muted-2); }
.counters dd { margin: 4px 0 0; font-family: var(--mono); font-size: 32px; font-weight: 700; line-height: 1.1; color: var(--strong); }
.session-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

.fields--one { grid-template-columns: minmax(0, 1fr); }
.fields--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .fields--three { grid-template-columns: minmax(0, 1fr); } }
.field input::placeholder { color: #6a6a6a; }

.plan-warn { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.plan-warn li { color: var(--warn); }
.plan-warn li.is-ok { color: var(--muted-2); }

.rule-list { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.5; color: var(--strong); }
.rule-list li::marker { color: var(--level); font-family: var(--mono); }
.rule-list.is-editing { padding-left: 0; list-style: none; }

.plan-edit-row { display: flex; gap: 8px; align-items: center; }
.plan-edit-row input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px;
  background: var(--field); border: 1px solid var(--line-3); border-radius: 4px;
  color: var(--strong); font: inherit; font-size: 15px;
}
.plan-edit-row input:focus { border-color: var(--buy); outline: none; }
.plan-edit-add { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

.read-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.read-row .panel-note { margin-top: 0; }

.plan-backup { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.plan-backup .small-note { margin-top: 6px; }
.plan-backup .actions { margin-top: 12px; align-items: center; }
.plan-backup .panel-note { margin-top: 0; }

/* ---------- Торговые сессии по твоему времени ---------- */

.sess { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.sess-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.sess-tz { flex: 1 1 260px; max-width: 420px; }
.field select {
  height: 48px; width: 100%; padding: 0 40px 0 12px;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a8a8a8' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--line-3); border-radius: 4px;
  color: var(--strong); font: inherit; font-size: 16px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.field select:hover { border-color: #4a4a4a; }
.field select:focus { border-color: var(--buy); outline: none; }
.field select:focus-visible { outline: 2px solid var(--buy); outline-offset: 1px; }
.field select option { background: var(--field); color: var(--strong); }

.sess-clock { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.sess-clock-label { font-size: 13px; color: var(--muted-2); }
.sess-clock output {
  font-family: var(--mono); font-size: 52px; font-weight: 700; line-height: 1.05;
  color: var(--buy); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sess-clock-date { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .sess-clock { align-items: flex-start; text-align: left; }
  .sess-clock output { font-size: 44px; }
}

.tl { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.tl-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; }
.tl-label { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-track {
  position: relative; height: 28px;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(12.5% - 1px), var(--line) calc(12.5% - 1px), var(--line) 12.5%);
  border: 1px solid var(--line); border-radius: 3px;
}
.tl-band { position: absolute; top: 4px; bottom: 4px; border-radius: 2px; }
.tl-band--asia { background: var(--level); }
.tl-band--london { background: var(--sell); }
.tl-band--ny { background: var(--buy); }
.tl-band--cme { background: var(--line-3); }
.tl-mark { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 1px; z-index: 1; }
.tl-mark--data { background: var(--warn); }
.tl-mark--fomc { background: var(--crypto); }
.tl-now { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--strong); z-index: 2; }
.tl-row--axis .tl-track { height: 18px; background: none; border: 0; }
.tl-axis span {
  position: absolute; top: 0; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; line-height: 18px; color: var(--faint);
}
.tl-axis span:first-child { transform: none; }
.tl-axis span:last-child { transform: translateX(-100%); }
.tl-legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted-2); }
.tl-legend li { display: flex; align-items: center; gap: 8px; }
.tl-key { display: inline-block; width: 3px; height: 14px; border-radius: 1px; }
.tl-key--data { background: var(--warn); }
.tl-key--fomc { background: var(--crypto); }
.tl-key--now { width: 2px; background: var(--strong); }
@media (max-width: 560px) {
  .tl-row { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
  .tl-label { font-size: 12px; }
  .tl-axis span:nth-child(even) { display: none; }
}

.sess .table-wrap { margin-top: 16px; }
.sess-table { min-width: 0; }
.sess-table th .faint, .sess-table td .faint { display: block; font-weight: 400; font-size: 13px; color: var(--faint); }
.sess-table td.num .faint { font-family: var(--font); }
.sess-table td .faint { margin-top: 2px; }
.sess-t { white-space: nowrap; }
.sess-table tr.is-live th { color: var(--buy); }
.st-live { color: var(--buy); font-weight: 600; }
.sess-table tr.is-now th, .sess-table tr.is-now td { background: var(--buy-tint); }
.sess-table td.is-changed { color: var(--warn); }
@media (max-width: 560px) {
  .sess-table { font-size: 14px; }
  .sess-table th, .sess-table td { padding: 10px; }
  .hide-sm { display: none; }
  /* Ближайшие события на телефоне: название сверху, время и статус под ним */
  .sess-events thead { display: none; }
  .sess-events .sess-table, .sess-events tbody { display: block; }
  .sess-events tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px;
    padding: 12px; border-bottom: 1px solid var(--line);
  }
  .sess-events tr:last-child { border-bottom: 0; }
  .sess-events th { grid-column: 1 / -1; padding: 0 0 8px; border: 0; }
  .sess-events td { padding: 0; border: 0; }
  .sess-events td[data-cell="status"] { text-align: right; }
}

/* Таблица сравнения (SMC и order flow): на телефоне — карточки, у каждой ячейки подпись колонки */
@media (max-width: 560px) {
  .cmp-table thead { display: none; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; }
  .cmp-table tr { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .cmp-table tr:last-child { border-bottom: 0; }
  .cmp-table th, .cmp-table td { padding: 0; border: 0; }
  .cmp-table th { padding-bottom: 6px; }
  .cmp-table td + td { margin-top: 6px; }
  .cmp-table td::before { content: attr(data-label) ': '; font-weight: 600; color: var(--strong); }
}

.prose .table-note { margin-top: 12px; font-size: 14px; color: var(--faint); }
.prose td .faint { font-family: var(--font); font-size: 13px; }

/* ---------- Сессии по киевскому времени ---------- */

.kyiv-now { display: flex; flex-direction: column; align-items: flex-start; }
.kyiv-now-label { font-size: 13px; color: var(--muted-2); }
.kyiv-now output {
  font-family: var(--mono); font-size: 52px; font-weight: 700; line-height: 1.05;
  color: var(--buy); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.kyiv-now-date { font-size: 14px; color: var(--muted); }
.kyiv-now-say { margin-top: 14px; max-width: 640px; min-height: 3.2em; color: var(--soft); }
.kyiv-table { min-width: 0; }
.kyiv-table td.t { font-family: var(--mono); color: var(--strong); white-space: nowrap; }
.kyiv-table td.is-changed { color: var(--warn); }
.kyiv-table td .faint { display: block; margin-top: 2px; }
.kyiv-table .nw { white-space: nowrap; }
.kyiv-table tr.is-now th, .kyiv-table tr.is-now td { background: var(--buy-tint); }
@media (max-width: 560px) {
  .kyiv-now output { font-size: 44px; }
  .kyiv-table { font-size: 14px; }
  .kyiv-table th, .kyiv-table td { padding: 10px 5px; }
  .kyiv-table th:first-child, .kyiv-table td:first-child { padding-left: 10px; }
  /* На телефоне диапазон переносится после тире: 16:30– / 23:00 */
  .kyiv-table td.t { font-size: 13px; white-space: normal; }
}

/* ---------- Полоска для эфира (/overlay/) ----------
   Размеры в vw: полоска масштабируется под ширину окна, которое захватывает LIVE Studio. */

.ov-page, .ov-page body { background: var(--bg); overflow: hidden; }
.ov-page.ov-transparent, .ov-page.ov-transparent body { background: transparent; }
.ov {
  padding: 1.6vw 2.4vw 1.4vw;
  display: flex; flex-direction: column; gap: 1vw;
  background: var(--bg); border-bottom: 0.25vw solid var(--line-2);
}
.ov-transparent .ov { background: rgba(26, 26, 26, 0.88); border-radius: 1vw; border: 0; }
.ov-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.4vw; }
.ov-cell {
  display: flex; flex-direction: column; gap: 0.3vw; min-width: 0; overflow: hidden;
  padding: 1vw 1.6vw; background: var(--surface);
  border: 0.2vw solid var(--line-3); border-radius: 0.8vw;
}
.ov-cell[data-off] { display: none !important; }
.ov-k {
  font-family: var(--font); font-size: 2.1vw; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-v {
  font-family: var(--mono); font-size: 4.6vw; font-weight: 700; line-height: 1.1;
  color: var(--buy); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ov-cell.is-warn { border-color: var(--warn); }
.ov-cell.is-warn .ov-v { color: var(--warn); }
.ov-site { margin: 0; text-align: center; font-size: 2.4vw; line-height: 1.2; color: var(--muted); }
.ov-site b { color: var(--strong); font-weight: 600; }
.ov-site[data-off] { display: none; }

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

.prop-status { margin-bottom: 14px; }
.prop-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 860px) { .prop-tools { grid-template-columns: minmax(0, 1fr); } }
.mt-group { margin-top: 18px; }
.result-main output.is-warn { color: var(--warn); }
.prop-rules { margin-top: 64px; max-width: 980px; }
.prop-rules .table-wrap td:not(.num) { color: var(--soft); }
.prop-rules .small-note a { overflow-wrap: anywhere; }
.pros-cons { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pros-cons h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.pros-cons ul { margin-top: 12px; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: minmax(0, 1fr); } }
.box-title a { color: inherit; text-decoration: none; }
.box-title a:hover { color: var(--buy); }
.box .box-link { font-family: var(--mono); font-size: 14px; text-decoration: none; }
.prop-tools .result-main { flex-wrap: wrap; }
.prop-tools .result-main output { font-size: clamp(36px, 9vw, 52px); }

/* ---------- Калькулятор трейлинг-дродауна ---------- */

.trail-days { margin-top: 28px; }
.trail-head, .trail-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 44px; gap: 8px; align-items: center;
}
.trail.is-cols-3 .trail-head, .trail.is-cols-3 .trail-row {
  grid-template-columns: 28px repeat(3, minmax(0, 1fr)) 44px;
}
.trail.is-cols-2 .trail-head, .trail.is-cols-2 .trail-row {
  grid-template-columns: 28px repeat(2, minmax(0, 1fr)) 44px;
}
.trail-head { margin-top: 10px; font-size: 12px; line-height: 1.3; color: var(--muted-2); }
.trail-rows { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.trail-n { font-family: var(--mono); font-size: 14px; color: var(--faint); text-align: center; }
.trail-row input {
  height: 44px; width: 100%; min-width: 0; padding: 0 10px;
  background: var(--field); border: 1px solid var(--line-3); border-radius: 4px;
  color: var(--strong); font-family: var(--mono); font-size: 16px;
}
.trail-row input:focus { border-color: var(--buy); outline: none; }
.trail-rm {
  height: 44px; border: 1px solid var(--line-3); border-radius: 4px; background: transparent;
  color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.trail-rm:hover { color: var(--warn); border-color: var(--warn); }
.trail .plan-edit-add { margin-top: 10px; }
.trail-table { margin-top: 20px; }
.trail-table tr.is-breach th, .trail-table tr.is-breach td { color: var(--warn); }
.result-rows dd.is-warn { color: var(--warn); }

/* ---------- Калькулятор R:R ---------- */

.rr-verdict { margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.rr-verdict:empty { display: none; }
.rr-verdict.is-ok { color: var(--buy); }
.rr-verdict.is-warn { color: var(--warn); }
.trail .result-main { flex-wrap: wrap; }
.trail .result--big .result-main output { font-size: clamp(36px, 9vw, 64px); }

/* ---------- Глоссарий ---------- */

.gl-group { margin-top: 8px; padding-bottom: 40px; }
.gl-group .h2 { margin-bottom: 20px; }
.gl-term { padding-top: 8px; }
.gl-figure { margin: 0 0 8px; }
.prose .gl-intro { margin: 0 0 24px; font-size: 19px; line-height: 1.55; color: var(--strong); }
.gl-svg { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: var(--radius); }
.gl-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--faint); }
.gl-tool {
  margin-top: 40px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--buy); border-radius: var(--radius);
}
.gl-tool a { font-weight: 600; text-decoration: none; }
.gl-links { list-style: none; padding: 0 !important; flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
.gl-links a {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line-3); border-radius: 999px;
  color: var(--soft); text-decoration: none; font-size: 15px;
}
.gl-links a:hover { border-color: var(--buy); color: var(--buy); }
.gl-all { margin-top: 40px !important; }
.gl-all a { text-decoration: none; }

/* ---------- Пропы: предупреждение и сравнение ---------- */

.prop-warn {
  max-width: 980px; padding: 16px 20px; border: 1px solid var(--warn); border-radius: var(--radius);
  background: rgba(255, 126, 0, 0.07); color: var(--soft); font-size: 16px; line-height: 1.55;
}
.prop-warn strong { color: var(--warn); }
.props-table { min-width: 860px; }
.props-table th a { color: var(--strong); text-decoration: none; }
.props-table th a:hover { color: var(--buy); }
.ua-callout { margin: -16px 0 28px; }
.ua-callout a {
  display: inline-block; padding: 12px 16px; border: 1px solid var(--line-3); border-radius: var(--radius);
  color: var(--strong); text-decoration: none; font-weight: 600;
}
.ua-callout a:hover { border-color: var(--buy); color: var(--buy); }
.prop-warn a { display: inline-block; margin-top: 6px; font-weight: 600; }
.ua-table { min-width: 0; }
.ua-table .faint { display: block; font-weight: 400; font-size: 13px; }

/* ---------- Пропы для трейдеров из Украины ---------- */

.ua-grid { margin: 20px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .ua-grid { grid-template-columns: minmax(0, 1fr); } }
.ua-card { padding: 22px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); }
.ua-card--mine { border-color: var(--buy-fill); background: var(--buy-tint); }
.ua-card h3 { margin-top: 8px; font-size: 22px; font-weight: 800; }
.ua-card h3 a { color: var(--strong); text-decoration: none; }
.ua-card h3 a:hover { color: var(--buy); }
.ua-card p:not(.ua-status):not(.small-note) { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--soft); }
.ua-status { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--buy); }
.ua-card:not(.ua-card--mine) .ua-status { color: var(--crypto); }
.ua-card .small-note { margin-top: 12px; }
.ua-table td .faint { margin-top: 2px; }

/* ---------- Опорная статья «Поток ордеров» ---------- */

.of-callout { margin: -16px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.of-callout--after { margin: 20px 0 0; }
.of-map { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.of-box { padding: 20px; background: var(--surface); border: 1px solid #2c2c2c; border-radius: var(--radius); }
.prose .of-box h3 { margin: 10px 0 0; font-size: 18px; line-height: 1.3; color: var(--strong); }
.prose .of-box p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted-2); }
.prose .of-box ul { margin-top: 12px; padding-left: 0; list-style: none; gap: 8px; }
.of-box a { font-weight: 600; text-decoration: none; }
.prose ol.of-steps { margin: 16px 0 0; padding-left: 24px; display: flex; flex-direction: column; gap: 12px; color: var(--soft); }
.prose ol.of-steps li::marker { color: var(--buy); font-family: var(--mono); font-weight: 700; }
.gl-tool .gl-links { margin-top: 6px; }
.small-note--tight { margin-top: 6px; }

/* ---------- Калькулятор ликвидации ---------- */

.liq .result-main { flex-wrap: wrap; }
.liq .result-main output { font-size: clamp(34px, 8vw, 56px); overflow-wrap: anywhere; }
.liq .result-rows dd { overflow-wrap: anywhere; }
.liq-note { margin-top: 6px; }
.liq .result-rows div.liq-stack { flex-direction: column; gap: 2px; }
.liq .result-rows .liq-stack dd { font-family: var(--font); text-align: left; }
.liq .result-rows dd[data-lout="maxLev"] { white-space: nowrap; }
/* Прибыль и убыток с плечом */
.lev-moves { margin-top: 8px; }
.panel-note.is-warn { color: var(--warn); }
/* Значение переносится только целиком по пробелам, а не посреди числа или слова */
.lev .result-rows dd { overflow-wrap: break-word; }
.lev-table tr.is-liq th, .lev-table tr.is-liq td { color: var(--warn); }
.lev-table td.lev-num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .lev-table { font-size: 13px; }
  .lev-table th, .lev-table td { padding: 8px 6px; }
}

/* ---------- Стоимость пункта NQ/MNQ ---------- */

.spec-short { max-width: 760px; padding: 18px 20px; background: var(--buy-tint); border: 1px solid var(--buy-fill); border-radius: var(--radius); color: var(--soft); font-size: 17px; line-height: 1.55; }
.spec-short strong { color: var(--strong); }
.spec-table { min-width: 0; }
.spec-table td { color: var(--soft); }
@media (max-width: 560px) {
  .spec-table { font-size: 14px; }
  .spec-table th, .spec-table td { padding: 10px 6px; }
  .spec-table th:first-child, .spec-table td:first-child { padding-left: 10px; }
  .spec-table td.num { font-size: 13px; }
}

/* ---------- DeepCharts ---------- */

.dc-table { min-width: 0; }
.dc-table td { color: var(--soft); }
.dc-table th a { color: var(--strong); text-decoration: none; }
.dc-table th a:hover { color: var(--buy); }
.dc-sum { display: block; font-family: var(--mono); font-size: 15px; color: var(--strong); white-space: nowrap; }
.dc-price .faint { display: block; margin-bottom: 8px; font-size: 13px; }
.dc-price .faint:last-child { margin-bottom: 0; }
.dc-features td { text-align: center; color: var(--buy); }
.dc-features tbody tr:first-child th { font-weight: 400; color: var(--soft); }
.prose .dc-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--strong); font-weight: 600; }
@media (max-width: 560px) {
  .dc-table { font-size: 14px; }
  .dc-table th, .dc-table td { padding: 10px 6px; }
  .dc-table th:first-child, .dc-table td:first-child { padding-left: 10px; }
}
a.term { text-decoration: none; color: var(--text); }
a.term:hover { border-color: var(--buy); }
a.term .term-foot { color: var(--buy); }

/* Длинные слова в заголовках («(непротестированный») не должны выталкивать страницу за 360px */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

/* О сайте: текст сразу под заголовком страницы, без большого отступа */
.about-page > h2:first-child { margin-top: 8px; }

/* Дневник сделок */
.jr-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .jr-grid { grid-template-columns: minmax(0, 1fr); } }
.jr-actions { margin-top: 16px; align-items: center; }
.jr-actions .panel-note { margin-top: 0; }
.jr-stats .result-rows dd { overflow-wrap: break-word; }
.jr .result-rows div.jr-stack { flex-direction: column; gap: 2px; }
.jr .result-rows .jr-stack dd { font-family: var(--font); text-align: left; }
.jr-sub { margin: 20px 0 0; font-size: 15px; font-weight: 600; color: var(--strong); }
.jr-stats .table-wrap { margin-top: 10px; }
.jr-list { margin-top: 28px; }
.jr-list .small-note { margin-top: 8px; }
.jr-table td.jr-num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jr-table td.is-pos { color: var(--buy); }
.jr-table td.is-neg { color: var(--warn); }
.jr-table td.jr-act { white-space: nowrap; text-align: right; }
.jr-table { font-size: 14px; }
.jr-table th, .jr-table td { padding: 10px 8px; }
.jr-table .btn-ghost { min-height: 32px; min-width: 32px; padding: 0 8px; font-size: 15px; }
@media (max-width: 560px) {
  .jr-state { font-size: 13px; }
  .jr-state th, .jr-state td { padding: 8px 6px; }
}
@media (max-width: 760px) {
  .jr-table thead { display: none; }
  .jr-table, .jr-table tbody, .jr-table tr, .jr-table th, .jr-table td { display: block; }
  .jr-table tr { padding: 12px; border-bottom: 1px solid var(--line); }
  .jr-table tr:last-child { border-bottom: 0; }
  .jr-table th, .jr-table td { padding: 2px 0; border: 0; }
  .jr-table td.jr-num { white-space: normal; }
  .jr-table td[data-label]::before { content: attr(data-label) ': '; font-family: var(--font); color: var(--muted-2); }
  .jr-table td.jr-act { text-align: left; padding-top: 8px; }
}

/* Экономический календарь */
.cal { margin-top: 8px; }
.cal-next { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--buy-fill); border-radius: var(--radius); background: var(--buy-tint); color: var(--strong); font-weight: 600; }
.cal-table tr.cal-month th { padding-top: 18px; background: var(--surface); color: var(--strong); font-size: 15px; }
.cal-table td strong { color: var(--strong); font-weight: 600; }
.cal-table tr.is-past td { opacity: 0.45; }
.cal-table tr.is-next td { background: var(--buy-tint); }
.cal-table tr.is-shift td.num { color: var(--warn); }
.cal-widget { margin-top: 40px; }
.cal-widget .tradingview-widget-container { margin-top: 12px; min-height: 120px; }


/* Гайд «Как пройти проп-челлендж» */
.guide-sec { scroll-margin-top: 80px; }
.guide-sec .gl-tool { margin-top: 20px; }
.guide-sec > h2:first-child { margin-top: 56px; }
@media (min-width: 561px) { .guide-table th[scope="row"] { width: 30%; } }

/* ---------- Главная: заголовок, «Сейчас», плитки, карусели ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.home-hero h1 { margin-top: 16px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
.home-hero .lead { margin-top: 18px; font-size: 18px; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--muted-2); }
.hero-note strong { color: var(--soft); font-weight: 600; }
@media (max-width: 860px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 32px; }
  .home-hero h1 { margin-top: 10px; font-size: clamp(28px, 8vw, 40px); }
  .home-hero .lead { margin-top: 12px; font-size: 16px; line-height: 1.5; }
  .hero-note { margin-top: 10px; font-size: 14px; }
}

.now { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; }
.now-title { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--buy); }
@media (prefers-reduced-motion: no-preference) {
  .now-dot { animation: now-pulse 2s ease-in-out infinite; }
  @keyframes now-pulse { 50% { opacity: 0.35; } }
}
.now-rows { margin: 10px 0 0; }
.now-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.now-row:first-child { border-top: 0; }
.now-row dt { font-size: 13px; line-height: 1.35; color: var(--muted-2); }
.now-row dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 44px; }
.now-big { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--strong); font-variant-numeric: tabular-nums; }
.now-sub { flex-basis: 100%; font-size: 13px; line-height: 1.35; color: var(--muted-2); }
.now-count { flex-basis: 100%; font-size: 13px; line-height: 1.35; color: var(--buy); font-variant-numeric: tabular-nums; }
/* Строки зарезервированы заранее: JS заполняет их без сдвига вёрстки (CLS) */
.now-sub, .now-count { min-height: 1.35em; }
.now-status { color: var(--muted); }
.now.is-open .now-status { color: var(--buy); }
.now-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.now-foot span { flex: 1 1 100%; }
.now-foot a { text-decoration: none; }

.section--tight { padding: 48px 0; }
@media (max-width: 640px) { .section--tight { padding: 28px 0; } }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rail-head h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; }
.rail-head a { font-size: 15px; text-decoration: none; white-space: nowrap; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tile {
  display: flex; flex-direction: column; gap: 10px; min-height: 96px; padding: 14px;
  background: var(--surface); border: 1px solid #2c2c2c; border-radius: 10px;
  color: var(--strong); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.25;
}
.tile:hover { border-color: var(--buy); color: var(--strong); }
.tile svg { flex: 0 0 auto; }
.tile--futures svg, .tile--system svg { color: var(--buy); }
.tile--prop svg { color: var(--sell-text); }
.tile--risk svg, .tile--time svg { color: var(--level); }
.tile--crypto svg { color: var(--crypto); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { flex-direction: row; align-items: center; min-height: 56px; padding: 10px 12px; font-size: 14px; }
}

.rail { position: relative; }
.rail-track {
  list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 10px;
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  overscroll-behavior-x: contain; scrollbar-width: thin;
}
.rail-track:focus-visible { outline-offset: -2px; }
.rail-track > li { flex: 0 0 min(76%, 270px); scroll-snap-align: start; display: flex; }
.rail-card {
  flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; min-height: 136px; padding: 16px;
  background: var(--surface); border: 1px solid #2c2c2c; border-radius: 10px; color: var(--text); text-decoration: none;
}
.section--alt .rail-card { background: var(--bg); }
a.rail-card:hover { border-color: var(--buy); color: var(--text); }
.rail-name { font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--strong); }
.rail-text { font-size: 14px; line-height: 1.45; color: var(--muted-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rail-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.rail-tag--on { color: var(--buy); }
.rail-foot { margin-top: auto; font-family: var(--mono); font-size: 13px; color: var(--buy); }
.rail-card--soon .rail-foot { color: var(--faint); }
.rail-card--all, .rail-card--guide { justify-content: center; }
.rail-card--all .rail-name { color: var(--buy); }
.rail-card--guide { border-color: var(--line-3); }
.rail-card--guide .rail-text { -webkit-line-clamp: 5; color: var(--soft); }
.rail-btn {
  position: absolute; top: calc(50% - 26px); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-3); border-radius: 50%; background: rgba(22, 22, 22, 0.92); color: var(--strong); font-size: 24px; line-height: 1; cursor: pointer;
}
.rail-btn:hover { border-color: var(--buy); }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.rail-btn--prev { left: -12px; }
.rail-btn--next { right: -12px; }

.fold { margin-top: 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg-deep); }
.fold > summary { cursor: pointer; padding: 12px 16px; min-height: 48px; display: flex; align-items: center; gap: 10px; color: var(--soft); font-size: 15px; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: '+'; margin-left: auto; font-family: var(--mono); color: var(--faint); }
.fold[open] > summary::after { content: '−'; }
.fold > :not(summary) { margin: 0 16px 12px; font-size: 15px; color: var(--muted); }
.fold > ul, .fold > ol { padding-left: 20px; }
.fold li { margin: 6px 0; }
.fold h3 { margin-top: 16px; font-size: 16px; }
.fold .tape { margin: 0 0 12px; border: 0; background: none; }
.fold .tape ul { padding: 0; }
.home-end { padding-top: 20px; padding-bottom: 32px; }
.soon-line > summary { white-space: nowrap; overflow: hidden; }
.soon-line .soon-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- Графики калькуляторов (инлайн-SVG из site.js → chartFor) ---------- */
.calc-chart { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.chart { height: 230px; }
.ch { display: block; max-width: none; }
.ch-grid { stroke: var(--line-2); stroke-width: 1; }
.ch-zero { stroke: #4a4a4a; }
.ch-ax { fill: var(--faint); font-family: var(--mono); font-size: 11px; }
.ch-lab { font-family: var(--font); font-size: 12px; font-weight: 600; }
.ch-bal { fill: none; stroke: var(--buy); stroke-width: 2; stroke-linejoin: round; }
.ch-bal-dot { fill: var(--buy); }
.ch-line { fill: none; stroke: var(--warn); stroke-width: 2; stroke-dasharray: 6 4; }
.ch-breach { fill: var(--warn); stroke: var(--bg); stroke-width: 2; }
.ch-breach-t, .ch-limit-t, .ch-v-liq-t { fill: var(--warn); }
.ch-bar { fill: var(--buy); }
.ch-bar-neg { fill: var(--sell); }
.ch-bar-over { fill: var(--warn); }
.ch-limit { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 6 4; }
.ch-sim { fill: none; stroke-width: 1.2; stroke-linejoin: round; opacity: 0.6; }
.ch-sim--up { stroke: var(--buy); }
.ch-sim--down { stroke: var(--sell-text); }
.ch-ev { fill: none; stroke: var(--strong); stroke-width: 2; stroke-dasharray: 7 5; }
.ch-pnl { fill: none; stroke: var(--level); stroke-width: 2.2; stroke-linejoin: round; }
.ch-v, .ch-v-tp, .ch-v-sl, .ch-v-liq { stroke-width: 1.2; stroke-dasharray: 3 3; }
.ch-v { stroke: var(--soft); }
.ch-v-t { fill: var(--soft); }
.ch-v-tp { stroke: var(--buy); }
.ch-v-tp-t, .ch-dot-tp-t { fill: var(--buy); }
.ch-v-sl { stroke: var(--sell-text); }
.ch-v-sl-t, .ch-dot-sl-t { fill: var(--sell-text); }
.ch-v-liq { stroke: var(--warn); }
.ch-dot-tp { fill: var(--buy); }
.ch-dot-sl { fill: var(--sell-text); }
.chart-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chart-title { font-size: 15px; font-weight: 700; color: var(--strong); }
.calc-chart figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted-2); }
.calc-chart > .chart-legend { margin-top: 8px; }
.lg::before { content: ''; display: inline-block; width: 16px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; background: var(--lg, currentColor); }
.lg--bal, .lg--bar, .lg--up { --lg: var(--buy); }
.lg--line, .lg--limit { --lg: repeating-linear-gradient(90deg, var(--warn) 0 5px, transparent 5px 8px); }
.lg--breach::before, .lg--over::before { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); }
.lg--down { --lg: var(--sell-text); }
.lg--ev { --lg: repeating-linear-gradient(90deg, var(--strong) 0 6px, transparent 6px 9px); }
.lg--pnl { --lg: var(--level); }
.chart-note { font-size: 13px; line-height: 1.45; color: var(--faint); }
.chart-note[data-rr-sum] { color: var(--soft); }
.calc-chart figcaption.chart-legend { flex-direction: row; }
.ch-lab { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.chart-note[data-rr-sum] { min-height: 1.45em; }

/* ---------- Интерактивный стакан (/order-flow/, src/dom-play.mjs) ---------- */
.dom-play { margin: 48px 0; padding: 22px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; }
.prose .dom-play h2 { margin-top: 0; }
.prose .dom-play > p { margin-top: 10px; }
.dom-wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); grid-template-areas: "book btns" "book info"; gap: 16px 24px; margin-top: 18px; align-items: start; }
.dom-btns { grid-area: btns; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dom-btns .btn { min-height: 44px; padding: 0 10px; font-size: 14px; }
.dom-btns .btn-ghost { grid-column: 1 / -1; min-height: 40px; }
.dom-book { grid-area: book; margin: 0; }
.dom-info { grid-area: info; }
.dom-play .dom-table { width: 100%; min-width: 0; margin: 0; border-collapse: collapse; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.dom-play .dom-table thead th { padding: 6px 8px; border: 0; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--faint); text-align: center; background: none; }
.dom-play .dom-table td, .dom-play .dom-table tbody th { height: 30px; padding: 4px 10px; border: 0; border-top: 1px solid var(--line); }
.dom-play .dom-table tbody th { width: 34%; text-align: center; font-weight: 500; color: var(--soft); background: var(--bg); }
.dom-play .dom-b { text-align: right; color: var(--buy); background: linear-gradient(to left, rgba(102, 228, 102, 0.18) var(--w), transparent var(--w)); }
.dom-play .dom-a { text-align: left; color: var(--sell-text); background: linear-gradient(to right, rgba(160, 123, 193, 0.24) var(--w), transparent var(--w)); }
.dom-play .dom-table tr.is-last th { color: var(--strong); background: var(--field); box-shadow: inset 3px 0 0 var(--level); }
.dom-play .dom-table tr.is-hit th { color: var(--warn); }
@media (prefers-reduced-motion: no-preference) {
  .dom-play .dom-table tr.is-hit td { animation: dom-hit 0.7s ease-out; }
  @keyframes dom-hit { from { box-shadow: inset 0 0 0 99px rgba(255, 126, 0, 0.28); } }
}
.dom-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.dom-stats dt { font-size: 12px; color: var(--faint); }
.dom-stats dd { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--strong); }
.prose .dom-log { margin-top: 14px; min-height: 4.6em; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) {
  .dom-play { padding: 16px; margin-left: calc(-1 * var(--gutter) / 2); margin-right: calc(-1 * var(--gutter) / 2); }
  .dom-wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "btns" "book" "info"; }
}

/* ---------- Длинные статьи: «Коротко», «Содержание», «Наверх» (src/article-tools.mjs) ---------- */
.article-top { margin-bottom: 28px; }
.article-top .tldr { margin: 0 0 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--level); border-radius: var(--radius); }
.article-top .tldr ul { margin: 8px 0 0; padding-left: 20px; display: block; }
.article-top .tldr li { margin: 4px 0; font-size: 16px; line-height: 1.5; color: var(--soft); }
.toc { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-deep); }
.toc > summary { display: flex; align-items: center; min-height: 46px; padding: 10px 16px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--strong); }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: '+'; margin-left: auto; font-family: var(--mono); color: var(--faint); }
.toc[open] > summary::after { content: '−'; }
.article-top .toc ol { margin: 0; padding: 0 16px 12px 38px; }
.article-top .toc li { margin: 5px 0; font-size: 15px; line-height: 1.4; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc--mob { display: none; }
@media (max-width: 860px) {
  .toc--desk { display: none; }
  .toc--mob { display: block; }
}
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 15; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line-3); border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: var(--strong); font-size: 14px; text-decoration: none;
}
.to-top:hover { border-color: var(--buy); color: var(--strong); }
@media (max-width: 1000px) {
  .to-top { right: 12px; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom, 0px)); padding: 0 14px; }
}

/* ---------- Партнёрский блок (IQ Capital) ---------- */
.aff-box { margin: 20px 0 28px; padding: 18px 20px; border: 1px solid #2c2c2c; border-left: 3px solid var(--buy); border-radius: var(--radius); background: var(--surface); }
.aff-title { margin: 0; font-weight: 700; color: var(--strong); font-size: 17px; }
.aff-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.aff-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-top: 0; padding-bottom: 0; }
.aff-coupon { color: var(--soft); }
.aff-coupon code { font-family: var(--mono); font-weight: 700; color: var(--buy); letter-spacing: .04em; }
.aff-copy { margin-left: 6px; padding: 4px 10px; font: inherit; font-size: 13px; color: var(--soft); background: transparent; border: 1px solid #3a3a3a; border-radius: 6px; cursor: pointer; }
.aff-copy:hover { color: var(--strong); border-color: var(--buy); }
.aff-note { margin: 10px 0 0; font-size: 13px; color: var(--muted-2); }

/* ---------- Короткие видео YouTube на главной ---------- */
#rail-vid > li { flex: 0 0 min(46%, 220px); }
.yt-short { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 1px solid #2c2c2c; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; }
.yt-short img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-short iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0,0,0,.6); border: 2px solid #fff; }
.yt-play::after { content: ''; position: absolute; left: 22px; top: 16px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.yt-short:hover .yt-play { background: var(--buy-fill); border-color: var(--buy-fill); }
