/* Szablon portalu Laboratorium Proton, wersja 3
   Odstepy: wielokrotnosci 4 px (--o1 .. --o6). Barwy z logo: niebieski, pomarancz, zielony, zolty. */
:root {
  --tusz: #1f2d36;
  --tekst: #33414a;
  --szary: #5d6b75;
  --linia: #d9e2e7;
  --tlo: #e9f4fa;
  --pole: #f2f7fa;
  --karta: #fff;
  --niebieski: #0079b3;
  --niebieski-j: #009fe1;
  --pomarancz: #f2640d;
  --zielony: #4b8200;
  --zielony-j: #8fc539;
  --zolty: #f0c000;
  --link: #0a6a9c;
  --o1: 4px;
  --o2: 8px;
  --o3: 16px;
  --o4: 24px;
  --o5: 32px;
  --o6: 48px;
  --r: 4px;
  --cien: 0 1px 3px rgba(31, 45, 54, .12);
  --szesciokat: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--tlo); color: var(--tekst); font: 16px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #064c71; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--pomarancz); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--tusz); line-height: 1.25; margin: 0; text-wrap: balance; }
h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 19px; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--linia); margin: var(--o4) 0; }
.container { width: min(1240px, 100%); margin-inline: auto; padding-inline: 20px; }
.visually-hidden, .element-invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pomin { position: absolute; left: -999px; }
.pomin:focus { left: 10px; top: 10px; z-index: 100; background: #fff; padding: var(--o2) var(--o3); }

/* ---------- naglowek ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 10px rgba(31, 45, 54, .09); }
.header::before, .footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--zielony-j) 25%, var(--pomarancz) 25% 50%, var(--niebieski-j) 50% 75%, var(--zolty) 75%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--o2) var(--o4); padding-block: var(--o2); }
.logo { display: block; line-height: 0; }
.logo img { width: 240px; max-width: 58vw; }
.header-menu { display: flex; flex-direction: column; align-items: flex-end; gap: var(--o1); }
.header ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menu-top ul { gap: var(--o3); }
.menu-top a { font-size: 13px; color: var(--szary); text-decoration: none; }
.menu-top a:hover { text-decoration: underline; }
.menu-glowne ul { gap: var(--o1); }
.menu-glowne a, .menu-glowne span { display: block; padding: 9px 14px; border-radius: var(--r); color: var(--tusz); font-weight: 600; text-decoration: none; }
.menu-glowne a:hover { background: #eef6e2; color: var(--tusz); }
.menu-glowne .current > a { border-radius: 0; background: linear-gradient(var(--zielony-j), var(--zielony-j)) bottom / 100% 3px no-repeat; }
.menu-glowne a[href*="allegro"] { background: var(--zielony); color: #fff; }
.menu-glowne a[href*="allegro"]:hover { background: #3f650d; }

/* ---------- uklad ---------- */
.uklad { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: var(--o4); padding-block: var(--o4); align-items: start; }
.uklad.bez-kolumny { grid-template-columns: minmax(0, 1fr); }
#sidebar-left { grid-column: 1; grid-row: 1; }
.uklad:not(.bez-kolumny) > #main-content { grid-column: 2; }
#main-content { display: grid; gap: var(--o4); min-width: 0; overflow-wrap: break-word; }
.panel, .strona-bledu #main-content, .sam-komponent #main-content { background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); padding: var(--o5); min-width: 0; }
.panel > * + * { margin-top: var(--o3); }
.panel > .sciezka + * { margin-top: 12px; }
#system-message-container:empty { display: none; }
.tytul-strony { margin-bottom: var(--o2); }
.naglowek-listy { display: flex; align-items: center; gap: 10px; margin: var(--o5) 0 var(--o3); }
.naglowek-listy::before { content: ""; flex: none; width: 18px; height: 16px; background: var(--zielony-j); clip-path: var(--szesciokat); }

.sciezka ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--szary); }
.sciezka li + li::before { content: "/"; margin: 0 var(--o2); color: #9fb0ba; }
.sciezka a { color: var(--szary); }

/* ---------- kolumna dzialow ---------- */
#sidebar-left summary { display: none; }
#sidebar-left details > section:last-child { margin-bottom: 0; }
#sidebar-left section { background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); padding: 0 0 12px; margin-bottom: var(--o3); overflow: hidden; }
#sidebar-left section.szukaj, #sidebar-left section.moduletable:not([class*="-left"]) { padding: 0; background: none; box-shadow: none; overflow: visible; }
#sidebar-left h3 { margin: 0 0 var(--o2); padding: 9px 12px; border-left: 5px solid var(--akcent, var(--niebieski-j)); background: var(--belka, #dcf0fa); font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }

.blue { --akcent: var(--niebieski-j); --belka: #dcf0fa; }
.orange { --akcent: var(--pomarancz); --belka: #fde7d8; }
.yellow { --akcent: var(--zolty); --belka: #fff6cc; }
#sidebar-left ul { list-style: none; margin: 0; padding: 0; }
#sidebar-left li { position: relative; padding: 0 12px 0 28px; }
#sidebar-left li::before { content: ""; position: absolute; left: 13px; top: 12px; width: 6px; height: 6px; background: var(--akcent, var(--niebieski-j)); }
#sidebar-left li a { display: block; padding: 4px 0; color: var(--tekst); font-size: 15px; line-height: 1.45; text-decoration: none; }
#sidebar-left li a:hover { color: var(--link); text-decoration: underline; }
#sidebar-left li.current { background: var(--pole); }
#sidebar-left li.current > a { color: #06577f; font-weight: 600; }
.fb-link { display: inline-block; padding: 9px 18px; border-radius: var(--r); background: #1a5fb4; color: #fff; font-weight: 600; text-decoration: none; }
.fb-link:hover { background: #154c90; color: #fff; }

/* ---------- formularze ---------- */
.szukaj form, form.szukaj { display: flex; max-width: 520px; border-radius: var(--r); overflow: hidden; box-shadow: var(--cien); background: #fff; }
.szukaj input[type=search] { flex: 1; min-width: 0; padding: 11px 14px; border: 0; background: none; font: inherit; color: inherit; }
.szukaj button { min-width: 48px; padding: 0 var(--o3); border: 0; background: var(--niebieski); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.szukaj button:hover { background: #00638f; }
.szukaj button:empty { background: var(--niebieski) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5'/%3E%3Cpath d='M13 13l4.5 4.5'/%3E%3C/svg%3E") center / 20px no-repeat; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], textarea, select { padding: 9px 12px; border: 1px solid #b6c4cd; border-radius: var(--r); background: #fff; color: inherit; font: inherit; max-width: 100%; }
.btn { display: inline-block; padding: 8px 16px; border: 1px solid #b6c4cd; border-radius: var(--r); background: #fff; color: var(--tusz); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--pole); color: var(--tusz); }
.btn-primary { background: var(--niebieski); border-color: var(--niebieski); color: #fff; }
.btn-primary:hover { background: #00638f; color: #fff; }
.com-users-login .page-header { margin-bottom: var(--o3); }
.com-users-login input[type=text], .com-users-login input[type=password] { width: 100%; }
.com-users-login .controls { max-width: 420px; }
.control-group, .com-users-login__form .control-group { margin-bottom: var(--o3); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------- karty artykulow ---------- */
.karty { display: grid; gap: var(--o4); }
.karta { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--o2) 20px; align-items: start; padding-bottom: var(--o4); border-bottom: 1px solid var(--linia); }
.karta:last-child { padding-bottom: 0; border-bottom: 0; }
.karta.bez-foto { grid-template-columns: minmax(0, 1fr); }
.karta-foto { display: block; line-height: 0; }
.karta-foto img { width: auto; max-width: 100%; height: auto; max-height: 300px; border: 1px solid #b9c6cd; }

.karta-meta { display: flex; flex-wrap: wrap; gap: 2px var(--o3); font-size: 13.5px; color: var(--szary); }
.karta-meta a { color: var(--szary); font-weight: 600; text-decoration: none; }
.karta-meta a:hover { text-decoration: underline; }
.karta-tytul { margin: var(--o1) 0 var(--o2); font-size: 20px; }
.karta-tytul a { color: var(--zielony); text-decoration: none; }
.karta-tytul a:hover { text-decoration: underline; }
.karta-skrot { line-height: 1.6; }
.wiecej { display: block; margin-top: var(--o1); text-align: right; font-size: 15px; text-decoration: none; }
.wiecej:hover { text-decoration: underline; }
.karty.male { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.karty.male .karta { display: block; padding: 0; border: 0; }
.karty.male .karta-foto { margin-bottom: var(--o2); }
.karty.male .karta-foto img { width: 100%; aspect-ratio: 5 / 3; max-height: none; object-fit: contain; background: #fff; }
.karty.male .karta-tytul { font-size: 16px; margin-bottom: 0; }
.zobacz-tez { margin-top: var(--o6); padding-top: 1px; border-top: 1px solid var(--linia); }
.pusto { color: var(--szary); }

/* ---------- powitanie i baner ---------- */
.powitanie { margin: var(--o4) 0 0; padding: var(--o4) var(--o5); border-radius: var(--r); background: #f3f8ec; border-left: 5px solid var(--zielony-j); }
.powitanie h2 { margin-bottom: var(--o3); color: var(--zielony); }
.powitanie p { text-align: left !important; }
.powitanie p + p { margin-top: var(--o2); }
.baner { display: grid; overflow: hidden; border-radius: var(--r); box-shadow: var(--cien); background: var(--tusz); color: #fff; text-decoration: none; }
.baner > * { grid-area: 1 / 1; min-width: 0; }
.baner:hover { color: #fff; }
.baner img { display: block; width: 100%; height: 100%; aspect-ratio: 900 / 260; object-fit: cover; }

.baner-tekst { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: var(--o4) var(--o5); background: linear-gradient(90deg, rgba(20, 32, 40, .93) 30%, rgba(20, 32, 40, .6) 52%, rgba(20, 32, 40, 0) 78%); line-height: 1.4; }
.baner-tekst strong { max-width: 15em; margin-bottom: var(--o2); font-size: clamp(20px, 2.3vw, 27px); line-height: 1.2; }
.baner-tekst > span:not(.baner-guzik) { display: flex; align-items: center; gap: var(--o2); }
.baner-tekst > span:not(.baner-guzik)::before { content: ""; flex: none; width: 10px; height: 9px; background: var(--zielony-j); clip-path: var(--szesciokat); }
.baner-guzik { margin-top: 12px; padding: 8px 18px; border-radius: var(--r); background: var(--zielony-j); color: #14200a; font-weight: 700; }

/* ---------- tresc artykulu ---------- */
.artykul-naglowek { margin-bottom: var(--o4); }
.tresc { font-size: 17px; line-height: 1.7; }
.tresc > *, .category-desc > * { margin-block: 0; }
.tresc > * + *, .category-desc > * + * { margin-top: var(--o3); }
.tresc > h2, .tresc > h3 { margin-top: var(--o5); }
.tresc h2 + * { margin-top: var(--o2); }
.tresc ul, .tresc ol { padding-left: 1.4em; }
.tresc li + li { margin-top: var(--o1); }
.srodek { text-align: center; }
.do-prawej { text-align: right; }
.foto { margin: var(--o4) 0; text-align: center; clear: both; }
.tresc > .foto, .tresc > .galeria, .category-desc > .foto { margin-block: var(--o4); }
.foto img { display: inline-block; border: 1px solid #b9c6cd; }
.foto a { display: inline-block; line-height: 0; }
.foto a img { cursor: zoom-in; transition: box-shadow .2s; }
.foto a:hover img { box-shadow: 0 0 0 3px #bfe3f5; }
.foto.kilka { display: flex; flex-wrap: wrap; gap: var(--o2); justify-content: center; align-items: flex-start; }
.foto.kilka figcaption { flex-basis: 100%; }
.foto figcaption { max-width: 46em; margin: var(--o2) auto 0; font-size: 15px; line-height: 1.5; color: var(--szary); }
.foto figcaption strong:first-child { color: var(--tusz); }
.obok-lewo { float: left; margin: 6px var(--o4) var(--o2) 0; border: 1px solid #b9c6cd; }
.obok-prawo { float: right; margin: 6px 0 var(--o2) var(--o4); border: 1px solid #b9c6cd; }
.tresc::after, .category-desc::after { content: ""; display: block; clear: both; }
.tresc table, .category-desc table { display: block; width: fit-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.tresc td, .tresc th { padding: var(--o2) 12px; border: 1px solid var(--linia); text-align: left; vertical-align: top; }
.tresc th { background: var(--pole); }
.category-desc { margin: var(--o3) 0 var(--o4); }
.content-category > h1 { margin-bottom: var(--o2); }
.content-category > h2:empty { display: none; }
.galeria { display: grid; gap: var(--o4); }
.galeria .foto { margin: 0; }
@media (min-width: 640px) {
	.galeria:has(> .foto:nth-child(4)) { grid-template-columns: 1fr 1fr; align-items: start; }
}
.film { position: relative; max-width: 760px; aspect-ratio: 16 / 9; margin: var(--o4) auto; border-radius: var(--r); overflow: hidden; background: #14222b; }
.film > a, .film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film > a { display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; font-weight: 600; text-decoration: none; background: radial-gradient(circle at 50% 40%, #2b4352, #14222b) center / cover; }
.film > a::before { content: ""; width: 76px; height: 54px; border-radius: var(--r); background: #d40000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M6 4l11 6-11 6z'/%3E%3C/svg%3E") center / 28px no-repeat; transition: transform .15s; }
.film > a:hover::before { transform: scale(1.08); }
.film > a span { padding: 3px 12px; border-radius: var(--r); background: rgba(0, 0, 0, .6); }

/* ---------- oferty ---------- */
.moduletablegpoz { background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); padding: var(--o4) var(--o5) var(--o5); }
.moduletablegpoz > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: var(--o3); font-size: 21px; }
.moduletablegpoz > h3::before { content: ""; width: 18px; height: 16px; background: var(--pomarancz); clip-path: var(--szesciokat); }
.oferty { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: var(--o3); }
.oferta { display: grid; grid-template: 150px 1fr auto auto / minmax(0, 1fr); gap: 6px; padding: 12px; border: 1px solid var(--linia); border-radius: var(--r); background: #fff; color: var(--tekst); text-align: center; font-size: 14px; line-height: 1.35; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.oferta:hover { border-color: var(--pomarancz); box-shadow: 0 4px 14px rgba(226, 96, 15, .15); color: var(--tusz); }
.oferta-foto { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; height: 150px; }
.oferta-foto img { max-height: 150px; width: auto; max-width: 100%; object-fit: contain; }
.oferta-cena { font-size: 18px; font-weight: 700; color: var(--tusz); }
.oferta-link { color: #b34700; font-weight: 700; }
.oferta:hover .oferta-link { text-decoration: underline; }
#sidebar-left .oferty { grid-template-columns: 1fr; padding: var(--o1) 12px 0; }

/* ---------- listy, wyniki, stronicowanie ---------- */
.stronicowanie { margin-top: var(--o5); }
.pagination, .pagenavigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.pagenavigation { margin-top: var(--o5); }
.pagenavigation ul { justify-content: space-between; }
.page-link { display: block; min-width: 42px; padding: 7px 12px; border: 1px solid var(--linia); border-radius: var(--r); text-align: center; background: #fff; text-decoration: none; }
.page-link:hover { background: var(--pole); }
.active > .page-link { background: var(--niebieski); border-color: var(--niebieski); color: #fff; }
.disabled > .page-link { color: #8a98a1; }
.icon-angle-left::before, .icon-chevron-left::before { content: "<"; }
.icon-angle-right::before, .icon-chevron-right::before { content: ">"; }
.icon-angle-double-left::before { content: "<<"; }
.icon-angle-double-right::before { content: ">>"; }
mark { padding: 0 2px; border-radius: 3px; background: #fff1a8; color: inherit; }
.com-finder hr { display: none; }
.input-group { display: flex; align-items: stretch; gap: 6px; max-width: 420px; }
.input-group input { flex: 1; min-width: 0; }
.input-password-toggle { padding: 0 12px; border: 1px solid #b6c4cd; border-radius: var(--r); background: #fff; font: inherit; cursor: pointer; }
.input-password-toggle::after { content: "Pokaż"; }
.com-finder .input-group { max-width: none; }
.badge { display: inline-block; padding: 2px 9px; border-radius: var(--r); background: #e6f4fb; color: #06577f; font-size: 13px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: var(--o4) 0 0; }
.komunikat { padding: 12px var(--o3); border-left: 5px solid var(--niebieski-j); border-radius: var(--r); background: #eef8fd; }
.komunikat-error, .komunikat-danger, .komunikat-warning { border-color: var(--pomarancz); background: #fff3ec; }
.com-finder ul, .com-finder ol { list-style: none; padding: 0; margin: 0; }
.com-finder .result__item, .com-finder__results-list > li { padding: var(--o3) 0; border-bottom: 1px solid var(--linia); }
.com-finder .result__item + .result__item { margin: 0; border-top: 0; }
.com-finder .result__title { margin: 0 0 var(--o1); font-size: 19px; }
.com-finder fieldset, .com-finder__form { margin-bottom: var(--o3); }
.com-finder .input-group { display: flex; gap: var(--o2); margin-top: var(--o1); }
.com-finder .input-group input { flex: 1; }
.kontakt-rola { margin-top: calc(-1 * var(--o1)); color: var(--szary); }
.kontakt-dane { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--o3) var(--o5); margin: var(--o3) 0 var(--o4); padding: var(--o4); border-left: 4px solid var(--zielony-j); border-radius: var(--r); background: #f3f8ec; }
.kontakt-dane address { font-style: normal; line-height: 1.7; }
.kontakt-dane ul { list-style: none; margin: 0; padding: 0; line-height: 1.7; }
.kontakt-dane li { display: grid; grid-template-columns: 4.8em minmax(0, 1fr); overflow-wrap: anywhere; }
.kontakt-dane li span { color: var(--szary); }
.kontakt-opis { max-width: 46em; }
.com-contact h2, .com-contact h3 { margin: var(--o4) 0 var(--o2); }
.box { display: flex; flex-wrap: wrap; gap: var(--o4) var(--o5); margin-bottom: var(--o4); padding: var(--o4) var(--o5); background: var(--karta); border-radius: var(--r); box-shadow: var(--cien); }
.box > section { flex: 0 1 260px; min-width: 0; }
.box > section:has(.fb-box) { flex: 1 1 min(100%, 640px); }
.fb-box { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--o3) var(--o4); }
.fb-widget { flex: 0 1 500px; min-width: min(100%, 280px); height: 520px; overflow: hidden; }
.fb-widget iframe { display: block; max-width: none; border: 0; transform-origin: 0 0; }
.fb-opis { flex: 1 1 180px; }
.fb-opis p { margin-bottom: 12px; }
.box h3 { margin-bottom: var(--o2); font-size: 17px; }
.box .bannergroup { display: flex; flex-wrap: wrap; gap: var(--o3); align-items: center; }
.box .bannergroup img { max-height: 110px; width: auto; border-radius: var(--r); }
.licznik { display: flex; flex-wrap: wrap; gap: var(--o2) var(--o4); margin: 0; }
.licznik div { display: grid; }
.licznik dt { font-size: 13.5px; color: var(--szary); }
.licznik dd { margin: 0; font-size: 24px; font-weight: 700; color: var(--tusz); line-height: 1.2; }

/* ---------- podglad zdjec ---------- */
.podglad { width: 100vw; height: 100vh; max-width: none; max-height: none; border: 0; padding: 12px; background: rgba(10, 18, 24, .95); color: #fff; }
.podglad[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; }
.podglad img { max-width: 100%; max-height: 100%; object-fit: contain; }
.podglad p { margin: var(--o2) 60px 0; max-height: 18vh; overflow: auto; text-align: center; }
.podglad button { position: fixed; width: 48px; height: 48px; border: 0; border-radius: var(--r); background: rgba(255, 255, 255, .18); color: #fff; font: 700 22px/1 Arial, sans-serif; cursor: pointer; }
.podglad button:hover { background: rgba(255, 255, 255, .4); }
.podglad .wstecz { left: 12px; top: calc(50% - 24px); }
.podglad .dalej { right: 12px; top: calc(50% - 24px); }
.podglad .zamknij { right: 12px; top: 12px; }

/* ---------- stopka ---------- */
.footer { margin-top: auto; background: var(--tusz); color: #d5dee4; font-size: 15px; }
.footer .container { padding-block: var(--o5) var(--o4); }
.footer a { color: #fff; }
.stopka-kolumny { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--o4) var(--o5); }
.stopka-kolumny h2 { margin-bottom: var(--o2); font-size: 17px; color: #fff; }
.stopka-kolumny ul { list-style: none; margin: 0; padding: 0; }
.stopka-kolumny li + li { margin-top: var(--o1); }
.prawa { margin-top: var(--o4); padding-top: var(--o3); border-top: 1px solid #3b4c57; font-size: 14px; }

/* ---------- mniejsze ekrany ---------- */
@media (max-width: 979px) {
  html { scroll-padding-top: 16px; }
  .header { position: static; }
  .header-inner { position: relative; flex-direction: column; align-items: stretch; gap: var(--o2); }
  .header-menu { flex-direction: column-reverse; align-items: stretch; gap: var(--o2); }
  .menu-glowne a, .menu-glowne span { padding: 10px 12px; }
  .menu-top { position: absolute; top: var(--o3); right: var(--o3); }
  .menu-top ul { justify-content: flex-end; }
  .uklad, .uklad:not(.bez-kolumny) { display: flex; flex-direction: column; gap: var(--o3); padding-block: var(--o3); align-items: stretch; }
  #sidebar-left { order: -1; }
  #sidebar-left summary { display: block; padding: 13px var(--o3); border-radius: var(--r); background: var(--niebieski); color: #fff; font-weight: 700; cursor: pointer; }
  #sidebar-left details[open] summary { margin-bottom: var(--o3); }
  #sidebar-left li a { padding-block: 8px; }
  #sidebar-left li::before { top: 16px; }
  #sidebar-left .oferty { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  #main-content { gap: var(--o3); }
}
@media (max-width: 640px) {
  .container { padding-inline: 12px; }
  .logo img { width: 190px; }
  .kontakt-dane { padding: var(--o3); }
  .menu-top { right: 12px; }
  .menu-top ul { flex-direction: column; align-items: flex-end; gap: 6px; }
  .menu-top a { display: block; padding: 2px 0; }
  .menu-glowne ul { justify-content: space-between; gap: 2px; }
  .menu-glowne a, .menu-glowne span { padding: 10px clamp(3px, 1.5vw, 6px); font-size: clamp(12.5px, 3.6vw, 13.5px); white-space: nowrap; }
  .menu-glowne a[href*="allegro"] { padding-inline: clamp(5px, 2.2vw, 9px); }
  .panel, .moduletablegpoz, .box { padding: var(--o3); }
  h1 { font-size: 25px; }
  h2 { font-size: 21px; }
  .karta { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .karta-foto img { width: 100%; max-height: none; }
  .powitanie { padding: var(--o3); }
  .baner { display: block; }
  .baner img { height: auto; aspect-ratio: 16 / 7; }
  .baner-tekst { padding: var(--o3); background: var(--tusz); }
  .obok-lewo, .obok-prawo { float: none; display: block; margin: 0 auto var(--o3); }
  .oferty { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .tresc { font-size: 16.5px; }
  .podglad p { margin-inline: 12px; }
}
@media (max-height: 560px) {
  html { scroll-padding-top: 16px; }
  .header { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .header, #sidebar-left, .moduletablegpoz, .box, .footer, .baner, .zobacz-tez, .sciezka { display: none; }
  .uklad { display: block; }
  .panel { box-shadow: none; padding: 0; }
}
