/* Wspólny nagłówek i stopka dla stron statycznych (industries.html,
   catalogs.html, blog.html). Ma wyglądać IDENTYCZNIE jak w sklepie — wartości
   niżej są zmierzone na działającym index.html, nie przybliżone:

     .header .inner   padding 12px 24px, gap 20px, max-width 1400px
     .logo-img        height 55px (width:auto — patrz uwaga niżej)
     .mega-btn        44px, padding 0 14px, radius 10px, #2563eb, 13px/600
     .search input    44px, padding 11px 48px 11px 16px, tło #eef4fc,
                      border 2px #e5e7eb, radius 10px
     .hdr-btn         44px, padding 0 16px, border 1px #e5e7eb, radius 10px, 13px/500
     footer           #111827, padding 40px 0 24px, 13px, kolor #7c8391

   Zmienne siedzą pod #siteHeader / #siteFooter, a NIE w :root: te strony mają
   własną skalę szarości o tych samych nazwach (--g50:#eef4fc itd.), więc
   wciągnięcie critical.css rozjechałoby albo ich treść, albo chrome.

   Renderuje to js/pages-shell.js. Zmiana nagłówka w sklepie wymaga ręcznego
   przeniesienia tutaj — wspólnego źródła nie ma. */

#siteHeader,
#siteFooter {
  /* paleta 1:1 ze sklepu (odczytana z :root na dev2022) */
  --sh-g0: #fff;
  --sh-g50: #eef4fc;
  --sh-g100: #e3edf9;
  --sh-g200: #e5e7eb;
  --sh-g300: #d1d5db;
  --sh-g400: #7c8391;
  --sh-g500: #5a6170;
  --sh-g700: #374151;
  --sh-g900: #111827;
  --sh-blue: #2563eb;
  --sh-blue-dark: #1d4ed8;
  --sh-max: 1400px;
  font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

/* ── Topbar (32 px) ── */
#siteHeader .sh-topbar {
  background: var(--sh-g900);
  color: var(--sh-g400);
  font-size: 12px;
}
#siteHeader .sh-topbar .sh-inner {
  max-width: var(--sh-max);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
#siteHeader .sh-topbar a {
  color: var(--sh-g400);
  text-decoration: none;
}
#siteHeader .sh-topbar a:hover {
  color: #fff;
}
#siteHeader .sh-topbar .sh-right {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

/* ── Główny pasek (79 px: 55 logo + 2×12 padding) ── */
#siteHeader .sh-bar {
  background: var(--sh-g0);
  border-bottom: 1px solid var(--sh-g200);
}
#siteHeader .sh-bar .sh-inner {
  max-width: var(--sh-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
/* width:auto jest konieczne: logo ma atrybut width="180", a przy height:55px
   bez tego object-fit:fill rozciąga je w pionie (ten sam błąd naprawiony
   w critical.css). */
#siteHeader .sh-logo {
  height: 55px;
  width: auto;
  display: block;
}
#siteHeader .sh-cats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  background: var(--sh-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font: 600 13px/1 inherit;
  text-decoration: none;
  white-space: nowrap;
}
#siteHeader .sh-cats:hover {
  background: var(--sh-blue-dark);
}
#siteHeader .sh-ham {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}
#siteHeader .sh-ham span {
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
#siteHeader .sh-search {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
#siteHeader .sh-search input {
  width: 100%;
  height: 44px;
  padding: 11px 48px 11px 16px;
  border: 2px solid var(--sh-g200);
  border-radius: 10px;
  font: 400 14px/1.2 inherit;
  color: var(--sh-g900);
  background: var(--sh-g50);
  outline: none;
  box-sizing: border-box;
}
#siteHeader .sh-search input:focus {
  border-color: var(--sh-blue);
  background: var(--sh-g0);
}
#siteHeader .sh-search button {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 4px;
  width: 38px;
  border: none;
  border-radius: 8px;
  background: var(--sh-blue);
  color: #fff;
  cursor: pointer;
}
#siteHeader .sh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
#siteHeader .sh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--sh-g200);
  background: var(--sh-g0);
  color: var(--sh-g700);
  font: 500 13px/1 inherit;
  text-decoration: none;
  white-space: nowrap;
}
#siteHeader .sh-btn:hover {
  border-color: var(--sh-blue);
  color: var(--sh-blue);
}
#siteHeader .sh-btn.sh-primary {
  background: var(--sh-blue);
  border-color: var(--sh-blue);
  color: #fff;
}
#siteHeader .sh-btn.sh-primary:hover {
  background: var(--sh-blue-dark);
  color: #fff;
}

/* ── Stopka ── */
#siteFooter {
  background: var(--sh-g900);
  color: var(--sh-g400);
  font-size: 13px;
  padding: 40px 0 24px;
  text-align: left;
}
#siteFooter .sh-inner {
  max-width: var(--sh-max);
  margin: 0 auto;
  padding: 0 24px;
}
#siteFooter .sh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
#siteFooter .sh-hdr {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sh-g500);
  margin-bottom: 12px;
}
#siteFooter .sh-company {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
#siteFooter .sh-tax {
  font-size: 12px;
  color: var(--sh-g400);
  line-height: 1.8;
}
#siteFooter .sh-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
#siteFooter a {
  color: var(--sh-g300);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#siteFooter a:hover {
  color: #fff;
}
#siteFooter .sh-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
#siteFooter .sh-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
#siteFooter .sh-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--sh-g700);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--sh-g500);
}

/* Mobile — te same progi co w sklepie: topbar znika, logo 48 px, szukajka
   przechodzi do drugiego rzędu, z przycisków zostają ikony. */
@media (max-width: 768px) {
  #siteHeader .sh-topbar {
    display: none;
  }
  #siteHeader .sh-bar .sh-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }
  #siteHeader .sh-logo {
    height: 48px;
  }
  #siteHeader .sh-cats span:not(.sh-ham),
  #siteHeader .sh-btn span {
    display: none;
  }
  #siteHeader .sh-cats,
  #siteHeader .sh-btn {
    padding: 0 12px;
    min-width: 44px;
    justify-content: center;
  }
  #siteHeader .sh-search {
    order: 3;
    flex: 1 0 100%;
  }
  #siteFooter .sh-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  #siteFooter .sh-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
/* iOS: wejscie w pole o font-size < 16px powieksza CALA strone i uzytkownik
   zostaje z rozjechanym layoutem. Nie da sie tego wylaczyc inaczej niz
   16px na kontrolkach — maximum-scale=1 w viewport blokuje zoom takze
   celowy, czyli psuje dostepnosc. !important jest konieczne: czesc pol
   (checkout, formularz kontaktowy, wyszukiwarka w podgladzie PDF) ma
   font-size wpisany w atrybut style, a inline bije arkusz. */
@media(max-width:768px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),
  select,textarea{font-size:16px!important}
}
