/* dls-polska.pl — one stylesheet, mobile-first, no framework. The look of the old Elementor site: white header, teal
   accent (#3fab97), light title band with honeycomb, teal "Masz pytania?" band, dark honeycomb footer. Open Sans
   (self-hosted, the old site declared it but never loaded it). */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/fonts/open-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/fonts/open-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --teal: #3fab97;            /* the brand accent: lines, icons, badges, the CTA band */
    --teal-dark: #299b86;       /* bottom of the CTA gradient */
    --teal-strong: #1f7a69;     /* teal text and buttons with white text on them (AA contrast) */
    --teal-hover: #186455;
    --ink: #252525;
    --text: #333;
    --muted: #5f6368;
    --grey: #f7f7f7;
    --grey-2: #ededed;
    --line: #e1e1e1;
    --dark: #222;
    --black: #000;
    --white: #fff;
    --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 6px;
    --shadow: 0 2px 14px rgba(0, 0, 0, .09);
    --container: 1140px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-strong); }
a:hover { color: var(--teal-hover); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; font-weight: 700; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--white); }
.skip-link:focus { left: 8px; top: 8px; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------- buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .7em 1.4em; border: 0; border-radius: 3px;
    background: var(--teal-strong); color: var(--white); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover { background: var(--teal-hover); color: var(--white); }
.button--large { padding: 1em 2.2em; font-size: 17px; font-weight: 500; border-radius: 5px; }
.button--dark { background: var(--ink); }
.button--dark:hover { background: var(--black); transform: scale(1.03); }
.button--light { background: #efefef; color: var(--ink); }
.button--light:hover { background: var(--white); color: var(--ink); transform: scale(1.03); }

/* ---------- header */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid #d6d6d6; box-shadow: 0 1px 6px rgba(0, 0, 0, .06); }
.header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.header__logo img { width: 56px; height: 56px; }
.header__search.search { display: none; }
.nav__item--search { padding: 12px 0; }
.nav__item--search .search { flex: 1; }
.header__phone { margin-left: auto; padding: .6em 1.1em; font-weight: 400; white-space: nowrap; }
.header__phone-icon { display: none; }
.header__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.header__toggle .icon { width: 28px; height: 28px; }
.header__toggle .icon--close, .header__toggle[aria-expanded="true"] .icon--open { display: none; }
.header__toggle[aria-expanded="true"] .icon--close { display: block; }
.search { position: relative; display: flex; align-items: center; }
.search__icon { position: absolute; left: 14px; color: #555; pointer-events: none; }
.search__input { width: 100%; padding: 11px 14px 11px 42px; border: 0; border-radius: 3px; background: #f0f0f0; font: 15px var(--font); color: var(--ink); }
.search__input::placeholder { color: #666; }

/* nav: a panel under the header on phones, a row on desktop */
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow); }
.nav.is-open { display: block; }
.nav__list { list-style: none; margin: 0; padding: 8px 16px 16px; }
.nav__item { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
.nav__link { flex: 1; padding: 12px 0; color: var(--ink); font-size: 17px; text-decoration: none; }
.nav__link[aria-current="page"], .nav__link:hover { color: var(--teal-strong); }
.nav__sub { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.nav__sub .icon { transition: transform .2s; }
.nav__sub[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mega { display: none; list-style: none; width: 100%; margin: 0; padding: 0 0 12px; }
.nav__sub[aria-expanded="true"] + .mega { display: block; }
.mega__col { padding: 8px 0; }
.mega__head { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.mega__img { width: 48px; height: 48px; object-fit: contain; }
.mega__list { list-style: none; margin: 4px 0 0 60px; padding: 0; }
.mega__list a { display: block; padding: 5px 0; color: var(--text); font-size: 15px; text-decoration: none; }
.mega__list a:hover, .mega__list a[aria-current="page"], .mega__head:hover { color: var(--teal-strong); }

@media (min-width: 1100px) {
    :root { --header-h: 88px; }
    .header__logo img { width: 72px; height: 72px; }
    .header__inner { gap: 32px; }
    .header__search.search { display: flex; width: 236px; }
    .nav__item--search { display: none; }
    .header__toggle { display: none; }
    .header__phone { margin-left: 18px; }
    /* the nav and its items are as tall as the header, so the pointer never leaves "Car audio" on its way down to the mega menu */
    .nav { display: block; position: static; align-self: stretch; max-height: none; overflow: visible; border: 0; box-shadow: none; margin-left: auto; }
    .nav__list { display: flex; gap: 6px; height: 100%; padding: 0; }
    .nav__item { border: 0; position: static; }
    .nav__link { padding: 10px 14px; font-size: 18px; }
    .nav__item--mega .nav__link { padding-right: 2px; }
    .nav__sub { width: 26px; height: 40px; }
    .nav__item--mega:hover .nav__sub .icon { transform: rotate(180deg); }
    /* the mega menu: a white card under the header with the four categories; it closes 0.25 s after the pointer left,
       so cutting a corner on the way to it does not close it */
    .mega { position: absolute; left: 50%; top: calc(100% - 1px); transform: translateX(-50%); width: min(1000px, calc(100vw - 32px));
        display: grid; visibility: hidden; opacity: 0; transition: opacity .15s .25s, visibility 0s .4s;
        grid-template-columns: repeat(4, 1fr); padding: 24px 0; background: var(--white); border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .15); }
    /* :focus-visible, not :focus-within — after a mouse click on the arrow the focus stays there and would hold the menu open */
    .nav__item--mega:hover .mega, .nav__item--mega:has(:focus-visible) .mega, .nav__sub[aria-expanded="true"] + .mega { display: grid; visibility: visible; opacity: 1; transition-delay: 0s; }   /* display: the phone rule above says block */
    .mega__col { padding: 0 24px; border-left: 1px solid var(--line); }
    .mega__col:first-child { border-left: 0; }
    .mega__head { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 15px; }
    .mega__img { width: auto; height: 92px; max-width: 100%; margin: 0 auto; object-fit: contain; transition: transform .3s; }
    .mega__head:hover .mega__img { transform: scale(1.03); }
    .mega__list { margin: 8px 0 0; }
    .mega__list a { font-size: 14px; padding: 4px 0; }
}

/* with a mouse the mega menu opens on hover only: the arrow is not a button to click (it turns with the menu). Touch
   screens of this width and the keyboard (Enter on the arrow) keep the button. */
@media (min-width: 1100px) and (hover: hover) { .nav__sub { pointer-events: none; } }

/* ---------- title band (h1 + breadcrumbs) */
.band { background: var(--grey) url("/images/pages/bg-hex.webp") left center / auto 100% no-repeat; border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.band__title { margin: 0 0 10px; font-size: clamp(26px, 5vw, 40px); font-weight: 700; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 10px; color: var(--ink); }
.crumbs a { color: var(--teal-strong); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (min-width: 768px) { .crumbs ol { font-size: 18px; } }
.crumbs-bar { background: var(--grey); border-bottom: 1px solid var(--line); padding: 10px 0; }
.crumbs-bar .crumbs ol { font-size: 14px; }

/* light grey strip with a heading ("Opis", "Więcej z tej kategorii") */
.strip { background: var(--grey); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: 40px; }
.strip__title { margin: 0; font-size: clamp(24px, 4vw, 32px); }

/* ---------- sections */
.section { padding: 40px 0; }
.container.section { padding-left: 16px; padding-right: 16px; }   /* .section's "40px 0" must not take the container's side padding (cards touched the screen edge on phones) */
.section--grey { background: var(--grey); }
.section__title { position: relative; max-width: 960px; margin: 0 auto 36px; padding-top: 30px; text-align: center; text-transform: uppercase; font-size: clamp(21px, 3.4vw, 30px); }
.section__title::before { content: ""; position: absolute; top: 0; left: 50%; width: 114px; height: 3px; margin-left: -57px; background: var(--teal); }
.section__more { margin: 36px 0 0; text-align: center; }
@media (min-width: 768px) { .section { padding: 60px 0; } }

/* ---------- home */
.hero { display: flex; align-items: center; min-height: 340px; padding: 40px 0; background: #111 url("/images/pages/hero.jpg") 70% center / cover no-repeat; }
.hero__title { max-width: 620px; margin: 0; color: var(--white); text-transform: uppercase; font-size: clamp(30px, 6vw, 60px); line-height: 1.05; font-weight: 700; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 28px 0 0; }
.hero--page .hero__title { max-width: 720px; font-size: clamp(28px, 5.4vw, 58px); }
@media (min-width: 768px) { .hero { min-height: 600px; } .hero--page { min-height: 520px; } }
.intro { padding: 32px 0 40px; text-align: center; font-size: 17px; color: var(--ink); }
.intro p { max-width: 1110px; margin: 0 auto; }
.categories { position: relative; padding: 50px 0 70px; background: var(--grey-2); }
.categories::before { content: ""; position: absolute; top: 0; left: 50%; border: 18px solid transparent; border-top-color: var(--white); border-bottom: 0; transform: translateX(-50%); }
.promo { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
.promo__link { position: relative; display: grid; place-items: center; aspect-ratio: 539 / 280; overflow: hidden; color: var(--white); text-decoration: none; background: #111; }
.promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.5s; }
.promo__link:hover .promo__img { transform: scale(1.06); }
.promo__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .62)); transition: opacity .3s; }   /* the white name over a busy picture */
.promo__link:hover::after { opacity: .8; }
.promo__name { position: relative; z-index: 1; margin: 0; padding: 0 12px; color: var(--white); text-align: center; font-size: clamp(30px, 4.6vw, 45px); font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.promo__name::after { content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0; background: var(--teal); }
@media (min-width: 768px) { .promo { grid-template-columns: 1fr 1fr; gap: 60px 40px; } }

/* ---------- series tiles (Głośniki, Subwoofery, Wzmacniacze) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 30px; list-style: none; margin: 0; padding: 0; }
.tile__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.tile__media { display: block; overflow: hidden; border-radius: 12px; background: #f1f1f1; padding: 22px; transition: background .2s; }
.tile__link:hover .tile__media { background: #e9e9e9; }
.tile__img { width: 100%; aspect-ratio: 1 / .78; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.tile__link:hover .tile__img { transform: scale(1.04); }
.tile__name { margin: 16px 2px 4px; font-size: 21px; }
.tile__link:hover .tile__name { color: var(--teal-strong); }
.tile__foot { display: flex; align-items: center; margin: 0 2px; color: var(--muted); font-size: 14px; }
.tile__link:hover .card__more { background: var(--teal-strong); color: var(--white); }

/* ---------- "Wybierz markę auta": links to the brand landings */
.brands { scroll-margin-top: calc(var(--header-h) + 20px); }
.container.section > .brands { margin-top: 56px; }
.brands__lead { max-width: 720px; margin: -18px auto 30px; color: var(--muted); text-align: center; }
.brands__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
/* a white tile: the brand's mark (images/brands.svg, one colour) over its name */
.brands__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; padding: 20px 8px 14px; border-radius: 12px; background: var(--white); color: var(--ink);
    font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.container.section > .brands .brands__link { background: var(--grey); }
.brands__logo { width: 46px; height: 46px; fill: currentColor; transition: transform .2s; }
.brands__link:hover { color: var(--teal-strong); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.brands__link:hover .brands__logo { transform: scale(1.08); }
@media (min-width: 768px) { .brands__list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; } .brands__link { padding: 26px 10px 18px; font-size: 15px; } .brands__logo { width: 56px; height: 56px; } }
/* "Dobierz zestaw do auta": brand, model, years -> the sets that fit */
.fit { display: grid; gap: 12px; padding: 20px; border-radius: 14px; background: var(--white); box-shadow: 0 6px 24px rgba(0, 0, 0, .07); }
.container.section > .fit { background: var(--grey); box-shadow: none; }
.fit__field { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.fit__field select { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font: 600 16px var(--font); }
.fit__field select:disabled { background: #f3f3f3; color: #777; }
.fit__go { height: 50px; align-self: end; border-radius: 8px; font-size: 16px; }
@media (min-width: 800px) { .fit { grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; padding: 26px; } }
@media (min-width: 800px) { .fit--live { grid-template-columns: 1fr 1fr 1fr; } }
.fit__hint { margin: 0 0 26px; padding: 18px 20px; border-radius: 10px; background: var(--grey); color: var(--muted); }
.fitbox { scroll-margin-top: calc(var(--header-h) + 20px); margin-bottom: 64px; }
.fitbox--inline { margin-bottom: 44px; }
.fitbox--inline .fit { background: var(--grey); box-shadow: none; }
.fitbox__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; }
.fitbox__title .icon { width: 24px; height: 24px; color: var(--teal-strong); }
.fit__lead { max-width: 820px; margin: 0 0 26px; color: var(--ink); font-size: 17px; }
.fit__results { margin-top: 36px; }
.fit__results:empty { margin: 0; }
.fit__title { margin: 0 0 6px; font-size: clamp(21px, 3vw, 27px); }
.fit__count { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.fit__help { margin: 36px 0 0; color: var(--muted); }
.product__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.product__brands .pill:hover { background: var(--teal-strong); color: var(--white); }

/* ---------- product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 30px; list-style: none; margin: 0; padding: 0; }
/* a card is a grey tile with the picture (the photos' white background melts into it: multiply) and plain text under it */
.card { position: relative; display: flex; flex-direction: column; }
.card__media { display: block; overflow: hidden; border-radius: 12px; background: #f1f1f1; padding: 18px; transition: background .2s; }
.card:hover .card__media { background: #e9e9e9; }
.card__media img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 20px; background: var(--white); color: var(--teal-strong); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.card[hidden] { display: none; }
.card__badge { max-width: calc(100% - 24px); line-height: 1.35; }   /* "Przód · Centralny · Tył" of the fitment results wraps inside the tile */
.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 2px 0; }
.card__name { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.card__name a { color: var(--black); text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; }
.card__name a:hover { color: var(--teal-strong); }
.card__text { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.card__text { -webkit-line-clamp: 2; line-clamp: 2; }
.card__facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.card__facts li { padding: 3px 10px; border-radius: 20px; background: var(--grey-2); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.card__foot { display: flex; align-items: center; gap: 4px 12px; margin: auto 0 0; }
.card__price { color: var(--ink); font-size: 19px; font-weight: 700; white-space: nowrap; }
.card__price--off { color: #5c5c5c; font-size: 14px; font-weight: 600; }
.card__stock { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-strong); font-size: 12px; font-weight: 600; white-space: nowrap; }
.card__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card__stock--off { color: var(--muted); }
.card__more { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: auto; border-radius: 50%; background: var(--grey-2); color: var(--teal-strong); transition: background .2s, color .2s; }
.card:hover .card__more { background: var(--teal-strong); color: var(--white); }
/* above a listing: sibling series, the number of products, the order */
.listbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 28px; }
.pills ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pill { display: block; padding: 8px 18px; border-radius: 22px; background: var(--grey-2); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.pill:hover { background: #dedede; color: var(--ink); }
.pill[aria-current="page"] { background: var(--teal-strong); color: var(--white); }
.listbar__count { margin: 0 0 0 auto; color: var(--muted); font-size: 14px; }
.listbar__sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.listbar__sort[hidden] { display: none; }
.listbar__sort select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: 14px var(--font); }
/* a long list in pages of 24 (JS; without it the whole list is shown) */
.pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 44px 0 0; }
.pages__btn { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 0; border-radius: 22px; background: var(--grey-2); color: var(--ink); font: 600 15px var(--font); cursor: pointer; transition: background .2s, color .2s; }
.pages__btn:hover { background: #dedede; }
.pages__btn[aria-current="page"] { background: var(--teal-strong); color: var(--white); }
.pages__btn:disabled { opacity: .4; cursor: default; }
.pages__btn--prev .icon { transform: rotate(180deg); }
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

/* ---------- product page */
.product { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 10px; }
.gallery, .product__panel { min-width: 0; }
@media (min-width: 900px) {
    .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 44px; }
    .gallery { position: sticky; top: calc(var(--header-h) + 20px); }   /* the picture stays while the panel scrolls */
}
.gallery__stage { display: block; overflow: hidden; border-radius: 10px; background: var(--white); }
.gallery__main { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; list-style: none; margin: 12px 0 0; padding: 0 0 6px; scroll-snap-type: x mandatory; }
.gallery__thumbs li { flex: 0 0 calc((100% - 40px) / 5); scroll-snap-align: start; }
.gallery__thumb { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.gallery__thumb:hover { border-color: var(--teal); }
.gallery__thumb[aria-current="true"] { border-color: var(--teal-strong); box-shadow: inset 0 0 0 1px var(--teal-strong); }
.gallery__thumb img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery__stage { cursor: zoom-in; touch-action: pan-y; }
.gallery__stage img, .gallery__thumb img, .lightbox__img { -webkit-user-drag: none; user-select: none; }
.gallery__strip .gallery__thumbs { cursor: grab; scroll-snap-type: none; }   /* no snapping: it would pull a dragged strip back */
.gallery__strip .gallery__thumbs.is-dragging { cursor: grabbing; }
.gallery__stage.is-dragging, .lightbox__img.is-dragging { cursor: grabbing; }
.lightbox__img { touch-action: pan-y; cursor: grab; }
/* with JS: the strip of thumbnails has two arrows instead of a scrollbar (swiping still works) */
.gallery__strip { position: relative; margin-top: 12px; }
.gallery__strip .gallery__thumbs { margin: 0; padding: 0; scrollbar-width: none; }
.gallery__strip .gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__arrow { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; border-radius: 50%;
    background: var(--white); color: var(--ink); box-shadow: 0 1px 6px rgba(0, 0, 0, .25); cursor: pointer; }
.gallery__arrow:hover { background: var(--teal-strong); color: var(--white); }
.gallery__arrow:disabled { opacity: 0; pointer-events: none; }
.gallery__arrow--prev { left: 4px; }
.gallery__arrow--prev .icon { transform: rotate(180deg); }
.gallery__arrow--next { right: 4px; }
/* the picture overlay */
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 56px 12px 44px; border: 0; background: rgba(20, 20, 20, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 20, 20, .94); }
.lightbox__img { max-width: min(100%, 1200px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); width: auto; height: auto; object-fit: contain; border-radius: 6px; background: var(--white); }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(40, 40, 40, .8); color: var(--white); cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--teal-strong); }
.lightbox__close { top: 8px; right: 10px; }
.lightbox__close .icon, .lightbox__nav .icon { width: 24px; height: 24px; }
.lightbox__nav { top: 50%; margin-top: -23px; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
.lightbox__nav--next { right: 10px; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; color: var(--white); font-size: 14px; text-align: center; }
@media (min-width: 768px) { .lightbox { padding: 40px 80px 48px; } .lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; } }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; }
.product__series { padding: 5px 14px; border-radius: 20px; background: var(--teal-strong); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-decoration: none; }
.product__series:hover { background: var(--teal-hover); color: var(--white); }
.product__sku { color: var(--muted); font-size: 13px; }
/* price + the way to the shop: the one thing the page is for */
.buybox { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 22px 24px 20px;
    border-radius: 10px; background: var(--grey); }
.buybox__stock { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--teal-strong); font-size: 14px; font-weight: 600; }
.buybox__stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.buybox__stock--off { color: var(--muted); }
.product__buy { grid-column: 1 / -1; margin: 12px 0 0; }
.product__buy .button { width: 100%; padding: 1em 1.2em; font-size: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; }
.buybox__note { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.buybox__note a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.buybox__note a:hover { color: var(--teal-strong); }
.buybox__note .icon { width: 1em; height: 1em; margin-right: 5px; color: var(--teal-strong); vertical-align: -.12em; }
.product__short { margin: 26px 0 0; color: var(--text); font-size: 16px; line-height: 1.7; }
.product__short p { margin: 0 0 .7em; }
.product__short p:last-child { margin-bottom: 0; }
.product__withdrawn { margin: 0; padding: 16px 20px; border-left: 4px solid var(--teal); background: var(--grey); }
.product__withdrawn p { margin: 0 0 6px; }
.product__withdrawn p:last-child { margin: 0; }
.product__withdrawn strong { font-size: 19px; }
.product__price { margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 38px); font-weight: 700; line-height: 1.1; white-space: nowrap; }
.product__spec-title { margin: 34px 0 6px; font-size: 19px; color: var(--ink); }
/* label left, value right, hairlines between the rows — no grid of boxes */
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 58%; padding-right: 16px; color: var(--muted); font-weight: 400; }
.specs td { color: var(--ink); font-weight: 600; text-align: right; }
.files { display: grid; gap: 8px; list-style: none; margin: 26px 0 0; padding: 0; }
.files__link { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 8px; background: var(--grey); color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.files__link:hover { background: var(--grey-2); color: var(--ink); }
.files__link .icon { color: var(--teal-strong); }
.files__kind { margin-left: auto; padding: 2px 8px; border-radius: 4px; background: var(--white); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
/* "pasuje do modeli": up to 60 cars — columns instead of one endless list */
.product__extra { padding-top: 36px; }
.product__models { padding: 22px 20px; border-radius: 10px; background: var(--grey); }
.product__models p { margin: 0 0 12px; color: var(--ink); font-size: 18px; }
.product__models ul + p { margin-top: 22px; }
.product__models ul { columns: 2; column-gap: 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.45; }
.product__models li { position: relative; break-inside: avoid; padding: 4px 0 4px 16px; }
.product__models li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
@media (min-width: 640px) { .product__models { padding: 26px 30px; } .product__models ul { columns: 3; column-gap: 28px; } }
@media (min-width: 1000px) { .product__models ul { columns: 4; } }
.product__desc { padding-top: 34px; }
.product__desc > p, .product__desc > ul, .product__desc > ol, .product__desc > h2, .product__desc > h3 { max-width: 820px; }   /* a readable line length */
/* the description as a layout (gen/catalog.mjs descHtml): lead, numbered two-column sections, picture rows, list panels */
.product__desc.desc h2 { margin: 0 0 8px; font-size: clamp(19px, 2.2vw, 22px); line-height: 1.3; }
.product__desc.desc p { margin: 0 0 .7em; }
.product__desc.desc > h2 { margin-top: 1.2em; }
.product__desc.desc .desc__lead { max-width: 900px; margin: 0 0 34px; color: var(--ink); font-size: clamp(18px, 2.2vw, 22px); font-weight: 400; line-height: 1.55; }
.desc__grid { display: grid; gap: 30px; margin: 0 0 38px; }
.desc__item p, .desc__text p { color: var(--text); font-size: 15.5px; line-height: 1.65; }
.desc__item > :last-child, .desc__text > :last-child, .desc__note > :last-child { margin-bottom: 0; }
.desc__no { display: block; margin: 0 0 8px; color: var(--teal-strong); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.desc__no::after { content: ""; display: inline-block; width: 28px; height: 2px; margin-left: 10px; background: var(--teal); vertical-align: middle; }
.desc__feature { display: grid; gap: 22px; align-items: center; margin: 0 0 38px; }
.desc__feature figure { margin: 0; overflow: hidden; border-radius: 10px; background: var(--grey); }
.desc__feature figure img { width: 100%; }
.desc figcaption { padding: 10px 14px; color: var(--muted); font-size: 13px; text-align: center; }
.desc__notes { display: grid; gap: 16px; margin: 0 0 38px; }
.desc__note { padding: 22px 24px; border-radius: 10px; background: var(--grey); }
.product__desc.desc .desc__label { margin: 0 0 10px; color: var(--ink); font-size: 17px; font-weight: 700; }
.desc__note ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.desc__note li { position: relative; margin: 0; padding: 4px 0 4px 26px; }
.desc__note li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 11px; height: 6px; border-left: 2px solid var(--teal-strong); border-bottom: 2px solid var(--teal-strong); transform: rotate(-45deg); }
.desc__note--links { background: none; padding: 0; }
.desc__note--links li { padding-left: 18px; }
.desc__note--links li::before { left: 0; top: .95em; width: 6px; height: 6px; border: 0; border-top: 2px solid var(--teal-strong); border-right: 2px solid var(--teal-strong); transform: rotate(45deg); }
.desc__note--links a { text-decoration: none; }
.desc__note--links a:hover { text-decoration: underline; }
.desc__note--links strong { font-weight: 600; }
.desc__notes--one { max-width: 820px; margin-top: 26px; }
.desc > :last-child { margin-bottom: 0; }
.desc .cta--box { margin: 0; }
@media (min-width: 800px) {
    .desc__grid { grid-template-columns: 1fr 1fr; gap: 36px 56px; }
    .desc__grid--one { grid-template-columns: minmax(0, 820px); }
    .desc__feature { grid-template-columns: 1fr 1fr; gap: 56px; }
    .desc__feature--flip figure { order: -1; }
    .desc__notes { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
.product__shop { margin: 30px 0 0; }
.product__shop a { text-decoration: none; }

/* ---------- text */
.prose { color: var(--ink); }
.prose h2 { margin: 1.4em 0 .6em; font-size: clamp(22px, 3vw, 27px); }
.prose h3 { margin: 1.3em 0 .5em; font-size: 20px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: .2em 0; }
.prose figure { margin: 1.6em auto; }
.prose figure img { margin: 0 auto; }
.prose table { border-collapse: collapse; margin: 0 0 1em; }
.prose td, .prose th { padding: 8px 10px; border: 1px solid var(--line); }
.product__desc > :first-child, .prose > :first-child { margin-top: 0; }
.article { max-width: none; margin-top: 50px; }
.article h2 { font-size: 20px; margin-top: 1.4em; }

/* ---------- the "Masz pytania?" band */
.cta { background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%); padding: 40px 0; }
.cta__inner { display: grid; gap: 22px; align-items: center; text-align: center; }
.cta__title { margin: 0 0 8px; color: var(--ink); font-size: 32px; font-weight: 700; line-height: 1.1; }
.cta__text { margin: 0; color: var(--white); font-size: 20px; font-weight: 700; line-height: 1.15; }
.cta__text .icon { margin-right: 6px; vertical-align: -.15em; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0; }
.cta__actions .button { min-width: 214px; }
@media (min-width: 900px) {
    .cta__inner { grid-template-columns: 1fr auto; text-align: left; }
    .cta__text { display: flex; max-width: 440px; }
    .cta__text .icon { margin-top: .05em; }
}
.cta--box { margin: 40px 0 0; padding: 40px 30px; }

/* ---------- footer */
.footer__main { background: #232322 url("/images/hex-dark.svg") 50% 0 / 135px 234px; color: #f7f7f7; padding: 50px 0 40px; }
.footer__inner { display: grid; gap: 30px; text-align: center; }
.footer__logo { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; color: var(--white); font-size: 32px; font-weight: 700; text-decoration: none; }
.footer__logo img { width: 120px; height: 120px; filter: invert(1); }
.footer__title { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 0 0 14px; color: var(--white); font-size: 20px; font-weight: 400; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { padding: 2px 0; }
.footer__list li::before { content: "›"; margin-right: 12px; color: var(--teal); font-weight: 700; }
.footer__list a { color: var(--white); text-decoration: none; font-size: 16px; }
.footer__list a:hover { color: var(--teal); }
.footer__bottom { background: var(--black); padding: 12px 0; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; list-style: none; margin: 0 auto; padding-left: 16px; }
.footer__legal li::before { content: "›"; margin-right: 12px; color: var(--teal); }
.footer__legal a { color: var(--white); font-size: 14px; text-decoration: none; }
.footer__legal a:hover { color: var(--teal); }
@media (min-width: 900px) {
    .footer__inner { grid-template-columns: 210px 1fr 1fr 1fr; text-align: left; }
    .footer__store { grid-column: 1 / -1; }
    .footer__logo { align-items: flex-start; }
    .footer__title { justify-content: flex-start; }
    .footer__legal { justify-content: flex-start; }
}

/* ---------- brand landings */
.split { display: grid; gap: 30px; align-items: center; }
.split__text { font-size: 19px; line-height: 1.65; }
.split__img { width: 100%; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 40px; } }
.banner { margin: 0 auto 36px; }
.features { display: grid; gap: 36px 30px; list-style: none; margin: 0; padding: 0; text-align: center; }
.feature__icon { width: 52px; height: 52px; color: var(--teal); }
.feature__title { margin: 16px 0 10px; font-size: 26px; font-weight: 600; }
.feature p { margin: 0; font-size: 15px; }
@media (min-width: 768px) { .features { grid-template-columns: repeat(3, 1fr); } }
.models { columns: 2 180px; column-gap: 40px; max-width: 900px; list-style: none; margin: 0 auto; padding: 0; font-size: 18px; color: var(--ink); }
.models li { display: flex; align-items: center; gap: 10px; padding: 4px 0; break-inside: avoid; }
.models .icon { color: var(--teal); }
.videos { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .videos { grid-template-columns: 1fr 1fr; } }
.video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: var(--black); }

/* ---------- contact, cooperation, legal */
.contact { display: grid; gap: 40px; padding-top: 50px; padding-bottom: 50px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 70px; } }
.title-line { margin: 0 0 24px; font-size: 32px; }
.title-line::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 22px; background: var(--teal); }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 14px; background: var(--teal-strong); color: var(--white); text-align: center; font-weight: 700; }
.box .icon { width: 42px; height: 42px; margin-bottom: 8px; }
.box__title { margin: 0 0 6px; color: var(--white); font-size: 24px; font-weight: 700; }
.box p { margin: 0; }
.box a { color: var(--white); text-decoration: none; word-break: break-word; }
.box a:hover { text-decoration: underline; }
.form { display: grid; gap: 12px; }
.form label:not(.form__consent) { font-size: 14px; font-weight: 600; color: var(--ink); }
.form input:not([type=checkbox]), .form textarea { width: 100%; padding: 10px 14px; border: 1px solid #1a1a1a; border-radius: 0; font: 15px var(--font); color: var(--ink); background: var(--white); }
.form textarea { min-height: 120px; resize: vertical; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.form__consent input { margin-top: 3px; }
.form__hp { position: absolute; left: -9999px; }
.form .button { width: 100%; padding: .85em; font-weight: 400; }
.form__status { margin: 0; font-size: 14px; }
.form__status[data-state="ok"] { color: var(--teal-strong); }
.form__status[data-state="error"] { color: #b00020; }
.store { padding-bottom: 50px; }
.store__city { margin: 0 0 20px; text-align: center; font-size: 32px; }
.map { position: relative; display: grid; place-items: center; min-height: 300px; padding: 30px 16px; background: #e9eef0; text-align: center; }
.map__card { max-width: 420px; padding: 20px 24px; background: var(--white); box-shadow: var(--shadow); }
.map__card p { margin: 0 0 12px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* the shop's map in the footer of every page: shown at once (Piotr, 2026-11-23); loading="lazy" = fetched when the
   footer comes near the screen */
.map--footer { display: block; min-height: 0; height: 280px; padding: 0; overflow: hidden; border-radius: 10px; background: #2b2b2a; }
/* /kontakt/: the map of the "Sklep stacjonarny" section, shown at once; the footer's copy of it is left out there */
.map--live { display: block; min-height: 0; height: 420px; padding: 0; overflow: hidden; border-radius: 10px; }
.store__address { margin: 0 0 16px; text-align: center; }
main:has(.map--live) + .footer .footer__store { display: none; }
.footer__address { margin: -6px 0 14px; color: #d9d9d9; font-size: 15px; }
.footer__address a { color: var(--white); }
.footer__address a:hover { color: var(--teal); }
.coop { display: grid; gap: 40px; align-items: start; padding-bottom: 50px; }
@media (min-width: 900px) { .coop { grid-template-columns: 1fr 1fr; gap: 50px; } }
.coop__img { border-radius: 20px; }
.lead { padding-top: 40px; font-size: 17px; color: var(--ink); }
.contact-list { list-style: none; margin: 0; padding: 0; font-size: 18px; font-weight: 600; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 2px 0; }
.contact-list .icon { width: 26px; height: 26px; color: var(--teal); }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--teal-strong); }
.legal { padding-top: 40px; padding-bottom: 60px; font-size: 15px; }
.legal h2 { font-size: 26px; margin-top: 1.2em; }
.legal p { margin-bottom: .7em; }

/* ---------- search page */
.search--page { max-width: 640px; margin: 0 0 30px; }
.search--page .search__input { padding: 14px 16px 14px 44px; font-size: 17px; }
.results__count { color: var(--muted); }

/* ---------- posts (content/posts → templates/post.html, category.html) */
.post__cover { margin-top: 30px; }
.post__cover img { margin: 0 auto; }
.post__body { padding-top: 30px; padding-bottom: 40px; }
.post__body > p:first-child { font-weight: 700; }
.post__meta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.post__draft { color: #b00020; font-weight: 700; }
.post__related { padding-bottom: 50px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 30px; }
.post-card { background: var(--white); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 30px; }
.post-card__title { margin: 0 0 10px; font-size: 21px; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--teal-strong); }
.post-card__meta { color: var(--muted); font-size: 13px; }
.post-card__more { color: var(--teal-strong); font-size: 13px; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.section--posts { background: var(--grey); }
.section--posts .lead { padding-top: 0; }
.cta--box + * { margin-top: 0; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.table-wrap { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
