/* Станция·Ветер — визуальный язык Капсулы-Дрейфа и «Миррико» (ai-teams.ru/mirriko):
   тёмная «рубка», данные — акцент. */

:root {
  color-scheme: dark;

  --bg:        #06101a;
  --bg-2:      #0a1723;
  --surface:   #0f1a26;
  --surface-2: #142433;
  --surface-3: #1a2e40;
  --line:      #1c2c3d;
  --line-2:    #294056;

  --ink:   #eaf1f8;
  --ink-2: #9fb2c4;
  --ink-3: #6b8094;

  --accent: #ff9f45;

  --s1: #3987e5;  /* модель */
  --s2: #d95926;  /* факт: буи */
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --ice: #7fd3ff;

  --good:    #0ca30c;
  --warning: #fab219;
  --crit:    #d03b3b;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r: 10px;
  --pad: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
button { font-family: inherit; font-size: inherit; color: inherit; }

.wrap { max-width: 1420px; margin: 0 auto; padding: 0 24px; }

/* ── полоса-предупреждение ─────────────────────────────────────────── */
.demobar {
  background: linear-gradient(90deg, #3a2410, #2a1d10 60%, #16202b);
  border-bottom: 1px solid #4a3016;
  font-size: 12.5px;
  color: #ffcf9c;
}
.demobar .wrap { display: flex; gap: 10px; align-items: center; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.demobar b { color: #ffd9ae; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.demobar span { color: #d7b391; }
.demobar .demoright { margin-left: auto; opacity: .8; }

/* ── шапка ─────────────────────────────────────────────────────────── */
header.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(6, 16, 26, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand .mark { font-weight: 800; font-size: 17px; letter-spacing: .16em; }
.brand .mark i { font-style: normal; color: var(--accent); }
.brand .sub { font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.livechip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 100px; padding: 3px 11px 3px 9px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.livechip.local { color: var(--accent); border-color: rgba(255,159,69,.45); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(12,163,12,.6); } 70% { box-shadow: 0 0 0 7px rgba(12,163,12,0); } 100% { box-shadow: 0 0 0 0 rgba(12,163,12,0); } }
.top .spacer { flex: 1; }

/* ── вкладки ───────────────────────────────────────────────────────── */
nav.tabs { border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 60px; z-index: 55; }
nav.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.tabs .wrap::-webkit-scrollbar { display: none; }
nav.tabs button {
  background: none; border: 0; cursor: pointer; white-space: nowrap;
  padding: 13px 14px 11px; font-size: 13.5px; font-weight: 550; color: var(--ink-3);
  border-bottom: 2px solid transparent;
}
nav.tabs button:hover { color: var(--ink-2); }
nav.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ── общие блоки ───────────────────────────────────────────────────── */
main { padding: 26px 0 50px; }
.panel { display: none; }
.panel.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--pad); position: relative; min-width: 0;
}
.card + .card, .row + .row, .row + .card, .card + .row { margin-top: 16px; }
.card > h2, .chead h2 { font-size: 21px; letter-spacing: -0.02em; }
.chead { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.chead .spacer { flex: 1; }
.chead p.desc { flex-basis: 100%; margin-top: 2px; color: var(--ink-2); font-size: 13px; max-width: 96ch; }
.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 7px;
}
.note { color: var(--ink-3); font-size: 12px; margin-top: 10px; }

.row { display: grid; gap: 16px; }
.row > * { min-width: 0; }
.row.c2 { grid-template-columns: 1fr 1fr; }
.row.start { align-items: start; }
.row.map2 { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); align-items: start; }
.side .card + .card { margin-top: 12px; }
.side .card { padding: 16px; }

/* ── герой ─────────────────────────────────────────────────────────── */
.hero {
  margin-bottom: 18px;
  display: grid; gap: 24px; align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.hero.single { display: block; }
.hero h1 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.03em; max-width: 24ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--ink-2); font-size: 16px; margin-top: 10px; max-width: 70ch; }
.answer { border-color: rgba(255,159,69,.35); background: linear-gradient(160deg, #1a1a1a00, rgba(255,159,69,.06)), var(--surface); }
.answer .q { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.answer .a { font-size: 17px; margin-top: 6px; line-height: 1.45; }
.answer .a b { color: var(--accent); }
.answer .s { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }

/* ── плитки ────────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 0 0 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; min-width: 0; }
.tile .k { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; line-height: 1.35; min-height: 30px; }
.tile .v { font-size: 25px; font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .v small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.tile .n { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.tile.hi .v { color: var(--accent); }

/* ── чипы и кнопки ─────────────────────────────────────────────────── */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button, .layers button, .dl button {
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; cursor: pointer;
  padding: 5px 10px; font-size: 12.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.chips button:hover, .layers button:hover, .dl button:hover { color: var(--ink); }
.chips button[aria-pressed="true"] { color: #06101a; background: var(--accent); border-color: var(--accent); font-weight: 650; }
.chips button .tag { font-size: 10px; opacity: .75; }
.layers button[aria-pressed="true"] { color: var(--ink); background: var(--surface-3); }
.layers button i { width: 10px; height: 3px; border-radius: 2px; background: currentColor; display: block; opacity: .5; }
.layers button[aria-pressed="true"] i { opacity: 1; }
.dl { display: flex; gap: 8px; flex-wrap: wrap; }
.dl button { padding: 8px 14px; font-size: 13px; }

/* ── карта ─────────────────────────────────────────────────────────── */
.mapbox { position: relative; }
.mapbox svg { display: block; width: 100%; height: auto; border-radius: 8px; background: #071726; touch-action: manipulation; }
.mapbox.mini svg { max-width: 380px; margin: 0 auto; }
.mapbox .land { fill: #1d2a35; stroke: #2c3d4c; stroke-width: 6; }
.mapbox .grat { fill: none; stroke: #16324a; stroke-width: 5; }
.mapbox .gratlbl { fill: #3e5a72; font-size: 52px; font-family: var(--sans); }
.mapbox .ice { fill: none; stroke: var(--ice); stroke-width: 10; stroke-opacity: .55; stroke-dasharray: 26 18; }
.mapbox .icefill { fill: var(--ice); fill-opacity: .05; }
.mapbox .trk { fill: none; stroke: var(--s1); stroke-width: 7; stroke-opacity: .32; stroke-linejoin: round; }
.mapbox .trk.hov { stroke: var(--accent); stroke-opacity: 1; stroke-width: 16; }
.mapbox .med { fill: none; stroke: #fff; stroke-width: 16; stroke-linejoin: round; }
.mapbox .medd { fill: #fff; }
.mapbox .z90 { fill: var(--accent); fill-opacity: .2; }
.mapbox .z50 { fill: var(--accent); fill-opacity: .62; }
.mapbox .pt { fill: #06101a; stroke: var(--ink-3); stroke-width: 9; cursor: pointer; }
.mapbox .pt:hover { stroke: var(--ink); }
.mapbox .pt.on { fill: var(--accent); stroke: #fff; stroke-width: 12; }
.mapbox .fram { stroke: var(--accent); stroke-width: 8; stroke-dasharray: 30 20; }
.mapbox .lbl { fill: var(--ink-3); font-size: 58px; font-family: var(--sans); }
.mapbox .lbl.acc { fill: var(--accent); font-weight: 650; }
.mapbox .custom { fill: var(--good); stroke: #fff; stroke-width: 10; }
.maplegend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.maplegend .it { display: flex; align-items: center; gap: 7px; }
.swatch { width: 16px; height: 3px; border-radius: 2px; flex: none; }
.swatch.box { width: 12px; height: 10px; border-radius: 2px; }
.swatch.dash { background: repeating-linear-gradient(90deg, var(--ice) 0 5px, transparent 5px 8px) !important; }

.slider { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.slider input { flex: 1; accent-color: var(--accent); }
.slider .play {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2);
  cursor: pointer; color: var(--accent); font-size: 12px; flex: none;
}
.slider .mlabel { min-width: 150px; text-align: right; font-variant-numeric: tabular-nums; }
.slider .mlabel b { display: block; font-size: 15px; }
.slider .mlabel span { font-size: 11.5px; color: var(--ink-3); }

.maptip {
  position: fixed; pointer-events: none; opacity: 0; transition: opacity .12s;
  background: #0b1a28; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px;
  font-size: 12px; box-shadow: 0 8px 26px rgba(0,0,0,.55); z-index: 100; min-width: 170px;
}
.maptip.on { opacity: 1; }
.maptip .t { font-weight: 650; margin-bottom: 4px; font-size: 12.5px; }
.maptip dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-variant-numeric: tabular-nums; }
.maptip dt { color: var(--ink-3); }
.maptip dd { margin: 0; text-align: right; }

/* ── полосы сценариев ──────────────────────────────────────────────── */
.bars { display: grid; gap: 8px; }
.brow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; }
.brow .v { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.brow .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.brow .bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.brow.minor .bar i { background: var(--s1); }

/* ── таблицы ───────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl td b { color: var(--accent); font-weight: 650; }
.tbl tr:last-child td { border-bottom: 0; }

.ytable { max-height: 430px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.ytable table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ytable th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-weight: 600; color: var(--ink-3); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; padding: 6px 9px; }
.ytable td { padding: 5px 9px; border-top: 1px solid var(--line); }
.ytable tr { cursor: pointer; }
.ytable tr:hover td, .ytable tr.hov td { background: var(--surface-2); }
.ytable tr.off td { opacity: .35; }
.ph { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); }
.ph.positive { color: #ffb37a; border-color: rgba(255,159,69,.4); }
.ph.negative { color: #8cc4ff; border-color: rgba(57,135,229,.5); }

/* ── сравнение ─────────────────────────────────────────────────────── */
.cmpwrap { overflow-x: auto; }
.cmp { border-collapse: separate; border-spacing: 3px; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 900px; width: 100%; }
.cmp th { color: var(--ink-3); font-weight: 600; font-size: 11px; padding: 4px; text-align: center; white-space: nowrap; }
.cmp th.rh { text-align: right; padding-right: 10px; color: var(--ink-2); }
.cmp td { text-align: center; padding: 7px 4px; border-radius: 6px; cursor: pointer; line-height: 1.25; border: 1px solid transparent; }
.cmp td:hover { border-color: #fff; }
.cmp td b { display: block; font-size: 13px; font-weight: 650; }
.cmp td span { font-size: 10.5px; opacity: .8; }
.cmp td.sel { border-color: var(--accent); }
.facts { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.facts li + li { margin-top: 8px; }
.facts b { color: var(--ink); }

/* ── проверка ──────────────────────────────────────────────────────── */
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--sans); }
.chart .axis { stroke: var(--line-2); }

/* ── текст ─────────────────────────────────────────────────────────── */
.prose h2 { font-size: 16px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 14px; }
.prose p + p { margin-top: 8px; }
.prose ol, .prose ul { padding-left: 20px; margin: 8px 0 0; }
.prose li + li { margin-top: 6px; }
.prose b { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 12px; color: #8fd8bd; }

footer { border-top: 1px solid var(--line); padding: 18px 0 30px; font-size: 12px; color: var(--ink-3); }
footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .row.map2 { grid-template-columns: 1fr; }
  .side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .side .card + .card { margin-top: 0; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; }
  .row.c2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .side { grid-template-columns: 1fr; }
  .brand .sub, #chip-mode { display: none; }
  .slider .mlabel { min-width: 110px; }
}

/* ── цель и вылов ──────────────────────────────────────────────────── */
.howlink { font-size: 13px; font-weight: 600; }
.goalgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.goalset .lbl2 { font-size: 11.5px; color: var(--ink-3); margin: 12px 0 6px; }
.goalset .lbl2:first-child { margin-top: 0; }
.dates2 { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.dates2 input { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; color: var(--ink); padding: 5px 8px; font: inherit; color-scheme: dark; }
.gbar { display: flex; height: 30px; border-radius: 7px; overflow: hidden; background: var(--surface-3); }
.gbar i { display: block; height: 100%; position: relative; }
.gbar i span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-style: normal; font-weight: 700; color: #06101a; white-space: nowrap; overflow: hidden; }
.gnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.gnum { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface-2); }
.gnum .k { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.gnum .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gnum .n { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }
.gnum.ok .v { color: #4cc94c; } .gnum.q .v { color: var(--warning); } .gnum.no .v { color: #ec6a5a; }
.verdict { margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.verdict b { color: var(--ink); }
.pickgrid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.zsw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.tbl td.sub { color: var(--ink-3); font-size: 11.5px; }
.mapbox .ex { stroke: #06101a; stroke-width: 4; fill-opacity: .9; }
.ytable td a { font-size: 11.5px; white-space: nowrap; }
@media (max-width: 1100px) { .goalgrid, .pickgrid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .gnums { grid-template-columns: 1fr; } }

/* ── разбор маршрута ───────────────────────────────────────────────── */
.tsel .tselrow { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.lbl2 { font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px; }
.sel { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; color: var(--ink); padding: 6px 10px; font: inherit; font-size: 13px; min-width: 180px; color-scheme: dark; }
.btnlink { display: inline-block; border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 12px; font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.stepper button { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; cursor: pointer; padding: 6px 10px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stepper button:hover { color: var(--ink); }
.stepper .play { width: 38px; color: var(--accent); }
.stepper input { flex: 1; min-width: 160px; accent-color: var(--accent); }
.stepper .daylbl { min-width: 120px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink-2); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.kv dt, .kv .k { color: var(--ink-3); }
.kv .v { text-align: right; }
.kv .v b { color: var(--accent); }
.stept { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; margin-top: 6px; }
.stept th { text-align: left; color: var(--ink-3); font-weight: 600; font-size: 10.5px; text-transform: uppercase; padding: 4px 5px; border-bottom: 1px solid var(--line-2); }
.stept td { padding: 5px; border-bottom: 1px solid var(--line); }
.stept td.num { text-align: right; }
.q0 { color: #4cc94c; } .q1 { color: var(--warning); } .q2 { color: #ec6a5a; } .q3 { color: var(--ink-3); }
.formula { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
.formula b { color: var(--ink); }
.formula .acc { color: var(--accent); font-weight: 650; }
.events { display: grid; gap: 6px; font-size: 13px; }
.events button { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; cursor: pointer; color: var(--ink-2); display: flex; justify-content: space-between; gap: 10px; }
.events button:hover { color: var(--ink); border-color: var(--line-2); }
.events button b { color: var(--ink); font-weight: 600; }
.tchart svg { cursor: crosshair; }
.mapbox svg.near .lbl { font-size: 26px; }
.mapbox svg.near .gratlbl { font-size: 24px; }
.mapbox svg.near .land { stroke-width: 2.5; }
.mapbox svg.near .grat { stroke-width: 2; }
.mapbox svg.near .fram { stroke-width: 4; }
.mapbox .arw { stroke: #eaf1f8; stroke-opacity: .85; fill: none; }
.mapbox .arw.hot { stroke: var(--accent); stroke-opacity: 1; }
.mapbox .corner { fill: none; stroke: #fff; stroke-dasharray: 6 4; }
.mapbox .trkpast { fill: none; stroke: var(--accent); stroke-linejoin: round; }
.mapbox .trkfut { fill: none; stroke: var(--accent); stroke-opacity: .45; stroke-dasharray: 8 8; }
.mapbox .trkoth { fill: none; stroke: var(--s1); stroke-opacity: .25; }
.mapbox .cap { fill: var(--accent); stroke: #fff; }
.mapbox .pred { fill: none; stroke: #fff; stroke-dasharray: 3 3; }

/* ── статья «как устроено» ─────────────────────────────────────────── */
.art { max-width: 1180px; }
.ahero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 22px; }
.ahero h1 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; }
.ahero h1 em { font-style: normal; color: var(--accent); }
.ahero .lead { color: var(--ink-2); font-size: 16px; margin-top: 12px; }
.aimg { margin: 0; }
.aimg img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line-2); }
.aimg figcaption { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.ktiles { grid-template-columns: repeat(3, 1fr); margin: 18px 0 0; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 26px; }
.toc a { font-size: 12.5px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 100px; padding: 4px 11px; }
.toc a:hover { color: var(--ink); text-decoration: none; border-color: var(--ink-3); }
.asec { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 26px 0; border-top: 1px solid var(--line); }
.asec .num { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -.03em; }
.asec h2 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; margin-bottom: 12px; }
.asec h3 { font-size: 16px; margin: 22px 0 10px; }
.asec p, .asec li { color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 80ch; }
.asec p + p { margin-top: 10px; }
.asec ul, .asec ol { padding-left: 20px; margin: 8px 0 10px; }
.asec b { color: var(--ink); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 16px; }
.qcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.qcard b { font-size: 15.5px; }
.qcard p { font-size: 13.5px !important; margin-top: 6px; }
.qcard.link:hover { border-color: var(--accent); text-decoration: none; }
.horizons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 14px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.hz { padding: 16px; background: var(--surface); position: relative; }
.hz + .hz { border-left: 1px solid var(--line-2); }
.hz .h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.hz .w { font-size: 24px; font-weight: 700; margin: 2px 0 6px; }
.hz p { font-size: 13.5px !important; }
.hz.on { background: linear-gradient(160deg, rgba(255,159,69,.12), transparent), var(--surface); }
.hz.on .w { color: var(--accent); }
.twocol { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.aimg.small img { aspect-ratio: 16/10; object-fit: cover; }
.twomaps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.fig { margin: 0; }
.fig figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
.facts.big li { font-size: 15.5px; color: var(--ink-2); }
.facts.big li + li { margin-top: 10px; }
.vtiles { grid-template-columns: repeat(2, 1fr); }
.zbar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.zbar i { display: block; height: 100%; }
.zlist { display: grid; gap: 6px; font-size: 13.5px; }
.zlist div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; color: var(--ink-2); }
.zlist b { color: var(--ink); font-variant-numeric: tabular-nums; }
.zlist span.d { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.grow { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 13.5px; }
.grow .t { color: var(--ink-2); }
.grow .t small { display: block; color: var(--ink-3); font-size: 11.5px; }
@media (max-width: 900px) {
  .ahero, .twocol, .twomaps { grid-template-columns: 1fr; }
  .three, .steps3, .horizons { grid-template-columns: 1fr; }
  .hz + .hz { border-left: 0; border-top: 1px solid var(--line-2); }
  .asec { grid-template-columns: 1fr; }
  .grow { grid-template-columns: 1fr; }
}
nav.tabs a.navlink { white-space: nowrap; padding: 13px 14px 11px; font-size: 13.5px; font-weight: 550; color: var(--accent); }
.cmp { table-layout: fixed; }
.cmp th:first-child { width: 64px; }

/* ── пульт слежения ────────────────────────────────────────────────── */
.alerts { display: grid; gap: 8px; }
.al { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; font-size: 13px; color: var(--ink-2); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.al b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; color: #06101a; }
.al.ok b { background: #4cc94c; } .al.info b { background: var(--s1); color: #fff; } .al.warn b { background: var(--warning); } .al.crit b { background: var(--crit); color: #fff; }
.links { display: grid; gap: 6px; }
.links a { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.links a:hover { border-color: var(--accent); text-decoration: none; }
.links a b { display: block; font-size: 13px; }
.links a span { font-size: 11.5px; color: var(--ink-3); }
.srcs td { font-size: 12.5px; color: var(--ink-2); }
.srcs { min-width: 900px; }
.lvltag { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255,159,69,.35); background: rgba(255,159,69,.08); border-radius: 4px; padding: 2px 6px; white-space: nowrap; }

/* ══════════════ Станция·Ветер ══════════════ */
:root { --w: #3987e5; --e: #ff9f45; --ne: #d55181; --o: #6b8094; --snow: #cfe9ff; }
.rosebox svg { display: block; width: 100%; height: auto; }
.rosebox text, .plan text { font-family: var(--sans); }
.legend-speed { display: flex; gap: 0; border-radius: 6px; overflow: hidden; height: 10px; margin-top: 6px; }
.legend-speed i { flex: 1; }
.lsp { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
.rose2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.srcchips button i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* розы по годам */
.ygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ycell { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 4px; cursor: pointer; text-align: center; color: inherit; text-decoration: none; display: block; }
.ycell:hover { border-color: var(--accent); text-decoration: none; }
.ycell b { font-size: 13px; font-variant-numeric: tabular-nums; }
.ycell span { display: block; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ycell span.bad { color: #ec6a5a; }
.ycell.part { border-style: dashed; }

/* модуль-симулятор */
.simgrid { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }
.simread { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.simread .gnum .v { font-size: 22px; }
.axisctl { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.axisctl input[type=range] { flex: 1; accent-color: var(--accent); }
.axisctl b { font-size: 20px; font-variant-numeric: tabular-nums; min-width: 92px; }
.decis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.decis .gnum .v { font-size: 18px; letter-spacing: -.01em; }

/* год: календарь */
.cal svg { display: block; width: 100%; height: auto; }
.cal .day { cursor: pointer; }
.cal .day:hover rect.bg { stroke: #fff; stroke-width: 1.5; }
.cal .day.on rect.bg { stroke: var(--accent); stroke-width: 2.2; }
.cal text { font-family: var(--sans); fill: var(--ink-3); font-size: 11px; }
.ysel { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.ysel .yr { display: flex; align-items: center; gap: 6px; }
.ysel .yr button { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; cursor: pointer; padding: 6px 10px; color: var(--ink-2); }
.ysel .yr select { min-width: 110px; font-size: 15px; font-weight: 650; }
.ysel .chips button:disabled { opacity: .35; cursor: not-allowed; }

/* год: проигрыватель */
.player { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.plan svg { display: block; width: 100%; height: auto; border-radius: 10px; background: radial-gradient(circle at 50% 50%, #0d2133, #071726 70%); }
.now { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.now .gnum .v { font-size: 22px; }
.now .gnum .v small { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; min-height: 26px; }
.flag { font-size: 12px; border-radius: 100px; padding: 3px 10px; border: 1px solid var(--line-2); color: var(--ink-3); }
.flag.on { color: #06101a; font-weight: 650; }
.flag.on.storm { background: var(--e); border-color: var(--e); }
.flag.on.ext { background: #e5484d; border-color: #e5484d; color: #fff; }
.flag.on.blow { background: var(--snow); border-color: var(--snow); }
.flag.on.gen { background: var(--warning); border-color: var(--warning); }
.flag.on.ne { background: var(--ne); border-color: var(--ne); color: #fff; }
.speedsel { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.speedsel span { font-size: 12px; color: var(--ink-3); }
.ptime { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ptime small { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.mroses { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.mroses .mr { text-align: center; }
.mroses .mr b { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.mroses .mr span { display: block; font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.storms tr { cursor: pointer; }
.storms tr:hover td { background: var(--surface-2); }
.fam { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.ysum { font-size: 15px; color: var(--ink-2); max-width: 100ch; margin-top: 8px; }
.ysum b { color: var(--ink); }
.warnline { font-size: 12.5px; color: #ffcf9c; background: rgba(255,159,69,.08); border: 1px solid rgba(255,159,69,.3); border-radius: 8px; padding: 8px 12px; margin-top: 10px; }
.tchart text { font-family: var(--sans); }

@media (max-width: 1100px) {
  .simgrid, .player, .rose2 { grid-template-columns: 1fr; }
  .decis { grid-template-columns: repeat(2, 1fr); }
  .mroses { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .mroses { grid-template-columns: repeat(3, 1fr); }
  .decis { grid-template-columns: 1fr; }
  .ygrid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media (max-width: 760px) {
  .cal, .tchart { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cal svg { min-width: 760px; }
  .tchart svg { min-width: 900px; }
  .cal::after, .tchart::after { content: '← листайте →'; display: block; font-size: 11px; color: var(--ink-3); position: sticky; left: 0; margin-top: 4px; }
}
@media (max-width: 760px) { .art .twocol { grid-template-columns: 1fr !important; } .ahero { grid-template-columns: 1fr; } }
/* карта источников */
.srcmap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.lmap { height: 520px; border-radius: 10px; overflow: hidden; background: #071726; border: 1px solid var(--line-2); }
.mapfail { padding: 40px; color: var(--ink-3); font-size: 13px; }
.srcrow { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.srcrow:last-child { border-bottom: 0; }
.srcrow > i { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; border: 1.5px solid #06101a; }
.srcrow b { color: var(--ink); font-weight: 650; }
.srcrow .km { color: var(--accent); font-variant-numeric: tabular-nums; }
.srcrow .s { color: var(--ink-3); font-size: 12px; }
.srcrow .d { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.leaflet-tooltip.maplab { background: rgba(6,16,26,.85); color: #eaf1f8; border: 1px solid #294056; border-radius: 6px; font: 600 11.5px var(--sans); padding: 3px 7px; box-shadow: none; }
.leaflet-tooltip.maplab::before { display: none; }
.leaflet-container { font-family: var(--sans); }
@media (max-width: 1100px) { .srcmap { grid-template-columns: 1fr; } .lmap { height: 420px; } }
@media (max-width: 760px) { .top .livechip { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; } .top .wrap { gap: 10px; } }
/* линейка года под симулятором */
.ybctl { display: flex; gap: 18px; flex-wrap: wrap; }
.ybctl .lbl2 { margin-bottom: 5px; }
.ybctl select { min-width: 90px; padding: 4px 8px; }
.ystripwrap { overflow-x: auto; }
.ystrip { display: grid; grid-template-columns: 190px repeat(12, minmax(54px, 1fr)) minmax(74px, 1.15fr); gap: 4px; min-width: 980px; font-variant-numeric: tabular-nums; }
.ystrip .h { font-size: 11px; color: var(--ink-3); text-align: center; text-transform: uppercase; letter-spacing: .04em; padding: 2px 0; }
.ystrip .rl { font-size: 12.5px; color: var(--ink-2); display: flex; flex-direction: column; justify-content: center; line-height: 1.3; padding-right: 6px; }
.ystrip .rl small { color: var(--ink-3); font-size: 11px; }
.ystrip .c { border-radius: 6px; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 650; cursor: default; transition: background .15s; }
.ystrip .c small { font-size: 10px; font-weight: 500; opacity: .8; }
.ystrip .c.yr { outline: 1px solid var(--line-2); }
.ystrip .gap { grid-column: 1 / -1; height: 4px; }
/* блоки под катом: клик по заголовку разворачивает */
.card.fold > .chead { cursor: pointer; margin-bottom: 0; }
.card.fold > .chead h2::after { content: '▸ развернуть'; font-size: 12.5px; font-weight: 600; color: var(--accent); margin-left: 12px; letter-spacing: 0; vertical-align: 3px; }
.card.fold.open > .chead h2::after { content: '▾ свернуть'; }
.card.fold.open > .chead { margin-bottom: 10px; }
.card.fold:not(.open) > :not(.chead), .card.fold:not(.open) > .chead p.desc { display: none; }
.card.fold:hover { border-color: var(--line-2); }
