/*
 * dbo.css — system wyglądu prototypów dbo.pl (wersja 3).
 *
 * Kierunek: ciepły, kolorowy serwis z prawdziwymi zdjęciami. Niebieski prowadzi działania,
 * żółty należy do logo, strony głównej i promowania, a każda kategoria ma własny pastel
 * (tło jej obrazka). Karty są miękkie i zaokrąglone, obramowania szare, bez czerni.
 *
 * Odpowiada za: tokeny, reset, typografię i komponenty wspólne (przyciski, pola, listy wyboru,
 * miejscowość z promieniem, karty ogłoszeń, kafle kategorii, nagłówek, nawigację mobilną, stopkę).
 * Nie zawiera stylów pojedynczych ekranów — te są w <style> danego pliku HTML.
 * Wymogi: od 320 px, kontrast WCAG 2.2 AA, cele dotykowe min. 44 px, widoczny fokus,
 * prefers-reduced-motion. Kolory z palety Radix Colors (MIT). Czcionka Figtree (OFL), pliki w fonts/.
 * Ikony Phosphor (MIT): <i class="i" data-i="heart"></i> + icons.js.
 */

/* ---------- Czcionka: Figtree, podzbiory latin i latin-ext (polskie znaki) ---------- */
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113; }
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113; }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(fonts/figtree-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113; }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(fonts/figtree-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(fonts/figtree-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113; }
@font-face { font-family: Figtree; font-weight: 800; font-display: swap; src: url(fonts/figtree-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---------- Tokeny ---------- */
:root {
  /* Marka */
  --brand: #0d74ce;        /* blue 11 — przyciski główne, odnośniki, zaznaczenia */
  --brand-hover: #0b63b0;
  --brand-deep: #113264;   /* blue 12 — nagłówki na żółtym, pasy, litery logo */
  --brand-soft: #e6f4fe;   /* blue 3 — tło zaznaczonej opcji */
  --sun: #ffdc00;          /* yellow 10 — logo, pas powitalny, „Promowane” */
  --sun-soft: #fffab8;     /* yellow 3 */
  /* Tekst i powierzchnie (szarości „sage”) */
  --ink: #1a211e;          /* tekst główny */
  --ink-2: #5f6563;        /* tekst pomocniczy */
  --ink-3: #868e8b;        /* ikony drugoplanowe, podpowiedzi w polach */
  --edge: #cbcfcd;         /* obramowania pól i przycisków */
  --edge-strong: #868e8b;  /* obramowanie pod kursorem */
  --rule: #e6e9e8;         /* linie podziału, obramowania kart */
  --bg: #f7f9f8;           /* tło strony */
  --surface: #ffffff;      /* karty, pola */
  --ring: rgb(13 116 206 / 22%);
  /* Znaczenia */
  --ok: #2a7e3b; --ok-soft: #e9f6e9;
  --warn: #ab6400; --warn-soft: #fff7c2;
  --danger: #d13415; --danger-soft: #feebe7;
  /* Pastele kategorii = tła ich obrazków */
  --c-moto: #d5efff; --c-dom: #daf1db; --c-praca: #e4defc; --c-ogrod: #fff7c2;
  --c-elektro: #e6f4fe; --c-moda: #fee9f5; --c-dzieci: #ddf9f2; --c-sport: #ffefd6;
  --c-zwierz: #ffe8d7; --c-rol: #e2f5c4; --c-uslugi: #e1e9f0; --c-oddam: #f0e9ff;

  --font: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-1: 0.75rem; --fs-2: 0.875rem; --fs-3: 1rem; --fs-4: 1.125rem;
  --fs-5: 1.375rem; --fs-6: 1.75rem; --fs-7: clamp(2rem, 5vw, 3.25rem);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-full: 999px;
  --shadow-1: 0 1px 2px rgb(26 33 30 / 6%);
  --shadow-2: 0 1px 2px rgb(26 33 30 / 6%), 0 10px 28px -12px rgb(26 33 30 / 18%);
  --shadow-3: 0 2px 4px rgb(17 50 100 / 8%), 0 24px 48px -20px rgb(17 50 100 / 28%);
  --wrap: 1200px;
  --tap: 44px;
}

/* ---------- Reset i podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-3)/1.5 var(--font); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 { font-size: var(--fs-7); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-6); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-4); line-height: 1.3; font-weight: 700; }
a { color: var(--brand); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { width: min(100% - 2 * var(--s4), var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-2); }
.tiny { font-size: var(--fs-1); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--s3); top: -80px; background: var(--brand-deep); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: var(--s3); }

/* ---------- Ikony ---------- */
.i { display: inline-flex; flex: none; width: 1.25em; height: 1.25em; vertical-align: -0.22em; }
.i svg { width: 100%; height: 100%; }
.i-lg { width: 1.5rem; height: 1.5rem; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 18px; border-radius: var(--r-md);
  border: 1px solid var(--edge); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: var(--fs-2); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, box-shadow .12s, transform .08s;
}
.btn:hover { border-color: var(--edge-strong); background: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
/* Przyciski główne: jednolity kolor i miękki cień w kolorze przycisku; pod kursorem ciemnieją */
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgb(17 50 100 / 20%), 0 6px 14px -8px rgb(13 116 206 / 55%); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--brand-deep); box-shadow: 0 1px 2px rgb(120 80 0 / 18%), 0 6px 14px -8px rgb(224 168 0 / 60%); }
.btn-sun:hover { background: #ffe629; border-color: #ffe629; }
.btn-quiet { border-color: transparent; background: transparent; color: var(--brand); }
.btn-quiet:hover { background: var(--brand-soft); border-color: transparent; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: var(--fs-3); border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--rule); border-color: var(--rule); color: var(--ink-3); cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-full); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; position: relative; }
.icon-btn:hover { background: var(--rule); }
.icon-btn .dot { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--danger); color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- Pola, listy wyboru ---------- */
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: var(--fs-2); }
.hint { font-size: var(--fs-2); color: var(--ink-2); }
.error { font-size: var(--fs-2); color: var(--danger); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--r-md);
  border: 1px solid var(--edge); background: var(--surface); color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--edge-strong); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; padding-right: 40px; cursor: pointer; background-image: url(icons/caret-down.svg); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .i { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.input-wrap > .i ~ .input { padding-left: 42px; }
.input-wrap > .unit { position: absolute; right: 14px; color: var(--ink-2); font-size: var(--fs-2); pointer-events: none; }
/* Przycisk czyszczenia pola (dokłada go dbo.js); systemowy krzyżyk pól wyszukiwania jest ukryty, żeby nie było dwóch */
.input-clear { position: absolute; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.input-clear:hover { background: var(--rule); color: var(--ink); }
.input-clear[hidden] { display: none; }
.input-wrap.has-clear > .input { padding-right: 46px; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s2); }
.check { display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); cursor: pointer; }
.check input:not(.switch) { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: var(--r-full); background: var(--edge); position: relative; cursor: pointer; flex: none; transition: background .12s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .12s; }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(18px); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--edge); border-radius: var(--r-full); background: var(--surface); font-size: var(--fs-2); font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer; transition: background .12s, border-color .12s; }
.chip:hover { border-color: var(--edge-strong); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Miejscowość z promieniem: pole z podpowiedziami; po wyborze miejscowości pojawia się wiersz promienia */
.locbox { position: relative; }
.locbox-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); max-height: 340px; overflow-y: auto; box-shadow: var(--shadow-2); padding: 6px; }
.locbox-list[hidden], .radius[hidden] { display: none; }
.locbox-group { padding: 8px 10px 4px; font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }
.locbox-opt { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: var(--tap); padding: 6px 10px; border: 0; border-radius: var(--r-sm); background: transparent; text-align: left; cursor: pointer; }
.locbox-opt:hover { background: var(--brand-soft); }
.locbox-opt small { color: var(--ink-2); margin-left: auto; }
/* Opcja miejscowości z opisem: nazwa, pod nią gmina/powiat/województwo, po prawej rodzaj (miasto, wieś, dzielnica) */
.locbox-opt .where { display: block; font-size: var(--fs-1); color: var(--ink-2); }
.locbox-opt .kind { margin-left: auto; flex: none; }
.locbox-opt mark, .suggest-opt mark { background: none; color: inherit; font-weight: 800; }

/* Panel miejscowości: wyniki wpisywania albo przeglądanie województwo -> miejscowości */
.locpanel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 8px; }
.locpanel[hidden], .locpanel [hidden] { display: none; }
@media (min-width: 900px) { .locpanel { left: auto; width: 640px; } }
.locpanel-cols { display: grid; gap: 8px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--rule); }
.woj-list { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.woj-list button { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; text-align: left; white-space: nowrap; font-size: var(--fs-2); cursor: pointer; }
.woj-list button:hover { background: var(--bg); }
.woj-list button[aria-selected="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.woj-towns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; align-content: start; }
.woj-towns .all { grid-column: 1 / -1; font-weight: 700; color: var(--brand); }
@media (min-width: 600px) {
  .locpanel-cols { grid-template-columns: 210px minmax(0, 1fr); }
  .woj-list { display: grid; gap: 0; max-height: 320px; overflow-y: auto; padding: 0 4px 0 0; }
}

/* Podpowiedzi wyszukiwarki: fraza w kategoriach, popularne i ostatnie wyszukiwania */
.suggest-box { position: relative; }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px; max-height: 440px; overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest-opt { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: var(--tap); padding: 6px 10px; border: 0; border-radius: var(--r-sm); background: transparent; text-align: left; cursor: pointer; }
.suggest-opt:hover { background: var(--brand-soft); }
.suggest-opt > .i { color: var(--ink-3); }
.suggest-opt .thumb { width: 38px; height: 38px; flex: none; border-radius: 10px; overflow: hidden; background: var(--c, var(--rule)); }
.suggest-opt .thumb img { width: 100%; height: 100%; object-fit: cover; }
.suggest-opt small { display: block; font-size: var(--fs-1); color: var(--ink-2); }
.suggest-opt .n { margin-left: auto; flex: none; font-size: var(--fs-2); color: var(--ink-2); }

.radius { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.radius .chip { min-height: 34px; padding: 0 12px; }

/* ---------- Etykiety ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-full); font-size: var(--fs-1); font-weight: 700; background: var(--rule); color: var(--ink-2); }
.tag-sun { background: var(--sun); color: var(--brand-deep); }
.tag-brand { background: var(--brand-soft); color: var(--brand); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Karty ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: var(--s5); }

/* Karta ogłoszenia: zdjęcie, serce, cena, tytuł, miejsce i czas */
.listing { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.listing:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.listing-photo { position: relative; aspect-ratio: 4 / 3; background: var(--rule); }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-photo .tag { position: absolute; left: 10px; top: 10px; }
.listing-photo .count { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-full); background: rgb(26 33 30 / 72%); color: #fff; font-size: var(--fs-1); font-weight: 600; }
.listing .fav { position: absolute; right: 8px; top: 8px; z-index: 1; background: rgb(255 255 255 / 92%); box-shadow: var(--shadow-1); }
.listing .fav:hover { background: #fff; color: var(--danger); }
.listing-body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.listing-price { font-size: var(--fs-5); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.listing-price small { font-size: var(--fs-2); font-weight: 600; color: var(--ink-2); }
.listing-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-2); font-weight: 600; line-height: 1.35; min-height: 2.7em; }
.listing-facts { font-size: var(--fs-1); color: var(--ink-2); }
.listing-meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: var(--fs-1); color: var(--ink-2); }
.listing-meta .i { color: var(--brand); }
.listing-meta time { margin-left: auto; }
/* Na telefonie karta jest węższa: mniejsza cena, dopisek pod ceną, mniejsze serce */
@media (max-width: 719px) {
  .listing-price { font-size: var(--fs-4); }
  .listing-price small { display: block; }
  .listing-body { padding: 10px 12px 12px; }
  .listing .fav { width: 36px; height: 36px; }
}
.grid-listings { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .grid-listings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
@media (min-width: 1040px) { .grid-listings { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); } }

/* Kafel kategorii: obrazek przedmiotu na pastelu kategorii, nazwa, liczba ogłoszeń */
.cat { display: grid; gap: var(--s2); justify-items: center; text-align: center; color: inherit; text-decoration: none; }
.cat-img { width: 100%; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: var(--c, var(--rule)); transition: transform .15s, box-shadow .15s; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat-img { transform: translateY(-3px) rotate(-1.5deg); box-shadow: var(--shadow-2); }
.cat b { font-size: var(--fs-2); font-weight: 700; line-height: 1.25; }
.cat span { font-size: var(--fs-1); color: var(--ink-2); }
.grid-cats { display: grid; gap: var(--s4) var(--s3); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 600px) { .grid-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s5) var(--s4); } }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .bar { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 38px; width: auto; }
.header-nav { display: none; gap: var(--s5); margin-left: var(--s4); }
.header-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-2); }
.header-nav a:hover { color: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s1); }
.header-actions .only-wide { display: none; }
@media (min-width: 900px) { .header-nav { display: flex; } .header-actions .only-wide { display: inline-flex; } }

/* Dolna nawigacja na telefonie */
.bottom-nav { position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 58px; font-size: 0.6875rem; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.bottom-nav a[aria-current="page"] { color: var(--brand); }
.bottom-nav .add i.plus { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -20px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: var(--shadow-2); font-size: 1.25rem; }
.has-bottom-nav { padding-bottom: 76px; }
@media (min-width: 900px) { .bottom-nav { display: none; } .has-bottom-nav { padding-bottom: 0; } }

/* ---------- Stopka ---------- */
.site-footer { margin-top: var(--s8); background: var(--surface); border-top: 1px solid var(--rule); padding: var(--s7) 0; font-size: var(--fs-2); }
.footer-cols { display: grid; gap: var(--s5); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-cols h3 { font-size: var(--fs-2); margin-bottom: var(--s3); }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--brand); text-decoration: underline; }

.section { padding: var(--s7) 0 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.section-head p { color: var(--ink-2); margin-top: 4px; }
