/* etronic.pro — arkusz stylów */
:root {
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --ink: #13233F;      /* granat — kolor główny */
  --ink-2: #1D3257;
  --steel: #5B6878;    /* tekst pomocniczy */
  --line: #D5DAE1;
  --signal: #F2B300;   /* żółty jak bezpiecznik — tylko na granacie lub jako wypełnienie */
  --wire: #C42B2B;     /* czerwony przewód — drobne akcenty */
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--steel); }

/* ---------- nagłówek ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.75rem; letter-spacing: .01em; }
.brand span small { font-size: inherit; color: var(--steel); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav a { display: block; padding: .55rem .9rem; text-decoration: none; font-weight: 600; border-radius: 6px; white-space: nowrap; }
@media (max-width: 1240px) { .nav a { padding: .55rem .6rem; } .nav ul { gap: .1rem; } }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.nav .call { background: var(--ink); color: var(--white); margin-left: .5rem; border-radius: 6px; }
.nav .call:hover { background: var(--ink-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .5rem .75rem; font: 600 1rem var(--body); color: var(--ink); cursor: pointer; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1rem; }
  .nav .call { margin: .5rem 0 0; text-align: center; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); }
}

/* ---------- przyciski ---------- */
.btn { display: inline-block; padding: .85rem 1.4rem; border-radius: 6px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1.05rem; }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #FFC51F; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--white); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero p { color: #C9D2E0; font-size: 1.2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.schematic { width: 100%; height: auto; }
.schematic .trace { fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.schematic .trace-dim { fill: none; stroke: #2F4670; stroke-width: 2; }
.schematic .pad { fill: var(--ink); stroke: var(--signal); stroke-width: 3; }
.schematic .lbl { fill: var(--white); font: 600 17px var(--body); }
.schematic .pin { fill: #8EA0BC; font: 500 12px var(--body); }
.schematic .ecu { fill: #1D3257; stroke: #3B5482; stroke-width: 2; }
.schematic .ecu-t { fill: var(--signal); font: 700 22px var(--display); letter-spacing: .04em; }

@media (prefers-reduced-motion: no-preference) {
  .schematic .trace { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.2s .3s cubic-bezier(.6,0,.3,1) forwards; }
  .schematic .pad, .schematic .lbl, .schematic .pin { opacity: 0; animation: on .35s forwards; }
  .schematic .n1 { animation-delay: .9s; } .schematic .n2 { animation-delay: 1.3s; }
  .schematic .n3 { animation-delay: 1.7s; } .schematic .n4 { animation-delay: 2.1s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes on { to { opacity: 1; } }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .schematic { max-width: 520px; }
}

/* ---------- sekcje ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.5rem; } }

.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.facts strong { font-family: var(--display); font-size: 1.3rem; }
@media (max-width: 560px) { .facts li { grid-template-columns: 1fr; gap: .1rem; } }

/* skrót usług na stronie głównej */
.service-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 3px solid var(--ink); margin-top: 2rem; }
.service-index a { display: block; padding: 1.4rem 1.4rem 1.6rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.service-index a:hover h3 { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.service-index p { color: var(--steel); font-size: 1rem; margin: 0; }

/* kroki wizyty — to rzeczywista sekwencja, więc numeracja */
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: k; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 46px; right: -1.5rem; top: 21.5px; height: 3px; background: var(--ink); }
.steps li { counter-increment: k; position: relative; }
.steps li::before { content: counter(k); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); font: 700 1.3rem var(--display); margin-bottom: 1rem; position: relative; }
.section-white .steps li::before { background: var(--white); }
.steps h3 { font-size: 1.35rem; }
.steps p { color: var(--steel); font-size: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li:not(:last-child)::after { left: 21.5px; right: auto; top: 46px; bottom: 0; width: 3px; height: auto; }
  .steps li { padding-left: 4.25rem; padding-bottom: 1.25rem; }
  .steps li::before { position: absolute; left: 0; top: 0; }
}

/* kontakt */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.contact h3 { font-size: 1.3rem; }
.contact p { margin: 0; }
.contact a { font-weight: 600; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .2rem 0; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.todo { background: #FFF4CC; padding: 0 .25em; border-radius: 3px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* ---------- podstrona: nagłówek ---------- */
.page-head { background: var(--ink); color: var(--white); padding-block: clamp(2.75rem, 6vw, 4.25rem); }
.page-head p { color: #C9D2E0; font-size: 1.15rem; margin: 0; }

/* lista usług */
.services { margin: 0; padding: 0; list-style: none; }
.service { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 2.5rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-child { border-top: 3px solid var(--ink); }
.service h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.service .for { color: var(--steel); font-size: 1rem; }
.service ul { margin: 0; padding-left: 1.1rem; columns: 2; column-gap: 2rem; }
.service li { margin-bottom: .35rem; break-inside: avoid; }
.service li::marker { color: var(--wire); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: .75rem; } .service ul { columns: 1; } }

.cta-band { background: var(--ink); color: var(--white); padding-block: 3rem; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- katalog chiptuningu ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ct-head .wrap { position: relative; }
.ct-search { position: relative; margin-top: 1.75rem; max-width: 720px; }
.ct-search input { width: 100%; padding: 1rem 1.1rem 1rem 3rem; font: 500 1.1rem var(--body); color: var(--ink); border: 0; border-radius: 8px; background: var(--white)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235B6878' stroke-width='2.2'%3E%3Ccircle cx='8.5' cy='8.5' r='6.5'/%3E%3Cpath d='M13.5 13.5 19 19'/%3E%3C/svg%3E") no-repeat 1rem center; }
.ct-search input:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.ct-hits { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 15; list-style: none; margin: 0; padding: .35rem; background: var(--white); color: var(--ink); border-radius: 8px; box-shadow: 0 12px 32px rgba(19,35,63,.25); max-height: 420px; overflow: auto; }
.ct-hits button { width: 100%; text-align: left; background: none; border: 0; padding: .65rem .75rem; border-radius: 6px; font: 400 1rem var(--body); color: var(--ink); cursor: pointer; }
.ct-hits button:hover, .ct-hits button:focus { background: var(--paper); }
.ct-hits button span { color: var(--steel); margin-left: .35rem; }
.ct-hits .none { padding: .75rem; color: var(--steel); }

.ct-section { padding-top: 2.5rem; min-height: 520px; }
.ct-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; min-height: 1.6rem; margin-bottom: 1.25rem; font-weight: 600; }
.ct-crumbs a { color: var(--ink-2); }
.ct-crumbs span { color: var(--steel); }
.ct-crumbs i { color: #A3ADBA; font-style: normal; }
.ct-step-title { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 1.25rem; }
.ct-step-title span { color: var(--steel); font-size: .6em; font-weight: 600; margin-left: .4rem; }
.ct-alt { margin-top: 1.5rem; }

.brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem; }
.brand-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .95rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font: 700 1.25rem var(--display); }
.brand-list a span { font: 600 .85rem var(--body); color: var(--steel); }
.brand-list a:hover { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--signal); }
.brand-list.small { margin-top: 3rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.brand-list.small a { font-size: 1.05rem; padding: .6rem .8rem; }
.brand-list a[aria-current="page"] { background: var(--ink); color: var(--white); }

.model-list, .engine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.model-list button, .engine-list button { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .9rem 1rem; cursor: pointer; color: var(--ink); font: 400 .95rem var(--body); display: grid; gap: .1rem; }
.model-list button:hover, .engine-list button:hover { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--signal); }
.model-list b, .engine-list b { font: 700 1.3rem var(--display); }
.model-list span, .engine-list span { color: var(--steel); }
.model-list small { color: var(--steel); font-size: .85rem; }
.engine-list em { font-style: normal; font-weight: 600; margin-top: .3rem; }
.engine-list em small { background: var(--signal); padding: 0 .35rem; border-radius: 3px; margin-left: .2rem; font-size: .85rem; }
.fuel-head { font-size: 1.3rem; margin: 1.75rem 0 .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fuel-head:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.vehicle { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 0 0 10px 10px; padding: clamp(1.25rem, 3vw, 2.25rem); }
.vehicle-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem; }
.vehicle-head h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.vehicle-engine { font: 700 1.35rem var(--display); margin: .15rem 0 0; }
.vehicle-meta { color: var(--steel); margin: 0; }
.stage-tabs { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.stage-tabs button { border: 0; background: none; padding: .6rem 1.2rem; border-radius: 6px; font: 700 1.1rem var(--display); color: var(--steel); cursor: pointer; }
.stage-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }

.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.fig h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.fig-row { display: grid; grid-template-columns: 7.5rem 1fr 5.5rem; gap: .75rem; align-items: center; margin-bottom: .55rem; }
.fig-row span { color: var(--steel); }
.fig-row b { text-align: right; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.fig-row.tuned b { font-size: 1.3rem; }
.fig-bar { height: 16px; background: var(--paper); border-radius: 8px; overflow: hidden; }
.fig-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: #9AA7B8; transition: width .7s cubic-bezier(.3,0,.2,1); }
.fig-row.tuned .fig-bar i { background: var(--ink); }
.fig-gain { margin: .5rem 0 0; color: var(--steel); font-weight: 600; }
.fig-gain .delta { margin: 0 .4rem 0 0; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr; gap: 1.5rem; } .fig-row { grid-template-columns: 6.5rem 1fr 4.8rem; } }
@media (prefers-reduced-motion: reduce) { .fig-bar i { transition: none; } }

.dyno { margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.dyno-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; }
.dyno-head h3 { font-size: 1.3rem; margin: 0; }
.dyno-head small { font-family: var(--body); font-weight: 500; color: var(--steel); font-size: .9rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 1.1rem; margin: 0; padding: 0; font-size: .92rem; color: var(--steel); }
.legend i { display: inline-block; width: 22px; height: 0; border-top: 3px solid; vertical-align: middle; margin-right: .4rem; }
.legend .l-pw { border-color: var(--ink); } .legend .l-tq { border-color: var(--wire); } .legend .l-st { border-color: #9AA7B8; border-top-style: dashed; }
.dyno svg { width: 100%; height: auto; margin-top: .75rem; }
.dyno .grid { stroke: #E6E9EE; }
.dyno .ax { fill: var(--steel); font: 500 12px var(--body); }
.dyno path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.dyno .c-pw { stroke: var(--ink); stroke-width: 3; }
.dyno .c-tq { stroke: var(--wire); stroke-width: 3; }
.dyno .c-st { stroke: #9AA7B8; stroke-width: 2; stroke-dasharray: 6 5; }

.vehicle-info { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 2rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.vehicle-info h3 { font-size: 1.25rem; }
.vehicle-info .ecu-box { grid-column: 1 / -1; }
.vehicle-info ul { margin: 0; padding-left: 1.1rem; }
.vehicle-info li { margin-bottom: .35rem; }
.vehicle-info li::marker { color: var(--wire); }
.price-box { background: var(--paper); border-radius: 8px; padding: 1.25rem; }
.price-box .price { font: 700 1.8rem var(--display); margin: 0 0 .5rem; }
.price-box p { font-size: .98rem; }
.btn-link { display: block; margin-top: .75rem; background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; font: 600 .95rem var(--body); cursor: pointer; word-break: break-all; text-align: left; }
@media (max-width: 900px) { .vehicle-info { grid-template-columns: 1fr; gap: 1.5rem; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 3px solid var(--ink); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font: 700 1.25rem var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font-size: 1.5rem; color: var(--steel); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.2rem; color: #2A3A55; }

/* strony marek */
.crumbs { margin: 0 0 .75rem; font-weight: 600; }
.crumbs a { color: var(--white); }
.model-jump { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2.5rem; }
.model-jump a { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; }
.model-jump a:hover { border-color: var(--ink); }
.brand-model { margin-bottom: 2.75rem; scroll-margin-top: 90px; }
.brand-model h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.brand-model h2 span { font-size: .6em; color: var(--steel); font-weight: 600; margin-left: .35rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.engine-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
.engine-table th { text-align: left; font-weight: 600; color: var(--steel); font-size: .9rem; padding: .7rem 1rem; border-bottom: 2px solid var(--ink); background: var(--paper); }
.engine-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.engine-table tr:last-child td { border-bottom: 0; }
.engine-table td:first-child a { font-weight: 700; color: var(--ink); }
.engine-table .plus { color: #1C7A3E; font-weight: 600; }
.engine-table .more { font-size: .92rem; color: var(--ink-2); }

/* ---------- stopka ---------- */
.site-footer { background: #0E1A30; color: #AEB9CB; padding-block: 2.5rem; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.site-footer .brand span { color: var(--white); font-size: 1.5rem; }
.site-footer .brand span small { color: #8EA0BC; }
.site-footer nav a { color: #D6DDE8; margin-right: 1.25rem; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* uzupełnienia katalogu */
.delta { display: inline-block; background: var(--signal); color: var(--ink); font-weight: 700; padding: .1rem .5rem; border-radius: 4px; }
.fig-row b { white-space: nowrap; }
@media (max-width: 560px) {
  .fig-row { grid-template-columns: 4.6rem 1fr auto; gap: .6rem; }
  .fig-row span { font-size: .92rem; }
  .vehicle-head h2 { font-size: 1.8rem; }
}

/* ===== kalkulator (układ jak w portalu plików) ===== */
.calc { background: var(--ink); color: var(--white); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 18px 40px rgba(19,35,63,.18); }
.calc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.calc-title { display: flex; align-items: center; gap: .9rem; }
.calc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--signal); color: var(--ink); flex: none; }
.calc-title h2 { margin: 0; font-size: 1.7rem; color: var(--white); }
.calc-title p { margin: 0; color: #AFC0DA; font-size: .98rem; }
.calc-mode { display: inline-flex; background: #0E1A30; border: 1px solid #2B4169; border-radius: 10px; padding: 4px; }
.calc-mode button { border: 0; background: none; color: #AFC0DA; font: 600 .95rem var(--body); padding: .55rem 1rem; border-radius: 7px; cursor: pointer; }
.calc-mode button[aria-selected="true"] { background: var(--signal); color: var(--ink); }

.calc-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.calc-row-engine { grid-template-columns: 1fr; margin-top: .75rem; }
@media (max-width: 900px) { .calc-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .calc-row { grid-template-columns: 1fr; } }

.cb { position: relative; }
.cb-label { position: absolute; top: -.55rem; left: .7rem; padding: 0 .35rem; background: var(--ink); color: #AFC0DA; font-size: .78rem; font-weight: 600; z-index: 1; border-radius: 3px; }
.cb.filled .cb-label { color: var(--signal); }
.cb-box { position: relative; }
.cb input { width: 100%; padding: .95rem 3.6rem .85rem .95rem; font: 600 1.02rem var(--body); color: var(--white); background: #1A2C4D; border: 1px solid #34507F; border-radius: 9px; cursor: pointer; }
.cb input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(242,179,0,.25); cursor: text; }
.cb.disabled input { opacity: .45; cursor: not-allowed; }
.cb-arrow { position: absolute; right: .9rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid #AFC0DA; border-bottom: 2px solid #AFC0DA; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cb-clear { position: absolute; right: 2.1rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #AFC0DA; font-size: 1.25rem; line-height: 1; cursor: pointer; padding: .2rem .35rem; }
.cb-clear:hover { color: var(--white); }
.cb-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; list-style: none; margin: 0; padding: .35rem; max-height: 300px; overflow: auto; background: #1A2C4D; border: 1px solid #34507F; border-radius: 9px; box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.cb-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .7rem; border-radius: 6px; cursor: pointer; }
.cb-list li small { color: #8EA0BC; white-space: nowrap; }
.cb-list li:hover, .cb-list li.active { background: #263E66; }
.cb-list li[aria-selected="true"] { color: var(--signal); }
.cb-list .cb-empty { color: #8EA0BC; cursor: default; }

.calc-search { position: relative; }
.calc-search input { width: 100%; padding: 1rem 1.1rem 1rem 3rem; font: 500 1.08rem var(--body); color: var(--white); border: 1px solid #34507F; border-radius: 9px; background: #1A2C4D
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23AFC0DA' stroke-width='2.2'%3E%3Ccircle cx='8.5' cy='8.5' r='6.5'/%3E%3Cpath d='M13.5 13.5 19 19'/%3E%3C/svg%3E") no-repeat 1rem center; }
.calc-search input::placeholder { color: #8EA0BC; }
.calc-search input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(242,179,0,.25); }
.calc-hint { color: #8EA0BC; font-size: .9rem; margin: .5rem 0 0; }
.calc .ct-hits { background: #1A2C4D; border: 1px solid #34507F; box-shadow: 0 16px 36px rgba(0,0,0,.35); }
.calc .ct-hits button { color: var(--white); display: flex; justify-content: space-between; gap: 1rem; }
.calc .ct-hits button:hover, .calc .ct-hits button:focus { background: #263E66; outline: none; }
.calc .ct-hits .hit-v { color: #AFC0DA; white-space: nowrap; }
.calc .ct-hits .hit-v i { color: var(--signal); font-style: normal; }
.calc .ct-hits .none { color: #AFC0DA; }

#ct-result:empty { display: none; }
#ct-result { margin-top: 1.5rem; }
.res-empty { background: #1A2C4D; border: 1px dashed #34507F; border-radius: 12px; padding: 1.75rem; }
.res-empty h3 { font-size: 1.5rem; color: var(--white); }
.res-empty p { color: #C9D2E0; }

.res { background: var(--white); color: var(--ink); border-radius: 12px; padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.res-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.res-badge { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font: 700 1.35rem var(--display); color: var(--ink); }
.res-head h3 { margin: 0; font-size: 1.7rem; }
.res-head p { margin: .1rem 0 0; color: var(--steel); font-size: .98rem; }
.res-head > div { flex: 1; }
.res-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--steel); cursor: pointer; padding: .25rem .5rem; border-radius: 6px; }
.res-close:hover { background: var(--paper); color: var(--ink); }

.res-units { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6rem; margin: 1.1rem 0 .9rem; }
.res-units > span { color: var(--steel); font-size: .85rem; font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: var(--paper); }
.seg button { border: 0; background: none; padding: .35rem .7rem; border-radius: 6px; font: 600 .88rem var(--body); color: var(--steel); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.res-stages { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: .45rem; }
.stage-card { display: flex; align-items: center; gap: .85rem; text-align: left; background: none; border: 2px solid transparent; border-radius: 9px; padding: .75rem .9rem; cursor: pointer; color: var(--ink); font-family: var(--body); }
.stage-card[aria-selected="true"] { background: var(--white); border-color: var(--ink); box-shadow: 0 2px 10px rgba(19,35,63,.08); }
.stage-card:disabled { cursor: not-allowed; opacity: .55; }
.stage-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--ink); color: var(--signal); font-size: 1.1rem; flex: none; }
.stage-card:not([aria-selected="true"]) .stage-ico { background: #DCE1E8; color: var(--steel); }
.stage-txt { flex: 1; display: grid; }
.stage-txt b { font: 700 1.2rem var(--display); }
.stage-txt small { color: var(--steel); font-size: .85rem; }
.stage-val { text-align: right; display: grid; }
.stage-val b { font: 700 1.6rem var(--display); color: #1C7A3E; line-height: 1; }
.stage-card:not([aria-selected="true"]) .stage-val b { color: var(--steel); }
.stage-val small { color: var(--steel); font-size: .8rem; }
@media (max-width: 560px) { .res-stages { grid-template-columns: 1fr; } }

.res-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 760px) { .res-figs { grid-template-columns: 1fr; } }
.fig-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; }
.fig-top { display: flex; justify-content: space-between; align-items: center; }
.fig-top h4 { margin: 0; font: 700 1.25rem var(--display); }
.fig-pct { font-weight: 700; font-size: .9rem; padding: .15rem .5rem; border-radius: 5px; }
.fig-p .fig-pct { background: #E3F2E8; color: #1C7A3E; }
.fig-t .fig-pct { background: #FBE7E7; color: var(--wire); }
.fig-vals { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .5rem; margin: 1rem 0 .8rem; }
.fig-vals div { display: grid; }
.fig-vals .tuned { text-align: right; }
.fig-vals small { color: var(--steel); font-size: .78rem; font-weight: 600; }
.fig-vals b { font: 700 2.3rem var(--display); line-height: 1.05; color: #7B8796; font-variant-numeric: tabular-nums; }
.fig-p .tuned b { color: #1C7A3E; }
.fig-t .tuned b { color: var(--wire); }
.fig-arrow { color: var(--steel); font-size: 1.3rem; padding-bottom: 1.1rem; }
.fig-meter { position: relative; height: 8px; border-radius: 4px; background: var(--ink); overflow: hidden; }
.fig-p .fig-meter { background: #1C7A3E; } .fig-t .fig-meter { background: var(--wire); }
.fig-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #9AA7B8; border-right: 2px solid var(--white); transition: width .7s cubic-bezier(.3,0,.2,1); }
.fig-inc { margin: .6rem 0 0; font-weight: 600; font-size: .95rem; }
.fig-p .fig-inc { color: #1C7A3E; } .fig-t .fig-inc { color: var(--wire); }
@media (prefers-reduced-motion: reduce) { .fig-meter i { transition: none; } }

.all-brands-title { margin-top: 3.5rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.cb-list { min-width: 280px; } .cb-list li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) { .res-badge { display: none; } .res-head h3 { font-size: 1.45rem; } .calc-mode { width: 100%; } .calc-mode button { flex: 1; } }

/* programatory */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } }
.tool { border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 0 0 10px 10px; padding: 1.4rem; display: flex; flex-direction: column; background: var(--white); }
.tool h3 { font-size: 1.5rem; }
.tool p { color: #2A3A55; flex: 1; }
.tool-link { font-weight: 700; color: var(--ink-2); text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.methods-title { margin-top: 3rem; font-size: 1.6rem; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1rem 0 0; }
@media (max-width: 860px) { .methods { grid-template-columns: 1fr; gap: .75rem; } }
.methods div { border-left: 3px solid var(--signal); padding-left: 1rem; }
.methods dt { font: 700 1.25rem var(--display); }
.methods dd { margin: .2rem 0 0; color: var(--steel); }
.methods { align-items: start; } .methods + .disclaimer { margin-top: 2rem; }

/* ===== przełącznik motywu ===== */
.site-header .wrap { justify-content: flex-start; }
.site-header .brand { margin-right: auto; }
.theme-switch { display: inline-flex; align-items: center; gap: .55rem; background: none; border: 0; padding: .35rem .25rem; cursor: pointer; color: inherit; font: 600 .9rem var(--body); flex: none; }
.theme-switch .ts-track { position: relative; width: 58px; height: 30px; border-radius: 15px; background: #DCE1E8; border: 1px solid var(--line); transition: background .25s; }
.theme-switch .ts-knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 4px rgba(19,35,63,.3); display: grid; place-items: center; transition: transform .25s cubic-bezier(.3,0,.2,1); }
.theme-switch .ts-knob svg { width: 15px; height: 15px; }
.theme-switch[aria-checked="true"] .ts-track { background: var(--signal); border-color: var(--signal); }
.theme-switch[aria-checked="true"] .ts-knob { transform: translateX(28px); background: var(--ink); color: var(--signal); }
.theme-switch .ts-moon, .theme-switch[aria-checked="true"] .ts-sun { display: none; }
.theme-switch[aria-checked="true"] .ts-moon { display: block; }
.theme-switch .ts-sun { color: #C98F00; }
@media (max-width: 1440px) { .theme-switch .ts-text { display: none; } }
@media (prefers-reduced-motion: reduce) { .theme-switch .ts-track, .theme-switch .ts-knob { transition: none; } }

/* ===== ciemny motyw ===== */
html[data-theme="dark"] {
  --paper: #0C1526; --surface: #142139; --surface-2: #1B2B48; --text: #E4EAF3; --text-2: #C3CEDD;
  --line: #2A3B5B; --steel: #98A7BC; --rule: #8FA3C2; --ok: #4CC27A; --bad: #FF7070;
  color-scheme: dark;
}
html[data-theme="dark"] body { color: var(--text); }
html[data-theme="dark"] .site-header { background: var(--surface); }
html[data-theme="dark"] .nav a:hover { background: var(--surface-2); }
html[data-theme="dark"] .nav .call { background: var(--signal); color: var(--ink); }
html[data-theme="dark"] .nav-toggle { color: var(--text); }
html[data-theme="dark"] .nav { background: var(--surface); }
html[data-theme="dark"] .section-white { background: var(--surface); }
html[data-theme="dark"] .hero, html[data-theme="dark"] .page-head, html[data-theme="dark"] .cta-band { background: #101C33; }
html[data-theme="dark"] .calc { background: #101C33; box-shadow: 0 0 0 1px var(--line); }
html[data-theme="dark"] .cb-label { background: #101C33; }
html[data-theme="dark"] .todo { color: var(--ink); }
html[data-theme="dark"] .btn-ink { background: var(--signal); color: var(--ink); }
html[data-theme="dark"] .btn-ink:hover { background: #FFC51F; }

/* linie i obramowania akcentowe */
html[data-theme="dark"] .service-index, html[data-theme="dark"] .service:first-child,
html[data-theme="dark"] .faq details:first-child, html[data-theme="dark"] .tool, html[data-theme="dark"] .vehicle { border-top-color: var(--rule); }
html[data-theme="dark"] .steps li::before { background: var(--paper); border-color: var(--rule); }
html[data-theme="dark"] .section-white .steps li::before { background: var(--surface); }
html[data-theme="dark"] .steps li:not(:last-child)::after { background: var(--rule); }
html[data-theme="dark"] .tool p, html[data-theme="dark"] .faq details p { color: var(--text-2); }
html[data-theme="dark"] .tool { background: var(--paper); }
html[data-theme="dark"] .tool-link, html[data-theme="dark"] .btn-link, html[data-theme="dark"] .engine-table .more, html[data-theme="dark"] .ct-crumbs a { color: var(--text); }

/* listy marek i tabele */
html[data-theme="dark"] .brand-list a, html[data-theme="dark"] .model-jump a { background: var(--surface); }
html[data-theme="dark"] .brand-list a:hover, html[data-theme="dark"] .model-jump a:hover { border-color: var(--rule); }
html[data-theme="dark"] .brand-list a[aria-current="page"] { background: var(--signal); color: var(--ink); }
html[data-theme="dark"] .brand-list a[aria-current="page"] span { color: var(--ink); }
html[data-theme="dark"] .table-scroll { background: var(--surface); }
html[data-theme="dark"] .engine-table th { background: var(--surface-2); border-bottom-color: var(--rule); }
html[data-theme="dark"] .engine-table td:first-child a { color: var(--text); }
html[data-theme="dark"] .engine-table .plus { color: var(--ok); }

/* wynik w kalkulatorze */
html[data-theme="dark"] .res { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .res-badge { background: var(--surface-2); color: var(--text); }
html[data-theme="dark"] .res-close:hover { background: var(--surface-2); color: var(--text); }
html[data-theme="dark"] .seg, html[data-theme="dark"] .res-stages, html[data-theme="dark"] .price-box { background: var(--paper); }
html[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--signal); color: var(--ink); }
html[data-theme="dark"] .stage-card { color: var(--text); }
html[data-theme="dark"] .stage-card[aria-selected="true"] { background: var(--surface); border-color: var(--signal); }
html[data-theme="dark"] .stage-card:not([aria-selected="true"]) .stage-ico { background: var(--surface-2); }
html[data-theme="dark"] .stage-val b, html[data-theme="dark"] .fig-p .tuned b, html[data-theme="dark"] .fig-p .fig-inc { color: var(--ok); }
html[data-theme="dark"] .fig-t .tuned b, html[data-theme="dark"] .fig-t .fig-inc { color: var(--bad); }
html[data-theme="dark"] .fig-p .fig-pct { background: rgba(76,194,122,.15); color: var(--ok); }
html[data-theme="dark"] .fig-t .fig-pct { background: rgba(255,112,112,.15); color: var(--bad); }
html[data-theme="dark"] .fig-vals b { color: var(--steel); }
html[data-theme="dark"] .fig-meter i { border-right-color: var(--surface); background: #4A5A74; }
html[data-theme="dark"] .fig-p .fig-meter { background: var(--ok); } html[data-theme="dark"] .fig-t .fig-meter { background: var(--bad); }

/* wykres poglądowy */
html[data-theme="dark"] .dyno .grid { stroke: var(--line); }
html[data-theme="dark"] .dyno .c-pw { stroke: #E4EAF3; }
html[data-theme="dark"] .dyno .c-tq { stroke: var(--bad); }
html[data-theme="dark"] .dyno .c-st { stroke: #6B7C96; }
html[data-theme="dark"] .legend .l-pw { border-color: #E4EAF3; }
html[data-theme="dark"] .legend .l-tq { border-color: var(--bad); }
html[data-theme="dark"] .legend .l-st { border-color: #6B7C96; }
html[data-theme="dark"] .dyno-head h3 { color: var(--text); }
@media (max-width: 420px) {
  .site-header .wrap { gap: .6rem; }
  .brand span { font-size: 1.45rem; }
  .brand img { width: 34px; height: 34px; }
  .theme-switch .ts-track { width: 50px; height: 28px; }
  .theme-switch .ts-knob { width: 22px; height: 22px; }
  .theme-switch[aria-checked="true"] .ts-knob { transform: translateX(22px); }
}

.ecu-note { display: block; margin-top: .3rem; color: var(--steel); font-size: .85rem; line-height: 1.4; }
.engine-table sup { color: var(--steel); margin-left: .1rem; }
.engine-table td:nth-child(n+4):nth-child(-n+6) { white-space: nowrap; }

/* ===== tabele na telefonie: karty zamiast przewijania na boki ===== */
@media (max-width: 700px) {
  .table-scroll { overflow: visible; border: 0; border-radius: 0; background: none; }
  .engine-table { min-width: 0; }
  .engine-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .engine-table, .engine-table tbody, .engine-table tr, .engine-table th, .engine-table td { display: block; }
  .engine-table tr { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: .35rem 1rem .5rem; margin-bottom: .7rem; }
  .engine-table td, .engine-table tbody th { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .engine-table tr td:last-child, .engine-table tr:last-child td { border-bottom: 0; }
  .engine-table tbody th, .engine-table td:first-child:not([data-label]) { font-size: 1.05rem; font-weight: 700; color: inherit; background: none; border-bottom: 2px solid var(--line); }
  .engine-table td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; text-align: right; white-space: normal !important; }
  .engine-table td[data-label]::before { content: attr(data-label); color: var(--steel); font-weight: 600; font-size: .9rem; text-align: left; flex: none; }
  .engine-table td.td-more { padding-top: .6rem; }
  .engine-table td.td-more:empty { display: none; }
  /* wynik w kalkulatorze: trzy wartości obok siebie */
  .param-table tr { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: .75rem; padding: .6rem 1rem .75rem; }
  .param-table tbody th { grid-column: 1 / -1; margin-bottom: .45rem; }
  .param-table td[data-label] { display: block; text-align: left; border: 0; padding: 0; font-size: 1.05rem; font-weight: 600; }
  .param-table td[data-label]::before { display: block; font-size: .78rem; margin-bottom: .1rem; }
  .param-table td[data-label]:last-child { color: #1C7A3E; }
  html[data-theme="dark"] .engine-table tr { background: var(--surface); }
  html[data-theme="dark"] .param-table td[data-label]:last-child { color: var(--ok); }
}
@media (max-width: 700px) {
  html[data-theme="dark"] .engine-table tbody th, .engine-table tbody th { background: none; }
}
@media (max-width: 700px) {
  .engine-table td[data-label] > span, .engine-table td[data-label] { min-width: 0; overflow-wrap: anywhere; }
}
.brand-model h2, .model-jump a { overflow-wrap: anywhere; }

/* ===== listy wyboru na telefonie: nazwa silnika nad szczegółami ===== */
@media (max-width: 700px) {
  .cb-list { min-width: 0; max-height: 60vh; }
  .cb-list li { flex-direction: column; justify-content: flex-start; gap: .15rem; padding: .6rem .75rem; }
  .cb-list li span { white-space: normal; overflow: visible; font-weight: 600; overflow-wrap: anywhere; }
  .cb-list li small { white-space: normal; font-size: .82rem; line-height: 1.35; }
}

/* ===== wyszukiwanie po VIN ===== */
.calc-vin label { display: block; color: #AFC0DA; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; }
.vin-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.vin-row input { flex: 1 1 260px; min-width: 0; padding: .95rem 1.1rem; font: 600 1.1rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--white); background: #1A2C4D; border: 1px solid #34507F; border-radius: 9px; }
.vin-row input::placeholder { color: #8EA0BC; letter-spacing: .02em; font-weight: 500; }
.vin-row input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(242,179,0,.25); }
.vin-row .btn { border: 0; cursor: pointer; font-family: var(--body); }
.vin-row .btn:disabled { opacity: .6; cursor: wait; }
.calc-hint.err { color: #FF9A9A; }
.vin-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem 1.2rem; margin: 1.1rem 0 0; padding: 1rem 1.1rem; background: #13223D; border: 1px solid #2B4169; border-radius: 9px; }
.vin-fields div { min-width: 0; }
.vin-fields dt { color: #8EA0BC; font-size: .8rem; font-weight: 600; }
.vin-fields dd { margin: 0; color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
.vin-h { color: var(--white); font-size: 1.15rem; margin: 1.3rem 0 .6rem; }
.vin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.vin-list a { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; padding: .75rem .9rem; border-radius: 8px; background: #1A2C4D; border: 1px solid #34507F; color: var(--white); text-decoration: none; }
.vin-list a:hover, .vin-list a:focus { border-color: var(--signal); outline: none; }
.vin-list span { color: #C3CEDD; }
.vin-list em { margin-left: auto; font-style: normal; color: var(--signal); font-weight: 600; white-space: nowrap; }
.vin-msg { color: #C3CEDD; margin: 1rem 0 0; }
.vin-msg a { color: var(--signal); }
.vin-src { color: #8EA0BC; font-size: .82rem; margin: .9rem 0 0; }
@media (max-width: 520px) { .vin-row .btn { width: 100%; } .vin-list em { margin-left: 0; width: 100%; } .calc-mode button { padding: .55rem .5rem; font-size: .88rem; } }
@media (max-width: 520px) { .vin-fields { grid-template-columns: 1fr 1fr; } }

/* ===== VIN „wkrótce”, popularne marki, modyfikacje systemów ===== */
.calc-mode button[disabled] { cursor: not-allowed; color: #6F82A0; }
.calc-mode .soon { display: inline-block; margin-left: .35rem; padding: .05rem .4rem; border-radius: 4px; background: rgba(242,179,0,.15); color: var(--signal); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: .1em; }
.brand-list a[hidden] { display: none; }
.brand-more-wrap { margin: 1rem 0 1.2rem; text-align: center; }
.brand-more { cursor: pointer; font-family: var(--body); }
.brand-all { margin-top: .5rem; }
.systems { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.systems li { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--signal); border-radius: 8px; }
.systems b { font: 700 1.2rem var(--display); }
.systems span { color: var(--steel); font-size: .95rem; line-height: 1.45; }
.systems-note { color: var(--steel); font-size: .85rem; margin: .8rem 0 0; }
html[data-theme="dark"] .systems li { background: var(--surface); }
@media (max-width: 520px) { .calc-mode .soon { display: block; margin: .15rem auto 0; width: max-content; } }
.brand-list[hidden] { display: none; }
.brand-more-wrap { display: flex; justify-content: center; max-width: none; }
.mobile-note { margin-top: .8rem; padding: .55rem .9rem; display: inline-block; border-left: 3px solid var(--signal); background: rgba(242,179,0,.12); border-radius: 0 6px 6px 0; font-weight: 600; }
.cta-sub { margin: .5rem 0 0; color: #C3CEDD; }

/* ===== podstrony usług ===== */
.svc-cat { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.svc-card { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--signal); border-radius: 8px; text-decoration: none; color: inherit; }
.svc-card b { font: 700 1.2rem var(--display); }
.svc-card span { color: var(--steel); font-size: .92rem; line-height: 1.4; }
.svc-card:hover, .svc-card:focus { border-color: var(--ink); border-left-color: var(--signal); }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.svc-cols h2 { font-size: 1.6rem; }
.svc-list { padding-left: 1.2rem; margin: 0; }
.svc-list li { margin: .35rem 0; }
.svc-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.svc-steps li { counter-increment: s; position: relative; padding: .35rem 0 .35rem 2.4rem; }
.svc-steps li::before { content: counter(s); position: absolute; left: 0; top: .25rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--signal); color: var(--ink); font: 700 .95rem var(--display); }
.svc-note { margin-top: 1.2rem; padding: .8rem 1rem; border-left: 3px solid var(--signal); background: rgba(242,179,0,.12); border-radius: 0 6px 6px 0; }
.page-head .crumbs { margin-bottom: .6rem; font-size: .95rem; }
.page-head .crumbs a { color: var(--signal); }
html[data-theme="dark"] .svc-card { background: var(--surface-2); }
@media (max-width: 760px) { .svc-cols { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Aktualności ---------- */
.news-list{display:grid;gap:1.25rem;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.news-card{background:var(--white);border:1px solid var(--line,#e2e5ea);border-radius:12px;padding:1.25rem 1.4rem;display:flex;flex-direction:column}
.news-card h2{font-size:1.15rem;margin:.35rem 0 .5rem;line-height:1.3}
.news-card h2 a{color:inherit;text-decoration:none}
.news-card h2 a:hover{text-decoration:underline}
.news-card p{margin:0 0 .75rem}
.news-more{margin-top:auto;font-weight:600}
.news-meta{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;font-size:.85rem;opacity:.8;margin:0}
.news-meta time{margin-right:.35rem}
.news-tag{border:1px solid currentColor;border-radius:99px;padding:.05rem .55rem;font-size:.75rem}
.news-article{max-width:760px}
.news-article > p{line-height:1.7}
.news-cta{border:1px solid var(--line);border-radius:12px;padding:1.1rem 1.3rem;margin:1.75rem 0}
.news-cta p{margin:0 0 .75rem}
.site-footer nav{display:flex;flex-wrap:wrap;gap:.35rem 1rem;max-width:100%}
.news-article .news-meta{margin-bottom:1rem}
html[data-theme="dark"] .news-card { background: var(--surface); border-color: var(--line); color: var(--text); }
html[data-theme="dark"] .news-card h2 a, html[data-theme="dark"] .news-article a:not(.btn) { color: var(--text); }
html[data-theme="dark"] .news-more { color: var(--signal); }
html[data-theme="dark"] .news-meta { color: var(--text-2); opacity: 1; }
html[data-theme="dark"] .news-tag { border-color: var(--rule); color: var(--text-2); }
html[data-theme="dark"] .news-article > p { color: var(--text); }
html[data-theme="dark"] .news-cta { background: var(--surface); border-color: var(--line); }
#kontakt { scroll-margin-top: 72px; }

/* ---------- SEO: linki wewnętrzne ---------- */
.svc-links{display:flex;flex-wrap:wrap;gap:.5rem}
.svc-links a{border:1px solid var(--line);border-radius:99px;padding:.35rem .9rem;text-decoration:none;font-weight:600;color:inherit}
.svc-links a:hover{border-color:var(--signal)}
.svc-list a{font-weight:600}
.brand-services{margin:2.5rem 0 1.5rem;padding:1.4rem 1.6rem;border:1px solid var(--line);border-radius:12px;background:var(--white)}
.brand-services h2{margin-top:0;font-size:1.35rem}
.news-all{margin-top:1.25rem;font-weight:600}
.news-more-h{margin-top:3rem}
.news-card h3{font-size:1.1rem;margin:.35rem 0 .5rem;line-height:1.3}
.news-card h3 a{color:inherit;text-decoration:none}
.news-card h3 a:hover{text-decoration:underline}
html[data-theme="dark"] .brand-services{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .svc-links a{border-color:var(--rule);color:var(--text)}
html[data-theme="dark"] .news-card h3 a{color:var(--text)}
html[data-theme="dark"] .svc-list a, html[data-theme="dark"] .news-all a{color:var(--text)}

/* ---------- Funkcje oprogramowania, poradniki ---------- */
.systems-more{margin:1.1rem 0 0;display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:center}
.systems-more span{color:var(--steel);font-size:.92rem}
.fn-nav{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.fn-nav a{border:1px solid rgba(255,255,255,.35);border-radius:99px;padding:.3rem .85rem;color:inherit;text-decoration:none;font-weight:600;font-size:.92rem}
.fn-nav a:hover{border-color:var(--signal)}
.fn-lead{color:var(--steel);max-width:760px}
.news-links{border-top:1px solid var(--line);padding-top:1rem;margin-top:1.5rem}
html[data-theme="dark"] .systems-more span, html[data-theme="dark"] .fn-lead{color:var(--text-2)}

/* ---------- strony lokalne (np. elektryk samochodowy Łęczna) ---------- */
.page-head .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.local-list li a { font-weight: 600; text-underline-offset: 3px; }
.svc-steps + p { margin-top: 1.25rem; }
.local-list li a:hover { color: var(--wire); }
html[data-theme="dark"] .local-list li a:hover { color: var(--signal); }

/* ---------- przycisk „Zadzwoń” przyklejony na dole ekranu (telefony) ---------- */
.call-bar { display: none; }
@media (max-width: 760px) {
  .call-bar {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom, 0px)); z-index: 30;
    background: var(--signal); color: var(--ink); font-weight: 700; font-size: 1.05rem; text-decoration: none;
    padding: .85rem 1rem; border-radius: 10px; box-shadow: 0 6px 20px rgba(14, 26, 48, .35);
  }
  .call-bar svg { width: 1.2rem; height: 1.2rem; flex: none; }
  .call-bar:active { background: #FFC51F; }
  body.has-call-bar { padding-bottom: 5rem; }
}
@media print { .call-bar { display: none !important; } }
