/* Układ: przyklejony pasek u góry; strona narzędzia = karta formularza + karta wyniku z wykresem (na telefonie jedna pod drugą,
   z przyklejonym paskiem wyniku na dole). Motyw: dystrybutor i licznik — głęboka zieleń, bursztyn jak cyfry na stacji. */
:root {
  --bg: #f4f7f5;
  --bg-2: #e9f0ec;
  --surface: #ffffff;
  --ink: #0f1c17;
  --ink-2: #33443d;
  --muted: #5f726a;
  --line: #dbe4df;
  --accent: #0b6b4c;
  --accent-2: #12895f;
  --accent-soft: #e2f2ea;
  --accent-ink: #ffffff;
  --amber: #b97800;
  --amber-soft: #fff3d6;
  --pylon: #101a16;
  --pylon-ink: #ffb72a;
  --pylon-dim: #8fa49b;
  --c1: #0b6b4c; --c2: #e0a020; --c3: #4f7cff; --c4: #c2577a; --c5: #8a9a93; --c6: #2bb3a3;
  --shadow: 0 1px 2px rgba(15, 28, 23, .05), 0 8px 24px -12px rgba(15, 28, 23, .18);
  --shadow-lg: 0 2px 4px rgba(15, 28, 23, .04), 0 24px 48px -20px rgba(15, 28, 23, .28);
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-num: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1210; --bg-2: #101a16; --surface: #141f1b; --ink: #e8efeb; --ink-2: #c2d0c9; --muted: #8fa29a; --line: #24332d;
    --accent: #3fcf97; --accent-2: #63e0ae; --accent-soft: #143528; --accent-ink: #04140e; --amber: #ffb72a; --amber-soft: #3a2b0c;
    --pylon: #060a09; --pylon-ink: #ffb72a; --pylon-dim: #7d918a;
    --c1: #3fcf97; --c2: #ffb72a; --c3: #7f9dff; --c4: #ef86a9; --c5: #6f817a; --c6: #45d0c0;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1210; --bg-2: #101a16; --surface: #141f1b; --ink: #e8efeb; --ink-2: #c2d0c9; --muted: #8fa29a; --line: #24332d;
  --accent: #3fcf97; --accent-2: #63e0ae; --accent-soft: #143528; --accent-ink: #04140e; --amber: #ffb72a; --amber-soft: #3a2b0c;
  --pylon: #060a09; --pylon-ink: #ffb72a; --pylon-dim: #7d918a;
  --c1: #3fcf97; --c2: #ffb72a; --c3: #7f9dff; --c4: #ef86a9; --c5: #6f817a; --c6: #45d0c0;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 48px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font-body); overflow-x: clip; }
main { overflow-x: clip; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.wrap {
  max-width: 1120px; margin: 0 auto; width: 100%;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; max-width: 64ch; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.hl { color: var(--accent); }

/* ---------- pasek górny ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; flex: none; }
.brand svg { width: 28px; height: 28px; margin-right: 9px; }
.brand b { font-weight: 700; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; transition: background .2s var(--ease), color .2s; }
.nav a:hover { background: var(--bg-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 40px 28px; display: grid; gap: 14px; }
.hero::before {
  content: ""; position: absolute; top: -40px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 90% at 90% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(50% 70% at 0% 20%, color-mix(in srgb, var(--amber) 9%, transparent), transparent 70%);
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.4s infinite; }
.lede { color: var(--ink-2); font-size: clamp(1.05rem, 2.2vw, 1.2rem); }
.hero-tool { display: flex; align-items: center; gap: 14px; }
.hero-tool .ico { width: 54px; height: 54px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--accent); }
.hero-tool .ico svg { width: 30px; height: 30px; }

/* ---------- pylon ---------- */
.pylon { background: var(--pylon); color: var(--pylon-dim); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 12px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.pylon::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px); pointer-events: none; }
.pylon-head { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.pylon-head .live { color: #7ee2b4; display: inline-flex; align-items: center; gap: 7px; }
.pylon-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fcf97; animation: pulse 2.4s infinite; }
.pylon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 14px 18px; }
.pylon-item { display: grid; gap: 1px; min-width: 0; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.08); }
.pylon-item b { font-family: var(--font-num); font-weight: 500; color: var(--pylon-ink); font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.15; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255, 183, 42, .35); }
.pylon-item small { font-size: .8rem; }

/* ---------- karty narzędzi (strona główna) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 28px 12px; }
@media (max-width: 720px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative; display: grid; gap: 8px; align-content: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card .ico { grid-row: span 3; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card .ico svg { width: 26px; height: 26px; }
.card h2 { padding-right: 32px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .stat { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; font-size: .86rem; color: var(--muted); }
.card .stat b { font-family: var(--font-num); font-weight: 500; color: var(--ink); font-size: 1.05rem; }
.card .go { position: absolute; top: 18px; right: 18px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.card:hover .go { transform: translateX(4px); color: var(--accent); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; padding-block: 22px 34px; color: var(--muted); font-size: .93rem; }
.trust div { display: flex; gap: 10px; align-items: flex-start; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.trust b { color: var(--ink); display: block; }

/* ---------- narzędzie ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; padding-bottom: 28px; }
@media (max-width: 860px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 18px; min-width: 0; box-shadow: var(--shadow); }
.result { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); }
@media (max-width: 860px) { .result { position: static; } }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
fieldset + fieldset { box-shadow: 0 -1px 0 var(--line); padding-top: 20px; }
legend { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 6px; letter-spacing: -0.01em; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.field .hint { color: var(--muted); font-size: .84rem; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 440px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.input { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; transition: border-color .2s, box-shadow .2s, background .2s; }
.input:focus-within { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.input input, select.plain {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 500 1.08rem var(--font-num); padding: 11px 13px; font-variant-numeric: tabular-nums;
}
.input input:focus, select.plain:focus { outline: none; }
select.plain { border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font-family: var(--font-body); font-weight: 600; width: 100%; font-size: 1rem; }
.input .unit { display: grid; place-items: center; padding: 0 13px; color: var(--muted); font-size: .88rem; border-left: 1px solid var(--line); white-space: nowrap; background: var(--bg-2); }

/* suwaki */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow); transition: transform .15s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

/* przełączniki */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; cursor: pointer; }
.check input { -webkit-appearance: none; appearance: none; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; margin: 0; cursor: pointer; transition: background .2s var(--ease); }
.check input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .22s var(--ease); }
.check input:checked { background: var(--accent); }
.check input:checked::after { transform: translateX(18px); }
.check span { font-weight: 600; color: var(--ink-2); }
.check small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; }
.ghost { border: 1px solid var(--line); background: transparent; color: var(--muted); font: 600 .86rem var(--font-body); padding: 7px 12px; border-radius: 999px; cursor: pointer; width: fit-content; }
.ghost:hover { color: var(--ink); border-color: var(--muted); }

/* wynik */
.big { display: grid; gap: 6px; padding: 18px; margin: -6px -6px 0; border-radius: 12px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface))); }
.big .label { color: var(--ink-2); font-size: .92rem; font-weight: 600; }
.big .value { font-family: var(--font-num); font-size: clamp(2.1rem, 7vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; font-variant-numeric: tabular-nums; color: var(--ink); }
.big .value .tag { font-family: var(--font-display); font-size: .5em; font-weight: 700; letter-spacing: 0; color: var(--accent); vertical-align: .35em; margin-right: 8px; }
.big .sub { color: var(--ink-2); font-size: .92rem; }
.kv { display: grid; margin: 0; }
.kv div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.kv dd { margin: 0; font-family: var(--font-num); font-variant-numeric: tabular-nums; text-align: right; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--font-body); font-size: 12px; fill: var(--muted); }
.chart .grid line { stroke: var(--line); }
.chart .ln { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { opacity: .12; }
.chart .end { stroke: var(--surface); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.donut-wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 520px) { .donut-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; } .donut-wrap .kv { width: 100%; } }
.donut { width: 150px; height: 150px; }
.donut circle { fill: none; stroke-width: 18; transition: stroke-dasharray .5s var(--ease), stroke-dashoffset .5s var(--ease); }
.donut text { font-family: var(--font-num); fill: var(--ink); }

.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: baseline; }
.bar .name { font-weight: 600; min-width: 0; }
.bar .name small { font-weight: 400; color: var(--muted); }
.bar .amt { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.bar .track { grid-column: 1 / -1; height: 12px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: color-mix(in srgb, var(--accent) 35%, var(--bg-2)); border-radius: 6px; transform-origin: left; transition: width .5s var(--ease); }
.bar.best .fill { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.badge { display: inline-block; margin-left: 8px; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 2px 7px; border-radius: 5px; vertical-align: 2px; }

details.more { border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " ↓"; }
details.more[open] summary::after { content: " ↑"; }
details.more > div { margin-top: 12px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { font-weight: 700; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
td { font-variant-numeric: tabular-nums; }
#b-table td, #s-table td { font-family: var(--font-num); }
td:first-child { font-family: var(--font-body); font-weight: 600; }
tbody tr:hover { background: var(--bg); }

.note { color: var(--muted); font-size: .86rem; }
.pill { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* przyklejony wynik na telefonie */
.dock { display: none; }
@media (max-width: 900px) {
  .top { position: static; }
  .top .wrap { flex-wrap: wrap; gap: 10px; padding-block: 12px; }
  .nav { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; overflow: visible; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
  .nav a { grid-column: span 2; text-align: center; background: var(--bg-2); padding: 8px 4px; font-size: .88rem; }
  .result { top: auto; }
}
@media (max-width: 860px) {
  .dock {
    display: flex; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--pylon) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    color: #fff; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none;
    transform: translateY(0); transition: transform .3s var(--ease);
  }
  .dock.away { transform: translateY(110%); }
  .dock small { color: var(--pylon-dim); display: block; font-size: .78rem; }
  .dock b { font-family: var(--font-num); font-weight: 500; font-size: 1.3rem; color: var(--pylon-ink); font-variant-numeric: tabular-nums; }
  .dock span:last-child { font-weight: 600; font-size: .9rem; color: #fff; background: rgba(255,255,255,.12); padding: 7px 12px; border-radius: 999px; }
}

/* treść */
.content { display: grid; gap: 14px; padding-block: 26px 40px; }
.content h2 { margin-top: 14px; }
.content p { color: var(--ink-2); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: 8px; }

.slot:empty { display: none; }
.slot { margin-block: 10px; }
.aff { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.aff small { color: var(--muted); }

footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 20px; }
footer .wrap { padding-block: 24px 32px; display: grid; gap: 10px; color: var(--muted); font-size: .88rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ruch */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: var(--len, 1000); } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .55s var(--ease) both; }
  .rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .12s; } .rise.d3 { animation-delay: .18s; } .rise.d4 { animation-delay: .24s; }
  .chart .ln.draw { stroke-dasharray: var(--len, 1000); animation: draw .8s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* oferta obligacji jako lista zamiast szerokiej tabeli */
.bond-offer { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 760px; }
.bond-offer li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.bo-name { display: grid; gap: 2px; min-width: 0; }
.bo-name b { font-family: var(--font-display); font-size: 1.15rem; }
.bo-name .pill { width: fit-content; }
.bo-name span:last-child { color: var(--muted); font-size: .88rem; }
.bo-rate { display: grid; justify-items: end; gap: 2px; text-align: right; flex: none; }
.bo-rate b { font-family: var(--font-num); font-weight: 500; font-size: 1.35rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.bo-rate span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.bo-name b .pill { font-family: var(--font-body); font-size: .72rem; vertical-align: 2px; margin-left: 4px; }

/* szczegóły wyników jako wiersze na telefonie */
.rows { display: grid; gap: 0; }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows b { font-weight: 700; }
.rows .v { font-family: var(--font-num); text-align: right; font-variant-numeric: tabular-nums; }
.rows small { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; }
@media (max-width: 520px) { #s-table th:nth-child(3), #s-table td:nth-child(3), #s-table th:nth-child(4), #s-table td:nth-child(4) { display: none; } }

.card-wide { grid-column: 1 / -1; background: linear-gradient(135deg, var(--surface), var(--accent-soft)); }

/* ceny paliw */
.fuelnow { background: var(--pylon); border-radius: var(--r); padding: 18px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; box-shadow: var(--shadow-lg); color: var(--pylon-dim); margin-bottom: 20px; }
.fn-item { display: grid; gap: 2px; min-width: 0; }
.fn-item small { font-size: .82rem; }
.fn-item b { font-family: var(--font-num); font-weight: 500; color: var(--pylon-ink); font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.1; text-shadow: 0 0 18px rgba(255, 183, 42, .35); font-variant-numeric: tabular-nums; }
.fn-d { font-size: .82rem; font-family: var(--font-num); min-height: 1.2em; }
.fn-d.up { color: #ff8a80; } .fn-d.down { color: #7ee2b4; }
.fn-note { grid-column: 1 / -1; font-size: .8rem; }
.fp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.fp-head h2 { flex: 1 1 100%; font-size: 1.25rem; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 600 .86rem var(--font-body); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.embed { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 620px) { .embed { grid-template-columns: minmax(0, 1fr); } }
.embed iframe { border: 0; border-radius: 12px; max-width: 100%; box-shadow: var(--shadow); }
.embed-code { display: grid; gap: 8px; min-width: 0; }
.embed-code label { font-weight: 600; font-size: .92rem; }
.embed-code textarea { width: 100%; font: 500 .8rem var(--font-num); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; resize: none; }
#fp-chart .chart { max-width: 820px; margin-inline: auto; }

/* powiązane kalkulatory */
.related { display: grid; gap: 14px; padding-block: 8px 36px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.rel-grid a { display: grid; gap: 3px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.rel-grid a:hover { border-color: var(--accent); transform: translateY(-2px); }
.rel-grid b { font-family: var(--font-display); font-size: 1rem; }
.rel-grid span { color: var(--muted); font-size: .88rem; }

/* udostępnianie */
.share { display: grid; gap: 6px; }
.btn { appearance: none; border: 0; background: var(--accent); color: var(--accent-ink); font: 700 1rem var(--font-body); padding: 13px 18px; border-radius: 12px; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
