/* Вариант B — «Приборная панель EV»: графит, индикаторы заряда, электрический лайм и циан */
:root {
  --bg: #0a0d11;
  --panel: #11161c;
  --panel-2: #171e26;
  --line: #242d38;
  --text: #e7edf3;
  --muted: #8796a6;
  --volt: #c4ff3a;
  --cyan: #38dcff;
  --warn: #ff5340;
  --amber: #ffb547;
  --display: "Saira Condensed", "Arial Narrow", sans-serif;
  --body: "Saira", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(56, 220, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(196, 255, 58, 0.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration-color: rgba(56, 220, 255, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--volt); }
strong { color: #fff; }

.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; }

.masthead {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.masthead__brand {
  position: relative;
  padding: 36px 36px 32px;
  background:
    linear-gradient(135deg, rgba(56, 220, 255, 0.12), transparent 55%),
    var(--panel);
}
.masthead__brand::after {
  content: "";
  position: absolute;
  left: 36px; right: 36px; bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--volt));
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--volt);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 10px var(--volt);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 60px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.lede { margin: 20px 0 0; max-width: 52ch; color: var(--muted); font-size: 15px; }

.masthead__meta { display: grid; grid-template-rows: 1fr 1fr 1fr; gap: 1px; }
.meta-block { padding: 18px 22px; background: var(--panel); font-size: 14px; }
.label {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.meta-block p { margin: 0; }

nav {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  margin: 24px auto 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 22, 28, 0.85);
  backdrop-filter: blur(12px);
}
nav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
nav a:hover { background: var(--volt); color: var(--bg); }

section { margin-top: 56px; scroll-margin-top: 80px; }

h2 {
  margin: 0 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--volt);
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h3 {
  margin: 28px 0 10px;
  color: var(--cyan);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p { margin: 0 0 12px; }

.note {
  margin: 16px 0;
  padding: 16px 20px;
  border: 1px solid rgba(196, 255, 58, 0.35);
  border-radius: 14px;
  background: rgba(196, 255, 58, 0.07);
}
.note--sky { border-color: rgba(56, 220, 255, 0.35); background: rgba(56, 220, 255, 0.07); }
.note--peach { border-color: rgba(255, 83, 64, 0.45); background: rgba(255, 83, 64, 0.08); }
.note strong { font-weight: 600; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.kpi {
  position: relative;
  padding: 20px 20px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.kpi::after {
  content: "";
  position: absolute;
  left: 20px; right: 20px; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.kpi b {
  display: block;
  font-family: var(--display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 24px rgba(56, 220, 255, 0.25);
}
.kpi span { display: block; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.kpi--hot b { color: var(--warn); text-shadow: 0 0 24px rgba(255, 83, 64, 0.35); }
.kpi--hot::after { background: linear-gradient(90deg, var(--warn), transparent); }

ol.deliver { margin: 0; padding-left: 1.3em; }
ol.deliver li { margin: 0 0 6px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th {
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
td.num { font-family: var(--mono); font-size: 13px; color: #fff; }
td.num, th.num { text-align: right; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(56, 220, 255, 0.05); }
tfoot td, tr.total td { background: var(--panel-2); color: var(--volt); font-weight: 600; border-top: 1px solid var(--volt); }
tr.total td.num { color: var(--volt); }
tr.hot td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
tr.cool td:first-child { box-shadow: inset 3px 0 0 var(--volt); }

.caption { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split--3 { grid-template-columns: repeat(3, 1fr); }
.prob {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(196, 255, 58, 0.14);
  color: var(--volt);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.prob--mid { background: rgba(56, 220, 255, 0.14); color: var(--cyan); }
.prob--low { background: rgba(255, 83, 64, 0.14); color: var(--warn); }
.formula {
  margin: 14px 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  color: #fff;
  font-family: var(--mono);
  font-size: 15px;
}
.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.panel h3 { margin-top: 0; font-size: 17px; }

.bars { display: grid; gap: 12px; }
.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 52px;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.bar-row span:last-child { color: #fff; font-family: var(--mono); font-size: 12px; text-align: right; }

/* Индикатор заряда: сегменты */
.track {
  position: relative;
  height: 14px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #0d1217;
}
.track::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), #0d1217 calc(10% - 2px) 10%);
  pointer-events: none;
}
.fill {
  height: 100%;
  min-width: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--warn));
  box-shadow: 0 0 10px rgba(255, 83, 64, 0.4);
}
.fill--mint {
  background: linear-gradient(90deg, var(--cyan), var(--volt));
  box-shadow: 0 0 10px rgba(196, 255, 58, 0.4);
}
.fill--sky {
  background: linear-gradient(90deg, rgba(56, 220, 255, 0.55), var(--cyan));
  box-shadow: 0 0 10px rgba(56, 220, 255, 0.45);
}

ul.clean { margin: 0; padding-left: 1.2em; }
ul.clean li { margin: 0 0 12px; }
ul.clean li::marker { color: var(--volt); }

#istochniki { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#istochniki > h2, #istochniki > p { grid-column: 1 / -1; }

.source {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.source h3 { margin: 0 0 6px; color: var(--text); font-family: var(--body); font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.source p { margin: 0; color: var(--muted); font-size: 13.5px; }

.tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 220, 255, 0.12);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}
footer p { margin: 0 0 4px; }


/* Многостраничная структура */
.pagehead {
  position: relative;
  padding: 32px 36px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(56, 220, 255, 0.10), transparent 55%),
    var(--panel);
}
.pagehead h1 { font-size: 48px; }
.takeaway {
  max-width: 72ch;
  margin: 20px 0 0;
  padding: 14px 18px;
  border-left: 4px solid var(--volt);
  border-radius: 0 12px 12px 0;
  background: rgba(196, 255, 58, 0.06);
  color: #fff;
  font-size: 16px;
}

nav a .n { margin-right: 6px; opacity: 0.6; font-family: var(--mono); font-size: 11px; }
nav a.is-active { background: var(--volt); color: var(--bg); }
nav a.is-active .n { opacity: 1; }
nav .sep { width: 1px; margin: 4px; background: var(--line); }

.next { display: flex; gap: 12px; margin-top: 56px; }
.next a {
  flex: 1;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.next a:hover { border-color: var(--volt); }
.next small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.next b { font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.next .next__fwd { text-align: right; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
}
.card:hover { border-color: var(--cyan); }
.card small { color: var(--cyan); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; }
.card b {
  display: block;
  margin: 6px 0;
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  text-transform: uppercase;
}
.card span { color: var(--muted); font-size: 13.5px; }

.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0 0 18px; padding-left: 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.timeline li.key::before { background: var(--volt); box-shadow: 0 0 12px var(--volt); }
.timeline b {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scenes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
}
.scene {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.scene--real { border-color: rgba(56, 220, 255, 0.45); }
.scene__top { padding: 18px 18px 16px; background: var(--panel-2); }
.scene__top h3 { margin: 8px 0 6px; color: #fff; font-size: 26px; }
.scene__top p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.scene__hero { padding: 16px 18px 4px; }
.scene__hero b {
  display: block;
  margin: 4px 0 8px;
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.scene__hero b.up { color: var(--volt); text-shadow: 0 0 24px rgba(196, 255, 58, 0.25); }
.scene__hero b.down { color: var(--warn); text-shadow: 0 0 24px rgba(255, 83, 64, 0.3); }
.scene__hero > span:last-child { display: block; color: var(--muted); font-size: 13px; }
.scene__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 14px 18px 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--line);
}
.scene__facts div { padding: 8px 10px 10px; background: var(--panel-2); }
.scene__facts dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.scene__facts dd { margin: 3px 0 0; color: #fff; font-size: 13px; }
.scene__good, .scene__bad { padding: 14px 18px 8px; }
.scene__good { margin-top: 8px; }
.scene__bad {
  margin-top: auto;
  background: rgba(255, 83, 64, 0.05);
  border-top: 1px solid var(--line);
}
.scene__good ul, .scene__bad ul { margin: 8px 0 10px; padding-left: 1.1em; }
.scene__good li, .scene__bad li { margin: 0 0 6px; font-size: 13.5px; }
.scene__good li::marker { color: var(--volt); }
.scene__bad li::marker { color: var(--warn); }
.scene__bad .label { color: var(--warn); }

.lanes {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.lane {
  display: grid;
  grid-template-columns: 148px 1fr;
  border-top: 1px solid var(--line);
}
.lane:first-child { border-top: 0; }
.lane h4 {
  margin: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: var(--panel-2);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lane--opt h4 { color: var(--volt); box-shadow: inset 3px 0 0 var(--volt); }
.lane--real h4 { color: var(--cyan); box-shadow: inset 3px 0 0 var(--cyan); }
.lane--bad h4 { color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.lane__years { display: grid; grid-template-columns: repeat(4, 1fr); }
.lane__years > div { padding: 14px 12px 12px; border-left: 1px solid var(--line); }
.lane__years > div:first-child { border-left: 0; }
.lane__years span {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lane__years b {
  display: block;
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.lane__years b.up { color: var(--volt); }
.lane__years b.down { color: var(--warn); }
.lane__years small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.lane__years .is-pay { background: rgba(56, 220, 255, 0.06); }

@media (max-width: 800px) {
  .cards, .scenes { grid-template-columns: 1fr; }
  .next { flex-direction: column; }
  .pagehead { padding: 24px 20px; }
  .pagehead h1 { font-size: 36px; }
  .lane { grid-template-columns: 1fr; }
  .lane h4 { border-right: 0; border-bottom: 1px solid var(--line); }
  .lane__years { grid-template-columns: 1fr 1fr; }
  .scene__hero b { font-size: 44px; }
}

@media (max-width: 800px) {
  .masthead, .kpis, .split, .split--3, #istochniki { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }
  .masthead__brand { padding: 26px 22px; }
  nav { border-radius: 16px; }
  .bar-row { grid-template-columns: 1fr 48px; }
  .bar-row span:first-child { grid-column: 1 / -1; }
}

@media print {
  nav { display: none; }
  body { background: var(--bg); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page { max-width: none; }
}
