/* =====================================================================
 * SPC NACZEPY - modele 3D, porównanie egzemplarzy, porównywarka (03.12.2026)
 * Style z demo piasecki.studio/demo/spc-naczepy (zgoda właściciela),
 * nazwy ogólne (chip, rozklad, spec, kalkulator…) z przedrostkiem n3d-,
 * żeby nie gryzły się z Bootstrapem i style.css.
 * ===================================================================== */
:root {
    --tusz: #111418; --tusz-2: #30353b; --szary: #5f666d; --szary-2: #8a9097;
    --linia: rgba(17, 20, 24, .11); --linia-2: rgba(17, 20, 24, .2);
    --papier: #eceeec; --papier-2: #e2e5e3;
    --grafit: #22262b; --grafit-2: #2c3137; --grafit-3: #3a4047; --na-grafit: #c9ced3;
    --morski: #4e8494; --morski-txt: #2c6272; --morski-jasny: #dbe8eb; --morski-noc: #6fb0c1;
    --drozej: #a94f1d; --taniej: #2b7a66; --korekta: #86620a;
    --e: cubic-bezier(.2, .7, .1, 1); --r: 16px;
}
.ikona { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.14em; }
.n3d-vin, .vin { font-family: ui-monospace, Consolas, "IBM Plex Mono", monospace; font-weight: 500; font-size: .86em; letter-spacing: .02em; }

/* ---------------- Galeria: przełącznik Zdjęcia | Model 3D ---------------- */
.galeria-tryb { position: absolute; left: 14px; top: 14px; z-index: 3; display: inline-flex; background: #1114189e; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 999px; padding: 3px; }
.galeria-tryb button { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 13.5px; font-weight: 600; }
.galeria-tryb button[aria-pressed=true] { background: #fff; color: var(--tusz); }
.galeria-3d { position: absolute; inset: 0; background: #22262b; z-index: 2; }
.galeria-3d[hidden] { display: none; }
.g3d-scena { position: absolute; inset: 0; }
.g3d-scena canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.g3d-scena canvas:active { cursor: grabbing; }
.g3d-widoki { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; z-index: 2; }
.g3d-widoki::-webkit-scrollbar { display: none; }
.g3d-widoki button { flex: none; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: #1114188c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 13.5px; font-weight: 500; }
.g3d-widoki button[aria-pressed=true] { background: #fff; color: var(--tusz); border-color: #fff; }
.gallery-main.tryb-3d > img, .gallery-main.tryb-3d > picture, .gallery-main.tryb-3d .gallery-counter { visibility: hidden; }
.galeria-3d .g3d-scena canvas { opacity: 0; transition: opacity .6s var(--e); }
.galeria-3d.gotowe .g3d-scena canvas { opacity: 1; }
.galeria-3d:not(.gotowe) .g3d-widoki, .galeria-3d:not(.gotowe) .p3d-zoom { visibility: hidden; }
.p3d-zoom { position: absolute; right: 14px; top: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.p3d-zoom button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18); background: #1114188c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; }
.p3d-zoom button:hover { background: #fff; color: var(--tusz); }
.p3d-zoom button[disabled] { opacity: .35; cursor: default; }
.p3d-zoom button[disabled]:hover { background: #1114188c; color: #fff; }
.galeria-3d .p3d-zoom { top: auto; bottom: 58px; }
.ladowanie3d { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #6c757c; pointer-events: none; transition: opacity .6s var(--e), visibility 0s .6s; }
.galeria-3d .ladowanie3d { background: #22262b; }
.p3d-lewa .ladowanie3d { background: var(--tlo3d, #22262b); }
.p3d-sekcja.gotowe .ladowanie3d, .galeria-3d.gotowe .ladowanie3d { opacity: 0; visibility: hidden; }
.p3d-sekcja.bez-3d .ladowanie3d { display: none; }
.ladowanie3d svg { width: min(300px, 62%); height: auto; }
.ladowanie3d svg path, .ladowanie3d svg circle { stroke-dasharray: 760; stroke-dashoffset: 760; animation: l3-rysuj 2.4s var(--e) infinite; }
.ladowanie3d .l3-b { animation-delay: .25s; }
.ladowanie3d .l3-c { animation-delay: .45s; }
.ladowanie3d .l3-d { animation-delay: .6s; opacity: .5; }
.ladowanie3d-pasek { width: min(180px, 40%); height: 2px; border-radius: 2px; background: #ffffff14; overflow: hidden; }
.ladowanie3d-pasek i { display: block; width: 40%; height: 100%; background: var(--morski-noc); border-radius: 2px; animation: l3-pasek 1.2s ease-in-out infinite; }
.ladowanie3d-tekst { font-size: 13px; letter-spacing: .06em; color: #8a9097; }
@keyframes l3-rysuj { 0% { stroke-dashoffset: 760; } 55% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } to { stroke-dashoffset: 0; opacity: 0; } }
@keyframes l3-pasek { 0% { transform: translate(-100%); } to { transform: translate(250%); } }
@media (max-width: 640px) { .p3d-zoom button { width: 36px; height: 36px; font-size: 20px; } }

/* ---------------- Blok zakupowy: VIN, chipy, składowe ceny, porównanie ---------------- */
.n3d-vin-wiersz { display: flex; align-items: center; gap: 8px; color: var(--szary); font-size: 15px; }
.n3d-vin-wiersz button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--linia-2); background: #fff; font-size: 12.5px; font-weight: 600; }
.n3d-vin-wiersz button:hover { border-color: var(--tusz); }
.n3d-chipy { display: flex; flex-wrap: wrap; gap: 6px; }
.n3d-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #fff; border: 1px solid var(--linia); font-size: 13px; color: var(--tusz-2); white-space: nowrap; }
.n3d-rozwin { border-top: 1px solid var(--linia); }
.n3d-rozwin summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; font-weight: 600; }
.n3d-rozwin summary::-webkit-details-marker { display: none; }
.n3d-rozwin summary::after { content: ""; width: 9px; height: 9px; border-right: 1.8px solid var(--tusz); border-bottom: 1.8px solid var(--tusz); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--e); flex: none; }
.n3d-rozwin[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.n3d-rozwin summary small { font-weight: 500; color: var(--szary); margin-left: auto; margin-right: 6px; }
.n3d-rozklad { list-style: none; margin: 0; padding: 0 0 4px; font-size: 14px; }
.n3d-rozklad li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--linia); }
.n3d-rozklad li:first-child { border-top: 0; }
.n3d-rozklad li span:first-child { color: var(--tusz-2); }
.n3d-rozklad .kw { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.n3d-rozklad .plus .kw { color: var(--drozej); }
.n3d-rozklad .minus .kw { color: var(--taniej); }
.n3d-rozklad .korekta .kw { color: var(--korekta); }
.n3d-rozklad .suma { border-top: 1px solid var(--tusz); font-weight: 600; }
.n3d-rozklad .suma span:first-child { color: var(--tusz); }
.n3d-por-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.n3d-por-btn[aria-pressed=true] { background: var(--tusz); border-color: var(--tusz); color: #fff; }
.n3d-panel-maly { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.n3d-panel-maly button, .n3d-panel-maly a { background: none; border: 0; padding: 0; color: var(--morski-txt); font-weight: 600; text-decoration: none; }
.n3d-panel-maly button:hover, .n3d-panel-maly a:hover { text-decoration: underline; }
.n3d-panel-maly a.puste { display: none; }

/* ---------------- Na tle innych egzemplarzy ---------------- */
.n3d-pas-cen { background: #fff; border: 1px solid var(--line, #e6e6e6); border-radius: 20px; padding: clamp(22px, 2.6vw, 40px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 56px); align-items: center; }
.n3d-pas-cen p { color: var(--tusz-2); }
.n3d-pas-lista { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.n3d-pas-lista li { display: flex; gap: 12px; align-items: baseline; }
.n3d-pas-lista .kw { min-width: 92px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.n3d-pas-lista .plus .kw { color: var(--drozej); }
.n3d-pas-lista .minus .kw { color: var(--taniej); }
.n3d-pas-lista .korekta .kw { color: var(--korekta); }
.n3d-pasek { position: relative; height: 150px; margin: 0 8px; }
.pasek-os { position: absolute; left: 0; right: 0; top: 92px; height: 2px; background: var(--papier-2); border-radius: 2px; }
.pasek-kropka { position: absolute; top: 93px; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 2px solid var(--szary-2); transition: transform .2s; display: block; }
.pasek-kropka.sieradz { border-color: var(--morski); background: var(--morski); }
.pasek-kropka:hover { transform: scale(1.3); }
.pasek-ta { position: absolute; top: 93px; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--tusz); box-shadow: 0 0 0 6px #1114181a; }
.pasek-etykieta { position: absolute; transform: translate(-50%); white-space: nowrap; text-align: center; font-size: 13px; color: var(--szary); }
.pasek-etykieta b { display: block; color: var(--tusz); font-size: 15px; font-variant-numeric: tabular-nums; }
.pasek-etykieta.gora { top: 14px; }
.pasek-etykieta.dol { top: 114px; }
.pasek-etykieta.gora::after { content: ""; position: absolute; left: 50%; top: calc(100% + 3px); width: 1px; height: 16px; background: var(--tusz); }
.pasek-etykieta.lewa { transform: none; }
.pasek-etykieta.lewa.gora::after { left: 0; }
.pasek-etykieta.prawa { transform: translate(-100%); }
.pasek-etykieta.prawa.gora::after { left: 100%; }

/* ---------------- Finansowanie: zakładki Leasing | Kredyt + kalkulator ---------------- */
.n3d-fin-zakladki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 620px; margin-bottom: 14px; padding: 6px; background: #fff; border: 1px solid var(--linia); border-radius: var(--r); }
.n3d-fin-zakladki [role=tab] { display: grid; gap: 2px; padding: 11px 16px; border: 0; border-radius: 11px; background: transparent; color: var(--tusz); font: inherit; font-weight: 600; text-align: left; cursor: pointer; transition: background-color .2s, color .2s; }
.n3d-fin-zakladki [role=tab] small { font-size: 13.5px; font-weight: 400; color: var(--szary); font-variant-numeric: tabular-nums; }
.n3d-fin-zakladki [role=tab]:hover { background: var(--papier); }
.n3d-fin-zakladki [role=tab][aria-selected=true] { background: var(--grafit); color: #fff; }
.n3d-fin-zakladki [role=tab][aria-selected=true] small { color: var(--na-grafit); }
.n3d-fin-zakladki [role=tab]:focus-visible { outline: 2px solid var(--morski); outline-offset: 2px; }
.n3d-fin [role=tabpanel][hidden] { display: none; }
.n3d-kalkulator { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px; }
.n3d-karta { background: #fff; border: 1px solid var(--line, #e6e6e6); border-radius: var(--r); padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 22px; align-content: center; }
.n3d-suwak { display: grid; gap: 8px; font-size: 15px; }
.n3d-suwak-gora { display: flex; justify-content: space-between; gap: 12px; }
.n3d-suwak-gora b { font-variant-numeric: tabular-nums; }
.n3d-suwak input[type=range] { width: 100%; accent-color: var(--tusz); }
.n3d-wynik-raty { background: var(--grafit); color: #fff; border-radius: var(--r); padding: clamp(22px, 2.4vw, 34px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.n3d-etykieta { display: block; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--morski-noc); margin-bottom: 4px; }
.n3d-wynik-raty strong { display: block; font-size: clamp(38px, 4vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.n3d-wynik-raty p { margin: 0; color: var(--na-grafit); font-size: 14px; }
.n3d-wynik-raty dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 0; margin: 0; font-size: 14.5px; color: var(--na-grafit); }
.n3d-wynik-raty dt { font-weight: 400; }
.n3d-wynik-raty dt span { color: var(--szary-2); font-variant-numeric: tabular-nums; }
.n3d-wynik-raty dd { margin: 0; padding-left: 16px; color: #fff; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.n3d-wynik-raty .n3d-razem { padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .16); color: #fff; }
.n3d-wynik-raty .n3d-pod-rata { display: block; margin-top: 8px; font-size: 14.5px; color: var(--na-grafit); font-variant-numeric: tabular-nums; }
.n3d-fin-uwagi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; margin-top: 14px; padding: 0 4px; font-size: 13.5px; color: var(--szary); }
.n3d-fin-uwagi p { margin: 0; }
.n3d-fin-uwagi .n3d-ubezp { color: var(--tusz-2); font-weight: 600; }
@media (max-width: 767.98px) { .n3d-fin-uwagi { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
    .n3d-fin-zakladki [role=tab] { padding: 10px 12px; font-size: 15px; line-height: 1.3; }
    .n3d-fin-zakladki [role=tab] small { font-size: 12.5px; }
    .n3d-wynik-raty dl { font-size: 14px; }
}
.n3d-wynik-raty .btn { align-self: flex-start; }

/* ---------------- Lista naczep (strona główna i kategorie, 03.12.2026, układ z demo) ----------------
   Wiersz: includes/product-row.php, filtry: assets/js/lista.js. Kolumny: zdjęcie | naczepa | miejsce | termin | cena | przyciski */
.n3d-filtry { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0; border-top: 1px solid var(--linia); border-bottom: 1px solid var(--linia); }
.n3d-segment { display: inline-flex; max-width: 100%; padding: 3px; border-radius: 999px; background: var(--papier-2); overflow-x: auto; scrollbar-width: none; }
.n3d-segment::-webkit-scrollbar { display: none; }
.n3d-segment button, .n3d-segment a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--tusz-2); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; cursor: pointer; }
.n3d-segment button:hover, .n3d-segment a:hover { color: var(--tusz); }
.n3d-segment button[aria-pressed=true], .n3d-segment a[aria-current] { background: #fff; color: var(--tusz); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.n3d-segment button:focus-visible, .n3d-segment a:focus-visible { outline: 2px solid var(--morski); outline-offset: -2px; }
.n3d-segment .count { font-size: 12px; color: var(--szary); }
.n3d-wynik { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 6px; font-size: 14px; color: var(--szary); }
.n3d-wynik b { color: var(--tusz); }
.n3d-link { padding: 0; border: 0; background: none; color: var(--tusz); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.n3d-lista { list-style: none; margin: 0; padding: 0; }
.n3d-lista-glowa, .n3d-wiersz { display: grid; grid-template-columns: 132px minmax(0, 1fr) 150px 210px 160px 96px; gap: 22px; align-items: center; }
.n3d-lista-glowa { padding: 10px 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--szary); }
.n3d-lista-glowa span:nth-child(5) { text-align: right; }
.n3d-wiersz { position: relative; padding: 14px 0; border-top: 1px solid var(--linia); transition: background-color .2s; }
.n3d-wiersz:hover { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55) 8%, rgba(255, 255, 255, .55) 92%, transparent); }
.n3d-wiersz-foto { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--papier-2); }
.n3d-wiersz-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.n3d-wiersz-model { min-width: 0; }
.n3d-marka { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--szary); }
.n3d-wiersz-model h3 { margin: 2px 0 6px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; }
.n3d-wiersz-model h3 a { color: inherit; text-decoration: none; }
.n3d-wiersz-model h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 12px; }
.n3d-wiersz-model h3 a:hover { color: var(--morski-txt); }
.n3d-wiersz-model h3 a:focus-visible { outline: none; }
.n3d-wiersz-model h3 a:focus-visible::after { outline: 2px solid var(--morski); outline-offset: -2px; }
.n3d-wiersz-vin { display: block; margin: -1px 0 9px; color: var(--szary); font-size: 12.5px; }
.n3d-chip-3d { position: relative; z-index: 1; background: var(--grafit); border-color: var(--grafit); color: #fff; font-weight: 600; text-decoration: none; }
.n3d-chip-3d:hover, .n3d-chip-3d:focus-visible { background: var(--morski-txt); border-color: var(--morski-txt); color: #fff; }
.n3d-chip-polecana { background: #fff4d6; border-color: #efd28a; color: #6b4e00; font-weight: 600; }
.n3d-chip-uzywana { background: #fbe9d7; border-color: #edc497; color: #7a3f0c; font-weight: 600; }
.n3d-wiersz-miejsce, .n3d-wiersz-termin { font-size: 15px; line-height: 1.35; }
.n3d-wiersz-miejsce small, .n3d-wiersz-termin small { display: block; color: var(--szary); font-size: 13px; }
.n3d-wiersz-termin small.n3d-miejsce-tel { display: none; }
.n3d-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.n3d-status::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--szary-2); }
.n3d-status.gotowa::before { background: #2fa36b; box-shadow: 0 0 0 3px rgba(47, 163, 107, .18); }
.n3d-status.tydzien::before { background: var(--morski); }
.n3d-status.minal::before { background: var(--korekta); }
.n3d-wiersz-cena { text-align: right; }
.n3d-wiersz-cena strong { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.n3d-wiersz-cena small { color: var(--szary); font-size: 13px; white-space: nowrap; }
.n3d-wiersz-akcje { position: relative; z-index: 1; display: flex; justify-content: flex-end; gap: 8px; }
.n3d-wiersz-akcje form { margin: 0; }
.n3d-przelacz { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--linia-2); border-radius: 12px; background: #fff; color: var(--tusz); font-size: 19px; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.n3d-przelacz .ikona { width: 19px; height: 19px; }
.n3d-przelacz:hover { border-color: var(--tusz); color: var(--tusz); }
.n3d-przelacz[aria-pressed=true] { background: var(--tusz); border-color: var(--tusz); color: #fff; }
.n3d-przelacz:focus-visible { outline: 2px solid var(--morski); outline-offset: 2px; }
.n3d-do-koszyka { background: var(--tusz); border-color: var(--tusz); color: #fff; }
.n3d-do-koszyka:hover { background: var(--morski-txt); border-color: var(--morski-txt); color: #fff; }
.n3d-w-koszyku, .n3d-w-koszyku:hover { background: #e3f3ea; border-color: #2fa36b; color: #1d6b45; }
.n3d-wiersz-pusty { padding: 40px 0; border-top: 1px solid var(--linia); color: var(--szary); }
.n3d-wiecej { display: flex; justify-content: center; margin-top: 28px; }
@media (max-width: 1180px) {
    .n3d-lista-glowa, .n3d-wiersz { grid-template-columns: 112px minmax(0, 1fr) 180px 150px 96px; }
    .n3d-lista-glowa span:nth-child(3), .n3d-wiersz-miejsce { display: none; }
    .n3d-wiersz-termin small.n3d-miejsce-tel { display: block; }
}
@media (min-width: 641px) and (max-width: 900px) {
    .n3d-lista-glowa, .n3d-wiersz { grid-template-columns: 96px minmax(0, 1fr) 150px 120px 96px; gap: 16px; }
    .n3d-wiersz-model .n3d-chipy { display: none; }
}
@media (max-width: 640px) {
    .n3d-filtry { gap: 8px; padding: 12px 0; }
    .n3d-filtry .n3d-segment { flex: 1 1 auto; }
    .n3d-filtry .n3d-segment button, .n3d-filtry .n3d-segment a { flex: 1; height: 34px; padding: 0 8px; font-size: 13.5px; }
    .n3d-lista-glowa { display: none; }
    .n3d-wiersz { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "foto model akcje" "foto termin cena"; gap: 6px 12px; align-items: start; }
    .n3d-wiersz-foto { grid-area: foto; }
    .n3d-wiersz-model { grid-area: model; }
    .n3d-marka { font-size: 11px; }
    .n3d-wiersz-model h3 { margin-bottom: 2px; font-size: 17px; }
    .n3d-wiersz-model .n3d-chipy, .n3d-vin-et { display: none; }
    .n3d-wiersz-vin { margin: 0 0 4px; font-size: 11.5px; }
    .n3d-wiersz-termin { grid-area: termin; font-size: 13.5px; }
    .n3d-wiersz-termin small:not(.n3d-miejsce-tel) { display: none; }
    .n3d-wiersz-termin small.n3d-miejsce-tel { display: block; }
    .n3d-wiersz-cena { grid-area: cena; align-self: end; }
    .n3d-wiersz-cena strong { font-size: 16px; }
    .n3d-wiersz-cena small { display: none; }
    .n3d-wiersz-akcje { grid-area: akcje; gap: 6px; }
    .n3d-przelacz { width: 40px; height: 40px; font-size: 17px; }
}

/* ---------------- Dane techniczne modelu ---------------- */
.n3d-spec { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 56px); }
.n3d-spec dl { margin: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border-top: 1px solid var(--linia); align-self: start; }
.n3d-spec dt, .n3d-spec dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--linia); }
.n3d-spec dt { color: var(--szary); padding-right: 16px; font-weight: 400; }
.n3d-spec dd { font-weight: 600; }
.n3d-spec-opis p { margin: 0 0 16px; color: var(--tusz-2); }
.n3d-spec-opis ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.n3d-spec-opis li { display: flex; gap: 10px; }
.n3d-spec-opis li .ikona { color: var(--morski); font-size: 18px; margin-top: 3px; }
.n3d-spec-zrodlo { font-size: 13px; color: var(--szary) !important; }
.n3d-slownik { background: var(--surface, #f7f7f7); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; font-size: 14.5px; }
.n3d-slownik b { display: block; }
.n3d-slownik p { margin: 2px 0 10px !important; font-size: 14px; }
.n3d-slownik p:last-child { margin-bottom: 0 !important; }
.n3d-spec-wiecej { display: none; }

/* ---------------- Odkup ---------------- */
.n3d-odkup { background: var(--grafit); color: #fff; border-radius: 20px; padding: clamp(22px, 2.6vw, 40px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: center; }
.n3d-odkup .section-eyebrow { color: var(--morski-noc); }
.n3d-odkup h2 { color: #fff; }
.n3d-odkup p { color: var(--na-grafit); }

/* ---------------- Tacka porównania, komunikat, link w menu ---------------- */
.tacka { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1040; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 12px; background: var(--tusz); color: #fff; border-radius: 999px; padding: 8px 8px 8px 10px; box-shadow: 0 20px 50px -14px #00000080; transition: transform .5s var(--e); max-width: calc(100vw - 24px); }
.tacka:not(.widoczna) { visibility: hidden; transition: transform .5s var(--e), visibility 0s .5s; }
.tacka.widoczna { transform: translate(-50%); }
.tacka:empty { display: none; }
.tacka-miejsca { display: flex; gap: 6px; }
.tacka-miejsce { position: relative; width: 52px; height: 40px; border-radius: 999px; overflow: hidden; background: var(--grafit-3); flex: none; transition: opacity .2s; }
.tacka-miejsce img { width: 100%; height: 100%; object-fit: cover; }
.tacka-miejsce.puste { background: transparent; border: 1px dashed rgba(255, 255, 255, .25); }
.tacka-miejsce button { position: absolute; inset: 0; border: 0; background: #11141899; color: #fff; opacity: 0; display: grid; place-items: center; transition: opacity .2s; }
.tacka-miejsce:hover button, .tacka-miejsce button:focus-visible { opacity: 1; }
.tacka-tekst { font-size: 14px; line-height: 1.2; padding: 0 4px; white-space: nowrap; }
.tacka-tekst small { display: block; color: var(--szary-2); font-size: 12px; }
.tacka-btn { height: 44px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 0 18px; }
.tacka-btn[aria-disabled=true] { opacity: .6; }
.tacka-wyczysc { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--szary-2); display: grid; place-items: center; }
.tacka-wyczysc:hover { color: #fff; }
.btn-back-to-top { z-index: 1030; }
.n3d-komunikat { position: fixed; left: 50%; top: 86px; transform: translate(-50%, -10px); z-index: 1095; background: #111418; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; max-width: calc(100vw - 32px); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .5); opacity: 0; transition: opacity .25s, transform .35s var(--e); pointer-events: none; }
.n3d-komunikat.widoczny { opacity: 1; transform: translate(-50%, 0); }
.n3d-por-link { display: inline-flex !important; align-items: center; gap: 6px; }
.n3d-por-link.puste { display: none !important; }
@media (min-width: 992px) and (max-width: 1199.98px) { .n3d-por-link { display: none !important; } }   /* ciasne menu - zostaje tacka na dole */
.n3d-licznik { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--tusz); color: #fff; font-size: 12px; font-weight: 700; }
@media (max-width: 640px) {
    .tacka { gap: 6px; padding: 6px 4px 6px 8px; }
    .tacka-miejsca { gap: 4px; }
    .tacka-miejsce { width: 34px; height: 30px; }
    .tacka-tekst { display: none; }
    .tacka-btn { height: 40px; padding: 0 12px; font-size: 15px; }
    .tacka-wyczysc { width: 32px; height: 32px; }
}

/* ---------------- Kafelek naczepy: 3D i porównanie ---------------- */
.product-akcje-gora { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: .35rem; }
.product-akcje-gora .product-brand { margin: 0; }
.product-akcje-gora .zestaw { display: flex; gap: 6px; flex: none; }
.product-3d, .product-por { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; }
.product-3d { background: var(--grafit); color: #fff; border: 1px solid var(--grafit); }
.product-3d:hover { background: var(--morski-txt); border-color: var(--morski-txt); color: #fff; }
.product-por { background: #fff; color: var(--tusz-2); border: 1px solid var(--linia-2); }
.product-por:hover { border-color: var(--tusz); color: var(--tusz); }
.product-por.wybrany { background: var(--tusz); border-color: var(--tusz); color: #fff; }

/* ---------------- Strona główna: porównywarka 3D ---------------- */
.p3d-sekcja { --tlo3d: #22262b; --m: 0px; background: #181b1f; color: #fff; padding: clamp(40px, 5vw, 72px) 0; }
.p3d-sekcja .section-eyebrow { color: var(--morski-noc); }
.p3d-sekcja .section-title { color: #fff; }
.p3d-sekcja .section-lead { color: var(--na-grafit); }
.p3d-modele { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 16px; }
.p3d-modele::-webkit-scrollbar { display: none; }
.model-btn { flex: none; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff; font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: background-color .25s, border-color .25s, color .25s; }
.model-btn small { color: var(--szary-2); font-size: 13px; font-weight: 600; }
.model-btn:hover { border-color: #fff6; }
.model-btn[aria-pressed=true] { background: #fff; color: var(--tusz); border-color: #fff; }
.model-btn[aria-pressed=true] small { color: var(--szary); }
.p3d-model { margin-top: 14px; font-weight: 600; font-size: 15px; }
.p3d { display: grid; grid-template-columns: minmax(0, 1fr) min(390px, 31vw); grid-template-rows: minmax(0, 1fr) auto; column-gap: 14px; height: clamp(600px, 80vh, 860px); margin-top: 4px; }
.p3d-lewa { grid-column: 1; grid-row: 1; position: relative; min-width: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.p3d-suwak { grid-column: 1; grid-row: 2; padding-top: 18px; }
.p3d-panel { grid-column: 2; grid-row: 1 / 3; position: relative; min-width: 0; background: var(--grafit-2); border: 1px solid rgba(255, 255, 255, .06); border-radius: 18px; padding: 18px 20px 20px; color: #fff; overflow: auto; }
.p3d-scena { position: absolute; inset: 0; background: var(--tlo3d); }
.p3d-scena canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; opacity: 0; transition: opacity .8s var(--e); touch-action: pan-y; }
.p3d-scena canvas:active { cursor: grabbing; }
.p3d-sekcja.gotowe .p3d-scena canvas { opacity: 1; }
.p3d-sekcja.bez-3d .p3d-scena { background: var(--tlo3d); }
.p3d-sekcja:not(.gotowe) .p3d-metki, .p3d-sekcja:not(.gotowe) .p3d-widoki, .p3d-sekcja:not(.gotowe) .p3d-pomoc, .p3d-sekcja:not(.gotowe) .p3d-zoom { visibility: hidden; }
.p3d-sekcja.bez-3d .p3d-metki, .p3d-sekcja.bez-3d .p3d-widoki, .p3d-sekcja.bez-3d .p3d-pomoc, .p3d-sekcja.bez-3d .p3d-zoom { display: none; }
.p3d-metki { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.metka { --dl: 34px; position: absolute; left: 0; top: 0; pointer-events: auto; border: 0; background: none; padding: 0; color: #fff; transition: opacity .25s; will-change: transform; }
.metka.schowana { opacity: 0; pointer-events: none; }
.metka-pin { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #ffffff38; }
.metka.plus .metka-pin { background: #f0a06e; box-shadow: 0 0 0 4px #f0a06e40; }
.metka.minus .metka-pin { background: #7fd0b8; box-shadow: 0 0 0 4px #7fd0b840; }
.metka-pin::after { content: ""; position: absolute; left: 6px; bottom: 13px; width: 1px; height: var(--dl); background: #ffffff8c; }
.metka-tresc { position: absolute; left: -1px; bottom: calc(var(--dl) + 12px); transform: translate(-14px); display: block; text-align: left; white-space: nowrap; background: #111418d1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 8px 12px 9px; transition: background-color .2s, border-color .2s, transform .3s var(--e); }
.metka.lewo .metka-tresc { transform: translate(calc(-100% + 14px)); text-align: right; }
.metka-tresc b { display: block; font-size: 17px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.metka.plus .metka-tresc b { color: #f0a06e; }
.metka.minus .metka-tresc b { color: #7fd0b8; }
.metka.zero .metka-tresc b { color: #fff; font-size: 14.5px; font-weight: 600; }
.metka-tresc span { display: block; font-size: 13px; color: #c9ced3; }
.metka:hover .metka-tresc, .metka.aktywna .metka-tresc, .metka:focus-visible .metka-tresc { background: #fff; border-color: #fff; }
.metka:hover .metka-tresc span, .metka.aktywna .metka-tresc span, .metka:focus-visible .metka-tresc span { color: var(--tusz-2); }
.metka.plus:hover .metka-tresc b, .metka.plus.aktywna .metka-tresc b { color: var(--drozej); }
.metka.minus:hover .metka-tresc b, .metka.minus.aktywna .metka-tresc b { color: var(--taniej); }
.metka.zero:hover .metka-tresc b, .metka.zero.aktywna .metka-tresc b { color: var(--tusz); }
.p3d-widoki { position: absolute; left: 18px; bottom: 16px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 36px); }
.p3d-widoki button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: #1114188c; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 14px; font-weight: 500; }
.p3d-widoki button[aria-pressed=true] { background: #fff; color: var(--tusz); border-color: #fff; }
.p3d-pomoc { position: absolute; left: 18px; top: 14px; margin: 0; font-size: 13px; color: var(--szary-2); }
.p3d-gora { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p3d-strz { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; display: grid; place-items: center; }
.p3d-strz:first-child .ikona { transform: scaleX(-1); }
.p3d-strz:hover:not([disabled]) { background: #ffffff1a; }
.p3d-strz[disabled] { opacity: .3; }
.p3d-nr { text-align: center; font-size: 14px; color: #c9ced3; }
.p3d-nr b { color: #fff; font-size: 18px; }
.p3d-nr small { display: block; font-size: 12px; color: #a9afb6; }
.p3d-vin { margin: 14px 0 4px; font-size: 13.5px; color: #c9ced3; }
.p3d-cena { font-size: clamp(32px, 2.8vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.p3d-cena small { font-size: 14px; font-weight: 500; color: #a9afb6; letter-spacing: 0; margin-left: 8px; }
.p3d-rozklad { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.p3d-rozklad li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.p3d-rozklad button { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: none; border: 0; color: #fff; text-align: left; padding: 10px 8px; margin: 0 -8px; width: calc(100% + 16px); border-radius: 10px; font-size: 14.5px; }
.p3d-rozklad button:not([disabled]):hover { background: #ffffff12; }
.p3d-rozklad button[disabled] { cursor: default; }
.p3d-rozklad small { display: block; color: #a9afb6; font-size: 12.5px; margin-top: 2px; }
.p3d-rozklad b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 650; }
.p3d-rozklad .plus b { color: #f0a06e; }
.p3d-rozklad .minus b { color: #7fd0b8; }
.p3d-rozklad .korekta b { color: #e8c25a; }
.p3d-wzgl { margin-top: 14px; font-size: 14px; color: #c9ced3; line-height: 1.45; }
.p3d-wzgl b { color: #f0a06e; font-variant-numeric: tabular-nums; }
.p3d-roznice { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.p3d-roznice li { display: flex; gap: 10px; align-items: baseline; }
.p3d-roznice b { min-width: 84px; white-space: nowrap; }
.p3d-akcje { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.p3d-akcje .btn { border-radius: 999px; }
.p3d-suwak-gora { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: #a9afb6; margin-bottom: 10px; }
.p3d-suwak-gora b { color: #fff; margin-left: 6px; }
.p3d-suwak-pod { text-align: center; }
.p3d-tor { position: relative; height: 34px; }
.p3d-tor input { position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; z-index: 2; cursor: pointer; }
.p3d-tor input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #7fd0b8, #c9ced3 50%, #f0a06e); }
.p3d-tor input::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #7fd0b8, #c9ced3 50%, #f0a06e); }
.p3d-tor input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; margin-top: -11px; box-shadow: 0 0 0 6px #ffffff29, 0 6px 16px #0006; }
.p3d-tor input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px #ffffff29; }
.p3d-kreski { position: absolute; left: 13px; right: 13px; top: 22px; height: 10px; pointer-events: none; }
.p3d-kreski i { position: absolute; top: 0; width: 1px; height: 6px; background: #ffffff40; }
.p3d-kreski i.nowa { height: 10px; background: #ffffff8c; }
.p3d-zastepstwo { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--na-grafit); padding: 24px; }
@media (max-width: 900px) {
    .p3d { display: block; height: auto; }
    .p3d-lewa { border-radius: 14px; overflow: hidden; }
    .p3d-suwak { padding: 16px 0 0; }
    .p3d-scena { position: relative; height: min(64svh, 520px); }
    .p3d-metki { bottom: auto; height: min(64svh, 520px); }
    .p3d-lewa .ladowanie3d { bottom: auto; height: min(64svh, 520px); }
    .p3d-widoki { position: static; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 12px; max-width: none; margin: 0; background: var(--tlo3d); }
    .p3d-widoki::-webkit-scrollbar { display: none; }
    .p3d-widoki button { flex: none; }
    .p3d-pomoc { top: 10px; }
    .p3d-panel { position: static; margin: 14px 0 0; }
    .metka.zero { display: none; }
    .metka-tresc { padding: 6px 10px 7px; }
    .metka-tresc b { font-size: 15px; }
    .metka-tresc span { font-size: 12px; }
}
@media (max-width: 640px) { .p3d-suwak-pod { display: none; } }

/* ---------------- Strona porównania ---------------- */
body[data-strona=porownanie] { background: var(--papier); }
.por-gora { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 8px 0 26px; }
.por-akcje { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.por-siatka { --kol: 2; display: grid; grid-template-columns: minmax(150px, 1.1fr) repeat(var(--kol), minmax(0, 1fr)); column-gap: 14px; }
.por-naglowki { position: sticky; top: 76px; z-index: 5; background: var(--papier); padding: 12px 0 14px; border-bottom: 1px solid var(--linia); }
.por-etyk { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--szary); align-self: end; }
.por-kol, .por-dodaj, .tabela-wiersz > div { min-width: 0; overflow-wrap: anywhere; }
.por-kol { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 14px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 40px 10px 10px; }
.por-kol img { grid-row: span 3; width: 96px; height: 72px; border-radius: 9px; object-fit: cover; }
.por-kol a { text-decoration: none; font-weight: 620; line-height: 1.15; }
.por-kol .n3d-vin { color: var(--szary); font-size: 12px; }
.por-kol strong { font-size: 19px; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.por-kol .usun { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--papier); display: grid; place-items: center; color: var(--tusz); }
.por-kol.najtansza { box-shadow: inset 0 0 0 2px var(--morski); }
.por-kol .znak { position: absolute; left: 10px; top: -9px; background: var(--morski-txt); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.por-dodaj { display: grid; place-items: center; align-content: center; border: 1.5px dashed var(--linia-2); border-radius: 14px; color: var(--szary); font-weight: 600; font-size: 14px; text-decoration: none; min-height: 92px; gap: 4px; text-align: center; padding: 10px; background: transparent; }
.por-dodaj:hover { border-color: var(--tusz); color: var(--tusz); }
.por-dodaj .ikona { font-size: 22px; }
.por-sekcja { padding: clamp(36px, 4vw, 56px) 0 0; }
.por-sekcja > .section-eyebrow { display: block; margin-bottom: 6px; }
.por-sekcja > h2 { margin-bottom: 20px; }
.zdania { display: grid; gap: 12px; }
.zdanie { background: #fff; border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 4px 22px; align-items: start; }
.zdanie .roz { font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zdanie .roz.plus { color: var(--drozej); }
.zdanie .roz.zero { color: var(--szary); }
.zdanie h3 { margin: 2px 0 6px; font-size: 17px; font-weight: 600; }
.zdanie ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 15px; color: var(--tusz-2); }
.zdanie ul b { font-variant-numeric: tabular-nums; font-weight: 650; margin-right: 6px; }
.zdanie ul .plus b { color: var(--drozej); }
.zdanie ul .minus b { color: var(--taniej); }
.zdanie ul .korekta b { color: var(--korekta); }
.zdanie .bez { color: var(--szary); }
.wodospad { background: #fff; border-radius: 16px; padding: clamp(18px, 2vw, 28px); }
.wod-wiersz { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 110px; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linia); }
.wod-wiersz:first-child { border-top: 0; }
.wod-nazwa { font-size: 14px; line-height: 1.25; }
.wod-nazwa b { display: block; font-weight: 620; }
.wod-nazwa .n3d-vin { color: var(--szary); font-size: 12px; }
.wod-tor { position: relative; height: var(--h, 34px); }
.wod-baza { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 1.5px dashed var(--szary-2); }
.wod-seg { position: absolute; height: 10px; border-radius: 3px; }
.wod-seg.plus { background: var(--drozej); }
.wod-seg.minus { background: var(--taniej); }
.wod-seg.korekta { background: repeating-linear-gradient(-45deg, var(--korekta) 0 5px, #d9b65a 5px 9px); }
.wod-koniec { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--tusz); box-shadow: 0 0 0 3px #fff; }
.wod-cena { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wod-skala { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 110px; gap: 16px; margin-top: 6px; }
.wod-skala div { position: relative; height: 20px; font-size: 12px; color: var(--szary); }
.wod-skala span { position: absolute; transform: translate(-50%); white-space: nowrap; }
.wod-legenda { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13px; color: var(--szary); }
.wod-legenda span { display: inline-flex; align-items: center; gap: 7px; }
.wod-legenda i { width: 16px; height: 10px; border-radius: 3px; display: inline-block; }
.wod-legenda i.baza { width: 0; height: 14px; border-left: 1.5px dashed var(--szary-2); border-radius: 0; }
.tabela-wiersz { padding: 12px 0; border-bottom: 1px solid var(--linia); font-size: 15px; }
.tabela-wiersz > div:first-child { color: var(--szary); }
.tabela-wiersz small { display: block; color: var(--szary); font-size: 12.5px; }
.tabela-wiersz.rozne > div:not(:first-child) { font-weight: 600; }
.tabela-wiersz.rozne > div:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--drozej); margin-right: 8px; vertical-align: middle; }
.tylko-roznice .tabela-wiersz:not(.rozne):not(.zawsze) { display: none; }
.por-cta { display: grid; grid-template-columns: minmax(150px, 1.1fr) repeat(var(--kol), minmax(0, 1fr)); column-gap: 14px; margin-top: 18px; }
.por-cta .btn { width: 100%; }
.przelacznik { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; cursor: pointer; margin: 0; }
.przelacznik input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--linia-2); position: relative; cursor: pointer; transition: background-color .2s; margin: 0; flex: none; }
.przelacznik input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .25s var(--e); }
.przelacznik input:checked { background: var(--tusz); }
.przelacznik input:checked::after { transform: translate(18px); }
.por-pusto { background: #fff; border-radius: 20px; padding: clamp(28px, 4vw, 56px); text-align: center; margin: 20px 0; }
.por-pusto p { color: var(--tusz-2); max-width: 34em; margin: 12px auto 22px; }
.n3d-okno { width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px); border: 0; border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 80px -20px #00000080; }
.n3d-okno::backdrop { background: #11141880; }
.n3d-okno-gora { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.n3d-okno-zamknij { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linia-2); background: #fff; display: grid; place-items: center; flex: none; }
.n3d-okno-lista { list-style: none; margin: 0; padding: 0; max-height: 60svh; overflow: auto; }
.n3d-okno-lista a { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; border-top: 1px solid var(--linia); padding: 10px 0; text-decoration: none; color: var(--tusz); }
.n3d-okno-lista a:hover { background: var(--papier); }
.n3d-okno-lista img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.n3d-okno-lista small { display: block; font-size: 13px; color: var(--szary); }

/* ---------------- Układ na węższych ekranach ---------------- */
@media (max-width: 1199px) {
    .por-kol { grid-template-columns: 1fr; padding: 8px 8px 10px; gap: 4px; }
    .por-kol img { grid-row: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; }
    .por-kol a:not(.usun) { padding-right: 26px; }
    .por-kol .usun { right: 12px; top: 12px; }
    .por-kol strong { font-size: 17px; }
}
@media (max-width: 1100px) {
    .n3d-pas-cen, .n3d-kalkulator, .n3d-spec, .n3d-odkup { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .por-siatka, .por-cta { grid-template-columns: repeat(var(--kol), minmax(0, 1fr)); column-gap: 8px; }
    .por-siatka > .por-etyk, .por-cta > .por-etyk { display: none; }
    .tabela-wiersz > div:first-child { grid-column: 1 / -1; font-size: 13px; margin-bottom: 2px; }
    .por-kol { grid-template-columns: 1fr; padding: 8px; gap: 4px; }
    .por-kol img { grid-row: auto; width: 100%; height: auto; aspect-ratio: 4 / 3; }
    .por-kol a { font-size: 13px; padding-right: 0 !important; }
    .por-kol .n3d-vin { font-size: 10.5px; }
    .por-kol strong { font-size: 12.5px; white-space: nowrap; overflow-wrap: normal; }
    .por-kol .znak { font-size: 9px; padding: 2px 6px; white-space: nowrap; overflow-wrap: normal; left: 6px; }
    .tabela-wiersz { font-size: 13.5px; }
    .por-kol .usun { right: 12px; top: 12px; width: 26px; height: 26px; }
    .por-dodaj { min-height: 120px; }
    .wod-wiersz { grid-template-columns: 1fr auto; gap: 6px 12px; }
    .wod-tor { grid-column: 1 / -1; order: 3; }
    .wod-skala { grid-template-columns: 1fr; }
    .wod-skala > div:first-child, .wod-skala > div:last-child { display: none; }
    .zdanie { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .n3d-spec dl { grid-template-columns: 1fr 1.2fr; }
    .n3d-spec dl .ukryj-mob { display: none; }
    .n3d-spec-wiecej { display: inline-flex !important; margin-top: 12px; justify-self: start; }
    .n3d-pasek { margin: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
    .ladowanie3d svg path, .ladowanie3d svg circle { animation: none; stroke-dashoffset: 0; }
    .ladowanie3d-pasek i { animation: none; width: 100%; }
}
@media print {
    .tacka, .galeria-tryb, .galeria-3d, .n3d-panel-maly, .n3d-fin, .n3d-sekcja-rata, .n3d-odkup, .p3d-sekcja, .por-akcje, .por-dodaj, .por-kol .usun, .por-cta { display: none !important; }
}

/* =====================================================================
 * KARTA NACZEPY - układ jak w demo (03.12.2026): galeria 7/12 z zaokrągleniem 20 px,
 * biały panel egzemplarza (przyklejony), duża cena, termin i miejsce z ikonami,
 * przyciski-pigułki; na telefonie zdjęcie od krawędzi i pasek z ceną na dole.
 * ===================================================================== */
.karta-okruszki { padding: 22px 0 18px !important; }
.karta-sekcja { padding-bottom: clamp(24px, 3vw, 44px); }
.karta-gora { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 52px); align-items: start; }
.karta-galeria .gallery-main { border: 0; border-radius: 20px; background: var(--papier-2); aspect-ratio: 4 / 3; }
.karta-galeria .gallery-counter { left: 16px; right: auto; bottom: 16px; background: #111418b8; font-weight: 600; padding: 6px 11px; font-size: 13px; font-variant-numeric: tabular-nums; z-index: 1; }
.karta-galeria .gallery-thumbs { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.karta-galeria .gallery-thumb { border: 0; border-radius: 10px; opacity: .55; transition: opacity .2s, box-shadow .2s; }
.karta-galeria .gallery-thumb:hover { opacity: .85; }
.karta-galeria .gallery-thumb.active { opacity: 1; box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--tusz); }
.panel-egz { position: sticky; top: 96px; background: #fff; border-radius: 20px; padding: clamp(22px, 2.2vw, 32px); }
.panel-etykieta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--szary); }
.panel-egz h1 { font-size: clamp(30px, 3.1vw, 50px); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 10px 0 14px; }
.panel-egz .n3d-vin-wiersz { margin-bottom: 12px; }
.cena-blok { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 22px 0 4px; }
.cena-duza { color: var(--tusz); font-size: clamp(34px, 3.1vw, 50px); font-weight: 700; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.cena-blok > span:last-child { color: var(--szary); font-size: 15px; }
.panel-egz .n3d-rozwin { margin-top: 16px; }
.karta-info { border-top: 1px solid var(--linia); }
.karta-info > div { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linia); }
.karta-info .ikona { font-size: 20px; color: var(--morski); margin-top: 3px; }
.karta-info .is-stock .ikona, .karta-info .is-stock b { color: var(--taniej); }
.karta-info b { display: block; font-weight: 600; line-height: 1.35; }
.karta-info small { display: block; color: var(--szary); font-size: 13.5px; margin-top: 2px; line-height: 1.45; }
.panel-akcje { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.panel-akcje .cala { grid-column: 1 / -1; }
.panel-akcje .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; font-size: 16px; white-space: nowrap; }
.panel-akcje .ikona { font-size: 18px; }
.panel-egz .n3d-panel-maly { margin-top: 16px; }
.pasek-dol { display: none; }
body[data-strona=naczepa] .n3d-sekcja-pas .n3d-pas-cen, body[data-strona=naczepa] .n3d-karta { border: 0; }
body[data-strona=naczepa] .bg-surface { background: transparent !important; }
@media (max-width: 1100px) {
    .karta-gora { grid-template-columns: 1fr; }
    .panel-egz { position: static; }
    .karta-galeria .gallery-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .karta-galeria .gallery-main { border-radius: 0; margin-inline: calc(-1 * clamp(16px, 4vw, 64px)); }
    .karta-galeria .gallery-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 24%; overflow-x: auto; scrollbar-width: none; padding: 4px 4px 6px; }
    .karta-galeria .gallery-thumbs::-webkit-scrollbar { display: none; }
    .panel-akcje { grid-template-columns: 1fr; }
    .pasek-dol { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: #fffffff5; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--linia); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 10px; }
    .pasek-dol > div { margin-right: auto; line-height: 1.15; min-width: 0; }
    .pasek-dol b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .pasek-dol small { color: var(--szary); font-size: 12.5px; }
    .pasek-dol form { margin: 0; }
    .pasek-dol .btn { height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; }
    .pasek-dol .tel-ikona { width: 46px; padding: 0; font-size: 18px; }
    /* strona z paskiem na dole (karta naczepy, koszyk): tacka, „do góry” i stopka nad paskiem */
    body:has(.pasek-dol) .tacka { bottom: calc(80px + env(safe-area-inset-bottom)); }
    body:has(.pasek-dol) .btn-back-to-top { bottom: 84px; }
    body:has(.pasek-dol) .site-footer { padding-bottom: 90px; }
    body:has(.pasek-dol) .consent-bar { bottom: 70px; }
    .pasek-koszyk .btn { padding: 0 20px; white-space: nowrap; }
}

/* porównywarka na stronie głównej - pełna szerokość jak w demo */
.p3d { height: clamp(640px, 84vh, 930px); padding-inline: clamp(16px, 4vw, 64px); }
@media (max-width: 900px) { .p3d { height: auto; } }
