/* PAJAKWEB — podstrona Kalkulatory (styl „Nocna trasa”, tokeny z style.css) */
.kc-hero { min-height: 72vh; min-height: 72svh; }
.kc-hero .hero__media img { object-position: 50% 60%; }
.kc-hero .hero__in { padding-bottom: 64px; }
.kc-h1 { font-size: clamp(2.6rem, 6.6vw, 6.2rem); font-weight: 640; font-variation-settings: "wdth" 118; line-height: .94; letter-spacing: -.045em; max-width: 14ch; }
.kc-h1 .dot { width: .17em; height: .17em; }
.kc-lead { max-width: 60ch; color: var(--text-2); font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); margin-top: 22px; }
.kc-crumbs { display: flex; gap: 10px; font-size: .8125rem; color: var(--muted); margin-bottom: 18px; }
.kc-crumbs a { color: var(--text-2); text-decoration: none; }

.kc { padding-block: 56px 120px; }
.kc-bar { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 12px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10,16,28,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.kc-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.kc-tabs button { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--text-2); font-weight: 600; cursor: pointer; }
.kc-tabs button[aria-selected="true"] { background: var(--text); color: #05080F; }
.kc-tabs button:hover:not([aria-selected="true"]) { border-color: var(--line-2); }
.kc-note { font-size: .875rem; color: var(--muted); padding-right: 12px; }
.kc-note b { color: var(--text-2); font-weight: 600; }
.kc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 10px; }
.kc-jump a { font-size: .875rem; text-decoration: none; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.kc-jump a:hover { border-color: var(--dot); color: var(--text); }

/* kalkulator */
.kc-calc { padding-block: 64px; border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.kc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 40px; align-items: end; margin-bottom: 28px; }
.kc-head h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 640; font-variation-settings: "wdth" 114; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.kc-head p { color: var(--text-2); max-width: 64ch; margin-top: 12px; }
.kc-num { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 120; margin-bottom: 12px; }
.kc-pill { font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--dot-2); border: 1px solid rgba(76,155,245,.4); border-radius: 999px; padding: 7px 13px; white-space: nowrap; }
.kc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }

.kc-form { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.kc-f { display: grid; gap: 8px; min-width: 0; }
.kc-f.w { grid-column: 1 / -1; }
.kc-f > label, .kc-f > .lab { font-size: .8125rem; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.kc-f small { font-size: .8125rem; color: var(--muted); }
.kc input[type=number], .kc input[type=text], .kc input[type=date], .kc input[type=datetime-local], .kc select {
  width: 100%; min-width: 0; height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: 1rem; font-variant-numeric: tabular-nums; }
.kc select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.kc input:focus, .kc select:focus { border-color: var(--dot); outline: none; box-shadow: 0 0 0 4px rgba(76,155,245,.18); }
.kc-unit { position: relative; } .kc-unit input { padding-right: 56px; }
.kc-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: .875rem; color: var(--muted); pointer-events: none; }
.kc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-opt { position: relative; }
.kc-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.kc-opt span { display: block; font-size: .9375rem; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; color: var(--text-2); background: rgba(255,255,255,.02); }
.kc-opt input:checked + span { border-color: var(--dot); color: var(--text); background: rgba(76,155,245,.14); box-shadow: inset 0 0 0 1px var(--dot); }
.kc-opt input:focus-visible + span { outline: 2px solid var(--dot); outline-offset: 3px; }
.kc input[type=range] { width: 100%; accent-color: var(--dot); }

.kc-res { position: sticky; top: 156px; display: grid; gap: 16px; padding: 28px; border-radius: 28px; border: 1px solid rgba(76,155,245,.35);
  background: radial-gradient(120% 90% at 100% 0%, rgba(76,155,245,.22), transparent 60%), var(--bg-2); box-shadow: 0 30px 80px -40px var(--glow); }
.kc-k { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-variation-settings: "wdth" 120; }
.kc-big { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 660; font-variation-settings: "wdth" 116; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 8px; }
.kc-big small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 8px; font-variation-settings: "wdth" 100; }
.rows { display: grid; gap: 9px; font-size: .9375rem; border-top: 1px solid var(--line); padding-top: 14px; font-variant-numeric: tabular-nums; }
.rows div { display: flex; justify-content: space-between; gap: 14px; }
.rows span { color: var(--muted); }
.rows b { font-weight: 600; text-align: right; }
.rows .tot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.rows .tot span { color: var(--text); font-weight: 600; }
.kc-hint { font-size: .8125rem; color: var(--muted); }
.kc-res .btn, .kc-cert .btn { justify-self: start; }
.kc-sent { font-size: .875rem; color: var(--text-2); background: rgba(76,155,245,.12); border: 1px solid rgba(76,155,245,.3); border-radius: 14px; padding: 12px 14px; }

/* wizualizacje */
.kc-deck { position: relative; width: 100%; aspect-ratio: 13.6 / 2.45; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255,255,255,.03); overflow: hidden; }
.kc-deck i { position: absolute; border-radius: 3px; background: var(--dot); box-shadow: inset 0 0 0 2px var(--bg-2); }
.kc-deck i.ind { background: #A5B4FC; }
.kc-deck i.x2::after { content: "×2"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #05080F; }
.kc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--muted); }
.kc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--dot); margin-right: 6px; vertical-align: -1px; }
.kc-legend i.ind { background: #A5B4FC; } .kc-legend i.p { background: #FBBF24; } .kc-legend i.o { background: #64748B; }
.kc-meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.kc-meter i { display: block; height: 100%; background: var(--dot); border-radius: 999px; box-shadow: 0 0 16px var(--glow); transition: width .3s var(--ease); }
.kc-line { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.06); }
.kc-line i { display: block; height: 100%; } .kc-line .d { background: var(--dot); } .kc-line .p { background: #FBBF24; } .kc-line .o { background: #64748B; }
#e-eta { font-size: clamp(1.6rem, 2.6vw, 2.2rem); text-transform: none; }

/* wariant: kreator „ponadgabaryt” */
.kc-wiz { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; }
.g-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.g-steps li { position: relative; }
.g-steps button { width: 100%; text-align: left; padding: 18px 24px; background: none; border: 0; color: var(--muted); cursor: pointer; display: flex; gap: 12px; align-items: center; font-weight: 600; }
.g-steps button b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); font-size: .875rem; }
.g-steps li.on button { color: var(--text); } .g-steps li.on button b { background: var(--dot); border-color: var(--dot); color: #fff; box-shadow: 0 0 18px var(--glow); }
.g-steps li::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--dot); transition: width .4s var(--ease); }
.g-steps li.on::after { width: 100%; }
.g-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0; }
.g-fields { padding: 28px; display: grid; gap: 18px; align-content: start; border-right: 1px solid var(--line); }
.g-stage { padding: 28px; display: grid; gap: 18px; align-content: start; background: radial-gradient(90% 80% at 50% 0%, rgba(76,155,245,.12), transparent 70%); }
.g-stage svg { width: 100%; height: auto; }
.g-road { stroke: var(--line-2); stroke-width: 2; } .g-lim { stroke: #FF8A80; stroke-width: 1.2; stroke-dasharray: 6 6; }
.g-t { fill: #FF8A80; font-size: 11px; font-weight: 600; } .g-t2 { fill: #05080F; font-size: 11px; font-weight: 700; }
.g-cab { fill: #1F2B44; stroke: var(--line-2); } .g-deck { fill: #2A3854; } .g-w { fill: #05080F; stroke: var(--muted); stroke-width: 3; }
.g-load { fill: var(--dot); } .g-load.bad { fill: #FF8A80; }
.g-nav { display: flex; gap: 10px; padding: 0 28px 28px; }
.g-verdict { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 660; font-variation-settings: "wdth" 114; letter-spacing: -.03em; line-height: 1.05; }
.g-verdict small { display: block; font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.g-verdict.ok { color: #86EFAC; } .g-verdict.bad { color: #FF8A80; }
.rows b.ok { color: #86EFAC; } .rows b.bad { color: #FF8A80; }

/* wariant: jasny certyfikat CO₂ */
.kc-cert { position: relative; display: grid; gap: 18px; padding: 30px; border-radius: 28px; background: #F4F7FB; color: #0C142C; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); overflow: hidden; }
.kc-cert::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px dashed rgba(21,128,61,.35); }
.kc-cert .kc-k { color: #5B677F; }
.kc-cert .kc-big { color: #0C142C; } .kc-cert .kc-big small { color: #5B677F; }
.kc-cert .rows { border-color: #D8DFEA; } .kc-cert .rows span { color: #5B677F; } .kc-cert .rows .tot span { color: #0C142C; }
.kc-cert .rows div { border-color: #D8DFEA; }
.c-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.c-seal { flex: none; width: 74px; height: 74px; border-radius: 50%; border: 2px solid #15803D; color: #15803D; display: grid; place-items: center; text-align: center; font-size: .6875rem; font-weight: 700; line-height: 1.15; letter-spacing: .04em; transform: rotate(-8deg); }
.c-tkm { display: flex; align-items: baseline; gap: 8px; color: #15803D; font-weight: 700; }
.c-tkm b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.c-load { height: 10px; border-radius: 999px; background: #E2E8F0; overflow: hidden; } .c-load i { display: block; height: 100%; background: #15803D; border-radius: 999px; transition: width .3s var(--ease); }
.kc-cert .btn--blue { --fg: #fff; }
.kc-cert .kc-hint { color: #5B677F; }

/* wariant: quiz OC sprawcy */
.o-quiz { display: grid; gap: 22px; }
.o-q { display: grid; gap: 12px; }
.o-q > .lab { font-size: 1.0625rem; font-weight: 600; color: var(--text); }
.o-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.o-tile { position: relative; }
.o-tile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.o-tile span { display: grid; gap: 6px; height: 100%; padding: 18px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--text-2); }
.o-tile span b { font-size: 1.0625rem; color: var(--text); }
.o-tile span em { font-style: normal; font-size: .8125rem; color: var(--muted); }
.o-tile input:checked + span { border-color: var(--dot); background: rgba(76,155,245,.12); box-shadow: inset 0 0 0 1px var(--dot), 0 18px 40px -24px var(--glow); }
.o-tile input:focus-visible + span { outline: 2px solid var(--dot); outline-offset: 3px; }
.o-big { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 680; font-variation-settings: "wdth" 116; letter-spacing: -.04em; line-height: .95; }
.o-big small { display: block; font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 10px; font-variation-settings: "wdth" 100; }
.o-docs { display: grid; gap: 8px; font-size: .9375rem; color: var(--text-2); }
.o-docs li { display: flex; gap: 10px; align-items: baseline; }
.o-docs li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 10px var(--glow); transform: translateY(-1px); }
.kc-res p { color: var(--text-2); }

/* wariant: wyjazd busem — miejsca */
.y-bus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px; border-radius: 28px 28px 14px 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); max-width: 260px; }
.y-bus { width: 170px; }
.y-bus i:first-child { border-radius: 50% 50% 8px 8px; }
.y-cap { display: block; margin-top: 8px; font-size: .75rem; color: var(--muted); max-width: 170px; }
.y-bus i { aspect-ratio: 1; border-radius: 10px 10px 6px 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); transition: background .25s, box-shadow .25s; }
.y-bus i.on { background: var(--dot); border-color: var(--dot); box-shadow: 0 0 16px var(--glow); }
.y-split { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.y-count { font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 680; font-variation-settings: "wdth" 116; letter-spacing: -.04em; line-height: 1; }
.y-count small { display: block; font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.kc input[type=range].y-range { height: 28px; }

/* CTA */
.kc-cta { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 40px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(80% 120% at 0% 100%, rgba(76,155,245,.18), transparent 60%), var(--surface); }
.kc-cta h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 640; font-variation-settings: "wdth" 116; letter-spacing: -.035em; line-height: 1; max-width: 18ch; }
.kc-cta p { color: var(--text-2); margin-top: 14px; max-width: 56ch; }
.kc-cta .hero__actions { justify-content: flex-end; }

@media (max-width: 960px) {
  .kc-grid, .g-body { grid-template-columns: 1fr; }
  .kc-res { position: static; }
  .g-fields { border-right: 0; border-bottom: 1px solid var(--line); }
  .kc-bar { position: static; border-radius: 22px; }
  .kc-calc { scroll-margin-top: 90px; }
  .kc-cta { grid-template-columns: 1fr; } .kc-cta .hero__actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .kc-form { grid-template-columns: 1fr; padding: 20px; }
  .kc-res, .kc-cert { padding: 22px; }
  .kc-head { grid-template-columns: 1fr; }
  .g-steps button { padding: 14px 12px; font-size: .8125rem; gap: 8px; }
  .g-fields, .g-stage { padding: 20px; } .g-nav { padding: 0 20px 20px; }
  .y-split { grid-template-columns: 1fr; }
  .kc-cta { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) { .kc-meter i, .c-load i, .g-steps li::after, .y-bus i { transition: none; } }
