/* ============================================================
   KLAR — studio detailingu
   Model strony: AUTO JAKO NAWIGACJA. Nie ma siatki kart z oferta
   ani sekcji jedna pod druga — jest scena z autem, a uslugi
   wybiera sie wskazujac czesc pojazdu.

   Kolory wyciagniete ze zdjecia warsztatowego, nie z gotowej palety:
   srebrny lakier #b0b3ac, cien na masce #16161a, pad polerski.
   ============================================================ */

/* :root PODMIENIONY na aliasy presetów z theme.json — tam jest źródło prawdy
   dla kolorów (klient widzi je w edytorze). Zmieniasz wartości w theme.json,
   nie tu. Aliasy na :root i body, bo WP różnie wypisuje presety. */
:root, body {
  --tlo:          var(--wp--preset--color--tlo);
  --plyta:        var(--wp--preset--color--plyta);
  --atrament:     var(--wp--preset--color--atrament);
  --grafit:       var(--wp--preset--color--grafit);
  --szary:        var(--wp--preset--color--szary);
  --linia:        var(--wp--preset--color--linia);
  --zolty:        var(--wp--preset--color--zolty);          /* TYLKO wypełnienie, nigdy tekst na bieli */
  --zolty-ciemny: var(--wp--preset--color--zolty-ciemny);   /* wersja do TEKSTU — 5,8:1 na bieli */
  --alarm:        var(--wp--preset--color--alarm);

  --radius: 14px;
  --kontener: 82rem;
  --przejscie: 260ms cubic-bezier(.2,.7,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: "General Sans", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--atrament);
  background: var(--tlo);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
:focus-visible { outline: 3px solid var(--atrament); outline-offset: 3px; border-radius: 4px; }

.kontener { max-width: var(--kontener); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .kontener { padding-inline: 2rem; } }

h1, h2, h3 {
  font-family: "Clash Display", sans-serif;
  font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}

/* ---------- Naglowek ---------- */
.naglowek { border-bottom: 1px solid var(--linia); background: var(--tlo); }
.naglowek-srodek { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; }
.znak { font-family: "Clash Display", sans-serif; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: baseline; gap: .55rem; }
.znak i { font-family: "General Sans", sans-serif; font-style: normal; font-weight: 500; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--szary); }
.naglowek-info { display: none; font-size: .9rem; color: var(--szary); }
@media (min-width: 860px) { .naglowek-info { display: block; } }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.7rem;
  border: 2px solid var(--atrament); border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: transform var(--przejscie), background var(--przejscie), color var(--przejscie);
}
.btn:hover { transform: translateY(-2px); }
.btn-pelny { background: var(--atrament); color: var(--tlo); }
.btn-pelny:hover { background: var(--grafit); }
.btn-maly { min-height: 44px; padding: 0 1.2rem; font-size: .9rem; }

/* ---------- Scena ---------- */
/* Scena wypelnia ekran, zeby strona nie konczyla sie w polowie okna */
.scena { position: relative; padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  min-height: calc(100vh - 4.4rem); display: flex; align-items: center;
  transition: padding-right var(--przejscie); }
.scena > .kontener { width: 100%; }

/* Panel nie moze zaslaniac auta — inaczej nie widac, ktora czesc wybrales,
   a to jest caly sens tej strony. Na duzym ekranie scena robi mu miejsce. */
@media (min-width: 1100px) {
  body.panel-otwarty .scena { padding-right: 27rem; }
}
.scena-siatka { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
@media (min-width: 1100px) { .scena-siatka { grid-template-columns: .8fr 1.2fr; } }

.scena-tekst h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.scena-tekst h1 em { font-style: normal; position: relative; z-index: 0; }
.scena-tekst h1 em::after {
  content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .05em;
  height: .3em; background: var(--zolty); border-radius: 3px; z-index: -1;
}
.scena-lead { color: var(--szary); font-size: clamp(1rem, 1.4vw, 1.14rem); margin-top: 1.4rem; max-width: 32rem; }
.scena-podpowiedz {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.8rem;
  font-size: .88rem; font-weight: 600; color: var(--szary);
  padding: .55rem .95rem; border: 1px dashed var(--linia); border-radius: 999px;
}

/* ---------- Auto ---------- */
.auto-obszar { position: relative; }
.auto { display: block; width: 100%; height: auto; overflow: visible; }

.cz-cien { fill: rgba(22,22,26,.13); }
.cz { transition: opacity var(--przejscie), filter var(--przejscie); cursor: pointer; }
.cz-lakier     { fill: url(#karoseria); }
.cz-wnetrze    { fill: url(#szyba); }
.cz-reflektory { fill: url(#swiatlo); }
.cz-folia      { fill: transparent; }
.cz-linia   { stroke: rgba(255,255,255,.13); stroke-width: 2; fill: none; }
.cz-slupek  { stroke: #2a2b30; stroke-width: 7; }
.cz-klamka  { stroke: rgba(255,255,255,.32); stroke-width: 5; stroke-linecap: round; }
/* Przetloczenie na bokach — bez niego karoseria to plaska plama */
.cz-przetloczenie { stroke: rgba(255,255,255,.10); stroke-width: 3; fill: none; }
.cz-lusterko { fill: #2a2b30; }
.opona   { fill: #1a1b1f; }
.felga   { fill: #b4b7b0; }
.piasta  { fill: #6e716b; }
.szprychy path { stroke: #86887f; stroke-width: 7; stroke-linecap: round; }

/* Wybrana strefa zostaje w pelni widoczna, reszta przygasa.
   Klase .jest-aktywna doklada skrypt — samym atrybutem data sie nie da,
   bo regula przygaszajaca zawiera :not() i ma wyzsza specyficznosc
   niz reguly podswietlajace. Wybrana czesc zostawala wtedy szara. */
/* Auto jest teraz zdjeciem, a nie rysunkiem, wiec czesci to przezroczyste
   nakladki. Nie da sie juz przygaszac "reszty auta" — zamiast tego
   zaznaczona partia dostaje ciemny obrys i zolta poswiate. Zolty kontur
   na zoltym nadwoziu bylby niewidoczny, stad ciemny atrament. */
.auto .cz { fill: transparent; stroke: transparent; stroke-width: 4; }
.auto .cz-kola .obrecz { fill: transparent; stroke: transparent; stroke-width: 4; }

.auto-obszar[data-aktywna]:not([data-aktywna=""]) .cz { opacity: 1; }
.auto-obszar[data-aktywna]:not([data-aktywna=""]) .cz.jest-aktywna { opacity: 1; }

.auto-obszar .cz.jest-aktywna {
  fill: rgba(255, 255, 255, .16);
  stroke: rgba(255, 255, 255, .98);
  stroke-width: 4;
  stroke-linejoin: round;
  paint-order: stroke;
  /* Biala poswiata czyta sie na zoltym nadwoziu, ale zniknełaby na kremowym
     tle strony tam, gdzie obrys biegnie po krawedzi auta. Stad trzeci,
     bardzo delikatny ciemny cien — daje odcięcie, nie rysuje linii. */
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 1))
          drop-shadow(0 0 18px rgba(255, 255, 255, .65))
          drop-shadow(0 2px 5px rgba(22, 22, 26, .20));
}
.auto-obszar .cz-kola.jest-aktywna .obrecz {
  fill: rgba(255, 255, 255, .14);
  stroke: rgba(255, 255, 255, .95);
  stroke-width: 3.5;
}




/* ---------- Punkty wyboru ---------- */
.punkt {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(var(--ax, -50%), -50%);
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .75rem .35rem .4rem;
  background: var(--plyta); border: 1px solid var(--linia);
  border-radius: 999px; box-shadow: 0 6px 18px rgba(22,22,26,.13);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  transition: transform var(--przejscie), box-shadow var(--przejscie), background var(--przejscie);
}
.punkt:hover { transform: translate(var(--ax, -50%), -50%) scale(1.06); box-shadow: 0 10px 26px rgba(22,22,26,.2); }
.punkt-kropka { width: 15px; height: 15px; border-radius: 50%; background: var(--zolty); border: 3px solid var(--plyta); flex: 0 0 auto; position: relative; }
.punkt-kropka::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--zolty); animation: tetno 2.4s ease-out infinite;
}
@keyframes tetno { 0% { transform: scale(1); opacity: .9 } 70%,100% { transform: scale(2.1); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .punkt-kropka::after { animation: none; opacity: .5; } }

.punkt[aria-pressed="true"] { background: var(--zolty); border-color: var(--zolty); }
.punkt[aria-pressed="true"] .punkt-kropka { background: var(--atrament); border-color: var(--zolty); }
.punkt[aria-pressed="true"] .punkt-kropka::after { animation: none; opacity: 0; }

@media (max-width: 700px) {
  /* Na telefonie etykiety znikaja z ekranu, ale NIE z drzewa dostepnosci.
     Wczesniej bylo tu display:none i piec przyciskow na aucie zostawalo
     bez nazwy — Lighthouse: button-name, dostepnosc 94. Czytnik ekranu
     czytal "przycisk, przycisk, przycisk". Wzorzec jak w .sr-tylko. */
  .punkt-nazwa {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .punkt { padding: .3rem; }
  /* Sama kropka zostaje 26 px, bo to znacznik na karoserii i wieksza
     zaslanialaby auto. Obszar DOTYKU rozszerzamy niewidzialnym ::before
     do wymaganych 44 px. Zero zmian w wygladzie, palec trafia. */
  .punkt::before {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 44px; height: 44px; transform: translate(-50%, -50%);
  }
}

/* ---------- Cennik: tablica w rzedach, nie siatka kart ---------- */
.sr-tylko { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.cennik { background: var(--plyta); border-top: 1px solid var(--linia); padding-block: clamp(3.5rem, 7vw, 6rem); }
.cennik-glowa { max-width: 44rem; margin-bottom: 2.5rem; }
.nadtytul { font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--szary); display: block; margin-bottom: .8rem; }
.cennik-glowa h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cennik-glowa p { color: var(--szary); margin-top: .9rem; max-width: 40rem; }

.pozycje { list-style: none; border-top: 1px solid var(--linia); }

.pozycja {
  position: relative;
  display: grid; align-items: center;
  gap: .3rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--linia);
  grid-template-areas: "nr tresc" "dane dane";
  grid-template-columns: 2.6rem 1fr;
  transition: background var(--przejscie);
}
@media (min-width: 900px) {
  .pozycja {
    grid-template-areas: "nr tresc dane btn";
    grid-template-columns: 3.2rem minmax(0,1fr) 11rem 11rem;
    padding: 1.7rem .9rem;
    margin-inline: -.9rem;
    border-radius: var(--radius);
  }
}
.pozycja:hover { background: var(--tlo); }
/* Zolty znacznik po lewej — czytelny sygnal, ze wiersz jest interaktywny */
.pozycja::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 4px; border-radius: 4px; background: var(--zolty);
  opacity: 0; transition: opacity var(--przejscie);
}
@media (min-width: 900px) { .pozycja::before { left: -.9rem; } }
.pozycja:hover::before, .pozycja.wybrana::before { opacity: 1; }
.pozycja.wybrana { background: var(--tlo); }

.pozycja-nr { grid-area: nr; font-family: "Clash Display", sans-serif; font-weight: 600; font-size: 1rem; color: var(--szary); font-variant-numeric: tabular-nums; }
.pozycja-tresc { grid-area: tresc; min-width: 0; }
.pozycja-nad { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--szary); margin-bottom: .25rem; }
.pozycja-tresc h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.pozycja-opis { color: var(--szary); font-size: .95rem; margin-top: .4rem; max-width: 44rem; }

/* Pelny zakres mieszka w HTML-u, ale w wierszu jest zwiniety —
   pokazuje go panel. Dzieki temu tresc istnieje raz, a nie dwa razy. */
.pozycja-zakres { display: none; }

.pozycja-dane { grid-area: dane; display: flex; align-items: baseline; gap: 1rem; margin-top: .5rem; }
@media (min-width: 900px) { .pozycja-dane { flex-direction: column; align-items: flex-end; gap: .15rem; margin-top: 0; text-align: right; } }
.pozycja-czas { font-size: .88rem; color: var(--szary); white-space: nowrap; }
.pozycja-cena { font-family: "Clash Display", sans-serif; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Przycisk rozciagniety na caly wiersz: klikalny jest rzad, ale dla czytnika
   ekranu i klawiatury to jeden porzadny przycisk z pelna nazwa. */
.pozycja-btn {
  grid-area: btn; justify-self: end;
  min-height: 44px; padding: 0 1.3rem;
  border: 2px solid var(--atrament); border-radius: 999px;
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: background var(--przejscie), color var(--przejscie);
}
.pozycja-btn::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.pozycja-btn:hover { background: var(--atrament); color: var(--tlo); }
.pozycja.wybrana .pozycja-btn { background: var(--zolty); border-color: var(--zolty); color: var(--atrament); }
@media (max-width: 899px) {
  .pozycja-btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0;
    font-size: 0; padding: 0; background: transparent; }
  .pozycja-btn:hover { background: transparent; }
}

.cennik-stopka { margin-top: 2rem; color: var(--szary); font-size: .95rem; max-width: 42rem; }

/* ---------- Panel ---------- */
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(26rem, 100vw);
  background: var(--plyta); border-left: 1px solid var(--linia);
  box-shadow: -18px 0 50px rgba(22,22,26,.16);
  padding: 2rem 1.75rem;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: .6rem;
  transform: translateX(100%);
  transition: transform var(--przejscie);
}
.panel.otwarty { transform: none; }
.panel[hidden] { display: none; }
@media (max-width: 700px) {
  .panel { top: auto; width: 100%; max-height: 86vh; border-left: 0; border-top: 1px solid var(--linia); border-radius: var(--radius) var(--radius) 0 0; transform: translateY(100%); }
  .panel.otwarty { transform: none; }
}

.panel-zamknij { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--linia); }
.panel-zamknij:hover { background: var(--tlo); }
.panel-nad { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--szary); }
.panel h2 { font-size: 1.9rem; margin-top: .1rem; }
.panel-opis { color: var(--szary); font-size: .96rem; margin-top: .5rem; }
.panel-lista { list-style: none; display: grid; gap: .55rem; margin-top: 1.1rem; font-size: .93rem; }
.panel-lista li { display: flex; gap: .6rem; align-items: flex-start; }
.panel-lista li::before {
  content: ""; flex: 0 0 auto; width: 16px; height: 16px; margin-top: .28rem;
  border-radius: 50%; background: var(--zolty);
  clip-path: polygon(14% 46%, 8% 56%, 40% 84%, 92% 26%, 84% 18%, 39% 66%);
}
.panel-dane { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--linia); }
.panel-dane span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--szary); }
.panel-dane strong { display: block; font-family: "Clash Display", sans-serif; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; margin-top: .15rem; }
.panel-cta { margin-top: 1.4rem; }
.panel-uwaga { font-size: .82rem; color: var(--szary); margin-top: .8rem; }

/* ---------- Wycena: koszyk + formularz ---------- */
.wycena { border-top: 1px solid var(--linia); padding-block: clamp(3.5rem, 7vw, 6rem); }
.wycena-siatka { display: grid; gap: 2.5rem; }
@media (min-width: 980px) {
  .wycena-siatka { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; align-items: start; }
  .koszyk { position: sticky; top: 2rem; }
}

.koszyk h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1.8rem; }

.koszyk-lista { list-style: none; display: grid; gap: 0; }
.koszyk-poz {
  display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--linia);
}
.koszyk-poz:first-child { border-top: 1px solid var(--linia); }
.koszyk-nazwa { font-weight: 600; }
.koszyk-nazwa small { display: block; font-weight: 400; font-size: .82rem; color: var(--szary); margin-top: .15rem; }
.koszyk-cena { font-family: "Clash Display", sans-serif; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.koszyk-usun {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--szary); font-size: 1.3rem; line-height: 1;
  transition: background var(--przejscie), color var(--przejscie);
}
.koszyk-usun:hover { background: var(--atrament); color: var(--tlo); }

.koszyk-pusto { color: var(--szary); font-size: .95rem; max-width: 32rem; padding: 1.2rem 0; border-top: 1px solid var(--linia); }

.koszyk-suma {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 2px solid var(--atrament);
}
.koszyk-suma span { font-weight: 600; }
.koszyk-suma strong { font-family: "Clash Display", sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.koszyk-uwaga { color: var(--szary); font-size: .88rem; margin-top: .8rem; }

/* ---------- Formularz ---------- */
.formularz { background: var(--plyta); border: 1px solid var(--linia); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pole { display: grid; gap: .45rem; }
.pole-para { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .pole-para { grid-template-columns: 1fr 1fr; } }
.pole label { font-weight: 600; font-size: .9rem; }
.wym { color: var(--zolty-ciemny); }
.pole input, .pole textarea {
  width: 100%; padding: .85rem 1rem; min-height: 48px;
  background: var(--tlo); color: var(--atrament);
  border: 1px solid var(--linia); border-radius: var(--radius);
  font: inherit; font-size: 1rem;
  transition: border-color var(--przejscie);
}
.pole textarea { min-height: 7rem; resize: vertical; }
.pole input:focus, .pole textarea:focus { outline: none; border-color: var(--atrament); }
.pole input::placeholder, .pole textarea::placeholder { color: var(--szary); }
.pole.blad input, .pole.blad textarea { border-color: var(--alarm); }
.pole-blad { font-size: .82rem; color: var(--alarm); display: none; }
.pole.blad .pole-blad { display: block; }

.zgoda { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .88rem; color: var(--szary); line-height: 1.5; }
.zgoda input { width: 20px; height: 20px; margin-top: .1rem; accent-color: var(--atrament); }
.zgoda a { text-decoration: underline; }
.zgoda.blad { color: var(--alarm); }

.formularz-wyslij { justify-self: start; margin-top: .4rem; }
.formularz-uwaga { font-size: .85rem; color: var(--szary); }

.formularz-efekt { display: none; padding: .95rem 1.15rem; border-radius: var(--radius); font-size: .93rem; line-height: 1.5; }
.formularz-efekt.widoczny { display: block; }
.formularz-efekt.ok { background: #e8f3ec; color: #1d5233; }
.formularz-efekt.zle { background: #fdecec; color: #8c2020; }
.formularz-efekt a { text-decoration: underline; }

/* ---------- Podstrony tekstowe: polityka, podziekowanie, 404 ---------- */
.tresc { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--plyta); border-top: 1px solid var(--linia); }
.tresc-kolumna { max-width: 44rem; }
.tresc h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-top: .3rem; }
.tresc h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-top: 2.4rem; }
.tresc p { margin-top: .85rem; color: var(--szary); }
.tresc-lead { font-size: 1.1rem; margin-top: 1.2rem !important; }
.tresc a { color: var(--atrament); }
.tresc .btn { margin-top: 2rem; }
.tresc-stopka { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--linia); }

/* Ostrzezenie, ze firma jest wymyslona, a formularz prawdziwy.
   Zolty pasek z boku, zeby nie dalo sie tego przeoczyc. */
.ramka-demo {
  margin-top: 1.8rem; padding: 1.1rem 1.3rem;
  background: color-mix(in srgb, var(--zolty) 16%, transparent);
  border-left: 4px solid var(--zolty);
  font-size: .96rem; line-height: 1.6;
}

/* ---------- Przelacznik jezyka ---------- */
.jezyki { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600; color: var(--szary); }
.jezyki a { text-decoration: none; color: var(--szary); padding: .25rem .1rem; transition: color var(--przejscie); }
.jezyki a:hover { color: var(--atrament); }
.jezyki [aria-current] { color: var(--atrament); }
.jezyki span[aria-hidden] { opacity: .45; font-weight: 400; }
@media (max-width: 560px) { .jezyki { display: none; } }

/* ---------- Plywajacy licznik wyceny ---------- */
.licznik {
  position: fixed; z-index: 40;
  right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 48px; padding: 0 1.3rem;
  background: var(--atrament); color: var(--tlo);
  border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .92rem;
  box-shadow: 0 8px 30px rgba(22,22,26,.28);
  animation: licznik-wjazd 320ms cubic-bezier(.2,.7,.3,1) both;
}
.licznik:hover { background: var(--grafit); }
.licznik-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 .4rem;
  background: var(--zolty); color: var(--atrament);
  border-radius: 999px; font-size: .88rem; font-variant-numeric: tabular-nums;
}
@keyframes licznik-wjazd { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .licznik { animation: none; } }
/* Przy otwartym panelu licznik chowa sie, zeby nie zaslanial przycisku */
body.panel-otwarty .licznik { opacity: 0; pointer-events: none; }

/* ---------- Stopka ---------- */
.stopka { background: var(--atrament); color: var(--tlo); padding-block: 3rem 1.75rem; }
.stopka a { color: var(--tlo); }
.stopka .znak i { color: #9c9e98; }
.stopka-siatka { display: grid; gap: 2rem; }
@media (min-width: 800px) { .stopka-siatka { grid-template-columns: 1.6fr 1fr 1fr; } }
.stopka-opis { margin-top: .9rem; max-width: 24rem; color: #c9cbc5; font-size: .95rem; }
.stopka h3 { font-family: "General Sans", sans-serif; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #9c9e98; margin-bottom: .8rem; font-weight: 600; }
.stopka ul { list-style: none; display: grid; gap: .45rem; font-size: .95rem; }
.stopka-dol { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid #2f3036; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .84rem; color: #9c9e98; }

/* ============================================================
   WORDPRESS — to, czego statyczna wersja nie potrzebowała
   ============================================================ */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .75rem 1rem; background: var(--zolty); color: var(--atrament); border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; margin: 0; padding: .75rem 1rem; background: var(--zolty); color: var(--atrament); z-index: 100; left: 1rem; top: 1rem; }
.aligncenter { display: block; margin-inline: auto; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

/* Treść podstron z edytora bloków — .tresc już stylizuje p, h2 i a */
.tresc ul, .tresc ol { margin-top: .85rem; padding-left: 1.25rem; color: var(--szary); }
.tresc li + li { margin-top: .3rem; }
.tresc img { border-radius: var(--radius); }
.tresc .wp-block-buttons { margin-top: 2rem; }
.tresc .wp-block-button__link { text-decoration: none; }
.tresc .ramka-demo p { margin-top: 0; color: var(--atrament); }
.tresc .ramka-demo p + p { margin-top: .6rem; }

/* Zakres usługi z edytora: lista bloków w wierszu cennika (ukryta, czyta ją panel) */
.pozycja-zakres { display: none; }

/* Komunikat po wysyłce bez JavaScriptu (powrót z ?blad=1) */
.formularz-efekt.widoczny { display: block; }
