/* AlePudło – arkusz stylów strony głównej.
   Kolejność: zmienne → baza → narzędzia → układ → komponenty (od góry strony do stopki) → media queries.
   Wspólny kąt ukośnych motywów: 12° (skewX(-12deg)); wspólny czas animacji: --t (160 ms). */

/* ---------- Fonty (lokalne, bez Google Fonts – RODO) ----------
   Pliki WOFF2 pobrane z oficjalnego serwera Google Fonts (Anton v27, Montserrat v31; szczegóły w ASSETS.md),
   podzbiory latin i latin-ext z tymi samymi zakresami unicode-range co dotychczas.
   Licencja SIL Open Font License 1.1: assets/fonts/OFL-Anton.txt, assets/fonts/OFL-Montserrat.txt.
   Montserrat to font zmienny (oś wght 100–900) – jeden plik obsługuje używane wagi 400, 600 i 700. */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/anton-400-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/anton-400-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: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/montserrat-wght-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/montserrat-wght-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;
}

/* ---------- Zmienne ---------- */
:root {
  --or: #F07A1F;            /* pomarańcz marki */
  --or-txt: #DC680F;        /* pomarańcz dla tekstu na bieli: 3,5:1 (WCAG AA dla dużego/pogrubionego tekstu); #F07A1F ma tylko 2,8:1 */
  --gr: #2b2b2b;            /* grafit – techniczne oznaczenia i detale */
  --bk: #141414;
  --nv: #1F2F4A;            /* granat – tylko akcent techniczny */
  --pan: #f2f2f2;           /* bardzo jasnoszare tło sekcji */
  --ln: #d4d4d4;            /* linie, ramki */
  --mute: #555;
  --font-body: Montserrat, system-ui, Arial, sans-serif;
  --font-head: Anton, Impact, sans-serif;
  --wrap: 1160px;           /* szerokość kontenera treści */
  --header-h: 87px;         /* wysokość sticky nagłówka (86 px + 1 px ramki); używana przez scroll-padding */
  --t: .16s;
  --ar-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 8h12M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
  --ar-ne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 13 3M5.5 3H13v7.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------- Baza ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); scrollbar-gutter: stable; }   /* stały pasek przewijania: zmiana wysokości strony (filtry) nie przesuwa treści w bok */
@supports not (scrollbar-gutter: stable) { html { overflow-y: scroll; } }
body { margin: 0; font: 400 16px/1.5 var(--font-body); color: #1a1a1a; background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 400; line-height: 1.1; text-transform: uppercase; }
a { color: inherit; }
main:focus { outline: none; }      /* cel linku „Przejdź do treści” */
:focus-visible { outline: 3px solid var(--gr); outline-offset: 2px; }   /* grafit: kontrast 14:1 na bieli (WCAG ≥ 3:1); ciemne sekcje mają biały obrys niżej */
/* Przyciski CTA mają clip-path (ukośne ścięcie), który obcina zewnętrzny obrys – fokus rysujemy wewnątrz, jak przy filtrach */
.btn:not(.ask):focus-visible { outline-color: var(--gr); outline-offset: -5px; }

/* ---------- Narzędzia ---------- */
.w { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }   /* jeden kontener treści dla wszystkich sekcji */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 99; padding: 8px 12px; background: var(--bk); color: #fff; }
.skip:focus { top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px 14px 24px; border: 0; background: var(--or); color: var(--bk); font: 700 14px/1.2 var(--font-body); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); transition: background var(--t); }
.btn:hover { background: #ff8f3a; }
/* Strzałki rysowane maską (kolor = kolor tekstu): → dla przejść w obrębie strony, ↗ dla linków w nowej karcie */
.btn[target="_blank"]::after, .go::after, .ask::after { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--ar-r) center / contain no-repeat; mask: var(--ar-r) center / contain no-repeat; transition: transform var(--t); }
.btn[target="_blank"]::after { -webkit-mask-image: var(--ar-ne); mask-image: var(--ar-ne); }
.btn[target="_blank"]:hover::after { transform: translate(2px, -2px); }

/* ---------- Sekcje: wspólne ---------- */
.sec { padding: 44px 0; }
/* Sekcje standardowe: białe tło; granice – cienka linia na dole */
.hero, .sec { border-bottom: 1px solid #e6e6e6; }
.title { position: relative; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--ln); font-size: clamp(26px, 3.1vw, 38px); }
.title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--or); }

/* ---------- Nagłówek i menu ---------- */
header { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--ln); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 86px; }
.brand { display: flex; align-items: center; }
.logo { width: 203px; height: 76px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { position: relative; padding: 8px 0; font-size: 14px; font-weight: 600; color: #333; text-decoration: none; transition: color var(--t); }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
nav a:hover, nav a[aria-current] { color: var(--bk); }
nav a:hover::after, nav a[aria-current]::after { transform: scaleX(1); }
#menu-btn { display: none; padding: 10px 14px; border: 0; background: var(--bk); color: #fff; font: 700 14px var(--font-body); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #fff; color: var(--bk); }
.hero::after { content: ""; position: absolute; top: 0; right: -70px; bottom: 0; width: 30%; background: var(--or); opacity: .22; transform: skewX(-12deg); z-index: -1; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 36px; align-items: center; min-height: 430px; padding: 36px 0; }
.hero h1 { margin-bottom: 14px; font-size: clamp(30px, 3.9vw, 52px); line-height: 1.06; }
.lead { max-width: 46ch; margin: 0 0 24px; font-size: 17px; line-height: 1.55; color: #2b2b2b; }
.hero .btn { padding: 15px 30px 15px 26px; }
.hero img { width: 100%; height: 340px; object-fit: contain; object-position: center; mix-blend-mode: multiply; }   /* białe tło zdjęcia łączy się z pomarańczowym pasem; cały zestaw pudełek widoczny */

/* ---------- Kafle kategorii ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; padding: 20px 20px 0; border: 1px solid var(--ln); background: #fff; text-decoration: none; transition: border-color var(--t); }
.tile::after { content: ""; position: absolute; left: -1px; bottom: -1px; width: 64px; height: 4px; background: var(--or); transition: width var(--t); }
.tile:hover, .tile:focus-visible { border-color: var(--bk); }
.tile:hover::after, .tile:focus-visible::after { width: calc(100% + 2px); }
.category-art { width: 100%; height: 116px; margin-bottom: 14px; padding: 8px; object-fit: contain; background: var(--pan); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); transition: background var(--t); }
.tile:hover .category-art, .tile:focus-visible .category-art { background: #fbe6d3; }
.tile h3 { font-size: 22px; }
.tile p { margin: 6px 0 20px; font-size: 15px; color: var(--mute); }
.go { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 14px 0 18px; border-top: 1px solid var(--ln); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gr); transition: color var(--t); }
.tile:hover .go, .tile:focus-visible .go { color: var(--bk); }
.tile:hover .go::after, .tile:focus-visible .go::after { transform: translateX(4px); }

/* ---------- Katalog: filtry i karty ---------- */
.cat-bar { margin-bottom: 24px; }
.filters { display: inline-flex; overflow: hidden; border: 1.5px solid var(--gr); border-radius: 5px; background: #fff; }
.filter { min-height: 44px; padding: 10px 18px; border: 0; border-right: 1px solid var(--gr); background: #fff; color: var(--gr); font: 600 13px var(--font-body); cursor: pointer; transition: background var(--t); }
.filter:last-child { border-right: 0; }
.filter:hover { background: #ffe9d6; }
.filter[aria-pressed="true"] { background: var(--or); color: var(--bk); }
.filter:focus-visible { outline: 3px solid var(--bk); outline-offset: -5px; }
/* Moduł „jak czytać wymiary” */
.dim-guide { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; padding: 10px 20px; border: 1px solid var(--ln); background: #fff; }
.dim-guide svg { flex: none; width: 100%; max-width: 330px; height: auto; }
.dim-guide .dg-t text { font: 700 16px var(--font-body); letter-spacing: .02em; fill: var(--gr); }
.dim-guide p { margin: 0; font-size: 15px; color: var(--gr); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 16px; margin: 0; padding: 0; list-style: none; }
.grid.fx .card { animation: card-in .18s ease-out; }
@keyframes card-in { from { opacity: 0; } to { opacity: 1; } }
.card { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid #e3e3e3; background: #fff; transition: border-color var(--t); }
.card:hover { border-color: #b5b5b5; }
.card[hidden] { display: none; }
/* Pole zdjęcia: jednakowa proporcja, czyste białe tło (#fff) – zdjęcia modeli to przezroczyste WebP, bez mix-blend-mode */
.card-img { position: relative; margin-bottom: 12px; aspect-ratio: 5 / 4; background: #fff; }
.card-img img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }   /* produkt w 72% pola 5:4 przy każdej szerokości; contain = bez przycinania */
.card h3 { display: inline-flex; align-items: baseline; gap: 5px; font: 700 20px/1.1 var(--font-body); letter-spacing: .02em; color: var(--gr); }
.mn { color: var(--or-txt); }
.cat { margin: 5px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.dim { margin: 9px 0 13px; color: var(--gr); font: 700 14px/1.3 var(--font-body); white-space: nowrap; }
.ask { justify-content: space-between; margin-top: auto; padding: 11px 0 0; border-top: 1px solid #d8d8d8; background: none; color: var(--gr); font-size: 13px; letter-spacing: .06em; clip-path: none; transition: color var(--t); }
.ask::after { background: var(--or); }   /* strzałka zawsze w pomarańczu marki */
.ask:hover { background: none; color: var(--bk); }
.ask:hover::after { transform: translateX(4px); }

/* Placeholder zdjęcia (karuzela realizacji). Nazwa docelowego pliku jest w atrybucie data-file. */

/* ---------- Karuzela realizacji ---------- */
.car { display: flex; align-items: center; gap: 8px; }
.track { flex: 1; display: flex; gap: 16px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.slide { flex: 0 0 calc((100% - 48px) / 4); scroll-snap-align: start; }
.real-img { position: relative; aspect-ratio: 4 / 3; border: 1px solid #e3e3e3; background: #fff; }
.real-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.real-soon { display: grid; place-items: center; align-content: center; gap: 10px; background-color: #fafafa; background-image: linear-gradient(#eee 1px, transparent 1px), linear-gradient(90deg, #eee 1px, transparent 1px); background-size: 18px 18px; color: var(--gr); }
.real-soon::after { content: ""; position: absolute; inset: 8px; border: 1px dashed #b8b8b8; pointer-events: none; }
.real-soon svg { width: 54px; height: 42px; fill: none; stroke: var(--or); stroke-width: 2; }
.real-soon strong { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.car-btn { flex: none; width: 44px; height: 44px; border: 0; background: var(--bk); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
#realizacje { padding: 28px 0; }
#realizacje .title { margin-bottom: 16px; }

/* ---------- Rodzaje tektury ---------- */
#tektura { padding: 26px 0; }
#wspolpraca { padding: 44px 0; }
#tektura .title { margin-bottom: 14px; }
#wspolpraca .title { margin-bottom: 26px; }
.fls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fl { margin: 0; padding: 9px; border: 1px solid var(--ln); background: #fff; }
/* Przekrój na całą szerokość karty; subtelna siatka techniczna tylko za grafiką */
.wave-art { width: 100%; height: 62px; padding: 4px; object-fit: contain; border: 1px solid #ececec; background-color: #fff; background-image: linear-gradient(#efefef 1px, transparent 1px), linear-gradient(90deg, #efefef 1px, transparent 1px); background-size: 14px 14px; }
.fl strong { display: block; margin-top: 7px; font: 400 20px/1.1 var(--font-head); color: var(--bk); text-transform: uppercase; }
.fl figcaption { margin-top: 2px; font-size: 13px; color: var(--mute); }
.lay-n { display: inline-block; margin-left: 4px; padding: 2px 9px 2px 8px; background: var(--nv); color: #fff; font: 700 12px/1.5 var(--font-body); letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }

/* ---------- Współpraca: oś procesu ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-top: 0; }
.steps li::before { content: ""; position: absolute; top: 17px; left: 46px; right: -10px; height: 2px; background: #bdbdbd; }   /* odcinek osi do następnego punktu */
.steps li:last-child::before { display: none; }
.num { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; background: var(--gr); color: #fff; font: 400 20px/1 var(--font-head); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.process-art { width: 76px; height: 76px; margin-bottom: 10px; object-fit: contain; }
.steps h3 { font-size: 23px; }
.steps p { margin: 7px 0 0; font-size: 15px; color: var(--mute); }

/* ---------- Blok Allegro ---------- */
.allegro { position: relative; overflow: hidden; border-block: 1px solid #292929; background: linear-gradient(102deg, #161616 0 62%, #202b3d 62% 100%); color: #fff; }   /* dwa płaskie pola, ostra krawędź pod kątem 12° (bez płynnego przejścia) */
.allegro::before { content: "ALLEGRO"; position: absolute; top: 50%; left: -22px; transform: translateY(-50%) rotate(-90deg); font: 400 22px var(--font-head); letter-spacing: .12em; color: rgba(255, 255, 255, .9); }
.allegro::after { content: ""; position: absolute; top: 0; bottom: 0; left: 82px; width: 14px; background: var(--or); transform: skewX(-12deg); }
.allegro .w { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 30px 0 30px 112px; }
.allegro h2 { font-size: clamp(26px, 3.1vw, 38px); }
.allegro p { margin: 6px 0 0; font-weight: 600; color: #ddd; }
.allegro .btn { padding: 15px 32px 15px 28px; font-size: 15px; }
.allegro .btn:hover { background: #fff; }
.allegro :focus-visible, .contact :focus-visible { outline-color: #fff; }

/* ---------- Kontakt ---------- */
.contact { position: relative; overflow: hidden; padding: 40px 0; background: var(--nv); color: #fff; }
.contact::before { content: ""; position: absolute; top: 0; right: -45px; width: 165px; height: 100%; background: var(--or); opacity: .9; transform: skewX(-12deg); }
.cg { position: relative; display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.15fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.contact h2 { margin-bottom: 14px; font-size: clamp(26px, 3.1vw, 38px); }
.contact address { font-style: normal; }
.contact p { margin: 4px 0; }
.actions { margin: 0 !important; }
.big { display: block; width: fit-content; max-width: 100%; margin: 4px 0; border-bottom: 2px solid transparent; font: 400 clamp(22px, 2.7vw, 29px)/1.2 var(--font-head); letter-spacing: .02em; color: #fff; text-decoration: none; overflow-wrap: anywhere; transition: border-color var(--t); }
.big:hover { border-bottom-color: var(--or); }
.company { font-size: 15px; font-weight: 700; color: #fff; }
.contact-line { display: flex; align-items: center; gap: 11px; }
.contact-line svg, .company-line svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--or); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.company-data { align-self: stretch; padding: 18px 22px; border-left: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); }
.company-data h3 { margin-bottom: 16px; font-size: 21px; }
.company-line { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; margin: 12px 0; color: #c8d0dc; }
.company-line p { margin: 0; }
.cd .btn { margin-top: 22px; }
.cl { display: flex; align-items: center; order: -1; }
/* Biała plansza z logo, cienka pomarańczowa linia i podpis – interpretacja układu z katalogu */
.contact-mark { width: min(300px, 100%); color: #fff; }
.contact-mark img { width: 170px; height: auto; margin: 0; }
.contact-mark .wordmark { margin: 6px 0 0; font: 700 30px/1.1 var(--font-body); letter-spacing: .01em; text-align: left; color: #fff; }
.wordmark span { color: var(--or); }
.contact-mark .tagline { margin: 12px 0 0; padding-top: 12px; border-top: 2px solid var(--or); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-align: left; text-transform: uppercase; color: #c8d0dc; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--or); color: #fff; transition: background var(--t), color var(--t); }
.socials a:hover { background: var(--or); color: var(--bk); }
.socials svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.socials .fill { fill: currentColor; stroke: none; }

/* ---------- Stopka ---------- */
footer { padding: 12px 0; background: #0f0f0f; color: #9a9a9a; font-size: 12px; letter-spacing: .02em; }
footer a { color: #d4d4d4; text-underline-offset: 2px; }
footer a:hover { color: #fff; }
footer :focus-visible { outline-color: #fff; }

/* ---------- Responsywność ---------- */
/* Katalog: 4 kolumny powyżej 900 px, 2 od 560 do 899 px, 1 poniżej 560 px */
@media (max-width: 899px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .slide { flex-basis: calc((100% - 16px) / 2); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps li:nth-child(2n)::before { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 71px; }
  .sec { padding: 40px 0; }
  #realizacje { padding: 28px 0; }
  .bar { min-height: 70px; }
  .logo { width: 165px; height: 62px; }
  #menu-btn { display: block; }
  nav { display: none; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 12px; border-bottom: 3px solid var(--or); background: #fff; }
  nav.open { display: flex; }
  nav a { padding: 12px 0; }
  nav a::after { bottom: 6px; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding: 28px 0; }
  .hero picture { display: none; }   /* uwaga: ten sam breakpoint jest w <source media> w index.html */
  .tiles, .fls, .cg { grid-template-columns: minmax(0, 1fr); }
  .cg { gap: 26px; }
  .cl { order: 0; }
  .company-data { padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); border-left: 0; background: none; }
  .contact-mark { width: min(280px, 100%); }
  .tile { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; align-content: start; padding: 16px 16px 0; }
  .category-art { grid-row: 1 / span 3; width: 120px; height: 120px; margin: 0; }
  .tile h3 { font-size: 20px; }
  .tile p { margin: 4px 0 10px; font-size: 14px; }
  .go { margin-top: 0; padding: 12px 0 16px; }
  .allegro { background: #161616; }
  .allegro::before { display: none; }
  .allegro::after { left: 0; width: 8px; }
  .allegro .w { padding: 28px 0 28px 20px; }
  .contact { padding: 40px 0; }
  .contact::before { right: -30px; width: 90px; }
}

@media (max-width: 560px) {
  .filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .filter { padding: 8px 6px; font-size: 12px; line-height: 1.25; }
  .dim-guide { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 8px 12px; }
  .dim-guide p { padding-inline: 8px; }
  .slide { flex-basis: 100%; }
  .car-btn { width: 44px; }
  /* oś pionowa: numer w punkcie po lewej, linia schodzi do następnego punktu */
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .steps li { padding-left: 54px; min-height: 60px; }
  .steps li::before, .steps li:nth-child(2n)::before { display: block; top: 40px; bottom: -22px; left: 17px; right: auto; width: 2px; height: auto; }
  .steps li:last-child::before { display: none; }
  .num { position: absolute; top: 0; left: 0; margin: 0; }
  .process-art { width: 64px; height: 64px; margin: 0 0 9px; }
}

/* Kontakt w 3 kolumnach przy węższym desktopie/tablecie (769–1199 px): kolumna „Dane firmy” sięga prawej krawędzi
   kontenera, więc szeroki ukośny pas zasłaniałby adres i NIP (kontrast < 2:1). Pas zwęża się jak na telefonie. */
@media (min-width: 769px) and (max-width: 1199px) {
  .contact::before { right: 0; width: 22px; transform: none; opacity: .9; clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%); }
  .cg { padding-right: 16px; }
}

@media (max-width: 600px) {
  /* Kontakt: pas zostaje w skrajnych 22 px po prawej, a dane mają prawy margines 32 px (16 + 16) */
  .contact::before { right: 0; width: 22px; transform: none; opacity: .9; clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%); }
  .cg { padding-right: 16px; }
}

@media (max-width: 420px) {
  .dim-guide { padding: 10px 0 12px; }
  .dim-guide p { padding-inline: 16px; }
  .car-btn { display: none; }
  .tile { grid-template-columns: 104px minmax(0, 1fr); }
  .category-art { width: 104px; height: 104px; }
}

/* Cele dotykowe ≥ 44 px: przezroczysta warstwa ::before powiększa tylko obszar klikania – wygląd i układ bez zmian */
@media (max-width: 768px), (pointer: coarse) {
  #menu-btn, .ask, .actions .big { position: relative; }
  #menu-btn::before, .ask::before, .actions .big::before { content: ""; position: absolute; left: 0; right: 0; }
  #menu-btn::before { top: -4px; bottom: -4px; }                  /* 37 → 45 px */
  .ask::before { top: -9px; bottom: -9px; }                       /* ok. 27 → 45 px */
  .actions .big:first-child::before { top: -16px; bottom: 0; }    /* telefon rośnie w górę… */
  .actions .big:last-child::before { top: 0; bottom: -18px; }     /* …e-mail w dół (16 px + 2 px dolnej ramki), więc obszary się nie nakładają */
}

/* ---------- Strona błędu 404 (dist/404.html) ---------- */
body:has(.e404) { display: flex; flex-direction: column; min-height: 100vh; }   /* stopka na dole krótkiej strony */
.e404 { flex: 1; padding: clamp(56px, 10vw, 120px) 0; }
.e404-code { margin: 0 0 8px; font: 400 clamp(72px, 14vw, 140px)/1 var(--font-head); color: var(--or-txt); }
.e404 h1 { margin-bottom: 14px; font-size: clamp(30px, 3.9vw, 52px); }

/* ---------- Podstrona tekstowa (dist/ochrona-danych.html) ---------- */
.doc { padding: clamp(40px, 7vw, 80px) 0; }
.doc .w > * { max-width: 72ch; }
.doc h1 { margin-bottom: 14px; font-size: clamp(30px, 3.9vw, 52px); }
.doc h2 { margin: 36px 0 10px; font-size: 22px; }
.doc p, .doc li { line-height: 1.65; color: #2b2b2b; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc .doc-date { margin: 32px 0 20px; font-size: 13px; color: var(--mute); }

/* ---------- Tryb „Strona w przebudowie” ----------
   Działa wyłącznie, gdy <html> w index.html ma atrybut data-tryb="przebudowa" (domyślnie brak = wyłączony).
   Bez atrybutu żaden selektor poniżej nie pasuje, więc normalna strona wygląda i działa bez zmian.
   Mgła: pseudo-element body::before (od razu, bez czekania na JS). Komunikat: okno .rebuild budowane w script.js. */
html[data-tryb="przebudowa"], html[data-tryb="przebudowa"] body { overflow: hidden; }
html[data-tryb="przebudowa"] body::before { content: ""; position: fixed; inset: 0; z-index: 900; background: rgba(255, 255, 255, .9); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  /* matowe szkło + delikatne techniczne kreskowanie pod kątem 12° (jak blok Allegro) */
  html[data-tryb="przebudowa"] body::before {
    background: repeating-linear-gradient(102deg, rgba(43, 43, 43, .05) 0 1px, transparent 1px 22px), rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(8px) saturate(.8);
    backdrop-filter: blur(8px) saturate(.8);
  }
}
.rebuild { position: fixed; inset: 0; z-index: 901; display: flex; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.rebuild-card { position: relative; width: min(100%, 540px); margin: auto; padding: 36px 56px 30px 40px; overflow: hidden; background: #fff; border: 1px solid var(--ln); border-top: 4px solid var(--nv); box-shadow: 0 28px 60px -28px rgba(20, 20, 20, .45); animation: rebuild-in .3s ease-out both; }
.rebuild-card::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 22px; background: var(--or); clip-path: polygon(60% 0, 100% 0, 100% 100%, 0 100%); }   /* wąski pomarańczowy pas jak w Kontakcie (769–1199 px) */
.rebuild-card:focus { outline: none; }   /* okno dostaje fokus tylko po to, by czytnik odczytał komunikat */
.rebuild-logo { width: 132px; height: auto; margin: 0 0 18px -6px; }
.rebuild-kicker { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nv); }
.rebuild h2 { position: relative; margin-bottom: 18px; padding-bottom: 14px; font-size: clamp(32px, 7vw, 46px); color: var(--bk); }
.rebuild h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--or); }
.rebuild-card > p:not([class]) { max-width: 38ch; margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--gr); }
.rebuild-contact { display: grid; gap: 2px; margin: 0 0 22px; padding: 0; list-style: none; }
.rebuild-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--bk); text-decoration: none; border-bottom: 2px solid transparent; }
.rebuild-contact a:hover { border-bottom-color: var(--or); }
.rebuild-meta { margin: 0; padding-top: 14px; border-top: 1px solid var(--ln); font-size: 12px; color: var(--mute); }
.rebuild-meta a { display: inline-block; padding: 12px 0; margin: -12px 0; }
@keyframes rebuild-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 560px) {
  .rebuild-card { padding: 28px 40px 24px 22px; }
  .rebuild-logo { width: 112px; }
}
@media (scripting: none) {
  /* bez JavaScriptu: sam napis na mgle (pełne okno buduje script.js) */
  html[data-tryb="przebudowa"] body::after { content: "Strona w przebudowie"; position: fixed; top: 50%; left: 50%; z-index: 901; width: min(100% - 32px, 460px); padding: 28px 24px; transform: translate(-50%, -50%); background: #fff; border-top: 4px solid var(--nv); font: 400 clamp(28px, 7vw, 40px)/1.1 var(--font-head); text-align: center; text-transform: uppercase; color: var(--bk); }
}

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