/* ==========================================================
   Porównanie silników — styl strony publicznej
   ========================================================== */
:root {
  --bg: #f4f5f7;
  --bg-2: #eceef2;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --line: #e1e4ea;
  --line-strong: #cfd4dd;
  --text: #11141a;
  --text-2: #4a5160;
  --text-3: #7a8191;
  --a: #2f6fed;          /* wersja A — benzyna */
  --a-soft: #e8effe;
  --b: #0f9b84;          /* wersja B — diesel */
  --b-soft: #e3f5f1;
  --good: #1a8f4c;
  --good-soft: #e3f4ea;
  --warn: #b7791f;
  --warn-soft: #fbf0dc;
  --bad: #c2413a;
  --bad-soft: #fbe6e4;
  --shadow: 0 1px 2px rgba(16, 20, 28, .05), 0 8px 24px -12px rgba(16, 20, 28, .12);
  --radius: 18px;
  --radius-s: 12px;
  --maxw: 1120px;
  --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e12; --bg-2: #12151b; --surface: #151920; --surface-2: #1a1f27;
    --line: #242a34; --line-strong: #323a46; --text: #eef1f5; --text-2: #aab2c0; --text-3: #7c8595;
    --a: #6d9cff; --a-soft: #1a2640; --b: #3cc7ad; --b-soft: #132e2a;
    --good: #4cc27d; --good-soft: #15291e; --warn: #e3a948; --warn-soft: #2d2415; --bad: #ef7a72; --bad-soft: #321a19;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e12; --bg-2: #12151b; --surface: #151920; --surface-2: #1a1f27;
  --line: #242a34; --line-strong: #323a46; --text: #eef1f5; --text-2: #aab2c0; --text-3: #7c8595;
  --a: #6d9cff; --a-soft: #1a2640; --b: #3cc7ad; --b-soft: #132e2a;
  --good: #4cc27d; --good-soft: #15291e; --warn: #e3a948; --warn-soft: #2d2415; --bad: #ef7a72; --bad-soft: #321a19;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--a); text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
strong { font-weight: 600; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; border-radius: 6px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--text-3); }
.chip--a .dot, .col-head--a .dot, .badge--a .dot, .fit--a .dot, .dot--a { background: var(--a); }
.chip--b .dot, .col-head--b .dot, .badge--b .dot, .fit--b .dot, .dot--b { background: var(--b); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 15px/1 var(--font-head); white-space: nowrap; }
.brand em { font-style: normal; color: var(--text-3); font-weight: 500; margin: 0 2px; }
.brand-mark { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--a) 0 50%, var(--b) 50% 100%); box-shadow: inset 0 0 0 4px var(--surface); border: 1px solid var(--line-strong); }
.nav-scroll { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background .15s, color .15s; }
.nav-scroll a:hover { background: var(--surface); color: var(--text); }
.nav-scroll a.is-active { background: var(--text); color: var(--bg); }
.theme-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.theme-btn span { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--text) 50%, transparent 50%); border: 1.5px solid var(--text); }
.admin-link { flex: none; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--bg); background: var(--text); padding: 7px 12px; border-radius: 999px; }
@media (max-width: 720px) { .brand-txt { display: none; } .topbar-inner { gap: 10px; } }

/* ---------- układ bloków ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.block { padding: 64px 0 0; }
.block-head { margin-bottom: 24px; max-width: 760px; }
.block-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
.lead { color: var(--text-2); margin: 10px 0 0; font-size: 17px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.chip span { color: var(--text-3); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sub-h { font-size: 20px; margin: 32px 0 14px; }
.note { color: var(--text-3); font-size: 14px; margin: 16px 0 0; }
.empty-hint { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 28px; color: var(--text-3); text-align: center; background: var(--surface-2); }
@media (max-width: 720px) { .block { padding-top: 48px; } }

/* ---------- hero ---------- */
.block--hero { padding-top: 40px; }
.hero-inner {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 6vw, 72px);
  background:
    radial-gradient(900px 400px at 100% 0%, color-mix(in srgb, var(--a) 18%, transparent), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, color-mix(in srgb, var(--b) 16%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.hero-inner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero-text { position: relative; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--text-3); margin: 0 0 16px; }
.block--hero h1 { font-size: clamp(38px, 7vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); margin: 18px 0 0; max-width: 640px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.has-image h1 { font-size: clamp(34px, 4.6vw, 58px); }
.has-image .hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-media { margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); border: 1px solid var(--line); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .has-image .hero-inner { grid-template-columns: 1fr; } .hero-media { order: -1; } }
@media (max-width: 720px) { .block--hero { padding-top: 20px; } .hero-inner { border-radius: 22px; } }

/* ---------- konfiguracja ---------- */
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.config-group { padding: 22px 22px 14px; }
.config-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 700; margin-bottom: 10px; }
.config-list { list-style: none; margin: 0; padding: 0; }
.config-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.config-list li:first-child { border-top: 0; }
.cfg-text { flex: 1; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 6px; margin-top: 2px; background: var(--good-soft); position: relative; }
.tick::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--good); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tag { flex: none; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; margin-top: 2px; }
.tag--must { background: var(--text); color: var(--bg); }
.tag--nice { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }

/* ---------- przegląd ---------- */
.overview-grid, .pc-grid, .timing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .overview-grid, .pc-grid, .timing-grid { grid-template-columns: 1fr; } }
.ov-card { padding: 26px; position: relative; overflow: hidden; }
.ov-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.ov-card--a::before { background: var(--a); }
.ov-card--b::before { background: var(--b); }
.ov-fuel { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.ov-card--a .ov-fuel { color: var(--a); }
.ov-card--b .ov-fuel { color: var(--b); }
.ov-top h3 { font-size: 30px; font-weight: 800; margin-top: 6px; }
.ov-top p { margin: 2px 0 0; color: var(--text-2); }
.ov-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; margin: 22px 0 0; }
.ov-stats div { background: var(--surface); padding: 14px 16px; }
.ov-stats dt { font-size: 13px; color: var(--text-3); }
.ov-stats dd { margin: 2px 0 0; font: 700 22px/1.2 var(--font-head); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ov-sum { margin: 18px 0 0; color: var(--text-2); }

/* ---------- paski ---------- */
.bars { padding: 8px 24px; }
.bar-row { display: grid; grid-template-columns: 220px 64px 1fr max-content 18px; column-gap: 10px; row-gap: 6px; padding: 18px 0; border-top: 1px solid var(--line); align-items: center; }
.bar-row.no-win { grid-template-columns: 220px 64px 1fr max-content; }
.bar-row:first-child { border-top: 0; }
.bar-label { grid-column: 1; grid-row: span 2; font-weight: 600; font-size: 15px; padding-right: 14px; }
.bar-line { grid-column: 2 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.bar-name { font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.bar-line--a .bar-fill { background: var(--a); }
.bar-line--b .bar-fill { background: var(--b); }
.bar-val { font: 600 15px/1 var(--font-head); font-variant-numeric: tabular-nums; display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.bar-val small { font: 500 12px var(--font); color: var(--text-3); }
.win { font-style: normal; font-size: 11px; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--good-soft); color: var(--good); font-weight: 700; }
.win--none { background: none; }
@supports not (grid-template-columns: subgrid) {
  .bar-line { grid-template-columns: 64px 1fr 110px 18px; column-gap: 10px; }
  .no-win .bar-line { grid-template-columns: 64px 1fr 110px; }
}
@media (max-width: 720px) {
  .bars { padding: 4px 16px; }
  .bar-row { grid-template-columns: max-content 1fr max-content 18px; column-gap: 8px; }
  .bar-row.no-win { grid-template-columns: max-content 1fr max-content; }
  .bar-label { grid-column: 1 / -1; grid-row: auto; padding-right: 0; }
  .bar-line { grid-column: 1 / -1; }
}

/* ---------- tabele porównawcze ---------- */
.table-card { overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 20px; border-top: 1px solid var(--line); }
.cmp thead th { border-top: 0; background: var(--surface-2); padding-top: 16px; padding-bottom: 16px; font-weight: 600; }
.cmp .cmp-label { width: 32%; font-weight: 500; color: var(--text-2); }
.cmp thead .cmp-label { color: var(--text-3); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.cmp .cmp-label small { display: block; color: var(--text-3); font-size: 13px; font-weight: 400; margin-top: 2px; }
.cmp td { width: 34%; }
.cmp tr.grp th { background: var(--bg-2); font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); padding: 12px 20px; }
.col-head { display: flex; align-items: center; gap: 10px; }
.col-head b { display: block; font: 700 16px/1.2 var(--font-head); }
.col-head span { display: block; font-size: 13px; color: var(--text-3); font-weight: 400; }
.cmp td.is-win { position: relative; font-weight: 600; }
.cmp td.v--a.is-win { background: var(--a-soft); }
.cmp td.v--b.is-win { background: var(--b-soft); }
.cmp td.is-win::after { content: "✓"; position: absolute; right: 12px; top: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--good-soft); color: var(--good); font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.cmp td.v.is-win, .cmp td.rt.is-win { padding-right: 40px; }
.cmp td.rt.is-win::after { display: none; }
.cmp td.na { color: var(--text-3); }
.na-mark { font-size: 13px; color: var(--text-3); }
.cmp tbody tr:hover th, .cmp tbody tr:hover td:not(.is-win) { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.rt--a .dots i.on { background: var(--a); }
.rt--b .dots i.on { background: var(--b); }

@media (max-width: 720px) {
  .cmp thead { display: none; }
  .cmp, .cmp tbody { display: block; }
  .cmp tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
  .cmp td { overflow-wrap: anywhere; }
  .cmp tbody:first-of-type tr:first-child { border-top: 0; }
  .cmp th, .cmp td { border-top: 0; width: auto !important; padding: 10px 16px; }
  .cmp tr > th.cmp-label { grid-column: 1 / -1; padding-bottom: 0; color: var(--text); font-weight: 600; }
  .cmp tr.grp { display: block; }
  .cmp tr.grp th { display: block; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--text-3); font-weight: 500; margin-bottom: 2px; }
  .cmp td.is-win::after { top: 10px; right: 8px; }
  .cmp td.v.is-win { padding-right: 32px; }
  .cmp td:nth-of-type(1) { padding-right: 8px; }
}

/* ---------- zalety / wady ---------- */
.pc-card { padding: 24px; }
.pc-card .col-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pc-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 20px 0 8px; display: flex; align-items: center; gap: 8px; }
.pc-h--pros { color: var(--good); }
.pc-h--cons { color: var(--bad); }
.pc-list { list-style: none; margin: 0; padding: 0; }
.pc-list li { position: relative; padding: 7px 0 7px 30px; color: var(--text); }
.pc-list li::before { position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 700 14px/1 var(--font-head); }
.pc-list--pros li::before { content: "+"; background: var(--good-soft); color: var(--good); }
.pc-list--cons li::before { content: "−"; background: var(--bad-soft); color: var(--bad); }

/* ---------- rozrząd ---------- */
.tm-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.tm-visual { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; color: var(--text-3); }
.bay { width: 100%; height: auto; display: block; }
.bay-frame { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 4; }
.bay-wheel { fill: var(--line-strong); }
.bay-gbox { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.bay-eng { fill: var(--surface); stroke: var(--text-3); stroke-width: 1.5; }
.bay-chain { fill: var(--bad); }
.tm-card--a .bay-chain { fill: var(--a); }
.tm-card--b .bay-chain { fill: var(--b); }
.bay-t { font: 600 9.5px var(--font); letter-spacing: .06em; fill: var(--text-3); text-anchor: middle; }
.bay-t--chain { fill: var(--text); }
.bay-t--dir { letter-spacing: .02em; font-weight: 500; text-anchor: start; }
.bay-arrow { stroke: currentColor; stroke-width: 1.5; }
.status { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 12px 14px; border-radius: var(--radius-s); }
.status i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.status--ok { background: var(--good-soft); color: var(--good); } .status--ok i { background: var(--good); }
.status--warn { background: var(--warn-soft); color: var(--warn); } .status--warn i { background: var(--warn); }
.status--bad { background: var(--bad-soft); color: var(--bad); } .status--bad i { background: var(--bad); }
.tm-list { margin: 0; display: grid; gap: 0; }
.tm-list > div { padding: 11px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.tm-list dt { font-size: 13px; color: var(--text-3); padding-top: 2px; }
.tm-list dd { margin: 0; }
.tm-list .tm-cost dd { font: 700 17px/1.4 var(--font-head); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .tm-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- kalkulator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; margin-bottom: 16px; overflow: hidden; }
.calc-inputs { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-content: start; border-right: 1px solid var(--line); }
.cf--wide { grid-column: 1 / -1; }
.calc-pair { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; min-width: 0; align-content: start; }
.calc-pair legend { display: flex; align-items: center; gap: 8px; font: 700 14px var(--font-head); padding: 0 6px; }
.cf label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.cf-row { display: flex; align-items: center; gap: 10px; }
.cf-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--text); }
.cf-num { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; }
.cf-num input { width: 70px; border: 0; background: transparent; font: 600 14px var(--font); color: var(--text); padding: 7px 0; text-align: right; font-variant-numeric: tabular-nums; }
.cf--wide .cf-num input { width: 84px; }
.cf-num em { font-style: normal; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.cf-num input:focus { outline: none; }
.cf-num:focus-within { border-color: var(--text-3); }
.calc-pair .cf-row { flex-direction: column; align-items: stretch; gap: 6px; }
.calc-pair .cf-num { align-self: flex-start; }
.calc-out { padding: 24px; background: var(--surface-2); display: flex; flex-direction: column; gap: 18px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.kpi--a::before { background: var(--a); } .kpi--b::before { background: var(--b); } .kpi--diff::before { background: var(--text); }
.kpi--diff { grid-column: 1 / -1; }
.kpi span { font-size: 13px; color: var(--text-3); display: block; }
.kpi b { display: block; font: 800 26px/1.2 var(--font-head); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi small { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }
.stack { display: grid; gap: 10px; }
.stack-row { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.stack-row > span { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stack-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.stack-bar i { display: block; height: 100%; transition: width .4s; }
.stack-bar .s-fuel-a { background: var(--a); } .stack-bar .s-fuel-b { background: var(--b); }
.stack-bar .s-ad { background: color-mix(in srgb, var(--b) 45%, var(--surface)); }
.stack-bar .s-srv { background: var(--line-strong); }
.stack-bar .s-prem { background: repeating-linear-gradient(45deg, var(--text-3) 0 3px, transparent 3px 7px); }
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-3); }
.stack-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.calc-verdict { margin: 0; padding: 14px 16px; background: var(--surface); border-radius: var(--radius-s); border: 1px solid var(--line); font-size: 15px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .calc-inputs { grid-template-columns: 1fr; padding: 18px; } .calc-out { padding: 18px; } .kpi b { font-size: 22px; } }

/* ---------- werdykt ---------- */
.verdict { padding: clamp(24px, 4vw, 40px); background:
  linear-gradient(135deg, color-mix(in srgb, var(--a) 7%, var(--surface)), color-mix(in srgb, var(--b) 7%, var(--surface))); }
.verdict h2 { font-size: clamp(24px, 3vw, 32px); }
.verdict-text { font-size: 18px; color: var(--text-2); max-width: 820px; margin: 14px 0 0; }
.verdict-text strong { color: var(--text); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
@media (max-width: 720px) { .fit-grid { grid-template-columns: 1fr; } }
.fit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 20px; }
.fit h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fit-list { margin: 0; padding-left: 20px; color: var(--text-2); }
.fit-list li { padding: 3px 0; }

/* ---------- tekst / obraz / źródła ---------- */
.prose { padding: 24px 28px; font-size: 17px; color: var(--text-2); }
.prose p { margin: 0; }
.figure { margin: 0; overflow: hidden; }
.figure img { width: 100%; }
.figure figcaption { padding: 12px 18px; color: var(--text-3); font-size: 14px; }
.sources { columns: 2 320px; column-gap: 32px; padding-left: 22px; margin: 0; color: var(--text-3); font-size: 14px; }
.sources li { break-inside: avoid; padding: 4px 0; }
.sources a { color: var(--text); text-decoration-color: var(--line-strong); }
.sources .host { color: var(--text-3); font-size: 12px; margin-left: 4px; }

.site-foot { max-width: var(--maxw); margin: 40px auto 0; padding: 28px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px; }
.site-foot p { margin: 0; max-width: 760px; }

/* podgląd w panelu — bez sticky, żeby nie zasłaniało */
.is-preview .topbar { position: relative; }

@media print {
  .topbar, .theme-btn, .calc-inputs { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
