/* baza.css — wspólne poprawki wyglądu dla wszystkich wariantów.
   Nie zmienia treści, nagłówków ani linków: tylko odstępy, siatkę i czytelność. */
html { scroll-behavior: smooth; }
body {
  margin: 0 !important;
  line-height: 1.6;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif !important;
  padding-bottom: 90px;
}

/* nagłówek: logo z lewej, menu z prawej, przyklejony u góry */
body > header {
  display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px !important; box-sizing: border-box; position: sticky; top: 0; z-index: 50;
}
body > header .logo-container,
body > header .links-container { width: auto !important; margin: 0 !important; display: flex !important; align-items: center; }
body > header img { display: block; width: 180px !important; height: auto !important; }
body > header .links-container { gap: 4px; }
body > header .links-container a {
  width: auto !important; margin: 0 !important; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; white-space: nowrap;
}

h1 { margin: 18px 16px 6px !important; line-height: 1.2; }
h2 { margin: 0 16px !important; font-weight: 500 !important; line-height: 1.4; }

/* treść w wyśrodkowanej kolumnie zamiast od krawędzi do krawędzi */
body > p,
body > div[style*="flex-wrap"],
body > table,
body > div[style*="flex-direction: column"],
.zc-onas {
  max-width: 1100px; margin-left: auto !important; margin-right: auto !important;
  padding-left: 16px; padding-right: 16px; box-sizing: border-box;
}
body > div[style*="flex-direction: column"] { gap: 20px !important; }
body > div[style*="flex-direction: column"] > div { gap: 20px !important; }

/* kafelki z opisem (dotąd tabelki z czarną ramką) */
table[style*="border-collapse"] { border-collapse: separate !important; border-spacing: 0; }
td[style*="FBF0E9"] { border-radius: 14px !important; padding: 18px 20px !important; line-height: 1.65; }

/* „Nasze usługi są dostępne na terenach” jako etykiety */
body > div[style*="flex-wrap"] { gap: 8px; }
body > div[style*="flex-wrap"] > div { width: auto !important; border-radius: 999px; padding: 6px 14px !important; font-size: 14px; }

/* lista miast */
body > table { width: 100%; border-collapse: separate; margin-top: 8px !important; margin-bottom: 24px !important; }
body > table ul { margin: 0; padding-left: 18px; }
body > table li { margin: 3px 0; }
body > table a { text-decoration: none; }
body > table a:hover { text-decoration: underline; }

/* stopka była nieczytelna (0.5em) */
footer { font-size: 13px !important; line-height: 1.5; padding: 18px 16px 22px !important; }

.image-container > div { border: 0 !important; }

/* pływający telefon — wspólna mechanika, wygląd w pliku wariantu */
.zc-call { position: fixed; z-index: 100; display: flex !important; align-items: center; gap: 12px; text-decoration: none; box-sizing: border-box; }
.zc-call span { width: auto !important; }
.zc-call__ikona { display: grid !important; place-items: center; flex: none; }
.zc-call__ikona svg { width: 22px; height: 22px; fill: currentColor; }

/* zielone pola „Zadzwoń” zamienione skryptem w link tel: — cały kafel klikalny */
.zc-cta { position: relative; cursor: pointer; }
.zc-cta__link { display: block; color: inherit !important; text-decoration: none !important; width: auto !important; }
.zc-cta__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.zc-cta:focus-within { outline: 3px solid currentColor; outline-offset: 4px; }

/* sekcja O nas — wspólna mechanika */
.zc-onas__fakty { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zc-onas__fakty li { display: flex; flex-direction: column; }
.zc-onas__fakty strong { font-size: 20px; line-height: 1.2; }
.zc-onas__fakty span { width: auto !important; font-size: 14px; }
.zc-onas p { padding: 0 !important; margin: 0 0 12px !important; }

/* wąski telefon: 4 pozycje menu (Poradnik, Dla firm, O nas, Kontakt) muszą się zmieścić, inaczej zawijają się zamiast znikać (21.10.2026) */
@media (max-width: 480px) {
  body > header { gap: 6px !important; }
  body > header img { width: 96px !important; }
  body > header .logo-container { flex: 0 0 96px; width: 96px !important; }
  body > header .links-container { gap: 0 !important; flex-wrap: wrap; justify-content: flex-end; }
  body > header .links-container a { padding: 5px 6px !important; font-size: 13px !important; }
}

@media (max-width: 768px) {
  body { padding-bottom: 78px; }
  body > header { padding: 8px 12px !important; }
  body > header img { width: 128px !important; }
  body > header .links-container a { padding: 6px 9px; font-size: 14px; }
  body > div[style*="flex-direction: column"] > div { flex-direction: column; }
  .image-container { gap: 14px; }
  .image-container > div { width: min(90%, 380px) !important; height: 230px !important; margin: 0 auto !important; }
  /* lista miast jedna pod drugą zamiast przewijania w bok */
  body > table, body > table tbody, body > table tr, body > table td { display: block !important; width: auto !important; }
  body > table { overflow: visible !important; }
  /* telefon na telefonie: pasek przyklejony do dołu na całą szerokość */
  .zc-call {
    left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100% !important;
    border-radius: 0 !important; justify-content: center; transform: none !important;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
  }
  .zc-call__dop { display: none !important; }
}
