/*
 * Arkusz bazowy satelity. Wszystkie warianty układów korzystają z tych samych
 * komponentów; motywy (theme/*.css) zmieniają wyłącznie zmienne z :root
 * i ewentualnie kilka akcentów. Pełny opis: docs/SZABLONY.md.
 */

:root {
  /* powierzchnie */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f5f6;
  --border: #dde3e7;
  --border-strong: #b5c0c8;
  /* tekst */
  --text: #15202b;
  --text-2: #3b4855;
  --muted: #677480;
  /* kolor marki */
  --primary: #0e5a6b;
  --primary-ink: #ffffff;
  --primary-soft: #e2eff1;
  --link: var(--primary);
  /* wyróżnienie premium */
  --accent: #c98a00;
  --accent-ink: #2a1c00;
  --accent-soft: #fbf3dc;
  /* stany */
  --ok: #12805c;
  --danger: #b23a2e;
  /* strefy */
  --header-bg: var(--surface);
  --header-text: var(--text);
  --header-border: var(--border);
  --hero-bg: var(--surface-2);
  --hero-text: var(--text);
  --hero-muted: var(--text-2);
  --footer-bg: #15202b;
  --footer-text: #d6dce1;
  --footer-muted: #93a0ab;
  --footer-border: rgba(255, 255, 255, .12);
  /* kształt */
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .05), 0 10px 28px -14px rgba(16, 24, 32, .22);
  /* typografia */
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --display-weight: 700;
  --display-tracking: -0.018em;
  --text-base: 1rem;
  --leading: 1.6;
  /* układ */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-gap: clamp(40px, 6vw, 72px);
  --sticky-top: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--text-base)/var(--leading) var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.15;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
h3 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--primary); color: var(--primary-ink); }

.ic { flex: none; vertical-align: -0.2em; }
.muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 62ch; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ── Układ ─────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: calc(var(--section-gap) / 2); }
.section--alt { background: var(--surface-2); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section__head p { margin: 6px 0 0; color: var(--muted); flex-basis: 100%; }
.cols { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.stack > * + * { margin-top: var(--stack, 16px); }
@media (min-width: 960px) {
  .cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .cols--wide-side { grid-template-columns: minmax(0, 1fr) 400px; }
  .cols--left { grid-template-columns: 300px minmax(0, 1fr); }
  .cols__side--sticky { position: sticky; top: calc(var(--sticky-top) + 20px); }
}

/* ── Przyciski, odnośniki, etykiety ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--text); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { filter: brightness(1.1); border-color: var(--primary); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--link); padding-inline: 8px; }
.btn--ghost:hover { background: var(--primary-soft); border-color: transparent; }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: .9375rem; }
.btn--block { width: 100%; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.more-link .ic { transition: transform .15s; }
.more-link:hover .ic { transform: translateX(3px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text-2); font-size: .9375rem; line-height: 1.3; text-decoration: none;
}
a.chip:hover { border-color: var(--primary); color: var(--link); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip__n { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.is-active .chip__n { color: inherit; opacity: .8; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); font-size: .8125rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge--premium { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.badge--premium .ic { color: var(--accent); fill: var(--accent); }
.badge--open { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); }
.badge--closed { background: var(--surface-2); color: var(--muted); }

/* ── Okruszki, paginacja, pasek narzędzi ───────────────────────── */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--link); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text-2); }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; margin-top: 40px; }
.pager ol { display: flex; flex-wrap: wrap; gap: 4px; }
.pager__num, .pager__step {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 42px; min-height: 42px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-2); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
}
a.pager__num:hover, .pager__step:hover { border-color: var(--primary); color: var(--link); }
.pager__num.is-current { background: var(--text); border-color: var(--text); color: var(--bg); }
.pager__gap { align-self: center; padding: 0 4px; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 12px; border-block: 1px solid var(--border); margin-bottom: 24px; font-size: .9375rem; }
.toolbar__count { color: var(--text-2); }
.toolbar__count strong { color: var(--text); font-variant-numeric: tabular-nums; }
.toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.view-switch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.view-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; color: var(--text-2); text-decoration: none; }
.view-switch a + a { border-left: 1px solid var(--border-strong); }
.view-switch a:hover { background: var(--surface-2); }
.view-switch a.is-active { background: var(--text); color: var(--bg); }
.per-page { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.per-page a { padding: 4px 7px; border-radius: 4px; color: var(--text-2); text-decoration: none; font-variant-numeric: tabular-nums; }
.per-page a:hover { background: var(--surface-2); }
.per-page a.is-active { background: var(--primary-soft); color: var(--link); font-weight: 600; }

/* ── Formularze ────────────────────────────────────────────────── */
.input, .select {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.input::placeholder { color: var(--muted); }
.input:focus, .select:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.search { display: flex; gap: 8px; }
.search .input { flex: 1; min-width: 0; }
.search--joined { gap: 0; }
.search--joined .input { border-radius: var(--radius) 0 0 var(--radius); border-right: 0; }
.search--joined .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.filters { display: grid; gap: 10px; grid-template-columns: 1fr; }
.filters label { display: block; margin-bottom: 4px; font-size: .875rem; font-weight: 600; color: var(--text-2); }
@media (min-width: 760px) { .filters--bar { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; align-items: end; } }

/* ── Logo firmy ────────────────────────────────────────────────── */
.logo {
  --logo-size: 56px;
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: var(--logo-size); height: var(--logo-size);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--logo-bg, #fff); overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo--initial, .logo.is-broken { background: var(--primary-soft); border-color: transparent; color: var(--link); font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(var(--logo-size) * .42); line-height: 1; }
.logo.is-broken::after { content: attr(data-initial); }
.logo--sm { --logo-size: 40px; }
.logo--lg { --logo-size: 88px; }
.logo--xl { --logo-size: 120px; border-radius: var(--radius-lg); }

/* ── Wpis: karta, wiersz, linia ────────────────────────────────── */
.entry-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.entry-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.entry-card__top { display: flex; align-items: flex-start; gap: 14px; }
.entry__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.0625rem; line-height: 1.3; letter-spacing: var(--display-tracking); }
.entry__name a { color: var(--text); text-decoration: none; }
/* cała karta jest klikalna, ale przyciski i linki w środku działają osobno */
.entry-card .entry__name a::after, .entry-row .entry__name a::after { content: ""; position: absolute; inset: 0; }
.entry-card :is(.reveal, .chip, .btn), .entry-row :is(.reveal, .chip, .btn) { position: relative; z-index: 1; }
.entry__name a:hover { color: var(--link); }
.entry__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-size: .875rem; }
.entry__meta span { display: inline-flex; align-items: center; gap: 5px; }
.entry__desc { margin: 0; color: var(--text-2); font-size: .9375rem; }
.entry-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: .875rem; }

.entry-rows { border-top: 1px solid var(--border); }
.entry-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.entry-row > .logo { grid-row: span 2; }
.entry-row__main { min-width: 0; }
.entry-row__side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .875rem; }
@media (min-width: 760px) {
  .entry-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .entry-row > .logo { grid-row: auto; }
  .entry-row__side { grid-column: auto; justify-content: flex-end; max-width: 300px; }
}
.entry-rows--compact .entry-row { padding: 10px 0; }
.entry-rows--compact .entry__desc { display: none; }

.entry-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.entry-table th { padding: 10px 12px; border-bottom: 2px solid var(--text); text-align: left; font-size: .8125rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.entry-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.entry-table tr:hover td { background: var(--surface-2); }
.entry-table a { font-weight: 600; color: var(--text); text-decoration: none; }
.entry-table a:hover { color: var(--link); text-decoration: underline; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* wyróżnienie premium — styl wybierany w panelu (klasa na <body>) */
.is-premium { --mark: var(--accent); }
.premium-gold .entry-card.is-premium { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 72px); }
.premium-gold .entry-row.is-premium { background: linear-gradient(90deg, var(--accent-soft), transparent 60%); padding-inline: 14px; margin-inline: -14px; border-radius: var(--radius); }
.premium-bar .entry-card.is-premium, .premium-bar .entry-row.is-premium { box-shadow: inset 4px 0 0 var(--accent); }
.premium-bar .entry-row.is-premium { padding-left: 16px; }
.premium-tint .entry-card.is-premium, .premium-tint .entry-row.is-premium { background: var(--accent-soft); }
.premium-tint .entry-row.is-premium { padding-inline: 14px; margin-inline: -14px; }
.premium-ribbon .entry-card.is-premium { overflow: hidden; }
.premium-ribbon .entry-card.is-premium::before { content: "Wyróżniona"; position: absolute; top: 14px; right: -34px; z-index: 2; width: 130px; padding: 3px 0; background: var(--accent); color: var(--accent-on, var(--accent-ink)); font-size: .6875rem; font-weight: 700; text-align: center; transform: rotate(40deg); }
.premium-ribbon .entry-row.is-premium { box-shadow: inset 4px 0 0 var(--accent); padding-left: 16px; }

/* ── Kontakt, godziny, mapa ────────────────────────────────────── */
.reveal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--text); font-variant-numeric: tabular-nums; }
.reveal > .ic { color: var(--muted); }
.reveal--bare > .ic { display: none; }
.reveal__value { font-weight: 600; letter-spacing: .01em; }
.reveal__value a { color: inherit; }
.reveal__btn { padding: 3px 10px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--link); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.reveal__btn:hover { border-color: var(--primary); background: var(--primary-soft); }
.reveal__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.reveal.is-loading .reveal__btn { opacity: .55; pointer-events: none; }
.reveal.is-done .reveal__btn { display: none; }
.reveal.is-error .reveal__btn { border-color: var(--danger); color: var(--danger); }

.contact-list > li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.contact-list > li:first-child { border-top: 0; padding-top: 0; }
.contact-list > li > .ic { margin-top: 3px; color: var(--muted); }
.contact-list__label { display: block; font-size: .8125rem; color: var(--muted); }
.contact-list a { word-break: break-word; }

.hours__status { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; }
.hours__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.hours__status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.hours__list li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: var(--text-2); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.hours__list li.is-today { color: var(--text); font-weight: 600; }
.hours__list li.is-closed span:last-child { color: var(--muted); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-2); }
.socials a:hover { border-color: var(--primary); color: var(--link); background: var(--primary-soft); }

.map { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.panel { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.panel > h2, .panel > h3 { margin-bottom: 14px; font-size: 1.0625rem; }
.panel--flat { border: 0; background: var(--surface-2); }

.facts { display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: .9375rem; }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); }

/* ── Artykuły ──────────────────────────────────────────────────── */
.article-card { position: relative; display: flex; flex-direction: column; gap: 12px; }
.article-card__cover { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); }
.article-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-card__cover img { transform: scale(1.03); }
.article-card__cover--empty { display: grid; place-items: center; color: var(--border-strong); }
.article-card :is(h2, h3) { font-size: 1.125rem; line-height: 1.3; }
.article-card :is(h2, h3) a { color: var(--text); text-decoration: none; }
.article-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover :is(h2, h3) a { color: var(--link); }
.article-card p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .875rem; }
.article-meta a { position: relative; z-index: 1; color: inherit; }
.article-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .article-row { grid-template-columns: 220px minmax(0, 1fr); align-items: center; } }

/* Tekst wypełnia kolumnę, w której stoi; o szerokości decyduje układ strony, nie sam tekst.
   (Dawny limit 70 znaków zostawiał treści strony głównej i stron własnych na połowie szerokości.) */
.prose { max-width: none; font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; color: var(--text); }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--link); }
.prose img { border-radius: var(--radius-lg); }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--primary); color: var(--text); font-size: 1.15em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); }
.prose a { font-weight: 500; }
.prose--full { max-width: none; }
/* oznaczenie materiału sponsorowanego — dokłada je jądro satelity do treści artykułu */
.sponsored-note { display: inline-block; margin: 0 0 1.2em; padding: 3px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius); color: var(--text-2); font-size: .8125rem; font-weight: 600; line-height: 1.5; }
.sponsored-box { margin-top: 2em; padding: 12px 16px; border-left: 3px solid var(--border-strong); background: var(--surface-2); color: var(--text-2); font-size: .9375rem; }

/* ── FAQ, puste stany, liczby ──────────────────────────────────── */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details > div { padding: 0 0 20px; color: var(--text-2); }

.empty { padding: 48px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); text-align: center; color: var(--text-2); }
.empty h2, .empty h3 { margin-bottom: 8px; }
.empty p { max-width: 46ch; margin-inline: auto; }

.stats { display: flex; flex-wrap: wrap; gap: 20px 40px; }
.stat__n { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__l { color: var(--muted); font-size: .9375rem; }

.index-list { columns: 2; column-gap: 32px; }
.index-list li { break-inside: avoid; padding: 5px 0; }
.index-list a { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); text-decoration: none; }
.index-list a:hover { color: var(--link); }
.index-list a span { color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .index-list--3 { columns: 3; } .index-list--4 { columns: 4; } }

/* ── Nagłówek i stopka: elementy wspólne dla wariantów ─────────── */
.site-header { position: relative; z-index: 30; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; letter-spacing: var(--display-tracking); text-decoration: none; }
.brand__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); background: var(--primary); color: var(--primary-ink); font-size: 1rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--radius); color: inherit; font-weight: 500; text-decoration: none; opacity: .86; }
.nav a:hover, .nav a[aria-current] { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--header-border); border-radius: var(--radius); background: transparent; color: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 859px) {
  .nav-toggle { display: inline-flex; }
  .site-header [data-nav] { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--header-bg); border-bottom: 1px solid var(--header-border); box-shadow: var(--shadow); }
  .site-header [data-nav].is-open { display: flex; }
  .site-header [data-nav] a { padding: 12px 8px; border-radius: 0; border-top: 1px solid var(--header-border); }
  .site-header [data-nav] .search { margin: 8px 0; }
}

.site-footer { margin-top: var(--section-gap); background: var(--footer-bg); color: var(--footer-text); font-size: .9375rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--footer-heading, var(--footer-text)); text-decoration: underline; }
.site-footer h2, .site-footer h3 { margin-bottom: 14px; font-size: 1rem; color: var(--footer-heading, var(--footer-text)); }
.site-footer .index-list a, .site-footer .index-list a span { color: inherit; }
.site-footer .index-list a span { opacity: .7; }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-block: 48px; }
.site-footer__grid li { padding: 4px 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid var(--footer-border); color: var(--footer-muted); font-size: .875rem; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ── Reklamy ───────────────────────────────────────────────────── */
.ad { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 24px auto; max-width: 100%; text-align: center; }
.ad__label { font-size: .6875rem; color: var(--muted); letter-spacing: .04em; }
.ad img { display: block; border-radius: var(--radius); }
.ad--header, .ad--footer, .ad--under-header { margin-block: 16px; }
/* Formularz kontaktowy na stronie własnej typu „Kontakt” */
.contact-form { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); max-width: 820px; }
.contact-form h2 { margin-bottom: 16px; font-size: 1.375rem; }
.contact-form form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; color: var(--text); }
.contact-form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form__text { height: auto; min-height: 150px; padding-block: 10px; line-height: 1.55; resize: vertical; }
.contact-form .btn { justify-self: start; }
.contact-form__sum { max-width: 320px; }
.contact-form__sum b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact-form__sum small { font-weight: 400; color: var(--muted); font-size: .875rem; }
.contact-form__sum .input { max-width: 120px; }
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__ok, .contact-form__error { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border); }
.contact-form__ok { border-left: 4px solid var(--primary); background: var(--primary-soft); color: var(--text); }
.contact-form__error { border-left: 4px solid #c0392b; color: var(--text); }

/* Zachęta dla właściciela firmy pod zwykłą wizytówką. */
.claim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-block: 8px 32px; padding: 18px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface-2); }
.claim__text { flex: 1 1 320px; }
.claim strong { display: block; font-size: 1.125rem; color: var(--text); }
.claim p { margin: 4px 0 0; color: var(--text-2); font-size: .9375rem; }
/* Pytanie o zgodę na statystyki: wąski pasek u dołu, nie zasłania treści. */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; max-width: 760px; margin-inline: auto; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-size: .9375rem; color: var(--text-2); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 300px; margin: 0; }
.consent__actions { display: flex; gap: 8px; margin-left: auto; }
/* Reklamy z miejsc, których wybrany wariant układu nie przewidział: pod treścią, obok siebie. */
.ads-extra { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 8px 32px; }
.ads-extra .ad { margin-inline: 0; }
.cols__side .ad, .ad--entry-sidebar, .ad--article-sidebar, .ad--homepage-sidebar, .ad--sidebar { margin-block: 0; }
.grid > .ad, .entry-rows > .ad { grid-column: 1 / -1; }
.sticky-ad { position: fixed; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 6px 44px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.sticky-ad .ad { margin: 0; }
.sticky-ad .ad__label { display: none; }
.sticky-ad--top { top: 0; }
.sticky-ad--bottom { bottom: 0; }
.sticky-ad__close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.popup-ad { max-width: min(92vw, 560px); padding: 28px 20px 20px; border: 0; border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.popup-ad::backdrop { background: rgba(10, 16, 22, .55); }
.popup-ad .ad { margin: 0; }
.popup-ad__close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; }

/* ── Linki do innych katalogów ─────────────────────────────────── */
.cross-links li { padding: 10px 0; border-top: 1px solid var(--border); }
.cross-links li:first-child { border-top: 0; padding-top: 0; }
.cross-links a { font-weight: 600; text-decoration: none; }
.cross-links a:hover { text-decoration: underline; }
.cross-links small { display: block; color: var(--muted); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .ad, .sticky-ad, .pager, .toolbar, .reveal__btn { display: none !important; }
}
