@import url('fonts.css');

/* =========================================================
   Leszko — system wizualny
   ========================================================= */
:root {
  /* kolory marki (z logo) */
  --zolty:  #FFC61A;
  --koral:  #FF5E3A;
  --zielen: #2FBF71;
  --blekit: #1E9BE0;
  --roz:    #F5449B;
  --granat: #1B2A63;

  /* pastele */
  --p-zolty:  #FFF3D4;
  --p-koral:  #FFE7E0;
  --p-zielen: #DFF5E9;
  --p-blekit: #DCEFFB;
  --p-roz:    #FFE2EF;

  /* neutralne */
  --krem:   #FFFBF3;
  --bialy:  #FFFFFF;
  --atrament: #1F2233;
  --szary:  #6E7285;
  --linia:  #EFE8DC;

  /* promienie */
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 32px;
  --r-xl: 48px;

  /* cienie */
  --cien-s: 0 1px 2px rgba(31,34,51,.05), 0 4px 12px -6px rgba(31,34,51,.12);
  --cien-m: 0 2px 4px rgba(31,34,51,.04), 0 16px 32px -16px rgba(31,34,51,.22);
  --cien-l: 0 4px 8px rgba(31,34,51,.04), 0 32px 64px -28px rgba(31,34,51,.28);

  --sekcja: clamp(56px, 8vw, 104px);
  --naglowek-h: 72px;
}

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

/* własne display: (flex/grid) przebija display:none z atrybutu hidden — bez tego filtry katalogu nie ukrywają kart */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--naglowek-h) + 16px); }

body {
  margin: 0;
  background: var(--krem);
  color: var(--atrament);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--zolty); color: var(--atrament); }

:focus-visible {
  outline: 3px solid var(--blekit);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- pomocnicze ---------- */
.kontener { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.kontener-waski { max-width: 820px; }
.sekcja { padding: var(--sekcja) 0; }
.tylko-czytnik {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--atrament); color: #fff; padding: 12px 20px;
  border-radius: var(--r-s); font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.nadtytul {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 900; letter-spacing: .12em;
  text-transform: uppercase; color: var(--koral);
  margin-bottom: 14px;
}
.nadtytul::before {
  content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--koral);
}
.olowek { color: var(--szary); font-size: 1.05rem; max-width: 62ch; }

/* podkreślenie w nagłówkach */
.zakres { position: relative; display: inline-block; white-space: nowrap; }
.zakres::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .08em; height: .32em;
  background: var(--zolty); border-radius: 999px; z-index: -1;
}

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: .98rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s, background .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-glowny { background: var(--koral); color: #fff; box-shadow: 0 8px 20px -8px rgba(255,94,58,.9); }
.btn-glowny:hover { background: #F5502D; box-shadow: 0 14px 28px -10px rgba(255,94,58,.95); }

.btn-obrys { background: transparent; color: var(--atrament); border-color: var(--atrament); }
.btn-obrys:hover { background: var(--atrament); color: #fff; }

.btn-jasny { background: #fff; color: var(--atrament); box-shadow: var(--cien-s); }
.btn-jasny:hover { box-shadow: var(--cien-m); }

.btn-maly { padding: 10px 18px; font-size: .9rem; }

/* =========================================================
   Nagłówek
   ========================================================= */
.naglowek {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,251,243,.88);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.naglowek.przyklejony { border-bottom-color: var(--linia); box-shadow: 0 6px 20px -18px rgba(31,34,51,.6); }
.naglowek__in {
  height: var(--naglowek-h);
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { width: 112px; height: auto; }
.logo__tag {
  font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  color: var(--szary); border-left: 2px solid var(--linia); padding-left: 12px; line-height: 1.25;
}

.nawigacja { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nawigacja a {
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: .96rem; color: var(--atrament);
  transition: background .16s, color .16s;
}
.nawigacja a:hover { background: var(--p-zolty); }
.nawigacja a[aria-current="page"] { background: var(--atrament); color: #fff; }

/* Katalog PDF w dwóch wagach: lekki do oglądania, pełny do druku.
   color: inherit sprawia, że drugi odnośnik czyta się i na kremowym tle, i na granacie. */
.pdf { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.pdf .btn small { font-size: .8em; font-weight: 700; opacity: .55; }
.pdf__pelny {
  font-size: .76rem; color: inherit; opacity: .6;
  text-decoration: underline; text-underline-offset: 2px;
}
.pdf__pelny:hover { opacity: 1; }
.hero__akcje, .cta__akcje { align-items: center; }
.waga { opacity: .55; font-size: .86em; }
/* podpis wykonawcy serwisu elektroniki — ma byc widoczny, ale nie rzucac sie w oczy */
.stopka__dol .stopka__autor a { color: inherit; text-decoration: underline; text-underline-offset: 2px; opacity: .85; }
.stopka__dol .stopka__autor a:hover { opacity: 1; }

/* przełącznik języka — sąsiaduje z przyciskiem oferty, więc musi być cichszy */
.nawigacja a.jezyk {
  margin-left: 6px; padding: 6px 11px; border: 2px solid var(--linia);
  border-radius: 999px; font-size: .78rem; letter-spacing: .06em; color: var(--szary);
}
.nawigacja a.jezyk:hover { background: #fff; border-color: var(--atrament); color: var(--atrament); }
.naglowek .btn { margin-left: 10px; }

.hamburger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 14px;
  border: 2px solid var(--linia); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.hamburger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--atrament); position: relative; transition: .2s; }
.hamburger span::before, .hamburger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2.5px; border-radius: 2px; background: var(--atrament); transition: .2s;
}
.hamburger span::before { top: -6.5px; }
.hamburger span::after  { top:  6.5px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding: clamp(40px, 6vw, 76px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; z-index: -2;
  width: 132vw; height: 132vw; max-width: 1500px; max-height: 1500px;
  right: -42vw; top: -64vw;
  background: radial-gradient(circle at 40% 60%, var(--p-zolty) 0%, var(--p-zolty) 55%, transparent 72%);
  border-radius: 50%;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero h1 { margin-bottom: .35em; max-width: 13ch; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--szary); margin-bottom: 30px; max-width: 44ch; }
.hero__akcje { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__od {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 7px 18px 7px 8px;
  box-shadow: var(--cien-s); font-weight: 800; font-size: .88rem; margin-bottom: 22px;
}
.hero__od b {
  background: var(--granat); color: #fff; border-radius: 999px;
  padding: 4px 12px; font-size: .82rem; letter-spacing: .04em;
}

/* kolaż zdjęć */
.hero__kolaz { position: relative; aspect-ratio: 1 / .92; }
.hero__kolaz figure { position: absolute; margin: 0; border-radius: var(--r-l); display: grid; place-items: center; }
.hero__kolaz img { mix-blend-mode: multiply; }

.hero__kolaz .k1 {
  left: 0; top: 6%; width: 68%; aspect-ratio: 1/.8;
  background: var(--p-blekit); padding: 5%;
}
.hero__kolaz .k2 {
  right: 0; top: 0; width: 38%; aspect-ratio: 1/1;
  background: var(--p-roz); padding: 2%;
}
.hero__kolaz .k3 {
  right: 6%; bottom: 0; width: 52%; aspect-ratio: 1/.86;
  background: var(--p-zielen); padding: 6%;
}
.hero__kolaz .naklejka {
  position: absolute; left: 4%; bottom: 6%; z-index: 2;
  background: var(--zolty); color: var(--atrament);
  border-radius: 20px; padding: 12px 18px; box-shadow: var(--cien-m);
  font-weight: 900; line-height: 1.15; font-size: .92rem; text-align: center;
  transform: rotate(-6deg);
}
.hero__kolaz .naklejka b { display: block; font-size: 1.5rem; }

/* =========================================================
   Pasek atutów
   ========================================================= */
.atuty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.atut {
  background: #fff; border-radius: var(--r-m); padding: 22px 22px 24px;
  box-shadow: var(--cien-s); border: 1px solid var(--linia);
}
.atut__ikona {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
}
.atut:nth-child(1) .atut__ikona { background: var(--p-koral);  color: var(--koral); }
.atut:nth-child(2) .atut__ikona { background: var(--p-zielen); color: var(--zielen); }
.atut:nth-child(3) .atut__ikona { background: var(--p-blekit); color: var(--blekit); }
.atut:nth-child(4) .atut__ikona { background: var(--p-roz);    color: var(--roz); }
.atut h3 { font-size: 1.02rem; margin-bottom: .3em; }
.atut p { font-size: .92rem; color: var(--szary); margin: 0; }

/* =========================================================
   Nagłówek sekcji
   ========================================================= */
.sekcja__gora {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.sekcja__gora h2 { margin-bottom: .2em; }

/* =========================================================
   Kategorie
   ========================================================= */
.kategorie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kategoria {
  position: relative; display: block; text-decoration: none;
  border-radius: var(--r-l); padding: 26px 24px 20px; overflow: hidden;
  min-height: 250px;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s;
}
.kategoria:hover { transform: translateY(-5px); box-shadow: var(--cien-m); }
.kategoria img {
  position: absolute; right: -4%; bottom: -2%; width: 66%;
  mix-blend-mode: multiply;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
/* pakshot klockow jest szeroki i plaski, wiec dostaje wiecej miejsca niz kwadratowe zabawki */
.kategoria--klocki img { width: 84%; right: -2%; bottom: 5%; }
.kategoria:hover img { transform: scale(1.06) rotate(-2deg); }
.kategoria h3 { position: relative; z-index: 1; font-size: 1.28rem; margin: 0 0 4px; max-width: 8ch; }
.kategoria span { position: relative; z-index: 1; font-weight: 800; font-size: .84rem; color: var(--szary); }
.kategoria--pojazdy     { background: var(--p-blekit); }
.kategoria--piaskownica { background: var(--p-zolty); }
.kategoria--odpychacze  { background: var(--p-zielen); }
.kategoria--klocki      { background: var(--p-roz); }

/* =========================================================
   Siatka produktów
   ========================================================= */
.produkty {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.produkty--wybrane { grid-template-columns: repeat(4, 1fr); }

.produkt {
  background: #fff; border: 1px solid var(--linia); border-radius: var(--r-m);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, border-color .2s;
}
.produkt:hover { transform: translateY(-4px); box-shadow: var(--cien-m); border-color: transparent; }
.produkt__foto {
  /* position: relative jest konieczne — drugie ujecie ma inset: 0 i bez tego
     odnosiloby sie do calej karty razem z opisem, wiec wychodzilo poza kafelek */
  position: relative;
  aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14px;
  background: var(--p-zolty);
}
.produkt:nth-child(4n+2) .produkt__foto { background: var(--p-blekit); }
.produkt:nth-child(4n+3) .produkt__foto { background: var(--p-zielen); }
.produkt:nth-child(4n+4) .produkt__foto { background: var(--p-roz); }
/* ton nadawany przez JS po filtrowaniu (nth-child liczy też ukryte karty) */
.produkty .produkt__foto[data-ton="0"] { background: var(--p-zolty); }
.produkty .produkt__foto[data-ton="1"] { background: var(--p-blekit); }
.produkty .produkt__foto[data-ton="2"] { background: var(--p-zielen); }
.produkty .produkt__foto[data-ton="3"] { background: var(--p-roz); }
.produkt__foto img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }

/* drugie ujęcie pojawia się po najechaniu na kartę */
/* Drugie ujęcie leży na pierwszym, więc musi wypełniać kafelek tak samo.
   Wcześniej miało width/height:auto i rysowało się w rozmiarze własnym pliku —
   na kafelkach ModuFlex (bez marginesu) zdjęcie wychodziło poza ramkę. */
.produkt__foto-alt {
  position: absolute; inset: 0; padding: 14px;
  opacity: 0; transition: opacity .28s;
}
.produkt__foto--pelne .produkt__foto-alt { padding: 0; }
.produkt:hover .produkt__foto-alt { opacity: 1; }
/* wygaszamy okładkę TYLKO tam, gdzie jest czym ją zastąpić */
.produkt.ma-drugie:hover .produkt__foto--wiele > img:first-child { opacity: 0; }
.produkt__foto > img:first-child { transition: opacity .28s, transform .3s; }

/* plakietka z liczbą zdjęć */
.produkt__ile {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.9); color: var(--szary);
  border-radius: 999px; padding: 4px 10px 4px 8px;
  font-size: .72rem; font-weight: 800; letter-spacing: .01em;
  box-shadow: var(--cien-s); pointer-events: none;
  transition: background .2s, color .2s;
}
.produkt:hover .produkt__ile { background: var(--atrament); color: #fff; }
/* zdjęcia z własnym tłem (ModuFlex) — bez przenikania, na całą kafelkę */
.produkty .produkt__foto--pelne { padding: 0; background: var(--krem); }
.produkt__foto--pelne img { object-fit: cover; mix-blend-mode: normal; }
.produkt:hover .produkt__foto img { transform: scale(1.05); }

.produkt__tresc { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.produkt__nazwa { font-size: .98rem; font-weight: 900; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.produkt__nazwa a { text-decoration: none; }
.produkt__nazwa a::after { content: ''; position: absolute; inset: 0; }
.produkt { position: relative; }
.produkt__meta { font-size: .84rem; color: var(--szary); font-weight: 700; margin: 0; }
.produkt__ean { font-size: .74rem; color: #A0A2AE; margin: auto 0 0; font-variant-numeric: tabular-nums; }

/* filtry katalogu */
.filtry { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.chip {
  border: 2px solid var(--linia); background: #fff; color: var(--atrament);
  border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 800; font-size: .92rem;
  cursor: pointer; transition: .16s;
}
.chip:hover { border-color: var(--atrament); }
.chip[aria-pressed="true"] { background: var(--atrament); border-color: var(--atrament); color: #fff; }
.chip b { font-weight: 800; opacity: .55; margin-left: 5px; font-size: .85em; }

.szukajka { position: relative; margin-left: auto; }
.szukajka input {
  font: inherit; font-weight: 700; font-size: .94rem;
  border: 2px solid var(--linia); background: #fff; border-radius: 999px;
  padding: 10px 18px 10px 44px; width: 250px; color: var(--atrament);
}
.szukajka input::placeholder { color: #A0A2AE; font-weight: 600; }
.szukajka input:focus { border-color: var(--blekit); outline: none; }
.szukajka svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--szary); pointer-events: none; }

.licznik { color: var(--szary); font-size: .9rem; font-weight: 700; margin: 0 0 26px; }
.pusto { text-align: center; padding: 60px 20px; color: var(--szary); font-weight: 700; }

/* =========================================================
   Pasy tematyczne
   ========================================================= */
.pas {
  border-radius: var(--r-xl); padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.pas--ciemny { background: var(--granat); color: #fff; }
.pas--ciemny .olowek { color: rgba(255,255,255,.72); }
.pas--ciemny .nadtytul { color: var(--zolty); }
.pas--ciemny .nadtytul::before { background: var(--zolty); }
.pas--krem { background: #fff; border: 1px solid var(--linia); }
.pas__foto { border-radius: var(--r-l); overflow: hidden; }
.pas__foto img { width: 100%; }

/* =========================================================
   Rysunkowa wtryskarka
   ========================================================= */
.pas__foto--rysunek {
  background: var(--p-blekit);
  display: grid; place-items: center;
  padding: clamp(14px, 3vw, 30px);
}
.wtr { width: 100%; height: auto; display: block; overflow: visible; }

/* granulat sypie sie do leja */
.wtr__ziarno { animation: sypie 1.65s linear infinite; }
@keyframes sypie {
  0%        { transform: translateY(-26px); opacity: 0; }
  18%       { opacity: 1; }
  75%, 100% { transform: translateY(58px); opacity: 0; }
}

/* gotowe detale bujaja sie w powietrzu */
.wtr__detal { animation: bujanie 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bujanie {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 0 -9px; rotate: 6deg; }
}

/* oczy rozgladaja sie na boki */
.wtr__zrenica { animation: zerka 5s ease-in-out infinite; }
@keyframes zerka {
  0%, 34%, 100% { translate: 0 0; }
  46%, 74%      { translate: -13px 0; }
}

/* ---------------------------------------------------------------
   Druga wtryskarka — pełny cykl pracy (wersja próbna, strona główna)

   Wszystkie animacje mają tę samą długość (--cykl) i zerowe opóźnienie,
   a fazy siedzą w procentach klatek. Dzięki temu mina, forma i spadające
   klocki nie rozjeżdżają się po kilku minutach działania — przy osobnych
   długościach albo opóźnieniach ujemnych rozjechałyby się na pewno.

   Podział cyklu:  0-12 % otwarta  |  12-22 % zamykanie  |  22-52 % zacisk
   i wtrysk  |  52-64 % otwieranie  |  56-100 % klocki wypadają do pojemnika.

   Stan spoczynkowy (bez animacji, np. przy prefers-reduced-motion) to
   maszyna z otwartą formą i klockami leżącymi już w pojemniku, dlatego
   klocki mają w atrybucie transform docelowe miejsce, a klatki cofają je
   do gniazda formy.
   --------------------------------------------------------------- */
.wtr2 { --cykl: 5.6s; }
.wtr2__korpus, .wtr2__oczy, .wtr2__brewL, .wtr2__brewP, .wtr2__odlew, .wtr2__spada {
  transform-box: fill-box; transform-origin: center;
}
.wtr2__korpus { transform-origin: 50% 100%; }

.wtr2__korpus    { animation: w2-napina   var(--cykl) ease-in-out infinite; }
.wtr2__suwak     { animation: w2-forma    var(--cykl) ease-in-out infinite; }
.wtr2__oczy      { animation: w2-oczy     var(--cykl) ease-in-out infinite; }
.wtr2__zmruz     { animation: w2-zmruz    var(--cykl) ease-in-out infinite; opacity: 0; }
.wtr2__brewL     { animation: w2-brew-l   var(--cykl) ease-in-out infinite; }
.wtr2__brewP     { animation: w2-brew-p   var(--cykl) ease-in-out infinite; }
.wtr2__rumieniec { animation: w2-rumieniec var(--cykl) ease-in-out infinite; opacity: 0; }
.wtr2__pot       { animation: w2-pot      var(--cykl) ease-in-out infinite; opacity: 0; }
.wtr2__wtrysk    { animation: w2-wtrysk   var(--cykl) linear infinite; opacity: 0; }
.wtr2__odlew     { animation: w2-odlew    var(--cykl) ease-out infinite; opacity: 0; }
.wtr2__spada     { animation-duration: var(--cykl); animation-timing-function: ease-in; animation-iteration-count: infinite; }
.wtr2__spada--a  { animation-name: w2-spada-a; }
.wtr2__spada--b  { animation-name: w2-spada-b; }
.wtr2__spada--c  { animation-name: w2-spada-c; }

/* ruchoma połowa formy dojeżdża do nieruchomej */
@keyframes w2-forma {
  0%, 12%   { translate: 0 0; }
  22%, 58%  { translate: -48px 0; }
  66%, 100% { translate: 0 0; }
}
/* przy zwieraniu maszyna przysiada i drży */
@keyframes w2-napina {
  0%, 14%, 58%, 100% { scale: 1 1;      translate: 0 0; }
  24%                { scale: 1.02 .98; translate: 0 0; }
  32%                { scale: 1.02 .98; translate: -3px 0; }
  38%                { scale: 1.02 .98; translate: 3px 0; }
  44%                { scale: 1.02 .98; translate: -2px 0; }
  52%                { scale: 1.02 .98; translate: 0 0; }
}
/* mina: oczy zaciśnięte przy zacisku, wybałuszone przy otwarciu formy */
/* przejście otwarte/zmrużone musi być krótkie — przy dłuższym obie pary oczu
   są przez chwilę półprzezroczyste i mina wygląda jak zabrudzona */
@keyframes w2-oczy {
  0%, 19%   { opacity: 1; scale: 1; }
  21%, 55%  { opacity: 0; scale: 1; }
  57%       { opacity: 1; scale: 1; }
  66%       { opacity: 1; scale: 1.14; }
  76%, 100% { opacity: 1; scale: 1; }
}
@keyframes w2-zmruz  { 0%, 19% { opacity: 0; } 21%, 55% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes w2-brew-l {
  0%, 18%, 62%, 100% { rotate: 0deg;  translate: 0 0; }
  23%, 54%           { rotate: 17deg; translate: 0 7px; }
}
@keyframes w2-brew-p {
  0%, 18%, 62%, 100% { rotate: 0deg;   translate: 0 0; }
  23%, 54%           { rotate: -17deg; translate: 0 7px; }
}
@keyframes w2-rumieniec { 0%, 20%, 62%, 100% { opacity: 0; } 26%, 56% { opacity: .8; } }
/* kropla potu spływa po boku obudowy */
@keyframes w2-pot {
  0%, 28%   { opacity: 0; translate: 0 0; }
  33%       { opacity: 1; translate: 0 4px; }
  50%       { opacity: 1; translate: 0 34px; }
  55%, 100% { opacity: 0; translate: 0 42px; }
}
/* porcja tworzywa leci dyszą do formy */
@keyframes w2-wtrysk {
  0%, 30%   { opacity: 0; translate: 0 0; }
  33%       { opacity: 1; translate: 0 4px; }
  44%       { opacity: 1; translate: 0 62px; }
  47%, 100% { opacity: 0; translate: 0 66px; }
}
/* w gnieździe formy rośnie odlew */
@keyframes w2-odlew {
  0%, 40%   { opacity: 0; scale: .35; }
  48%, 58%  { opacity: 1; scale: 1; }
  61%, 100% { opacity: 0; scale: 1; }
}
/* gotowe klocki wypadają zsypem do pojemnika i podskakują */
@keyframes w2-spada-a {
  0%, 57%   { translate: 36px -101px; rotate: 26deg;  opacity: 0; }
  59%       { translate: 36px -98px;  rotate: 24deg;  opacity: 1; }
  74%       { translate: 20px -42px;  rotate: 12deg;  opacity: 1; }
  84%       { translate: 0 0;         rotate: 0deg;   opacity: 1; }
  89%       { translate: -3px -13px;  rotate: -6deg;  opacity: 1; }
  95%, 97%  { translate: 0 0;         rotate: 0deg;   opacity: 1; }
  100%      { translate: 0 0;         rotate: 0deg;   opacity: 0; }
}
@keyframes w2-spada-b {
  0%, 62%   { translate: -48px -105px; rotate: -30deg; opacity: 0; }
  64%       { translate: -48px -102px; rotate: -28deg; opacity: 1; }
  78%       { translate: -26px -44px;  rotate: -14deg; opacity: 1; }
  88%       { translate: 0 0;          rotate: 0deg;   opacity: 1; }
  92%       { translate: 3px -11px;    rotate: 7deg;   opacity: 1; }
  96%, 97%  { translate: 0 0;          rotate: 0deg;   opacity: 1; }
  100%      { translate: 0 0;          rotate: 0deg;   opacity: 0; }
}
@keyframes w2-spada-c {
  0%, 66%   { translate: -130px -99px; rotate: 34deg; opacity: 0; }
  68%       { translate: -130px -96px; rotate: 32deg; opacity: 1; }
  80%       { translate: -72px -42px;  rotate: 16deg; opacity: 1; }
  91%       { translate: 0 0;          rotate: 0deg;  opacity: 1; }
  94%       { translate: -3px -9px;    rotate: -5deg; opacity: 1; }
  97%       { translate: 0 0;          rotate: 0deg;  opacity: 1; }
  100%      { translate: 0 0;          rotate: 0deg;  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wtr__ziarno, .wtr__detal, .wtr__zrenica { animation: none; }
  .wtr__ziarno { opacity: 0; }
  .wtr2__korpus, .wtr2__suwak, .wtr2__oczy, .wtr2__zmruz, .wtr2__brewL, .wtr2__brewP,
  .wtr2__rumieniec, .wtr2__pot, .wtr2__wtrysk, .wtr2__odlew, .wtr2__spada { animation: none; }
}

/* =========================================================
   Kroki współpracy
   ========================================================= */
.kroki { list-style: none; counter-reset: krok; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.kroki li {
  counter-increment: krok;
  display: grid; grid-template-columns: 38px 1fr; gap: 4px 16px; align-items: baseline;
}
.kroki li::before {
  content: counter(krok); grid-row: span 2;
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; align-self: start;
  background: var(--p-zolty); color: var(--atrament);
  font-weight: 900; font-size: 1.02rem;
}
.kroki b { font-size: 1rem; letter-spacing: -.01em; }
.kroki span { font-size: .92rem; color: var(--szary); }

/* =========================================================
   Odnośnik do sklepu ModuFlex
   ========================================================= */
.sklep {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); background: var(--granat); color: #fff;
  padding: clamp(32px, 5vw, 60px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.sklep::before, .sklep::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,198,26,.22) 0%, transparent 70%);
}
.sklep::before { width: 420px; height: 420px; left: -160px; bottom: -220px; }
.sklep::after  { width: 300px; height: 300px; right: 34%; top: -190px; }
.sklep__tresc { position: relative; z-index: 1; }
.sklep h2 { margin-bottom: .35em; }
.sklep .olowek { color: rgba(255,255,255,.74); }
.sklep .nadtytul { color: var(--zolty); }
.sklep .nadtytul::before { background: var(--zolty); }

.sklep__foto {
  position: relative; z-index: 1; display: block;
  border-radius: var(--r-l); overflow: hidden; box-shadow: var(--cien-l);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.sklep__foto:hover { transform: translateY(-4px) scale(1.015); }
.sklep__foto img { width: 100%; }

/* wielki przycisk sklepu */
.sklep__btn {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 30px; padding: 12px 26px 12px 12px;
  background: var(--zolty); color: var(--granat);
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(255,198,26,.85);
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s;
}
.sklep__btn:hover {
  transform: translateY(-3px);
  background: #FFD34D;
  box-shadow: 0 18px 34px -12px rgba(255,198,26,.95);
}
.sklep__btn-ikona {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--granat); color: var(--zolty);
  display: grid; place-items: center;
}
.sklep__btn-tekst { display: grid; line-height: 1.15; }
.sklep__btn-tekst em {
  font-style: normal; font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; opacity: .62;
}
.sklep__btn-tekst b { font-size: 1.32rem; font-weight: 900; letter-spacing: -.02em; }
.sklep__btn-strzalka { display: grid; place-items: center; transition: transform .2s; }
.sklep__btn:hover .sklep__btn-strzalka { transform: translate(3px, -3px); }

.sklep__nota {
  display: flex; align-items: center; gap: 8px;
  margin: 20px 0 0; font-size: .86rem; font-weight: 700; color: rgba(255,255,255,.6);
}
.sklep__nota svg { flex: none; color: var(--zielen); }
.sklep__alt { margin: 14px 0 0; font-size: .92rem; }
.sklep__alt a {
  display: inline-flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.8); font-weight: 700; text-decoration: none;
  border-bottom: 2px solid rgba(255,255,255,.24); padding-bottom: 2px;
  transition: color .16s, border-color .16s;
}
.sklep__alt a:hover { color: #fff; border-color: var(--zolty); }

/* park maszynowy */
.maszyny { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.maszyna {
  background: #fff; border: 1px solid var(--linia); border-radius: var(--r-m); padding: 22px 22px 20px;
}
.maszyna__nazwa { font-weight: 900; font-size: 1.02rem; margin: 0 0 12px; letter-spacing: -.01em; }
.maszyna dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .9rem; }
.maszyna dt { color: var(--szary); font-weight: 700; }
.maszyna dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.maszyna__pasek { height: 6px; border-radius: 999px; background: var(--p-blekit); margin-top: 16px; overflow: hidden; }
.maszyna__pasek i { display: block; height: 100%; border-radius: 999px; background: var(--blekit); }

/* oś czasu / liczby */
.liczby { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.liczba { text-align: center; padding: 26px 16px; background: #fff; border: 1px solid var(--linia); border-radius: var(--r-m); }
.liczba b { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.liczba span { font-size: .88rem; color: var(--szary); font-weight: 700; }
.liczba:nth-child(1) b { color: var(--koral); }
.liczba:nth-child(2) b { color: var(--blekit); }
.liczba:nth-child(3) b { color: var(--zielen); }
.liczba:nth-child(4) b { color: var(--roz); }

/* =========================================================
   Kontakt
   ========================================================= */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.karta {
  background: #fff; border: 1px solid var(--linia); border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--cien-s);
}
.dane { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 18px; }
.dane li { display: flex; gap: 14px; align-items: flex-start; }
.dane__ikona { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--p-zolty); color: #B98400; }
.dane li:nth-child(2) .dane__ikona { background: var(--p-zielen); color: #16874A; }
.dane li:nth-child(3) .dane__ikona { background: var(--p-blekit); color: #0F6FA8; }
.dane li:nth-child(4) .dane__ikona { background: var(--p-roz);    color: #B5216A; }
.dane strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--szary); margin-bottom: 2px; }
.dane a { text-decoration: none; font-weight: 800; }
.dane a:hover { text-decoration: underline; }
.dane p { margin: 0; font-weight: 800; }

.pole { display: block; margin-bottom: 18px; }
.pole span { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 7px; }
.pole input, .pole textarea, .pole select {
  width: 100%; font: inherit; font-size: .96rem;
  border: 2px solid var(--linia); border-radius: var(--r-s); background: var(--krem);
  padding: 12px 15px; color: var(--atrament);
}
.pole textarea { min-height: 130px; resize: vertical; }
.pole input:focus, .pole textarea:focus, .pole select:focus { border-color: var(--blekit); outline: none; background: #fff; }
.zgoda { display: flex; gap: 12px; align-items: flex-start; font-size: .84rem; color: var(--szary); margin-bottom: 20px; }
.zgoda input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--koral); }
.miodek { position: absolute; left: -9999px; }

.mapa { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--linia); line-height: 0; }
.mapa iframe { width: 100%; height: 340px; border: 0; }

.komunikat { border-radius: var(--r-m); padding: 16px 20px; font-weight: 700; margin-bottom: 22px; }
.komunikat--ok  { background: var(--p-zielen); color: #14663A; }
.komunikat--zle { background: var(--p-koral);  color: #A6301A; }

/* =========================================================
   Mapa punktów sprzedaży
   ========================================================= */
.mapa-blok { display: grid; grid-template-columns: 1.12fr .88fr; gap: 20px; align-items: start; }

.mapa-blok__mapa {
  position: relative; background: #fff; border: 1px solid var(--linia);
  border-radius: var(--r-l); padding: 18px 18px 12px; box-shadow: var(--cien-s);
}
.mapa-svg svg { width: 100%; height: auto; display: block; overflow: visible; }

/* województwa */
.woj {
  fill: var(--p-zielen); stroke: #fff; stroke-width: 2.5;
  transition: fill .18s;
}
.woj:hover { fill: #CFEFDE; cursor: pointer; }
.woj--aktywne { fill: var(--p-zolty); }
.woj--przygaszone { fill: #F1EFE8; }

/* punkty */
.pin { cursor: pointer; transition: opacity .18s; }
.pin__krag { fill: var(--koral); stroke: #fff; stroke-width: 3; transition: r .18s, fill .18s; }
.pin:hover .pin__krag { r: 15; fill: #F5502D; }
.pin--wybrany .pin__krag { fill: var(--granat); r: 15; }
.pin--wybrany .pin__puls {
  fill: none; stroke: var(--granat); stroke-width: 3;
  transform-origin: center; transform-box: fill-box;
  animation: puls 1.8s ease-out infinite;
}
@keyframes puls {
  0%   { r: 12; opacity: .7; }
  100% { r: 34; opacity: 0; }
}
.pin--przygaszony { opacity: .18; pointer-events: none; }

/* punkt spoza Polski — leży poza konturem, więc zamiast pełnej pinezki
   dostaje pusty krążek, strzałkę w swoją stronę i podpis z krajem */
.pin--obcy .pin__krag { fill: #fff; stroke: var(--blekit); stroke-width: 4; }
.pin--obcy:hover .pin__krag { fill: var(--p-blekit); }
.pin--obcy.pin--wybrany .pin__krag { fill: var(--p-blekit); stroke: var(--granat); }
.pin--obcy.pin--wybrany .pin__puls { stroke: var(--blekit); }
.pin__strzalka { fill: var(--blekit); transition: fill .18s; }
.pin--obcy:hover .pin__strzalka,
.pin--obcy.pin--wybrany .pin__strzalka { fill: var(--granat); }
.pin__podpis {
  fill: var(--blekit); font-size: 26px; font-weight: 900;
  letter-spacing: .04em; text-transform: uppercase; pointer-events: none;
}
.pin--obcy:hover .pin__podpis { fill: var(--granat); }

.mapa-dymek {
  position: absolute; z-index: 5; pointer-events: none;
  background: var(--granat); color: #fff; border-radius: var(--r-s);
  padding: 9px 13px; box-shadow: var(--cien-m);
  font-size: .82rem; line-height: 1.35; max-width: 230px;
  transform: translate(-50%, -100%); margin-top: -14px;
}
.mapa-dymek b { display: block; font-size: .9rem; }
.mapa-dymek span { color: rgba(255,255,255,.7); }
.mapa-dymek::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px;
  background: var(--granat); transform: translateX(-50%) rotate(45deg);
}

.mapa-stopka {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 6px; padding: 0 4px;
}
.mapa-legendy { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mapa-legenda { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--szary); }
.mapa-legenda i { width: 12px; height: 12px; border-radius: 50%; background: var(--koral); box-shadow: 0 0 0 2.5px #fff, 0 0 0 3.5px rgba(255,94,58,.3); }
.mapa-legenda--obcy i {
  background: #fff; border: 3px solid var(--blekit); box-shadow: none;
  position: relative;
}
.mapa-legenda--obcy i::after {
  content: ''; position: absolute; left: 100%; top: 50%; margin-left: 2px;
  border: 4px solid transparent; border-left-color: var(--blekit); transform: translateY(-50%);
}
.mapa-reset {
  display: inline-flex; align-items: center; gap: 6px;
  border: 2px solid var(--linia); background: #fff; color: var(--atrament);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer;
}
.mapa-reset:hover { border-color: var(--atrament); }

/* panel z listą */
.mapa-blok__lista {
  background: #fff; border: 1px solid var(--linia); border-radius: var(--r-l);
  padding: 20px; box-shadow: var(--cien-s); display: flex; flex-direction: column;
}
.szukajka--pelna { margin: 0 0 14px; width: 100%; }
.szukajka--pelna input { width: 100%; }
.mapa-blok__lista .licznik { margin: 0 0 12px; }

.sklepy { overflow-y: auto; max-height: 620px; padding-right: 6px; scrollbar-width: thin; }
.sklepy__woj {
  position: sticky; top: 0; z-index: 1; margin: 0 0 10px;
  background: #fff; padding: 6px 0;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--szary);
  display: flex; align-items: center; gap: 8px;
}
.sklepy__woj span {
  background: var(--p-zolty); color: #8A6200; border-radius: 999px;
  padding: 1px 8px; font-size: .78rem; letter-spacing: 0;
}
.sklepy__woj + .sklepy__lista { margin-bottom: 22px; }
.sklepy__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

/* uwaga: .sklep to blok ModuFlex na stronie glownej — punkty sprzedazy maja wlasna nazwe */
.punkt {
  border: 1px solid var(--linia); border-radius: var(--r-m); padding: 13px 15px;
  display: grid; gap: 3px; cursor: pointer;
  transition: border-color .16s, background .16s, transform .16s;
}
.punkt:hover { border-color: var(--koral); transform: translateX(2px); }
.punkt--wybrany { background: var(--p-zolty); border-color: var(--zolty); }
.punkt__nazwa { font-size: .96rem; font-weight: 900; letter-spacing: -.01em; }
.punkt__adres { font-size: .86rem; color: var(--szary); }
.punkt__tel, .punkt__dojazd {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: .82rem; font-weight: 800; text-decoration: none; margin-top: 4px;
}
.punkt__tel { color: var(--atrament); }
.punkt__dojazd { color: var(--blekit); }
.punkt__tel:hover, .punkt__dojazd:hover { text-decoration: underline; }
.punkt__tel svg, .punkt__dojazd svg { width: 15px; height: 15px; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  border-radius: var(--r-xl); background: var(--zolty); color: var(--atrament);
  padding: clamp(36px, 5vw, 64px); text-align: center; position: relative; overflow: hidden;
}
.cta h2 { margin-bottom: .3em; }
.cta p { max-width: 52ch; margin: 0 auto 28px; font-weight: 700; }
.cta__akcje { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta::before, .cta::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.34);
}
.cta::before { width: 220px; height: 220px; left: -70px; bottom: -90px; }
.cta::after  { width: 150px; height: 150px; right: -40px; top: -60px; }

/* =========================================================
   Stopka
   ========================================================= */
.stopka { background: var(--granat); color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 72px) 0 28px; margin-top: var(--sekcja); }
.stopka__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.stopka h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.stopka ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stopka a { text-decoration: none; font-weight: 700; transition: color .16s; }
.stopka a:hover { color: var(--zolty); }
.stopka__sklep { color: var(--zolty); }
.stopka__sklep::after { content: '↗'; margin-left: 5px; font-size: .9em; }
.stopka__logo { background: #fff; border-radius: var(--r-m); padding: 14px 18px; display: inline-block; margin-bottom: 18px; }
.stopka__logo img { width: 120px; }
.stopka__opis { font-size: .93rem; max-width: 34ch; }
.stopka__dol {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .86rem;
}

/* =========================================================
   Pasek o ciasteczkach
   ========================================================= */
/* Leży nad stopką, ale pod oknem produktu (z-index 90) i powiększeniem —
   inaczej zasłaniałby miniatury zdjęć na niskim ekranie. */
.ciastka {
  position: fixed; z-index: 80;
  left: 50%; bottom: 16px; transform: translateX(-50%);
  width: min(720px, calc(100% - 28px));
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--linia); border-radius: var(--r-m);
  box-shadow: var(--cien-l); padding: 16px 20px;
  animation: ciastka-wjazd .3s cubic-bezier(.34,1.4,.64,1);
}
@keyframes ciastka-wjazd { from { opacity: 0; transform: translate(-50%, 20px); } }
.ciastka__tekst { margin: 0; flex: 1 1 340px; font-size: .88rem; line-height: 1.5; color: var(--szary); }
.ciastka__ok { flex: none; }

/* =========================================================
   Okno produktu
   ========================================================= */
.okno {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.okno[open], .okno.otwarte { display: flex; }
.okno__tlo {
  position: absolute; inset: 0; background: rgba(31,34,51,.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 0; padding: 0; cursor: pointer;
}
.okno__panel {
  position: relative; background: #fff; border-radius: var(--r-l);
  width: min(860px, 100%); max-height: 88vh; overflow: auto;
  box-shadow: var(--cien-l);
  display: grid; grid-template-columns: 1fr 1fr;
  animation: wjazd .26s cubic-bezier(.34,1.4,.64,1);
}
@keyframes wjazd { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.okno__foto { background: var(--p-zolty); display: grid; place-items: center; padding: 28px; }
.okno__foto img { width: 100%; mix-blend-mode: multiply; }
.okno__foto--pelne { background: var(--krem); padding: 0; }
.okno__foto--pelne img { mix-blend-mode: normal; height: 100%; object-fit: cover; }

/* ---------- galeria zdjęć w oknie ---------- */
/* min-width:0 — bez tego pasek miniatur (min-content) rozpycha kolumnę okna */
.okno__lewa { display: flex; flex-direction: column; background: var(--p-zolty); min-width: 0; }
.okno__lewa .okno__foto { flex: 1; position: relative; min-width: 0; }

.galeria__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--atrament);
  box-shadow: var(--cien-s); display: grid; place-items: center;
  opacity: 0; transition: opacity .2s, background .16s, transform .16s;
}
.okno__lewa:hover .galeria__nav, .galeria__nav:focus-visible { opacity: 1; }
.galeria__nav:hover { background: #fff; }
.galeria__nav--wstecz { left: 12px; }
.galeria__nav--dalej  { right: 12px; }
.galeria__nav--wstecz:hover { transform: translateY(-50%) translateX(-2px); }
.galeria__nav--dalej:hover  { transform: translateY(-50%) translateX(2px); }

.galeria__licznik {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  background: rgba(31,34,51,.68); color: #fff;
  border-radius: 999px; padding: 3px 11px;
  font-size: .74rem; font-weight: 800; font-variant-numeric: tabular-nums;
}

.galeria {
  list-style: none; margin: 0; padding: 12px 14px 14px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin;
  background: rgba(255,255,255,.55); min-width: 0;
}
.galeria__mini {
  width: 62px; height: 62px; flex: none; padding: 4px; cursor: pointer;
  border: 2px solid transparent; border-radius: 12px; background: #fff;
  transition: border-color .16s, transform .16s;
}
.galeria__mini img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.galeria--pelne .galeria__mini img { mix-blend-mode: normal; object-fit: cover; border-radius: 8px; }

/* przycisk „Powiększ" na zdjęciu w oknie produktu */
.okno__foto { cursor: zoom-in; }
.okno__lupa {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--atrament);
  padding: 7px 15px 7px 12px; font: inherit; font-size: .8rem; font-weight: 800;
  box-shadow: var(--cien-s); transition: background .16s, transform .16s;
}
.okno__lupa:hover { background: #fff; transform: translateY(-2px); }

/* =========================================================
   Powiększenie zdjęcia (pełny ekran)
   ========================================================= */
.lupa {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center;
  background: rgba(20,22,34,.94);
}
.lupa.otwarta { display: flex; }
.lupa__tlo { position: absolute; inset: 0; background: transparent; border: 0; padding: 0; cursor: zoom-out; }

.lupa__foto {
  position: relative; z-index: 1;
  max-width: 92vw; max-height: 86vh;
  object-fit: contain; cursor: zoom-in;
  border-radius: var(--r-m); background: #fff;
  transition: transform .28s cubic-bezier(.22,.9,.3,1);
  animation: lupaWjazd .24s ease-out;
}
@keyframes lupaWjazd { from { opacity: 0; transform: scale(.96); } }
.lupa__foto--blisko { cursor: zoom-out; transform: scale(2.2); transition: transform .18s ease-out; }

.lupa__zamknij, .lupa__nav {
  position: absolute; z-index: 2; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  transition: background .16s, transform .16s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lupa__zamknij:hover, .lupa__nav:hover { background: rgba(255,255,255,.3); }
.lupa__zamknij { top: 18px; right: 18px; width: 48px; height: 48px; }
.lupa__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lupa__nav--wstecz { left: 20px; }
.lupa__nav--dalej  { right: 20px; }
.lupa__nav--wstecz:hover { transform: translateY(-50%) translateX(-3px); }
.lupa__nav--dalej:hover  { transform: translateY(-50%) translateX(3px); }

.lupa__licznik {
  position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 26px;
  color: #fff; background: rgba(255,255,255,.14); border-radius: 999px;
  padding: 6px 16px; font-size: .84rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
/* pigułka, bo tekst potrafi wypaść na jasnym zdjęciu */
.lupa__podpowiedz {
  position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); bottom: 66px;
  color: rgba(255,255,255,.72); background: rgba(20,22,34,.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 5px 14px;
  font-size: .76rem; font-weight: 700;
  transition: opacity .3s; white-space: nowrap;
}
.lupa.blisko .lupa__podpowiedz, .lupa.blisko .lupa__nav { opacity: 0; pointer-events: none; }
.galeria__mini:hover { border-color: var(--linia); transform: translateY(-2px); }
.galeria__mini[aria-current="true"] { border-color: var(--koral); }
.okno__tresc { padding: clamp(24px, 3vw, 36px); }
.okno__tresc h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.okno__zamknij {
  position: absolute; right: 12px; top: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: var(--cien-s); cursor: pointer; display: grid; place-items: center; color: var(--atrament);
}
.okno__zamknij:hover { background: var(--p-koral); }
.spec { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 1px; background: var(--linia); border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--linia); }
.spec li { display: flex; justify-content: space-between; gap: 16px; background: #fff; padding: 11px 15px; font-size: .93rem; }
.spec dt, .spec .etykieta { color: var(--szary); font-weight: 700; }
.spec .wartosc { font-weight: 900; font-variant-numeric: tabular-nums; }

/* =========================================================
   Responsywność
   ========================================================= */
@media (max-width: 1080px) {
  .produkty, .produkty--wybrane, .kategorie { grid-template-columns: repeat(3, 1fr); }
  .atuty { grid-template-columns: repeat(2, 1fr); }
  .maszyny { grid-template-columns: repeat(2, 1fr); }
  .stopka__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* menu ma szesc pozycji plus przycisk — ponizej ~980px nie miesci sie w jednym wierszu */
@media (max-width: 980px) {
  :root { --naglowek-h: 64px; }
  .hamburger { display: flex; }
  .nawigacja {
    position: fixed; inset: var(--naglowek-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--krem); border-bottom: 1px solid var(--linia);
    padding: 16px 20px 24px; box-shadow: var(--cien-m);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s;
  }
  .nawigacja.otwarta { transform: none; opacity: 1; pointer-events: auto; }
  .nawigacja a { padding: 13px 16px; font-size: 1.05rem; }
  .naglowek .btn { margin: 8px 0 0; }
  .logo__tag { display: none; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__tresc { max-width: none; }
  .hero__kolaz { max-width: 480px; margin: 0 auto; width: 100%; }

  .pas { grid-template-columns: 1fr; }
  .pas--odwrocony .pas__foto { order: -1; }
  .mapa-blok { grid-template-columns: 1fr; }
  .sklepy { max-height: 480px; }
  .sklep { grid-template-columns: 1fr; }
  .sklep__foto { order: -1; }
  .sklep__btn { width: 100%; padding-right: 18px; }
  .sklep__btn-strzalka { margin-left: auto; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .liczby { grid-template-columns: repeat(2, 1fr); }
  .okno__panel { grid-template-columns: 1fr; }
  .okno__foto { padding: 20px; }
  .szukajka { margin-left: 0; width: 100%; }
  .szukajka input { width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .produkty, .produkty--wybrane, .kategorie { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .atuty, .maszyny { grid-template-columns: 1fr; }
  .stopka__grid { grid-template-columns: 1fr; gap: 30px; }
  .kategoria { min-height: 210px; padding: 20px 18px 16px; }
  .kategoria h3 { font-size: 1.08rem; max-width: none; }
  .kategoria img { width: 58%; right: -2%; bottom: -1%; }
  .kategoria--klocki img { width: 76%; right: -1%; bottom: 4%; }
  .produkt__tresc { padding: 13px 14px 15px; }
  .hero__akcje .btn { width: 100%; }
  /* na wąskim ekranie strzałki lądowałyby na zdjęciu — zostaje przesuwanie palcem */
  .lupa__podpowiedz { display: none; }
  .lupa__nav { display: none; }
  .lupa__foto { max-width: 96vw; }
  .ciastka { bottom: 10px; padding: 14px 16px; gap: 12px; }
  .ciastka__ok { width: 100%; justify-content: center; }
}

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

@media print {
  .naglowek, .stopka, .cta, .filtry, .szukajka, .hamburger, .ciastka { display: none !important; }
  body { background: #fff; }
  .produkt { break-inside: avoid; }
}
