:root {
  --zolty: #f5cc24;
  --czerw: #a40029;
  --czerw-jasny: #e31e25;
  --teal: #28576e;
  --tekst: #242424;
  --czarny: #171717;
  --bialy: #ffffff;
  --linia: #e4e4e4;
  --margines: clamp(1rem, 3.5vw, 2.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bialy);
  color: var(--tekst);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--czarny);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.7rem, 1.15rem + 1.5vw, 2.25rem);
  max-width: 20ch;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
  max-width: 28ch;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: 1.15rem;
}

p,
li,
dd,
label,
address {
  font-size: 1rem;
}

.miara {
  max-width: 65ch;
}

.lead {
  margin-bottom: 1.5rem;
}

a {
  color: var(--czerw);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--czarny);
}

.pomin {
  position: absolute;
  left: var(--margines);
  top: -8rem;
  background: var(--zolty);
  color: var(--czarny);
  padding: 0.6rem 0.8rem;
  z-index: 30;
}

.pomin:focus {
  top: 0.6rem;
}

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

.indeks,
.numer {
  color: var(--teal);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.35rem;
}

.pasek {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem var(--margines);
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bialy);
  border-top: 4px solid var(--zolty);
  border-bottom: 1px solid var(--linia);
}

.znak {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--czarny);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  min-height: 44px;
}

.znak img {
  height: 3.2rem;
  width: auto;
  max-width: min(20rem, 62vw);
}

.miejscowosc {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3a3a3a;
  white-space: nowrap;
}

.menu-przycisk {
  display: none;
  background: transparent;
  color: var(--czarny);
  border: 0;
  border-bottom: 3px solid var(--zolty);
  font: 700 1rem/1 "Avenir Next", "Segoe UI", sans-serif;
  min-height: 44px;
  padding: 0.4rem 0.15rem;
  cursor: pointer;
}

.menu-przycisk[aria-expanded="true"] {
  background: var(--zolty);
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.nawigacja {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  align-items: center;
  min-width: 0;
  margin-left: auto;
}

.nawigacja a {
  color: var(--czarny);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.45rem 0;
  border-bottom: 3px solid transparent;
}

.nawigacja a:hover {
  color: var(--czerw);
}

.nawigacja a[aria-current="page"] {
  color: var(--czarny);
  border-bottom-color: var(--zolty);
}

.kreska {
  width: 3rem;
  height: 4px;
  background: var(--zolty);
  border: 0;
  margin: 0 0 1.25rem;
}

main {
  padding: 1.5rem var(--margines) 3rem;
}

.hero,
.wezwanie,
.usluga,
.blok,
.kontakt-siatka,
.stopka-siatka,
.wiersz,
.karty,
.kolumny {
  min-width: 0;
}

.hero > *,
.wezwanie > *,
.usluga > *,
.blok > *,
.kontakt-siatka > *,
.stopka-siatka > *,
.wiersz > *,
.karty > *,
.kolumny > * {
  min-width: 0;
}

h1,
h2,
h3,
p,
li,
a,
span,
label,
address {
  overflow-wrap: break-word;
}

.hero {
  display: block;
  background: var(--czarny);
  color: #f3f3f3;
  margin: -1.5rem calc(var(--margines) * -1) 0;
  padding: 2.6rem var(--margines) 2.3rem;
}

.hero-nad {
  margin: 0 0 0.45rem;
  max-width: 36rem;
  color: #f3f3f3;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.3rem);
  font-weight: 600;
  line-height: 1.3;
}

.hero h1 {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  max-width: none;
  margin: 0 0 1.15rem;
  color: var(--bialy);
  font-size: min(3.15rem, 2.8vw);
  line-height: 1.12;
}

.hero h1 span {
  white-space: nowrap;
}

.hero h1 .myslnik {
  font-weight: 500;
}

.hero h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.85rem;
  width: 3rem;
  height: 4px;
  background: var(--zolty);
}

.hero .miara {
  color: #ececec;
  font-size: 1.0625rem;
}

.hero-akcje {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.35rem 0 0;
}

.hero .przycisk {
  background: var(--zolty);
  color: var(--czarny);
}

.hero .przycisk:hover {
  background: var(--bialy);
  color: var(--czarny);
}

.hero .przycisk-drugi {
  background: transparent;
  color: var(--bialy);
  box-shadow: inset 0 0 0 2px #fff;
}

.hero .przycisk-drugi:hover {
  background: var(--bialy);
  color: var(--czarny);
}

.sekcja {
  margin-top: 2.5rem;
}

.sekcja > h2 {
  margin-bottom: 0.9rem;
}

.siatka-uslug {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.karta-uslugi {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  min-height: 100%;
  padding: 1.45rem 1.5rem 1.3rem;
  background: #f6f6f6;
  border-top: 4px solid var(--zolty);
  color: var(--tekst);
  text-decoration: none;
  font-weight: 400;
}

.karta-uslugi h3 {
  margin: 0 0 0.15rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.karta-uslugi p {
  margin: 0;
  max-width: 62ch;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.karta-uslugi img {
  width: calc(100% + 3rem);
  max-width: none;
  height: 12rem;
  object-fit: cover;
  margin: -1.45rem -1.5rem 0.35rem;
}

#co-robimy,
.karta-uslugi {
  scroll-margin-top: 6rem;
}

.wstep {
  margin: -0.35rem 0 1rem;
  max-width: 42rem;
  font-weight: 400;
  color: var(--tekst);
}

.karty {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0;
  background: transparent;
  border: 0;
}

.karty > a,
.karty article,
.kolumny article {
  background: #f6f6f6;
  border: 0;
  border-top: 4px solid var(--zolty);
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.karty > a {
  min-height: 100%;
  color: var(--tekst);
  font-weight: 400;
  text-decoration: none;
}

.karty > a h3 {
  color: var(--czerw);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.karty > a:hover {
  background: var(--zolty);
  color: var(--czarny);
}

.karty > a:hover h3 {
  color: var(--czarny);
  text-decoration: none;
}

.karty > a .adres {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.85rem;
}

.karty h2,
.karty h3,
.kolumny h2 {
  font-size: 1.2rem;
  max-width: none;
  margin: 0.15rem 0 0.45rem;
}

.karty p,
.kolumny p {
  margin-bottom: 0.5rem;
}

.wezwanie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem 2rem;
  align-items: center;
  margin: 2.25rem calc(var(--margines) * -1) -3rem;
  padding: 1.6rem var(--margines);
  background: var(--zolty);
  color: var(--czarny);
}

.wezwanie h2,
.wezwanie p {
  color: var(--czarny);
  margin-bottom: 0.35rem;
}

.wezwanie h2 {
  max-width: none;
}

.przycisk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--czarny);
  color: var(--bialy);
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}

.przycisk:hover {
  background: var(--czerw);
  color: var(--bialy);
}

.wezwanie .przycisk {
  background: var(--czarny);
  color: var(--bialy);
}

.wezwanie .przycisk:hover {
  background: var(--czerw);
  color: var(--bialy);
}

.site-stopka :focus-visible {
  outline-color: var(--bialy);
}

.usluga {
  display: block;
  max-width: 46rem;
  margin: 0 0 0.85rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #f6f6f6;
  border: 0;
  border-left: 4px solid var(--zolty);
}

.blok {
  display: block;
  max-width: 52rem;
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
}

.usluga h2,
.blok h2,
.polityka h2 {
  max-width: none;
}

.usluga .opis {
  margin: 0.55rem 0 0;
  max-width: 62ch;
  line-height: 1.6;
}

.usluga ul,
.blok ul {
  padding-left: 1.15rem;
  max-width: 65ch;
  margin-bottom: 0;
}

.blok .miara {
  max-width: none;
}

.blok .miara p {
  line-height: 1.65;
  text-wrap: pretty;
}

.blok .miara p + p {
  margin-top: 0.35rem;
}

.blok ul.identyfikatory {
  padding-left: 0;
  max-width: none;
}

.usluga li + li,
.blok li + li {
  margin-top: 0.3rem;
}

.kolumny {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  background: transparent;
  border: 0;
  margin-top: 0.25rem;
}

.kolumny article:first-child {
  border-top-color: var(--czerw-jasny);
}

.kolumny .przy-dole,
.karty .przy-dole {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.85rem;
}

.dopisek {
  margin-top: 1.25rem;
}

.usluga + p {
  margin-top: 1.5rem;
}

.kontakt-siatka {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.dane-firmy p,
.dane-firmy address {
  margin: 0 0 0.75rem;
}

address {
  font-style: normal;
}

form {
  display: grid;
  gap: 0.95rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.zgoda {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-weight: 400;
  min-width: 0;
}

.zgoda span {
  min-width: 0;
}

.zgoda input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: var(--czerw);
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--tekst);
  background: var(--bialy);
  border: 1px solid #c8c8c8;
  border-radius: 0;
  padding: 0.65rem 0.7rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.niepoprawne {
  border-color: var(--czerw);
  border-width: 2px;
}

.blad {
  color: var(--czerw);
  font-size: 0.9rem;
  font-weight: 600;
}

.pulapka {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.polityka h2 {
  font-size: 1.25rem;
  margin: 1.6rem 0 0.4rem;
}

figure {
  margin: 1.25rem 0;
}

figcaption {
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.usluga-ze-zdjeciem {
  max-width: 56rem;
}

.zdjecia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
}

.zdjecia figure {
  margin: 0;
}

.zdjecia img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.zdjecia figcaption {
  color: var(--tekst);
}

.site-stopka {
  background: var(--czarny);
  color: #f3f3f3;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--margines);
  border-top: 4px solid var(--zolty);
}

.site-stopka a {
  color: var(--zolty);
  text-decoration-thickness: 1px;
}

.site-stopka a:hover {
  color: var(--bialy);
}

.nawigacja.otwarte a:focus-visible {
  outline-color: var(--zolty);
}

.stopka-siatka {
  display: grid;
  grid-template-columns: max-content auto 1fr;
  column-gap: 0.85rem;
  row-gap: 1.25rem;
  align-items: stretch;
}

.stopka-firma {
  max-width: 22rem;
}

.stopka-nazwa {
  margin: 0 0 0.85rem;
}

.stopka-nazwa img {
  width: min(22rem, 100%);
  height: auto;
}

.mapa-ramka {
  width: auto;
  height: 100%;
  aspect-ratio: 1.37 / 1;
  max-width: min(42rem, 40vw);
  justify-self: start;
  background: #2a2a2a;
}

.dojazd {
  max-width: 28ch;
  margin: 0.2rem 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.stopka-bok {
  justify-self: end;
  max-width: 16rem;
}

.mapa-ramka iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pelna {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0;
  max-width: 22ch;
  margin-bottom: 0.75rem;
  color: var(--bialy);
}

.identyfikatory {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.identyfikatory li + li {
  margin-top: 0.15rem;
}

.grupa-stopka {
  max-width: 42ch;
}

.grupa-stopka a {
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .kolumny {
    grid-template-columns: 1fr 1fr;
  }

  .stopka-siatka {
    grid-template-columns: 1fr;
  }

  .mapa-ramka {
    width: min(36rem, 100%);
    max-width: none;
    height: auto;
    aspect-ratio: 1.37 / 1;
  }

  .stopka-bok {
    justify-self: start;
    max-width: 42rem;
  }
}

@media (max-width: 1100px) {
  .siatka-uslug {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .siatka-uslug {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .menu-przycisk {
    display: inline-block;
  }

  .pasek {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .znak,
  .miejscowosc,
  .nawigacja {
    margin: 0;
  }

  .nawigacja {
    display: none;
    position: absolute;
    z-index: 21;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--czarny);
    padding: 0.4rem var(--margines) 0.9rem;
    border-bottom: 4px solid var(--zolty);
  }

  .nawigacja.otwarte {
    display: flex;
  }

  .nawigacja a,
  .nawigacja a:hover,
  .nawigacja a[aria-current="page"] {
    color: var(--bialy);
    border-bottom: 1px solid #333;
    padding: 0.8rem 0;
    font-size: 1.05rem;
  }

  .nawigacja a[aria-current="page"] {
    color: var(--zolty);
  }

  .wezwanie,
  .kontakt-siatka,
  .stopka-siatka {
    grid-template-columns: 1fr;
  }

  .wezwanie {
    align-items: start;
  }

  .karty {
    grid-template-columns: 1fr;
  }

  .hero h1,
  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .kolumny {
    grid-template-columns: 1fr;
  }

  .znak img {
    height: 2.15rem;
  }

  .miejscowosc {
    display: none;
  }

  .pasek {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Strona główna i szybki kontakt */
.telefon-naglowek { color: var(--czerw); white-space: nowrap; font-size: .95rem; }
.hero { min-height: 26rem; display: flex; align-items: center; background: linear-gradient(90deg, rgba(15,15,15,.96) 0%, rgba(15,15,15,.87) 43%, rgba(15,15,15,.3) 100%), url('../images/tlo-strona-glowna.png') center 56% / cover; padding-top: 4rem; padding-bottom: 4rem; }
.hero-tresc { max-width: 48rem; }
.hero h1 { display: block; font-size: clamp(2.3rem, 4.2vw, 4.4rem); line-height: 1.08; max-width: 18ch; }
.hero-opis { color: #fff; max-width: 42rem; font-size: 1.1rem; margin-top: 1.8rem; }
.grupa-uslug { margin: 2rem 0; }
.grupa-uslug > h3 { font-size: 1.4rem; margin-bottom: .8rem; }
.karta-uslugi h4 { color: var(--czarny); font-size: 1.2rem; line-height: 1.25; margin: 0; }
.karta-uslugi p { font-size: 1rem; }
.podglad-realizacji { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
.podglad-realizacji article { background: #f6f6f6; border-top: 4px solid var(--zolty); }
.podglad-realizacji article > div { padding: 1.25rem; }
.podglad-realizacji h3 { margin-bottom: .5rem; }
.podglad-realizacji img { width: 100%; height: 12rem; object-fit: cover; }
.podglad-realizacji p { margin-bottom: 0; }
.formularz-wstep { margin-bottom: 0; }
.mapa-ramka { aspect-ratio: auto; height: auto; width: min(36rem, 100%); max-width: 100%; padding: 0; background: transparent; align-self: start; }
.mapa-ramka iframe { width: 100%; height: auto; aspect-ratio: 1.6 / 1; min-height: 13rem; }
.mapa-ramka > a { display: inline-block; margin-top: .65rem; }
@media (max-width: 1050px) { .telefon-naglowek { font-size: .85rem; } }
@media (max-width: 800px) {
  .telefon-naglowek { grid-column: 1 / -1; grid-row: 2; }
  .hero { min-height: 0; padding-top: 3rem; padding-bottom: 3rem; background-position: 60% center; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .podglad-realizacji { grid-template-columns: 1fr; }
  #co-robimy, .karta-uslugi { scroll-margin-top: 8rem; }
}

/* Czytelny układ i kontakt */
a { color: #28576e; }
a:hover { color: #171717; }
.pasek { gap: 1.25rem; }
.pasek .nawigacja { order: 1; margin-left: auto; }
.telefon-naglowek { order: 2; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem .9rem; background: var(--zolty); color: var(--czarny); text-decoration: none; font-weight: 700; }
.telefon-naglowek:hover { background: #171717; color: white; }
.menu-przycisk { order: 3; }
.hero { min-height: 32rem; background-image: linear-gradient(90deg, rgba(15,15,15,.96) 0%, rgba(15,15,15,.86) 45%, rgba(15,15,15,.3) 100%), url('../images/tlo-strona-glowna.png'); }
.hero-tresc { max-width: 47rem; }
.hero h1 { max-width: 18ch; }
.wprowadzenie { display: grid; grid-template-columns: minmax(10rem, .6fr) minmax(0, 1.4fr); gap: 2rem; padding: 4rem 0 2rem; max-width: 78rem; }
.wprowadzenie-etykieta, .kontakt-etykieta { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.wprowadzenie-etykieta { color: #28576e; }
.wprowadzenie h2 { font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
.wprowadzenie p:not(.wprowadzenie-etykieta) { max-width: 65ch; }
.oferta-sekcja { padding-top: 1.5rem; }
.grupa-uslug { margin: 2.6rem 0; }
.grupa-uslug > h3 { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.ikona-uslugi { width: 2.75rem; height: 2.75rem; background: #f8edbd; color: #171717; display: inline-grid; place-items: center; flex: none; }
.ikona-uslugi svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.karta-uslugi { background: #fafafa; border: 1px solid #e2e2e2; padding: 1.4rem; }
.karta-uslugi h4 { font-size: 1.18rem; }
.karty > a { border: 1px solid #e2e2e2; background: #fafafa; }
.karty > a h3 { color: #28576e; }
.kontakt-banner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: #f5cc24; padding: clamp(2rem, 4vw, 3.5rem) var(--margines); margin: 4rem calc(var(--margines) * -1) 0; }
.kontakt-banner h2 { max-width: 26ch; font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.kontakt-banner p { margin-bottom: .5rem; }
.kontakt-banner-akcje { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.kontakt-banner-telefon { color: #171717; white-space: nowrap; }
.spolkowe { margin-top: 4rem; }
.stopka-siatka { grid-template-columns: minmax(15rem, .9fr) minmax(15rem, 1.2fr) minmax(10rem, .6fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.stopka-bok { justify-self: start; }
.mapa-ramka { width: 100%; }
.mapa-ramka iframe { min-height: 13rem; max-height: 20rem; }
@media (max-width: 1050px) {
  .pasek { gap: .7rem; }
  .miejscowosc { display: none; }
  .nawigacja { gap: .7rem; }
}
@media (max-width: 800px) {
  .pasek { display: flex; gap: .6rem; }
  .znak { margin-right: auto; }
  .pasek .nawigacja { order: initial; margin: 0; }
  .telefon-naglowek { order: 1; grid-column: auto; grid-row: auto; padding: .55rem .7rem; font-size: .8rem; }
  .menu-przycisk { order: 2; }
  .hero { min-height: 26rem; background-image: linear-gradient(90deg, rgba(15,15,15,.93), rgba(15,15,15,.66)), url('../images/tlo-strona-glowna.png'); }
  .wprowadzenie { grid-template-columns: 1fr; gap: .3rem; padding: 3rem 0 1rem; }
  .wprowadzenie-etykieta { margin-bottom: .5rem; }
  .kontakt-banner { display: block; margin-top: 3rem; }
  .kontakt-banner-akcje { margin-top: 1.25rem; }
  .stopka-siatka { grid-template-columns: 1fr; }
  .mapa-ramka { width: min(36rem, 100%); }
}
@media (max-width: 400px) {
  .znak img { height: 1.8rem; }
  .telefon-naglowek { font-size: .72rem; padding: .45rem; }
  .pasek { gap: .4rem; }
  .menu-przycisk { font-size: .9rem; }
}

/* Szybkie przejście do grup usług i przełącznik wyglądu */
.skroty-uslug { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 2rem; }
.skroty-uslug a { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem .9rem; border: 1px solid #c9d4d8; text-decoration: none; background: #f6f8f9; }
.skroty-uslug a:hover { background: #28576e; color: #fff; }
.grupa-uslug { scroll-margin-top: 7rem; }
.motyw-przycisk { order: 3; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem .7rem; color: #242424; background: transparent; border: 1px solid #b9b9b9; font-family: inherit; font-size: .85rem; line-height: 1.2; font-weight: 600; cursor: pointer; white-space: nowrap; }
.motyw-przycisk:hover { border-color: #242424; background: #f2f2f2; }
.motyw-ikona { font-size: 1.25rem; line-height: 1; }
.menu-przycisk { order: 4; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background: #15191b; color: #e9edef; }
html[data-theme="dark"] .pasek { background: #1e2427; border-bottom-color: #444c50; }
html[data-theme="dark"] .znak img { content: url('../logo/logo-ciemne-tlo.png'); }
html[data-theme="dark"] .miejscowosc, html[data-theme="dark"] .menu-przycisk { color: #f4f4f4; }
html[data-theme="dark"] .nawigacja a, html[data-theme="dark"] .nawigacja a[aria-current="page"] { color: #f4f4f4; }
html[data-theme="dark"] .motyw-przycisk { color: #f4f4f4; border-color: #89969b; }
html[data-theme="dark"] .motyw-przycisk:hover { background: #353e42; }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: #f4f4f4; }
html[data-theme="dark"] a { color: #a8d8ea; }
html[data-theme="dark"] a:hover { color: #fff; }
html[data-theme="dark"] .wstep, html[data-theme="dark"] .wprowadzenie-etykieta, html[data-theme="dark"] .numer, html[data-theme="dark"] .indeks { color: #bed9e3; }
html[data-theme="dark"] .karta-uslugi, html[data-theme="dark"] .karty > a, html[data-theme="dark"] .usluga, html[data-theme="dark"] .karty article, html[data-theme="dark"] .kolumny article { background: #222a2e; border-color: #465257; color: #edf0f1; }
html[data-theme="dark"] .karty > a h3 { color: #a8d8ea; }
html[data-theme="dark"] .karty > a:hover { background: #303d43; }
html[data-theme="dark"] .skroty-uslug a { background: #222a2e; border-color: #59686f; }
html[data-theme="dark"] .skroty-uslug a:hover { background: #365a6a; }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: #222a2e; color: #f5f5f5; border-color: #8c9a9f; }
html[data-theme="dark"] .blad { color: #ffadb8; }
html[data-theme="dark"] .zdjecia figcaption { color: #e9edef; }
html[data-theme="dark"] .site-stopka a { color: #f5cc24; }
html[data-theme="dark"] .kontakt-banner, html[data-theme="dark"] .kontakt-banner h2, html[data-theme="dark"] .kontakt-banner-telefon, html[data-theme="dark"] .telefon-naglowek { color: #171717; }
html[data-theme="dark"] .kontakt-banner .przycisk { color: #fff; }
html[data-theme="dark"] .hero .przycisk { color: #171717; }
html[data-theme="dark"] .hero .przycisk-drugi { color: #fff; }
html[data-theme="dark"] .hero .przycisk-drugi:hover { color: #171717; }
html[data-theme="dark"] .telefon-naglowek:hover { color: #fff; }
@media (max-width: 1100px) { .motyw-tekst { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); } .motyw-przycisk { width: 44px; flex: none; } }
@media (max-width: 800px) { .motyw-przycisk { order: 2; } .menu-przycisk { order: 3; } .grupa-uslug { scroll-margin-top: 6rem; } }
@media (max-width: 450px) { .telefon-naglowek { font-size: 0; } .telefon-naglowek::after { content: 'Zadzwoń'; font-size: .78rem; } .znak img { max-width: min(12rem, 38vw); } }

html[data-theme="dark"] .menu-przycisk[aria-expanded="true"] { color: #171717; }
html[data-theme="dark"] .przycisk { color: #fff; }
html[data-theme="dark"] .hero .przycisk { color: #171717; }
html[data-theme="dark"] .hero .przycisk-drugi { color: #fff; }
html[data-theme="dark"] .hero .przycisk-drugi:hover { color: #171717; }

/* Wyraźny przełącznik i pełny motyw ciemny */
.motyw-przycisk {
  min-height: 48px;
  padding: .65rem .9rem;
  gap: .5rem;
  border: 2px solid #68777c;
  font-size: .95rem;
}
.motyw-tekst {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}
.motyw-ikona { font-size: 1.45rem; }
html[data-theme="dark"] body { background: #101417; color: #f0f2f3; }
html[data-theme="dark"] main { background-color: #101417; }
html[data-theme="dark"] .pasek { background: #20282c; border-bottom-color: #536168; }
html[data-theme="dark"] .wprowadzenie, html[data-theme="dark"] .oferta-sekcja, html[data-theme="dark"] .spolkowe { color: #f0f2f3; }
html[data-theme="dark"] .karta-uslugi, html[data-theme="dark"] .karty > a, html[data-theme="dark"] .usluga, html[data-theme="dark"] .karty article, html[data-theme="dark"] .kolumny article { background: #29343a; border-color: #596970; color: #f0f2f3; }
html[data-theme="dark"] .ikona-uslugi { background: #f5cc24; color: #171717; }
html[data-theme="dark"] .kontakt-banner { background: #273339; color: #f0f2f3; border-top: 4px solid #f5cc24; }
html[data-theme="dark"] .kontakt-banner h2, html[data-theme="dark"] .kontakt-banner-telefon { color: #fff; }
html[data-theme="dark"] .kontakt-banner .przycisk { background: #f5cc24; color: #171717; }
html[data-theme="dark"] .kontakt-banner .przycisk:hover { background: #fff; color: #171717; }
html[data-theme="dark"] .site-stopka { background: #080b0d; }
html[data-theme="dark"] .motyw-przycisk { background: #39484f; border-color: #c4d0d5; color: #fff; }
html[data-theme="dark"] .motyw-przycisk:hover { background: #53656e; }
@media (max-width: 1100px) {
  .motyw-przycisk { width: auto; }
}
@media (max-width: 600px) {
  .pasek { flex-wrap: wrap; }
  .motyw-przycisk { min-height: 44px; padding: .45rem .65rem; font-size: .88rem; }
  .telefon-naglowek { display: none; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .pasek { flex-wrap: wrap; }
  .pasek .nawigacja { order: 4; flex-basis: 100%; margin-left: 0; }
  .znak { margin-right: auto; }
}

/* Podświetlenie kafelków spółek w trybie ciemnym */
html[data-theme="dark"] .karty > a:hover,
html[data-theme="dark"] .karty > a:focus-visible {
  background: var(--zolty);
  border-color: var(--zolty);
  color: #171717;
}
html[data-theme="dark"] .karty > a:hover h3,
html[data-theme="dark"] .karty > a:focus-visible h3 {
  color: #171717;
  text-decoration: none;
}

/* Logo PEK-MEL: obie wersje dostarczone w katalogu logo. */
.znak { width: clamp(12rem, 22vw, 20rem); height: 4rem; overflow: hidden; flex: none; }
.znak img { width: 100%; max-width: none; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
html[data-theme="dark"] .znak img { mix-blend-mode: screen; }
.stopka-nazwa { width: min(22rem, 100%); height: 5rem; overflow: hidden; }
.stopka-nazwa img { width: 100%; max-width: none; height: 100%; object-fit: cover; mix-blend-mode: screen; }
@media (max-width: 800px) {
  .znak { width: min(12rem, 35vw); height: 3rem; }
}
@media (max-width: 400px) {
  .znak { width: min(10rem, 35vw); height: 2.65rem; }
}

/* Ciemna wersja logo bez widocznego prostokątnego tła. */
html[data-theme="dark"] .znak img,
.stopka-nazwa img {
  mix-blend-mode: normal;
  filter: url("#usun-ciemne-tlo-logo");
}

/* Jednolite tło strony w trybie ciemnym. */
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .pasek,
html[data-theme="dark"] .site-stopka { background-color: #101417; }

/* Stopka: kontakt, dojazd i odnośniki w osobnych kolumnach. */
.site-stopka { padding: clamp(2rem, 4vw, 3.5rem) var(--margines) 1.5rem; }
.stopka-siatka { display: grid; grid-template-columns: minmax(14rem, .85fr) minmax(18rem, 1.2fr) minmax(12rem, .7fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.stopka-firma, .stopka-bok, .stopka-dojazd { max-width: none; min-width: 0; }
.site-stopka h2 { color: #fff; font-size: 1.05rem; max-width: none; margin: 0 0 .9rem; }
.stopka-nazwa { margin: -.35rem 0 1.1rem; width: min(19rem, 100%); height: 4.5rem; }
.stopka-firma address { line-height: 1.6; margin-bottom: 1rem; }
.stopka-firma p:not(.stopka-nazwa) { margin: .45rem 0; }
.stopka-dojazd > p { color: #e3e5e6; max-width: 42ch; margin-bottom: 1rem; }
.stopka-dojazd .mapa-ramka { width: 100%; max-width: 36rem; }
.stopka-dojazd .mapa-ramka iframe { width: 100%; aspect-ratio: 1.85 / 1; min-height: 12rem; max-height: 18rem; }
.stopka-linki { list-style: none; padding: 0; margin: 0; }
.stopka-linki li + li { margin-top: .65rem; }
.stopka-prywatnosc { margin: 1.5rem 0 0; }
.stopka-dane { border-top: 1px solid #4d5153; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .6rem 1.5rem; color: #d2d5d6; font-size: .85rem; }
.stopka-dane p { margin: 0; font-size: inherit; font-weight: 600; }
.stopka-dane ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.stopka-dane li { font-size: inherit; }
@media (max-width: 900px) {
  .stopka-siatka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stopka-bok { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .stopka-siatka { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .stopka-bok { grid-column: auto; }
  .stopka-dane { margin-top: 2rem; }
  .stopka-dane ul { gap: .4rem 1rem; }
}
