@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-20C0, 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-20C0, 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-20C0, 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-20C0, 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-20C0, 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-20C0, 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-20C0, 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-20C0, 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; }

.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { color: var(--soft); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: var(--strong); }

.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); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0;
  border: 1px solid var(--line-3); border-radius: 4px;
  font-size: 15px; color: var(--text);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--buy); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  display: flex; flex-direction: column; 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);
}
.menu-panel a { color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: 4px; }
.menu-panel a:hover { background: var(--field); color: var(--strong); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .header-tools { gap: 10px; }
  .header-inner { gap: 16px; }
}

@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; }

.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: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-brand { flex: 1 1 280px; }
.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); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.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; }
