/* =========================================================================
   BORMET — koparkiczestochowa.pl
   Jeden arkusz stylów dla całego serwisu. Bez zależności zewnętrznych.
   Mobile-first: reguły bazowe są dla telefonu, media queries rozszerzają.
   ========================================================================= */

/* --- 1. Zmienne ---------------------------------------------------------- */
:root {
    /* Baza: kolor maszyn i asfaltu */
    --antracyt:      #1c1917;
    --grafit:        #292524;
    --grafit-jasny:  #44403c;

    /* Akcent: maszynowa żółć — natychmiast czytelna jako "roboty ziemne" */
    --zolty:         #f59e0b;   /* tła: przyciski, paski, znak w logo */
    --zolty-ciemny:  #d97706;   /* TŁO przycisku po najechaniu (ciemny tekst na nim: 5,5:1) */
    --zolty-tekst:   #a85508;   /* TEKST akcentowany: odnośniki, nadnagłówki, strzałki.
                                   Osobny, ciemniejszy odcień, bo #d97706 jako tekst na białym
                                   daje tylko 2,9:1 — poniżej progu WCAG AA (4,5:1).
                                   Ten ma 5,3:1 na białym i 4,8:1 na żółtym tle bloków. */
    --zolty-jasny:   #fef3c7;

    /* Akcent pomocniczy: dla sekcji "dla firm i instytucji" */
    --stal:          #0369a1;
    --stal-jasna:    #e0f2fe;

    /* Tła i tekst */
    --tlo:           #fafaf9;
    --tlo-karty:     #ffffff;
    --tlo-szare:     #f5f5f4;
    --obrys:         #e7e5e4;
    --tekst:         #1c1917;
    --tekst-szary:   #57534e;
    --tekst-jasny:   #a8a29e;

    --cien:          0 1px 2px rgba(28, 25, 23, .06), 0 4px 12px rgba(28, 25, 23, .05);
    --cien-mocny:    0 2px 4px rgba(28, 25, 23, .08), 0 12px 28px rgba(28, 25, 23, .10);

    --promien:       10px;
    --promien-maly:  6px;

    --szerokosc:     1180px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--tekst);
    background: var(--tlo);
    /* Miejsce na przyklejony pasek telefonu na komórce. Pasek ma ~65 px,
       więc 64 px nie wystarczało — ostatnia linia stopki chowała się pod nim.
       Do tego env(safe-area-inset-bottom) na iPhone'y z paskiem gestów. */
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--zolty-tekst); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--antracyt); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

:focus-visible { outline: 3px solid var(--zolty); outline-offset: 2px; border-radius: 3px; }

/* --- 3. Układ ------------------------------------------------------------ */
.srodek { width: 100%; max-width: var(--szerokosc); margin: 0 auto; padding: 0 18px; }

.sekcja        { padding: 40px 0; }
.sekcja--ciasna{ padding: 28px 0; }
.sekcja--szara { background: var(--tlo-szare); border-top: 1px solid var(--obrys); border-bottom: 1px solid var(--obrys); }
.sekcja--ciemna{ background: var(--antracyt); color: #fff; }
.sekcja--ciemna h2, .sekcja--ciemna h3 { color: #fff; }
.sekcja--ciemna p { color: #d6d3d1; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--zolty); color: var(--antracyt);
    padding: 10px 18px; font-weight: 700; border-radius: 0 0 var(--promien-maly) 0;
}
.skip-link:focus { left: 0; }

/* --- 4. Nagłówek i menu -------------------------------------------------- */
.naglowek {
    background: var(--antracyt);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 3px solid var(--zolty);
}
.naglowek__pasek {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; min-height: 62px;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo:hover { color: #fff; }
.logo__znak {
    width: 38px; height: 38px; flex: 0 0 38px;
    background: var(--zolty); color: var(--antracyt);
    border-radius: var(--promien-maly);
    display: grid; place-items: center;
    font-weight: 900; font-size: 1.25rem; letter-spacing: -.04em;
}
.logo__nazwa { font-weight: 900; font-size: 1.1rem; letter-spacing: -.03em; line-height: 1.05; }
.logo__pod   { display: block; font-weight: 500; font-size: .72rem; color: var(--zolty); letter-spacing: .04em; text-transform: uppercase; }

.naglowek__tel {
    display: none;
    background: var(--zolty); color: var(--antracyt);
    font-weight: 800; font-size: 1rem;
    padding: 9px 16px; border-radius: 999px; text-decoration: none;
    white-space: nowrap;
}
.naglowek__tel:hover { background: #fff; color: var(--antracyt); }

.menu-przycisk {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--grafit); color: #fff;
    border: 1px solid var(--grafit-jasny);
    padding: 9px 14px; border-radius: var(--promien-maly);
    font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.menu-przycisk__kreski { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-przycisk__kreski::before,
.menu-przycisk__kreski::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.menu-przycisk__kreski::before { top: -6px; }
.menu-przycisk__kreski::after  { top:  6px; }

.menu { display: none; background: var(--grafit); border-top: 1px solid var(--grafit-jasny); }
.menu.jest-otwarte { display: block; }
.menu__lista { list-style: none; margin: 0; padding: 8px 0; }
.menu__lista li { margin: 0; }
.menu__lista > li > a {
    display: block; padding: 11px 18px;
    color: #e7e5e4; text-decoration: none; font-weight: 600; font-size: .96rem;
    border-left: 3px solid transparent;
}
.menu__lista > li > a:hover { background: var(--antracyt); color: #fff; }
.menu__lista > li > a[aria-current="page"] { color: var(--zolty); border-left-color: var(--zolty); background: var(--antracyt); }

.menu__grupa > span {
    display: block; padding: 14px 18px 5px;
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em;
    color: var(--tekst-jasny);
}

/* --- 5. Sekcja otwierająca ----------------------------------------------- */
.hero { position: relative; background: var(--antracyt); color: #fff; overflow: hidden; }
.hero__tlo {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: .28;
}
.hero__tresc { position: relative; padding: 40px 0 34px; }
.hero h1 { color: #fff; font-size: 1.95rem; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--zolty); }
.hero__lead { font-size: 1.06rem; color: #e7e5e4; max-width: 44ch; margin-bottom: 1.2em; }

.hero__odznaki { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; list-style: none; padding: 0; }
.hero__odznaki li {
    margin: 0; font-size: .82rem; font-weight: 700;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
    color: #fff; padding: 5px 12px; border-radius: 999px;
}

/* --- 6. Przyciski -------------------------------------------------------- */
.przyciski { display: flex; flex-wrap: wrap; gap: 10px; }

.przycisk {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 22px; border-radius: 999px;
    font-weight: 800; font-size: 1rem; text-decoration: none;
    border: 2px solid transparent; cursor: pointer; font-family: inherit;
    transition: transform .08s ease;
}
.przycisk:active { transform: translateY(1px); }
.przycisk--glowny  { background: var(--zolty); color: var(--antracyt); }
.przycisk--glowny:hover { background: var(--zolty-ciemny); color: var(--antracyt); }
.przycisk--obrys   { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.przycisk--obrys:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.przycisk--ciemny  { background: var(--antracyt); color: #fff; }
.przycisk--ciemny:hover { background: var(--grafit); color: #fff; }

/* --- 7. Karty i siatki --------------------------------------------------- */
.siatka { display: grid; gap: 16px; grid-template-columns: 1fr; }

.karta {
    background: var(--tlo-karty);
    border: 1px solid var(--obrys);
    border-radius: var(--promien);
    padding: 20px;
    box-shadow: var(--cien);
}
/* Nagłówek karty bywa h2 albo h3 — zależnie od tego, na jakim poziomie
   hierarchii dokumentu karta stoi. Wygląda tak samo w obu przypadkach:
   o poziomie decyduje struktura strony, nie wielkość liter. */
.karta h2, .karta h3 { margin-bottom: .4em; font-size: 1.15rem; font-weight: 700; }
.karta p:last-child { margin-bottom: 0; }
.karta__meta { font-size: .85rem; color: var(--tekst-szary); }

a.karta { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s ease, border-color .15s ease; }
a.karta:hover { box-shadow: var(--cien-mocny); border-color: var(--zolty); color: inherit; }
a.karta h2, a.karta h3 { color: var(--antracyt); }
a.karta::after { content: " →"; color: var(--zolty-tekst); font-weight: 800; }

.karta--sprzet { padding: 0; overflow: hidden; }
.karta--sprzet img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tlo-szare); }
.karta--sprzet .karta__tresc { padding: 16px 18px 18px; }

/* --- 8. Blok wyróżniony -------------------------------------------------- */
.wyroznik {
    border-left: 4px solid var(--zolty);
    background: var(--zolty-jasny);
    padding: 16px 18px;
    border-radius: 0 var(--promien-maly) var(--promien-maly) 0;
    margin: 22px 0;
}
.wyroznik h2, .wyroznik h3 { margin-bottom: .3em; font-size: 1.15rem; font-weight: 700; }
.wyroznik p:last-child { margin-bottom: 0; }
.wyroznik--stal { border-left-color: var(--stal); background: var(--stal-jasna); }

/* --- 9. Liczby ----------------------------------------------------------- */
.liczby { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--obrys); border: 1px solid var(--obrys); border-radius: var(--promien); overflow: hidden; }
.liczby > div { background: var(--tlo-karty); padding: 18px 14px; text-align: center; }
.liczby dt { font-size: .78rem; color: var(--tekst-szary); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.liczby dd { margin: 2px 0 0; font-size: 1.7rem; font-weight: 900; color: var(--antracyt); letter-spacing: -.03em; }

/* --- 10. Galeria --------------------------------------------------------- */
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
.galeria li { margin: 0; }
.galeria a { display: block; border-radius: var(--promien-maly); overflow: hidden; position: relative; background: var(--tlo-szare); }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.galeria a:hover img { transform: scale(1.04); }
.galeria figcaption, .galeria__podpis {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(28,25,23,.88));
    color: #fff; font-size: .78rem; font-weight: 600;
    padding: 20px 10px 8px; line-height: 1.3;
}

/* --- 11. Tabela ---------------------------------------------------------- */
.tabela-otoczka { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--obrys); border-radius: var(--promien); background: var(--tlo-karty); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--obrys); }
thead th { background: var(--antracyt); color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #fbfaf9; }
td strong { color: var(--antracyt); }

/* --- 12. Lista z ptaszkami ----------------------------------------------- */
.lista-ptaszki { list-style: none; padding: 0; }
.lista-ptaszki li { position: relative; padding-left: 28px; margin-bottom: .5em; }
.lista-ptaszki li::before {
    content: ""; position: absolute; left: 4px; top: .52em;
    width: 9px; height: 5px;
    border-left: 2.5px solid var(--zolty-tekst);
    border-bottom: 2.5px solid var(--zolty-tekst);
    transform: rotate(-45deg);
}
.sekcja--ciemna .lista-ptaszki li::before { border-color: var(--zolty); }

.lista-dwie { columns: 1; }

/* --- 13. Okruszki -------------------------------------------------------- */
.okruszki { font-size: .82rem; color: var(--tekst-szary); padding: 12px 0 0; }
.okruszki ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.okruszki li { margin: 0; }
.okruszki li + li::before { content: "› "; color: var(--tekst-jasny); }
.okruszki a { color: var(--tekst-szary); }

/* --- 14. FAQ ------------------------------------------------------------- */
.faq details {
    background: var(--tlo-karty); border: 1px solid var(--obrys);
    border-radius: var(--promien-maly); margin-bottom: 8px; padding: 0;
}
.faq summary {
    cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none;
    display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--zolty-tekst); font-weight: 900; font-size: 1.3rem; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 14px; color: var(--tekst-szary); }
.faq details > div p:last-child { margin-bottom: 0; }

/* --- 15. Mapa ładowana po kliknięciu ------------------------------------- */
.mapa { position: relative; background: var(--tlo-szare); border: 1px solid var(--obrys); border-radius: var(--promien); overflow: hidden; }
.mapa__zaslona { display: grid; place-items: center; text-align: center; padding: 40px 20px; gap: 10px; }
.mapa__zaslona p { font-size: .88rem; color: var(--tekst-szary); max-width: 42ch; margin: 0; }
.mapa iframe { display: block; width: 100%; height: 340px; border: 0; }

/* --- 16. Formularz ------------------------------------------------------- */
.formularz { display: grid; gap: 14px; }
.pole { display: grid; gap: 5px; }
.pole label { font-weight: 700; font-size: .9rem; }
.pole input, .pole select, .pole textarea {
    font: inherit; font-size: 1rem;
    padding: 11px 13px;
    border: 1px solid #d6d3d1; border-radius: var(--promien-maly);
    background: #fff; color: var(--tekst); width: 100%;
}
.pole textarea { min-height: 120px; resize: vertical; }
.pole input:focus, .pole select:focus, .pole textarea:focus { border-color: var(--zolty); outline: 2px solid var(--zolty-jasny); }
.pole small { color: var(--tekst-szary); font-size: .8rem; }
.pole--ukryte { position: absolute; left: -9999px; }

/* --- 17. Stopka --------------------------------------------------------- */
.stopka { background: var(--antracyt); color: #d6d3d1; padding: 34px 0 24px; margin-top: 10px; font-size: .92rem; }
.stopka a { color: #e7e5e4; text-decoration: none; }
.stopka a:hover { color: var(--zolty); text-decoration: underline; }
.stopka h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .8em; }
.stopka__siatka { display: grid; gap: 26px; grid-template-columns: 1fr; }
.stopka ul { list-style: none; padding: 0; margin: 0; }
.stopka li { margin-bottom: .4em; }
.stopka__tel { display: inline-block; font-size: 1.3rem; font-weight: 900; color: var(--zolty) !important; letter-spacing: -.02em; }
.stopka__dol {
    border-top: 1px solid var(--grafit-jasny); margin-top: 26px; padding-top: 16px;
    display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
    font-size: .82rem; color: var(--tekst-jasny);
}

/* --- 18. Przyklejony pasek telefonu (komórka) --------------------------- */
.pasek-tel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--antracyt); border-top: 1px solid var(--grafit-jasny);
    padding: 8px; gap: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
}
.pasek-tel a {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 8px; border-radius: var(--promien-maly);
    font-weight: 800; font-size: .95rem; text-decoration: none;
}
/* Po typie linku, nie po kolejności: build owija tel:/sms: w <span data-nosnippet>,
   więc każdy link jest wtedy jednocześnie pierwszym i ostatnim dzieckiem. */
.pasek-tel a[href^="tel:"] { background: var(--zolty); color: var(--antracyt); }
.pasek-tel a[href^="sms:"] { background: var(--grafit); color: #fff; border: 1px solid var(--grafit-jasny); }

/* --- 18b. Telefony ukryte przed fragmentami w Google -------------------
   build.py owija każdy link tel:/sms: w <span data-nosnippet> (www seo\CLAUDE.md, p. 2).
   display: contents — opakowanie nie tworzy własnego pudełka, więc nie psuje
   siatek, przycisków na pełną szerokość ani paska telefonu. */
span[data-nosnippet] { display: contents; }
/* numer telefonu nie łamie się w pół („607 / 605 586”) */
a[href^="tel:"], a[href^="sms:"] { white-space: nowrap; }

/* --- 18c. Pasek wykonawcy pod stopką firmy ------------------------------
   Dyskretny, ale nie ukryty: kontrast tekstu 6,9 : 1, odnośników 11,7 : 1.
   Zasady: mój styl robienia www\ZASADY - linki do moich serwisów.md */
.stopka__reklama {
    border-top: 1px solid var(--grafit-jasny); margin-top: 26px; padding-top: 14px;
    font-size: .78rem; line-height: 1.55; color: var(--tekst-jasny);
}
.stopka__reklama p { margin: 0 0 .3em; }
.stopka__reklama p:last-child { margin-bottom: 0; }
.stopka .stopka__reklama a { color: #d6d3d1; text-decoration: underline; text-decoration-color: rgba(214,211,209,.35); }
.stopka .stopka__reklama a:hover { color: var(--zolty); }
.stopka__reklama + .stopka__dol { margin-top: 14px; }

/* --- 18e. Baner zgody na statystyki (tylko gdy włączone GA4) ------------- */
.cookie {
    position: fixed; left: 12px; right: 12px; z-index: 300;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));   /* nad paskiem „Zadzwoń / SMS” */
    max-width: 560px; margin: 0 auto; padding: 18px 20px;
    background: #fff; color: var(--tekst); border-radius: var(--promien);
    box-shadow: 0 20px 60px rgba(0,0,0,.35); display: none;
}
.cookie.jest-widoczny { display: block; }
.cookie p { font-size: .92rem; margin: 0 0 12px; }
.cookie__przyciski { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 640px) { .cookie { bottom: 16px; } }   /* od tabletu nie ma paska telefonu */
.przycisk--obrys-ciemny { background: transparent; color: var(--antracyt); border-color: var(--antracyt); }
.przycisk--obrys-ciemny:hover { background: var(--antracyt); color: #fff; }

/* przycisk wyglądający jak odnośnik („Ustawienia cookies”) */
.link-przycisk {
    background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
    font: inherit; color: var(--zolty-tekst); text-decoration: underline; text-underline-offset: 2px;
}
.stopka .link-przycisk { color: #e7e5e4; text-decoration: none; }
.stopka .link-przycisk:hover { color: var(--zolty); text-decoration: underline; }

/* --- 18f. Skróty „Najczęstsze zlecenia” pod nagłówkiem strony głównej ---
   Na telefonie usługi zaczynały się dopiero na 5. ekranie — skróty dają je od razu. */
.skroty-sekcja { padding-bottom: 0; }
.skroty-sekcja .nagl-nad { font-size: .76rem; margin: 0 0 .7em; letter-spacing: .1em; }
.skroty { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skroty li { margin: 0; }
.skroty a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px;
    background: var(--tlo-karty); border: 1px solid var(--obrys); border-radius: 999px;
    color: var(--antracyt); font-weight: 700; font-size: .92rem; text-decoration: none;
}
.skroty a:hover { border-color: var(--zolty); background: var(--zolty-jasny); color: var(--antracyt); }

/* --- 18d. Podstrona realizacji ------------------------------------------ */
.realizacja { margin: 18px 0 6px; }
.realizacja a { display: block; border-radius: var(--promien); overflow: hidden; background: var(--tlo-szare); }
.realizacja img { width: 100%; height: auto; }
.realizacja figcaption { font-size: .82rem; color: var(--tekst-szary); margin-top: 6px; }
.realizacja__nawigacja {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
    margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--obrys); font-weight: 700;
}
.realizacja__nawigacja a { display: inline-block; padding: 10px 0; text-decoration: none; }

/* --- 19. Drobiazgi ------------------------------------------------------- */
.tekst-srodek { text-align: center; }
.lead { font-size: 1.08rem; color: var(--tekst-szary); }
.uwaga { font-size: .85rem; color: var(--tekst-szary); }
.nagl-nad { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--zolty-tekst); margin-bottom: .5em; }
.sekcja--ciemna .nagl-nad { color: var(--zolty); }
.tresc > h2 { margin-top: 1.6em; }
.tresc > h2:first-child { margin-top: 0; }
.tresc > h3 { margin-top: 1.4em; }

/* Znacznik dla treści wymagającej danych od klienta — widoczny tylko lokalnie */
.do-uzupelnienia {
    background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 10px, #fde68a 10px, #fde68a 20px);
    border: 1px dashed var(--zolty-ciemny); border-radius: var(--promien-maly);
    padding: 12px 14px; font-size: .87rem; color: #78350f; margin: 14px 0;
}
.do-uzupelnienia strong { display: block; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; margin-bottom: .3em; }

/* --- 19b. Wielkość pól dotykowych na telefonie --------------------------
   Odnośniki w spisach (stopka, kolumna boczna, mapa strony) miały ~20 px
   wysokości — za mało, żeby trafić w nie kciukiem. Rozsuwamy je do ok. 44 px.
   Odnośników w środku akapitu to nie dotyczy: tam wysokość wynika z wiersza
   tekstu i wytyczne robią dla nich wyjątek.                                */
@media (max-width: 639px) {
    .stopka li a,
    .stopka__dol a,
    .stopka__dol .link-przycisk,
    .karta ul:not(.lista-ptaszki) li a,
    aside ul li a {
        display: inline-block;
        padding: 12px 0;
        line-height: 1.35;
    }
    .stopka li, .karta ul:not(.lista-ptaszki) li, aside ul li { margin-bottom: 0; }
    /* w dolnym pasku stopki odnośniki stoją obok siebie w jednym wierszu —
       bez tego rozsunięcia zlewałyby się w jeden cel dotykowy */
    .stopka__dol { gap: 2px 14px; }
    .stopka__dol span { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }

    .okruszki a { display: inline-block; padding: 6px 0; }
    .logo { padding: 4px 0; }
}

/* --- 20. Tablet --------------------------------------------------------- */
@media (min-width: 640px) {
    body { padding-bottom: 0; }
    .pasek-tel { display: none; }

    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.75rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero__tresc { padding: 56px 0 48px; }
    .hero__lead { font-size: 1.15rem; }

    .siatka--2 { grid-template-columns: repeat(2, 1fr); }
    .siatka--3 { grid-template-columns: repeat(2, 1fr); }
    .siatka--4 { grid-template-columns: repeat(2, 1fr); }
    .liczby { grid-template-columns: repeat(4, 1fr); }
    .galeria { grid-template-columns: repeat(3, 1fr); }
    .lista-dwie { columns: 2; column-gap: 30px; }
    .stopka__siatka { grid-template-columns: repeat(2, 1fr); }
    .sekcja { padding: 56px 0; }
    .formularz--2kol { grid-template-columns: 1fr 1fr; }
    .formularz--2kol .pole--szerokie { grid-column: 1 / -1; }
}

/* --- 21. Desktop -------------------------------------------------------- */
@media (min-width: 980px) {
    .menu-przycisk { display: none; }
    .naglowek__tel { display: inline-flex; }

    .menu { display: block !important; background: transparent; border: 0; }
    .menu__lista { display: flex; gap: 2px; padding: 0; justify-content: flex-end; }
    .menu__lista > li > a { padding: 8px 12px; border-left: 0; border-bottom: 3px solid transparent; border-radius: var(--promien-maly) var(--promien-maly) 0 0; font-size: .9rem; }
    .menu__lista > li > a[aria-current="page"] { border-left: 0; border-bottom-color: var(--zolty); background: transparent; }
    .menu__grupa > span { display: none; }
    .naglowek__pasek { min-height: 70px; }

    .hero h1 { font-size: 3rem; }
    .hero__tresc { padding: 76px 0 64px; max-width: 62%; }
    .hero__lead { font-size: 1.2rem; }

    .siatka--3 { grid-template-columns: repeat(3, 1fr); }
    .siatka--4 { grid-template-columns: repeat(4, 1fr); }
    .galeria { grid-template-columns: repeat(4, 1fr); }
    .stopka__siatka { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }

    .dwie-kolumny { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: start; }
    .dwie-kolumny__bok { position: sticky; top: 90px; }
    .lista-dwie { columns: 3; }
}

/* --- 22. Wydruk i dostępność -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
}

@media print {
    .naglowek, .pasek-tel, .stopka, .menu-przycisk, .galeria { display: none !important; }
    body { padding: 0; font-size: 12pt; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
