/* ---------- fonty (lokalnie, bez zewnętrznych serwerów) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-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+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-sans-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+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: "IBM Plex Sans"; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.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: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-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+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokeny ---------- */
:root {
  color-scheme: dark;

  --ink: #09130f;          /* panel */
  --land: #0d1d1a;         /* podłoże mapy */
  --raised: #132723;       /* hover, pola */
  --line: #20393a;         /* linie rozdzielające */
  --text: #e4efe8;
  --muted: #8ba69b;
  --brass: #e9b44c;        /* akcent: fokus, zaznaczenie, granica miasta */

  --c-komputery: #e9b44c;
  --c-telefony: #4fd6b4;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --panel-w: 400px;
  --r: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 15px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.sprite { position: absolute; }

/* ---------- wspólne: glify kategorii, przyciski ---------- */
.glyph { width: 18px; height: 18px; flex: none; fill: currentColor; color: var(--c); }
.komputery { --c: var(--c-komputery); }
.telefony { --c: var(--c-telefony); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-block; padding: 9px 14px;
  font: 500 .9rem/1.2 var(--body); text-decoration: none;
  color: var(--ink); background: var(--brass);
  border: 1px solid var(--brass); border-radius: var(--r);
}
.btn:hover { background: color-mix(in srgb, var(--brass) 85%, white); }
.btn.alt { color: var(--text); background: transparent; border-color: var(--line); }
.btn.alt:hover { background: transparent; border-color: var(--brass); }
button.btn { cursor: pointer; }

/* ---------- zgoda na cookies (js/consent.js) ---------- */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  padding: 14px 24px;
  background: var(--ink); border-top: 1px solid var(--brass);
  font-size: .85rem; line-height: 1.45;
}
.consent p { margin: 0; max-width: 72ch; }
.consent p + p { margin-top: 6px; color: var(--muted); }
.consent a { color: var(--brass); }
.consent .actions { flex: none; }
@media (max-width: 760px) {
  .consent { padding: 12px 16px; }
  .consent .actions { width: 100%; }
  .consent .btn { flex: 1; text-align: center; }
}

/* przycisk wyglądający jak link (np. „Ustawienia cookies” w stopce) */
.linklike {
  padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px;
}
.linklike:hover { text-decoration-color: currentColor; }

/* Strony treści: kategorie, dzielnice, profile firm, strony informacyjne. Tokeny i fonty są w base.css. */

body.page { min-height: 100vh; display: flex; flex-direction: column; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 24px; }

/* ---------- nagłówek strony ---------- */
.site-head { background: var(--ink); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 32px; padding-block: 14px; }
.brand { font: 800 1.5rem/1 var(--display); font-stretch: 66%; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .9rem; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--brass); }

/* ---------- treść ---------- */
.doc { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 28px 24px 56px; }
.doc h1 { margin: 0 0 14px; font: 800 clamp(2rem, 4.6vw, 3.1rem)/1 var(--display); font-stretch: 66%; letter-spacing: -0.005em; text-wrap: balance; }
.doc h2 { margin: 44px 0 14px; font: 700 1.55rem/1.15 var(--display); font-stretch: 78%; text-wrap: balance; }
.doc h3 { margin: 24px 0 6px; font: 600 1.02rem/1.3 var(--body); }
.doc p { margin: 0 0 12px; max-width: 70ch; }
.doc h3 + p { margin-top: 0; }
.doc p a:not(.btn), .doc ul.plain a, .doc ul.inline a, .doc dd a { color: var(--brass); }
.doc .lede { max-width: 64ch; color: var(--muted); font-size: 1.06rem; line-height: 1.55; margin-bottom: 18px; }
.doc .actions { margin: 6px 0 4px; }
.doc .actions .btn { text-decoration: none; }

.crumbs { margin: 0 0 22px; font-size: .85rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; padding: 0 9px; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

ul.plain { margin: 0 0 12px; padding-left: 1.2em; max-width: 70ch; }
ul.plain li { margin-bottom: 7px; }
ul.plain li::marker { color: var(--brass); }
ul.inline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- lista firm ---------- */
.firms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); columns: 1; }
.firms li { border-bottom: 1px solid var(--line); break-inside: avoid; }
.firm {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 12px; align-items: start;
  padding: 12px 8px; text-decoration: none; color: var(--text);
  overflow-wrap: anywhere; /* nazwy z długim ciągiem bez spacji nie mogą rozpychać układu */
}
.firm:hover { background: var(--raised); }
.firm .glyph { margin-top: 2px; }
.firm .name, .firm .addr { display: block; }
.firm .name { font-weight: 600; line-height: 1.3; }
.firm .addr { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.firm .tel { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; padding-top: 2px; }
.districts .firm { grid-template-columns: minmax(0, 1fr) auto; }

@media (min-width: 860px) {
  .firms { columns: 2; column-gap: 40px; }
}

/* ---------- profil firmy ---------- */
.kindline { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 24px 48px; align-items: start; margin: 8px 0 20px; }
.nap { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.nap dt { color: var(--muted); }
.nap dd { margin: 0; }
.hours { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 0; font-variant-numeric: tabular-nums; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.locator { margin: 0; }
.locator figcaption { margin-top: 8px; color: var(--muted); font-size: .8rem; }
.locator-svg { display: block; width: 100%; height: auto; background: var(--land); border: 1px solid var(--line); border-radius: var(--r); }
.locator-svg .city { fill: var(--raised); stroke: var(--brass); stroke-width: 1.2; stroke-linejoin: round; }

/* ---------- stopka ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--ink); }
.site-foot .credits { padding-block: 22px; font-size: .8rem; line-height: 1.55; color: var(--muted); }
.site-foot .credits p { margin: 0 0 8px; max-width: none; }
.site-foot .credits a { color: var(--muted); }
.site-foot .credits a:hover { color: var(--text); }

@media (max-width: 760px) {
  .wrap, .doc { padding-inline: 16px; }
  .profile-grid { grid-template-columns: 1fr; }
  .doc h2 { margin-top: 36px; }
}
