/* EPS System — arkusz stylów strony informacyjnej (PL / EN)
   Kierunek: jasno, spokojnie, miękkie zaokrąglenia i łagodny ruch.
   Na pierwszym planie partner strategiczny — Energy Power Systems (eps.com.pl).
   Kolory marki EPS System z logo: granat #26487E, czerwień #C12031.
   Pliki HTML generuje epssystem-zrodla/zbuduj.py (numer wersji arkusza liczy się sam). */

/* ------------------------------------------------------------------ krój pisma (lokalnie) */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonty/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonty/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ motyw jasny */

:root {
  --tlo: #f6f7fb;
  --tlo-2: #eef1f7;
  --powierzchnia: #ffffff;
  --tekst: #131a28;
  --tekst-2: #4b5567;
  --tekst-3: #646c7b;  /* 4,7:1 na tle sekcji — WCAG AA */
  --linia: #e3e7ef;
  --linia-mocna: #cfd6e2;
  --marka: #26487e;
  --marka-jasna: #e9eff9;
  --link: #26487e;
  --akcent: #c12031;
  --akcent-jasny: #fbe9eb;
  --naglowek-tlo: #f6f7fb;   /* kryjące: przez pasek nie prześwituje ruchome logo w tle */
  --cien: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 40px -18px rgba(16, 24, 40, 0.18);
  --cien-mocny: 0 2px 6px rgba(16, 24, 40, 0.05), 0 30px 60px -24px rgba(16, 24, 40, 0.28);
  --plama-1: rgba(38, 72, 126, 0.16);
  --plama-2: rgba(193, 32, 49, 0.1);
  --foto-filtr: none;
  --logo-jasne: block;
  --logo-ciemne: none;

  --r: 18px;
  --r-maly: 12px;
  --maks: 1240px;
  --bok: clamp(20px, 4vw, 40px);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* ------------------------------------------------------------------ motyw ciemny */

:root[data-theme="dark"] {
  --tlo: #0f1522;
  --tlo-2: #131b2b;
  --powierzchnia: #172033;
  --tekst: #e8edf5;
  --tekst-2: #aab4c6;
  --tekst-3: #8b96a9;  /* 5,5:1 na powierzchni — WCAG AA */
  --linia: #243049;
  --linia-mocna: #33415f;
  --marka: #3a64a8;
  --marka-jasna: #1c2940;
  --link: #9dbbf1;
  --akcent: #ff6b78;
  --akcent-jasny: #3a1f28;
  --naglowek-tlo: #0f1522;
  --cien: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 40px -18px rgba(0, 0, 0, 0.6);
  --cien-mocny: 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 60px -24px rgba(0, 0, 0, 0.75);
  --plama-1: rgba(58, 100, 168, 0.28);
  --plama-2: rgba(255, 107, 120, 0.12);
  --foto-filtr: brightness(0.92);
  --logo-jasne: none;
  --logo-ciemne: block;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tlo: #0f1522;
    --tlo-2: #131b2b;
    --powierzchnia: #172033;
    --tekst: #e8edf5;
    --tekst-2: #aab4c6;
    --tekst-3: #8b96a9;  /* 5,5:1 na powierzchni — WCAG AA */
    --linia: #243049;
    --linia-mocna: #33415f;
    --marka: #3a64a8;
    --marka-jasna: #1c2940;
    --link: #9dbbf1;
    --akcent: #ff6b78;
    --akcent-jasny: #3a1f28;
    --naglowek-tlo: #0f1522;
    --cien: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 40px -18px rgba(0, 0, 0, 0.6);
    --cien-mocny: 0 2px 6px rgba(0, 0, 0, 0.35), 0 30px 60px -24px rgba(0, 0, 0, 0.75);
    --plama-1: rgba(58, 100, 168, 0.28);
    --plama-2: rgba(255, 107, 120, 0.12);
    --foto-filtr: brightness(0.92);
    --logo-jasne: none;
    --logo-ciemne: block;
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ podstawy */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  /* Przeglądarka sama poprawia przewinięcie, gdy coś nad widokiem zmieni wysokość. Tutaj robił to
     przyklejony nagłówek, który chudnie przy przewijaniu — poprawka przesuwała stronę z powrotem
     przez próg i góra strony drgała (zgłoszone 2026-09-28). Strona nic nie doczytuje w trakcie
     czytania, a wszystkie obrazy mają podane wymiary, więc to wyrównanie nie jest tu do niczego
     potrzebne. */
  overflow-anchor: none;
  background: var(--tlo);
  color: var(--tekst);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
svg { flex-shrink: 0; }
::selection { background: var(--marka); color: #fff; }

a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
/* link w zdaniu musi być widoczny także bez rozróżniania kolorów — stąd podkreślenie */
.dokument a, .uwaga a, .certyfikat a, .projekt p a, .projekt-ue p a, .wizytowka p a,
.cytat footer a, .eps-dol p a, .blad p a, .nota a { text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { color: var(--akcent); }
:focus-visible { outline: 2px solid var(--marka); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  color: var(--tekst);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.55em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.ramka { width: 100%; max-width: var(--maks); margin: 0 auto; padding-inline: var(--bok); }

.pomin { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--marka); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.pomin:focus { top: 12px; color: #fff; }

.etykieta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--marka);
  margin-bottom: 1rem;
}

:root[data-theme="dark"] .etykieta { color: var(--link); }
.etykieta::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--akcent); box-shadow: 0 0 0 4px var(--akcent-jasny); }

.wiodacy { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.62; color: var(--tekst-2); max-width: 62ch; }

/* logo Energy Power Systems w dwóch wariantach — przełącza się z motywem */
.logo-eps-jasne { display: var(--logo-jasne); }
.logo-eps-ciemne { display: var(--logo-ciemne); }

/* ------------------------------------------------------------------ pasek górny */

.pasek-info { background: var(--marka); color: #dfe8f7; font-size: 0.84rem; }
:root[data-theme="dark"] .pasek-info { background: #1a2a47; }
.pasek-info .ramka { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 20px; padding-block: 9px; }
.pasek-info a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.pasek-info a:hover { color: #ffd3d8; }
.pasek-info a .strzalka { transition: transform 0.3s var(--ease); }
.pasek-info a:hover .strzalka { transform: translateX(3px); }

/* ------------------------------------------------------------------ zestawienie znaków FE */
/* Obowiązkowe oznaczenie strony projektu z Funduszy Europejskich: na samej górze, nad treścią,
   widoczne zaraz po wejściu bez przewijania (wymóg instytucji, 13.10.2026). Białe tło w obu
   motywach — pełnokolorowe znaki stawia się na białym. Kliknięcie prowadzi do opisu projektu. */
/* 18.11.2026: pasek powiększony na całą szerokość treści i hasztagi kampanii pod nim — jak na
   dotychczasowej epssystem.pl. Kolory stałe, bo tło jest białe także w ciemnym motywie. */
.znaki-fe { background: #fff; border-bottom: 1px solid #e3e7ef; }
.znaki-fe .ramka { padding-block: 12px 6px; }
.znaki-fe .ramka > a { display: block; width: 100%; border-radius: 6px; }
.znaki-fe img { display: block; width: 100%; height: auto; }
.znaki-fe-tagi { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; margin: 4px 0 0; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
.znaki-fe-tagi a { display: inline-block; padding: 4px 2px; color: #26487e; }
.znaki-fe-tagi a:hover { color: #c12031; }
.znaki-fe-tagi a:focus-visible { outline-color: #26487e; }

/* tekst tylko dla czytników ekranu */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ nagłówek */

header.glowka {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--naglowek-tlo);
  /* Bez backdrop-filter. Przezroczysty pasek z rozmyciem kazał przeglądarce liczyć rozmycie
     na nowo w KAŻDEJ klatce ruchu logo w tle — na szerokim ekranie górny pasek przez to drgał
     i gubił klatki (zgłoszone 2026-09-28). Kryjące tło rysuje się raz i stoi. */
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

header.glowka.przewiniete { box-shadow: var(--cien); border-bottom-color: var(--linia); }

.glowka .ramka { display: flex; align-items: center; gap: 14px 28px; padding-block: 14px; transition: padding 0.3s var(--ease); }
header.glowka.przewiniete .ramka { padding-block: 10px; }

.znak { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; color: var(--tekst); }
.znak:hover { color: var(--tekst); }
/* samo logo, bez napisu — wysokość dobrana do paska menu */
.znak img { width: auto; height: 54px; transition: transform 0.5s var(--ease), height 0.3s var(--ease); }
header.glowka.przewiniete .znak img { height: 46px; }
.znak:hover img { transform: scale(1.05); }
.znak-tekst b { display: block; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap; }
.znak-tekst small { display: block; font-size: 0.74rem; color: var(--tekst-3); }

nav.menu { margin-left: auto; }
nav.menu ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0; }

nav.menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tekst-2);
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* kolumny siatek mogą się zwężać poniżej szerokości najdłuższego słowa */
.otwarcie-uklad > *, .wyroby > *, .wspolpraca > *, .zaklad > *, .kontakt-uklad > *, .projekt > * { min-width: 0; }

nav.menu a:hover { color: var(--tekst); background: var(--tlo-2); }
nav.menu a[aria-current="page"] { color: var(--marka); background: var(--marka-jasna); }
:root[data-theme="dark"] nav.menu a[aria-current="page"] { color: #fff; }
nav.menu .krotka { display: none; }

/* wyróżniony przycisk do Energy Power Systems */
nav.menu a.zewn { background: var(--marka); color: #fff; font-weight: 600; margin-left: 6px; padding-inline: 16px; box-shadow: 0 6px 16px -8px rgba(38, 72, 126, 0.6); }
nav.menu a.zewn:hover { background: var(--akcent); color: #fff; }
nav.menu a.zewn .strzalka { transition: transform 0.3s var(--ease); }
nav.menu a.zewn:hover .strzalka { transform: translate(2px, -2px); }

.narzedzia { display: flex; align-items: center; gap: 8px; }

.jezyk { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: var(--tlo-2); font-size: 0.78rem; font-weight: 600; }
.jezyk a { padding: 6px 10px; border-radius: 999px; color: var(--tekst-3); transition: color 0.2s ease, background-color 0.2s ease; }
.jezyk a:hover { color: var(--tekst); }
.jezyk a[aria-current="true"] { color: var(--tekst); background: var(--powierzchnia); box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12); }

.motyw {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--tlo-2);
  color: var(--tekst);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.45s var(--ease);
}

.motyw:hover { background: var(--marka-jasna); transform: rotate(-15deg); }
.motyw svg { position: absolute; width: 17px; height: 17px; transition: opacity 0.35s ease, transform 0.55s var(--ease); }
.motyw .ikona-ksiezyc { opacity: 0; transform: rotate(-90deg) scale(0.4); }
:root[data-theme="dark"] .motyw .ikona-slonce { opacity: 0; transform: rotate(90deg) scale(0.4); }
:root[data-theme="dark"] .motyw .ikona-ksiezyc { opacity: 1; transform: none; }

.zmiana-motywu *,
.zmiana-motywu *::before,
.zmiana-motywu *::after { transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, fill 0.45s ease, stroke 0.45s ease !important; }

/* ------------------------------------------------------------------ przyciski */

.przyciski { display: flex; flex-wrap: wrap; gap: 12px; }

.przycisk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid var(--marka);
  background: var(--marka);
  color: #fff;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.2;
  box-shadow: 0 10px 24px -12px rgba(38, 72, 126, 0.65);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.przycisk:hover { color: #fff; background: var(--akcent); border-color: var(--akcent); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(193, 32, 49, 0.55); }
.przycisk .strzalka { transition: transform 0.35s var(--ease); }
.przycisk:hover .strzalka { transform: translateX(4px); }

.przycisk-drugi { background: var(--powierzchnia); color: var(--tekst); border-color: var(--linia-mocna); box-shadow: none; }
.przycisk-drugi:hover { background: var(--powierzchnia); color: var(--marka); border-color: var(--marka); box-shadow: var(--cien); }

.przycisk-jasny { background: #fff; border-color: #fff; color: #1a2f55; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.4); }
.przycisk-jasny:hover { background: #fff; border-color: #fff; color: var(--akcent); }

.link-strzalka { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.link-strzalka .strzalka { transition: transform 0.35s var(--ease); }
.link-strzalka:hover .strzalka { transform: translateX(4px); }

/* ------------------------------------------------------------------ sekcje */

section { padding-block: clamp(64px, 8vw, 112px); position: relative; }

/* Pas sekcji i stopka kończą się falą — to łuk spod liter EPS z logo
   (pliki assets/fala-*.svg generuje epssystem-zrodla/fala.py).
   Tło pasa leży pod logo w tle (z-index -2), treść sekcji nad nim. */
:root { --fala: 26px; }

section.tlo-2::before {
  content: "";
  position: absolute;
  inset: calc(var(--fala) * -1) 0;
  z-index: -2;
  background: var(--tlo-2);
  -webkit-mask-image: url("../assets/fala-gora.svg"), linear-gradient(#000, #000), url("../assets/fala-dol.svg");
  mask-image: url("../assets/fala-gora.svg"), linear-gradient(#000, #000), url("../assets/fala-dol.svg");
  -webkit-mask-size: 100% var(--fala), 100% calc(100% - var(--fala) * 2), 100% var(--fala);
  mask-size: 100% var(--fala), 100% calc(100% - var(--fala) * 2), 100% var(--fala);
  -webkit-mask-position: left top, left var(--fala), left bottom;
  mask-position: left top, left var(--fala), left bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

footer.stopka { position: relative; }

footer.stopka::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--fala) * -1 + 1px);
  height: var(--fala);
  background: inherit;
  -webkit-mask: url("../assets/fala-gora.svg") left bottom / 100% 100% no-repeat;
  mask: url("../assets/fala-gora.svg") left bottom / 100% 100% no-repeat;
}
section.ciasna-gora { padding-top: clamp(36px, 4vw, 56px); }
section.bez-dolu { padding-bottom: 0; }

.naglowek-sekcji { display: grid; grid-template-columns: 1fr; gap: 10px 64px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 56px); }
.naglowek-sekcji h2 { margin-bottom: 0; max-width: 22ch; }
.naglowek-sekcji .wiodacy { margin: 0; }

/* ------------------------------------------------------------------ logo EPS System w tle */
/* Cztery warstwy logo (granat, napis „system”, pasek z literami EPS, czerwień) w bladych odcieniach
   marki. Na górze strony są rozsunięte jak w rysunku złożeniowym, przy przewijaniu schodzą się
   i składają w całe logo — pozycję liczy js/strona.js. Bez JS i przy ograniczonym ruchu zostaje
   ten sam układ co na starcie, nieruchomy. Karty z treścią leżą nad logo i je zasłaniają. */

.tlo-logo {
  --tl-rozmiar: clamp(300px, 46vw, 700px);
  --tl-czerwien: #f2dfe3;
  --tl-granat: #dee4ef;
  --tl-biel: #ffffff;
  --tl-krawedz: rgba(38, 72, 126, 0.16);
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  perspective: 1700px;
  transition: opacity 1.4s ease;
}

/* Na telefonie ekran rośnie i maleje o ~56 px przy chowaniu paska adresu. Warstwa o stałej
   wysokości (największy widok) nie skacze. Bez „height: 100vh; height: 100lvh” — przeglądarka
   bez lvh zostaje przy inset: 0. */
@supports (height: 100lvh) {
  .tlo-logo { bottom: auto; height: 100lvh; }
}

:root[data-theme="dark"] .tlo-logo { --tl-czerwien: #2b1823; --tl-granat: #18253d; --tl-biel: #1d2537; --tl-krawedz: rgba(157, 187, 241, 0.14); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tlo-logo { --tl-czerwien: #2b1823; --tl-granat: #18253d; --tl-biel: #1d2537; --tl-krawedz: rgba(157, 187, 241, 0.14); }
}

/* skrypt ustawia warstwy i dopiero wtedy logo łagodnie się pojawia */
html.js .tlo-logo { opacity: 0; }
html.js .tlo-logo.gotowe { opacity: 1; }

.tlo-logo-scena {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tl-rozmiar);
  aspect-ratio: 265 / 235;
  transform-style: preserve-3d;
  transform: translate3d(calc(72vw - 50%), calc(64vh - 50%), 0) rotateX(56deg) rotateZ(-34deg);
}

.tlo-logo .warstwa {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  stroke: var(--tl-krawedz);
  stroke-width: 1px;
  stroke-linejoin: round;
  backface-visibility: hidden;
}

.warstwa-granat { fill: var(--tl-granat); }
.warstwa-system, .warstwa-pasek { fill: var(--tl-biel); }
.warstwa-czerwien { fill: var(--tl-czerwien); }
.warstwa-system { transform: translateZ(calc(var(--tl-rozmiar) * 0.15)); }
.warstwa-pasek { transform: translateZ(calc(var(--tl-rozmiar) * 0.3)); }
.warstwa-czerwien { transform: translateZ(calc(var(--tl-rozmiar) * 0.45)); }
html.js .tlo-logo-scena, html.js .tlo-logo .warstwa { will-change: transform; }

/* ------------------------------------------------------------------ otwarcie strony głównej */

.otwarcie { overflow: hidden; isolation: isolate; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 104px); }

.plamy { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.plama { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.plama-1 { width: 560px; height: 560px; right: -120px; top: -160px; background: var(--plama-1); animation: dryf-1 18s ease-in-out infinite alternate; }
.plama-2 { width: 420px; height: 420px; left: -140px; bottom: -160px; background: var(--plama-2); animation: dryf-2 22s ease-in-out infinite alternate; }

@keyframes dryf-1 { to { transform: translate(-80px, 60px) scale(1.08); } }
@keyframes dryf-2 { to { transform: translate(90px, -40px) scale(1.12); } }

/* nieskończone animacje ozdobne stoją, gdy ich sekcja jest poza ekranem (bateria telefonu) */
html.js .poza-kadrem .plama,
html.js .zacheta.poza-kadrem::before, html.js .zacheta.poza-kadrem::after { animation-play-state: paused; }

.otwarcie-uklad { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.otwarcie h1 { max-width: 16ch; }
.otwarcie h1 .wyroznik { color: var(--marka); }
:root[data-theme="dark"] .otwarcie h1 .wyroznik { color: var(--link); }
.otwarcie .przyciski { margin-top: 30px; }

.otwarcie-tresc > * { animation: wjazd 0.9s var(--ease) both; }
.otwarcie-tresc > :nth-child(1) { animation-delay: 0.05s; }
.otwarcie-tresc > :nth-child(2) { animation-delay: 0.15s; }
.otwarcie-tresc > :nth-child(3) { animation-delay: 0.27s; }
.otwarcie-tresc > :nth-child(4) { animation-delay: 0.39s; }

@keyframes wjazd { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.otwarcie-media { position: relative; animation: wjazd 1.1s var(--ease) 0.25s both; padding-bottom: 36px; }

.zdjecie { position: relative; overflow: hidden; border-radius: 24px; box-shadow: var(--cien-mocny); }

/* ------------------------------------------------------------------ film z zakładu */
/* Pętla w otwarciu gra bez dźwięku i tylko wtedy, gdy jest widoczna; przycisk pauzy jest
   wymagany przy ruchu, który startuje sam (WCAG 2.2.2). Przy „ogranicz ruch” i przy
   oszczędzaniu danych zostaje sam plakat — patrz js/strona.js. */

/* height: auto jest konieczne — bez niego liczy się atrybut height="672" z HTML
   i proporcje 4:3 są ignorowane (film zajmował wtedy cały ekran telefonu) */
.zdjecie video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tlo-2); filter: var(--foto-filtr); }

.film-sterowanie {
  position: absolute;
  right: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 21, 34, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.25s ease;
}

.film-otwarcie:hover .film-sterowanie,
.film-sterowanie:focus-visible { opacity: 1; }
.film-sterowanie:hover { background: rgba(15, 21, 34, 0.75); }
.film-ikona { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
/* stan „zatrzymany” — ikona odtwarzania */
.film-sterowanie[aria-pressed="true"] .film-ikona { width: 0; height: 0; border: 7px solid transparent; border-left: 12px solid currentColor; border-right: 0; margin-left: 4px; }
.film-sterowanie[aria-pressed="true"] { opacity: 1; }

.zdjecie img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; filter: var(--foto-filtr); transform: scale(1.04); animation: przyblizenie 2.6s var(--ease) 0.2s both; }
@keyframes przyblizenie { from { transform: scale(1.12); } to { transform: scale(1.04); } }

/* ------------------------------------------------------------------ co produkujemy */

.wyroby { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 2.4vw, 28px); }

.wyrob {
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: 24px;
  background: var(--powierzchnia);
  box-shadow: var(--cien);
}

.wyrob-foto { display: block; overflow: hidden; border-radius: var(--r); margin-bottom: 18px; }
.wyrob-foto img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--tlo-2); filter: var(--foto-filtr); transition: transform 0.7s var(--ease); }
.wyrob:hover .wyrob-foto img { transform: scale(1.03); }
.wyrob h3 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); margin-bottom: 0.4em; }
.wyrob > p { color: var(--tekst-2); }
.wyrob .lista { grid-template-columns: 1fr; margin-bottom: 0; }
/* marka GETOR przy karcie agregatów diesla (decyzja firmy 14.10.2026) */
.wyrob-marka { display: block; width: auto; height: 34px; margin-bottom: 14px; }

/* agregaty specjalne — szeroka karta pod dwiema kartami produktów, galeria zabudów */
.specjalne { margin-top: clamp(18px, 2.4vw, 28px); padding: clamp(18px, 2.4vw, 26px); border-radius: 24px; background: var(--powierzchnia); box-shadow: var(--cien); }
.specjalne-uklad { display: grid; grid-template-columns: 1fr; gap: 6px 36px; align-items: center; }
.specjalne-uklad > * { min-width: 0; }
.specjalne h3 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); margin-bottom: 0.4em; }
.specjalne p { color: var(--tekst-2); }
.specjalne .lista { grid-template-columns: 1fr; margin-bottom: 0; }
.specjalne:hover .specjalne-uklad .wyrob-foto img { transform: scale(1.03); }
.galeria { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
.galeria figure { margin: 0; min-width: 0; }
.galeria img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--tlo-2); filter: var(--foto-filtr); }
.galeria figcaption { margin-top: 8px; font-size: 0.86rem; line-height: 1.45; color: var(--tekst-2); }

/* ------------------------------------------------------------------ serwis */

.serwis-uklad { display: grid; grid-template-columns: 1fr; gap: 32px 56px; align-items: start; }
.serwis-uklad > * { min-width: 0; }
.serwis-tytul { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: 32px 0 18px; }
.serwis-tytul:first-child { margin-top: 0; }
.lista-serwis { grid-template-columns: 1fr; margin-bottom: 0; }
.serwis-zdjecia { display: grid; gap: 18px; }
.serwis-zdjecia .zdjecie { margin: 0; }
.serwis-zdjecia .zdjecie img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; animation: none; transform: none; }
.serwis-ups > p { color: var(--tekst-2); max-width: 78ch; }
.serwis-ups .lista { margin-top: 22px; }

/* ------------------------------------------------------------------ współpraca — cytat */

.wspolpraca { display: grid; grid-template-columns: 1fr; gap: 32px 72px; align-items: start; }
.rok { display: inline-flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.rok b { font-size: clamp(3rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--marka); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .rok b { color: var(--link); }
.rok span { color: var(--tekst-3); font-size: 0.9rem; max-width: 16ch; line-height: 1.35; }

.cytat { position: relative; margin: 0; padding: clamp(26px, 4vw, 44px); border-radius: 24px; background: var(--powierzchnia); box-shadow: var(--cien); }
.cytat::before { content: "\201D"; position: absolute; right: 26px; top: -8px; font-size: 8rem; line-height: 1; font-weight: 700; color: var(--marka-jasna); pointer-events: none; }
.cytat p { position: relative; color: var(--tekst-2); font-size: 1.02rem; }
.cytat p:first-child { color: var(--tekst); font-size: clamp(1.1rem, 1.7vw, 1.28rem); font-weight: 500; line-height: 1.55; }
.cytat footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--linia); font-size: 0.88rem; color: var(--tekst-3); }
.cytat footer img { width: 132px; height: auto; }
/* tekst EPS System o współpracy (od 18.11.2026) — ta sama karta, ale bez cudzysłowu, bo to nie cytat partnera */
.cytat-wlasny::before { content: none; }

/* ------------------------------------------------------------------ zakład */

.zaklad { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.zaklad .zdjecie img { aspect-ratio: 4 / 3; animation: none; transform: none; transition: transform 1.2s var(--ease); }
.zaklad .zdjecie:hover img { transform: scale(1.03); }

.mini-liczby { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 12px; margin: 26px 0; }
.mini-liczby div { padding: 16px; border-radius: var(--r-maly); background: var(--powierzchnia); border: 1px solid var(--linia); }
.mini-liczby b { display: block; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; color: var(--tekst); font-variant-numeric: tabular-nums; line-height: 1.15; }
.mini-liczby div > span { font-size: 0.8rem; color: var(--tekst-3); line-height: 1.35; display: block; margin-top: 4px; }

.lista { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px 24px; }
.lista li { display: flex; gap: 12px; align-items: flex-start; color: var(--tekst-2); font-size: 0.97rem; }
.lista li::before { content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--marka-jasna) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326487e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

.certyfikat { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-maly); background: var(--powierzchnia); border: 1px solid var(--linia); }
.certyfikat-znak { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--marka-jasna); color: var(--marka); font-size: 0.66rem; font-weight: 800; line-height: 1.05; text-align: center; }
:root[data-theme="dark"] .certyfikat-znak { color: var(--link); }
.certyfikat p { margin: 0; font-size: 0.88rem; color: var(--tekst-2); }
.certyfikat strong { color: var(--tekst); }
.certyfikat + .certyfikat { margin-top: 10px; }

/* ------------------------------------------------------------------ droga urządzenia przez zakład */

.proces-ramka { margin-top: clamp(40px, 5vw, 64px); }
.proces-tytul { font-size: 1rem; font-weight: 650; color: var(--tekst); margin-bottom: 22px; }
.proces { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
.krok { position: relative; padding-top: 48px; }

.krok-nr {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--powierzchnia);
  border: 2px solid var(--marka-jasna);
  color: var(--marka);
  font-size: 0.88rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

:root[data-theme="dark"] .krok-nr { color: var(--link); border-color: var(--linia-mocna); }
.krok b { display: block; font-size: 0.97rem; line-height: 1.3; }
.krok span { display: block; margin-top: 3px; font-size: 0.86rem; color: var(--tekst-2); line-height: 1.4; }

/* ------------------------------------------------------------------ kalendarium */

.kalendarium { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(20px, 2.6vw, 32px); }
.kalendarium::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 114px; width: 2px; background: linear-gradient(var(--marka-jasna), var(--linia), var(--marka-jasna)); }
.kalendarium li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 0 36px; }  /* 96 px mieści „2007–2013” w jednym wierszu */
.kalendarium li::before { content: ""; position: absolute; left: 109px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--akcent); box-shadow: 0 0 0 4px var(--akcent-jasny); }
.kalendarium .rok-et { text-align: right; font-weight: 700; font-size: 1.02rem; line-height: 1.5; color: var(--marka); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .kalendarium .rok-et { color: var(--link); }
.kalendarium h3 { font-size: 1.02rem; margin: 0 0 4px; }
.kalendarium p { margin: 0; font-size: 0.95rem; color: var(--tekst-2); max-width: 64ch; }

/* udział dofinansowania przy projekcie */
.udzial { max-width: 460px; margin-top: 20px; }

/* ------------------------------------------------------------------ projekt unijny (strona główna) */

.projekt-ue { display: grid; grid-template-columns: 1fr; overflow: hidden; border-radius: 24px; background: var(--powierzchnia); box-shadow: var(--cien); }
.projekt-ue-tresc { padding: clamp(26px, 4vw, 48px); }
.projekt-ue h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; }
.projekt-ue p { color: var(--tekst-2); }
.projekt-ue-dane { padding: clamp(26px, 4vw, 48px); background: var(--tlo-2); display: grid; gap: 22px; align-content: center; }
.kwota b { display: block; font-size: clamp(1.4rem, 2.3vw, 1.85rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kwota span { font-size: 0.86rem; color: var(--tekst-2); }

.udzial-pasek { position: relative; height: 10px; border-radius: 999px; background: var(--linia); overflow: hidden; }
.udzial-pasek span { position: absolute; inset: 0 auto 0 0; width: var(--udzial); border-radius: 999px; background: linear-gradient(90deg, var(--marka), var(--akcent)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) 0.3s; }
html:not(.js) .udzial-pasek span, .widoczne .udzial-pasek span { transform: scaleX(1); }
.udzial-opis { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 0.84rem; color: var(--tekst-3); }
.udzial-opis b { color: var(--tekst); }
/* hasztagi kampanii Funduszy Europejskich przy opisie projektu (wymóg instytucji, 13.10.2026) */
.hasztagi { margin: 14px 0 0; font-weight: 600; letter-spacing: 0.01em; }
.projekt-ue-tresc .hasztagi { margin-bottom: 18px; }

.pasek-fe { border-radius: var(--r); background: #fff; padding: 18px 20px; margin-top: 18px; border: 1px solid var(--linia); }
.pasek-fe img { width: 100%; max-width: 760px; margin-inline: auto; }

/* ------------------------------------------------------------------ zachęta — przejście do eps.com.pl */

.zacheta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 40px;
  align-items: center;
  padding: clamp(30px, 5vw, 60px);
  border-radius: 28px;
  background: linear-gradient(135deg, #1d3a6a 0%, #26487e 55%, #2f5a9c 100%);
  color: #fff;
}

.zacheta::before, .zacheta::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.zacheta::before { width: 420px; height: 420px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%); animation: dryf-1 16s ease-in-out infinite alternate; }
.zacheta::after { width: 300px; height: 300px; left: -80px; bottom: -160px; background: radial-gradient(circle, rgba(193, 32, 49, 0.35), transparent 70%); animation: dryf-2 20s ease-in-out infinite alternate; }
.zacheta h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-bottom: 0.4em; }
.zacheta p { color: #d6e1f3; margin: 0; max-width: 60ch; }
.zacheta p a { color: #fff; text-decoration: underline; text-underline-offset: 0.18em; }
.zacheta p a:hover { color: #ffc2c9; }
.zacheta .male { font-size: 0.86rem; color: #c9d8ef; margin-top: 12px; }
.zacheta .przycisk { justify-self: start; }

/* ------------------------------------------------------------------ nagłówek podstron */

.naglowek-strony { overflow: hidden; isolation: isolate; padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); }
.naglowek-strony h1 { max-width: 20ch; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.naglowek-strony .ramka > * { animation: wjazd 0.9s var(--ease) both; }
.naglowek-strony .ramka > :nth-child(2) { animation-delay: 0.08s; }
.naglowek-strony .ramka > :nth-child(3) { animation-delay: 0.16s; }
.naglowek-strony .ramka > :nth-child(4) { animation-delay: 0.24s; }

/* ------------------------------------------------------------------ fundusze */

.spis { display: grid; grid-template-columns: 1fr; gap: 12px; }
.spis a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-maly); background: var(--powierzchnia); border: 1px solid var(--linia); color: var(--tekst); font-size: 0.93rem; font-weight: 550; line-height: 1.35; transition: border-color 0.25s ease, transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.spis a:hover { border-color: var(--marka); transform: translateY(-3px); box-shadow: var(--cien); color: var(--tekst); }
.spis small { display: block; color: var(--tekst-3); font-weight: 500; font-size: 0.78rem; margin-bottom: 4px; }
.spis .strzalka { color: var(--marka); transition: transform 0.3s var(--ease); }
.spis a:hover .strzalka { transform: translateY(3px); }

.projekt { display: grid; grid-template-columns: 1fr; gap: 18px 48px; padding: clamp(26px, 4vw, 44px); margin-bottom: 18px; border-radius: 24px; background: var(--powierzchnia); box-shadow: var(--cien); }
.projekt-bok { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.projekt-nr { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--marka-jasna); color: var(--marka); font-weight: 700; font-size: 1.05rem; }
:root[data-theme="dark"] .projekt-nr { color: var(--link); }
.okres { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--tlo-2); font-size: 0.8rem; font-weight: 600; color: var(--tekst-2); }
.projekt h2 { font-size: clamp(1.12rem, 1.7vw, 1.35rem); max-width: 60ch; letter-spacing: -0.015em; }
.projekt .oryginal { font-size: 0.86rem; color: var(--tekst-3); margin-top: -0.4em; }
.projekt p { color: var(--tekst-2); }
.projekt p strong { color: var(--tekst); }

.dane-projektu { display: grid; margin: 18px 0 0; padding: 0; font-size: 0.95rem; }
.dane-projektu div { display: grid; grid-template-columns: 1fr; gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--linia); }
.dane-projektu div:last-child { border-bottom: 0; }
.dane-projektu dt { color: var(--tekst-3); margin: 0; font-size: 0.86rem; }
.dane-projektu dd { margin: 0; font-weight: 550; }
.dane-projektu .glowna dd { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--tekst); }

.pliki { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pliki a { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-maly); background: var(--powierzchnia); border: 1px solid var(--linia); color: var(--tekst); font-weight: 550; line-height: 1.4; transition: border-color 0.25s ease, transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pliki a:hover { border-color: var(--marka); transform: translateY(-2px); box-shadow: var(--cien); color: var(--tekst); }
.pliki .ikona-pliku { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--akcent-jasny); color: var(--akcent); flex-shrink: 0; }
.pliki svg { width: 22px; height: 22px; }
.pliki small { display: block; color: var(--tekst-3); font-weight: 500; font-size: 0.82rem; margin-top: 2px; }

/* strona „Do pobrania” — dokumenty pogrupowane według rodzaju, najnowsza wersja na górze grupy */
.dokumenty-grupy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 36px 40px; align-items: start; }
.dokumenty-grupa h2 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin: 0 0 14px; }
.pliki .najnowsza { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--marka-jasna); color: var(--marka); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.02em; vertical-align: 2px; white-space: nowrap; }
:root[data-theme="dark"] .pliki .najnowsza { color: #fff; }

/* ------------------------------------------------------------------ kontakt */

.kontakt-uklad { display: grid; grid-template-columns: 1fr; gap: 18px; }
.wizytowka { padding: clamp(24px, 3vw, 34px); border-radius: 24px; background: var(--powierzchnia); box-shadow: var(--cien); }
.wizytowka h2 { display: flex; gap: 12px; align-items: center; font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 1em; }
.wizytowka h2 .ikona { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--marka-jasna); color: var(--marka); }
:root[data-theme="dark"] .wizytowka h2 .ikona { color: var(--link); }
.wizytowka h2 svg { width: 20px; height: 20px; }
.wizytowka p:last-child { margin-bottom: 0; }
.adres-duzy { font-size: clamp(1.3rem, 2.1vw, 1.55rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; color: var(--tekst); }
.rejestr { font-size: 0.9rem; color: var(--tekst-2); }
.dane-lista { margin: 0 0 1em; padding: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 0.97rem; }
.dane-lista dt { color: var(--tekst-3); }
.dane-lista dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.wizytowka-eps { background: linear-gradient(160deg, var(--powierzchnia) 40%, var(--marka-jasna)); }
.wizytowka-eps .eps-logo { width: min(260px, 80%); margin-bottom: 18px; }

/* ------------------------------------------------------------------ treści prawne */

.dokument { max-width: 78ch; padding: clamp(24px, 4vw, 48px); border-radius: 24px; background: var(--powierzchnia); box-shadow: var(--cien); }
.dokument h2 { font-size: 1.25rem; margin-top: 2em; }
.dokument h2:first-child { margin-top: 0; }
.dokument p, .dokument li { color: var(--tekst-2); font-size: 0.98rem; }
.dokument ul { padding-left: 1.2em; }
.dokument li { margin-bottom: 0.35em; }
.dokument li::marker { color: var(--marka); }
.dokument a { overflow-wrap: anywhere; }

.uwaga { max-width: 78ch; margin: 0 0 18px; padding: 16px 20px; border-radius: var(--r-maly); background: var(--marka-jasna); color: var(--tekst-2); font-size: 0.95rem; }
.uwaga strong { color: var(--tekst); }

/* ------------------------------------------------------------------ stopka */

footer.stopka { background: #0f1c33; color: #b7c3d8; font-size: 0.93rem; padding-block: clamp(56px, 7vw, 88px) 28px; }
:root[data-theme="dark"] footer.stopka { background: #0a101c; }
footer.stopka a { color: #fff; }
footer.stopka a:hover { color: #ffc2c9; }
footer.stopka .przycisk-jasny { color: #1a2f55; }
footer.stopka .przycisk-jasny:hover { color: var(--akcent); }

.stopka-eps { display: grid; grid-template-columns: 1fr; gap: 22px 40px; align-items: center; padding: clamp(24px, 3.5vw, 36px); margin-bottom: clamp(40px, 5vw, 56px); border-radius: 22px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.stopka-eps img { width: 220px; height: auto; }
.stopka-eps p { margin: 0; color: #c7d2e5; max-width: 56ch; }
.stopka-eps p a { text-decoration: underline; text-underline-offset: 0.18em; }
.stopka-eps .przycisk { justify-self: start; }

footer.stopka h2 { color: #fff; font-size: 0.86rem; letter-spacing: 0.01em; margin-bottom: 1em; font-weight: 650; }
footer.stopka .kolumny { display: grid; grid-template-columns: 1fr; gap: 30px; }
footer.stopka ul { list-style: none; margin: 0; padding: 0; }
footer.stopka li { margin-bottom: 8px; }
.stopka .znak { color: #fff; margin-bottom: 18px; }
.stopka .znak img { height: 60px; }
.stopka .znak-tekst small { color: #8b99b3; }

.nota { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 0.8rem; color: #7f8ca5; }

.do-gory {
  position: fixed;
  right: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 28px);
  z-index: 60;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--powierzchnia);
  color: var(--tekst);
  box-shadow: var(--cien-mocny);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s var(--ease), color 0.2s ease;
}

/* przycisk leży w stopce (punkt orientacyjny), ale nie może przejąć jej białych linków */
footer.stopka .do-gory { color: var(--tekst); }
footer.stopka .do-gory:hover { color: var(--akcent); }
.do-gory.widoczny { opacity: 1; transform: none; pointer-events: auto; }
.do-gory:hover { color: var(--akcent); transform: translateY(-3px); }

/* ------------------------------------------------------------------ strona błędu */

.blad { min-height: 70vh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.blad-kod { font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; margin: 0 0 18px; background: linear-gradient(135deg, var(--marka), var(--akcent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blad .dwujezyczny { display: grid; grid-template-columns: 1fr; gap: 28px 56px; margin-top: 18px; }
.blad .dwujezyczny p { color: var(--tekst-2); }
.blad h1, .blad h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

/* ------------------------------------------------------------------ odsłanianie przy przewijaniu */
/* Bez JS nic nie jest ukryte — ukrywamy tylko przy klasie „js” na <html>. */

html.js .wejscie { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .wejscie.widoczne { opacity: 1; transform: none; }

html.js [data-kaskada] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.45s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s, 0s;
}

html.js [data-kaskada].widoczne > * { opacity: 1; transform: none; }
html.js [data-kaskada].gotowe > * { transition-delay: 0s; }
html.js [data-kaskada].widoczne > .spis-el:hover { transform: translateY(-3px); }

html.js .odslona img { transform: scale(1.1); opacity: 0; transition: transform 1.6s var(--ease), opacity 1s ease; }
html.js .odslona.widoczne img { transform: scale(1); opacity: 1; }

/* ------------------------------------------------------------------ ograniczony ruch */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .wejscie, html.js [data-kaskada] > *, html.js .odslona img { opacity: 1 !important; transform: none !important; }
  .udzial-pasek span { transform: none !important; }
}

/* ------------------------------------------------------------------ ekrany dotykowe */
/* Na telefonie „najechanie” zostaje po stuknięciu (także po powrocie przyciskiem Wstecz) —
   bez przesunięć i obrotów, które wyglądałyby na zawieszone. */

@media (hover: none) {
  .motyw:hover { transform: none; background: var(--tlo-2); }
  .znak:hover img, .przycisk:hover, .wyrob:hover .wyrob-foto img,
  .spis a:hover, html.js [data-kaskada].widoczne > .spis-el:hover, .pliki a:hover, .do-gory:hover,
  .zaklad .zdjecie:hover img, .przycisk:hover .strzalka, .link-strzalka:hover .strzalka,
  .pasek-info a:hover .strzalka,
  nav.menu a.zewn:hover .strzalka, .spis a:hover .strzalka { transform: none; }
}

/* ------------------------------------------------------------------ telefon */

@media (max-width: 859px) {
  /* krótsze etykiety menu, cele dotyku ok. 40 px wysokości; do 639 px nagłówek ma dwa wiersze (niżej) */
  .glowka .ramka { gap: 12px 16px; }
  .znak img { height: 42px; }
  header.glowka.przewiniete .znak img { height: 38px; }
  .znak-tekst b { font-size: 0.98rem; }
  .znak-tekst small { display: none; }
  .motyw { width: 40px; height: 40px; }
  .jezyk a { padding: 9px 11px; }
  nav.menu ul { gap: 2px; flex-wrap: nowrap; }
  nav.menu a { font-size: 0.86rem; padding: 9px 10px; }
  nav.menu a.zewn { margin-left: 4px; padding-inline: 12px; }
  nav.menu .dluga { display: none; }
  nav.menu .krotka { display: inline; }
  .pasek-info .pasek-lewo { display: none; }
  .pasek-info .ramka { justify-content: center; }
  .pasek-info a { padding-block: 9px; margin-block: -9px; }  /* większe pole dotyku, ta sama wysokość paska */
  /* film w otwarciu czeka na dotknięcie — przycisk odtwarzania na środku kadru */
  .film-sterowanie[aria-pressed="true"] { width: 58px; height: 58px; right: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  :root { --fala: 16px; }
  .kalendarium::before { left: 5px; }
  .kalendarium li { grid-template-columns: 1fr; gap: 2px; padding-left: 30px; }
  .kalendarium li::before { left: 0; top: 8px; }
  .kalendarium .rok-et { text-align: left; font-size: 0.9rem; }
  .tlo-logo { --tl-rozmiar: 88vw; }
  html.js .tlo-logo.gotowe { opacity: 0.7; }  /* na wąskim ekranie logo leży pod tekstem — delikatniej */
  footer.stopka li { margin-bottom: 0; }
  footer.stopka li a { display: inline-block; padding-block: 7px; }
}

/* wąskie okno laptopa: pełne etykiety menu jeszcze się nie mieszczą w jednym wierszu z przełącznikami.
   Od 18.11.2026 (pozycja „Do pobrania”) pełne etykiety mieszczą się dopiero od 1200 px. */
@media (min-width: 860px) and (max-width: 1199px) {
  nav.menu .dluga { display: none; }
  nav.menu .krotka { display: inline; }
  nav.menu ul { gap: 2px 4px; }
  nav.menu a { padding-inline: 10px; font-size: 0.9rem; }
  nav.menu a.zewn { padding-inline: 13px; }
}

/* telefon i mały tablet: logo i przełączniki w pierwszym wierszu, menu na całą szerokość w drugim */
@media (max-width: 767px) {
  html { scroll-padding-top: 124px; }  /* przyklejony nagłówek ma tu dwa wiersze */
  .glowka .ramka { flex-wrap: wrap; gap: 10px; padding-block: 10px 8px; }
  header.glowka.przewiniete .ramka { padding-block: 8px 6px; }
  .znak { flex: 1 1 auto; }
  .narzedzia { order: 2; }
  nav.menu { order: 3; width: 100%; margin-left: 0; }
  nav.menu ul { justify-content: space-between; }
  nav.menu a.zewn { margin-left: 0; }
}

/* tablet i wąski laptop (menu w jednym wierszu z logo): bez „Start” — na stronę główną prowadzi logo */
@media (min-width: 768px) and (max-width: 959px) {
  nav.menu li.poz-start { display: none; }
}

/* telefon: bez „Start” (na stronę główną prowadzi logo), „Kup” (zakup jest w pasku nad nagłówkiem)
   i „Do pobrania” (link jest w stopce) — inaczej menu nie mieści się w jednym wierszu */
@media (max-width: 639px) {
  nav.menu li.poz-start, nav.menu li.poz-kup, nav.menu li.poz-pliki { display: none; }
}

/* menu musi się zmieścić bez przewijania w poziomie: 414 → 320 px */
@media (max-width: 419px) {
  nav.menu a { font-size: 0.84rem; padding-inline: 9px; }
  nav.menu a.zewn { padding-inline: 11px; }
}

@media (max-width: 389px) {
  nav.menu a { padding-inline: 8px; }
  nav.menu a.zewn { padding-inline: 10px; }
  nav.menu a.zewn .strzalka { display: none; }
}

/* najwęższe telefony: drobniejsze pozycje, nadal jeden wiersz */
@media (max-width: 359px) {
  nav.menu a { font-size: 0.8rem; padding-inline: 5px; }
}

@media (max-width: 480px) {
  /* długie napisy na przyciskach — pełna szerokość zamiast łamania w wąskiej pigułce */
  .otwarcie .przycisk, .eps-dol .przycisk { width: 100%; justify-content: center; text-align: center; }
}

@media (max-width: 639px) {
  footer.stopka .kolumny { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  footer.stopka .kolumny > :first-child { grid-column: 1 / -1; }
}

/* telefon w poziomie (niskie okno): film w otwarciu i zdjęcia zajmowały półtora ekranu */
@media (orientation: landscape) and (max-height: 560px) {
  .zdjecie img, .zdjecie video { max-height: 72vh; }
  .otwarcie { padding-block: clamp(28px, 5vw, 48px); }
}

/* ------------------------------------------------------------------ szersze ekrany */

@media (min-width: 640px) {
  .galeria { grid-template-columns: repeat(3, 1fr); }
  .proces { grid-template-columns: repeat(3, 1fr); }
  .lista { grid-template-columns: 1fr 1fr; }
  .spis { grid-template-columns: repeat(2, 1fr); }
  .dane-projektu div { grid-template-columns: minmax(13rem, 0.9fr) 1.1fr; align-items: baseline; }
  footer.stopka .kolumny { grid-template-columns: repeat(2, 1fr); }
  .blad .dwujezyczny { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .zacheta { grid-template-columns: 1fr auto; }
  .zacheta .przycisk { justify-self: end; }
  .projekt-ue { grid-template-columns: 1.4fr 1fr; }
  .stopka-eps { grid-template-columns: auto 1fr auto; }
  .stopka-eps .przycisk { justify-self: end; }
  .kontakt-uklad { grid-template-columns: 1.15fr 1fr; }
  .kontakt-uklad .wizytowka-eps { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
}

@media (min-width: 1000px) {
  .wyroby { grid-template-columns: 1fr 1fr; }
  .serwis-uklad { grid-template-columns: 1.25fr 0.75fr; }
  .serwis-zdjecia { position: sticky; top: 120px; }
  .specjalne-uklad { grid-template-columns: 1fr 1fr; }
  .specjalne-uklad .wyrob-foto { margin-bottom: 0; }
  .proces { grid-template-columns: repeat(5, 1fr); }
  /* linia łącząca kroki — tylko gdy wszystkie mieszczą się w jednym wierszu */
  .proces::before { content: ""; position: absolute; left: 17px; right: 17px; top: 17px; height: 2px; background: linear-gradient(90deg, var(--marka-jasna), var(--linia-mocna), var(--marka-jasna)); }
  .naglowek-sekcji { grid-template-columns: 1fr 1fr; }
  .otwarcie-uklad { grid-template-columns: 1.05fr 1fr; }
  .wspolpraca { grid-template-columns: 0.8fr 1.2fr; }
  .zaklad { grid-template-columns: 1fr 1fr; }
  .projekt { grid-template-columns: 180px 1fr; }
  .spis { grid-template-columns: repeat(4, 1fr); }
  footer.stopka .kolumny { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media print {
  header.glowka, .pasek-info, .motyw, .jezyk, .do-gory, .plamy, .tlo-logo { display: none !important; }
  body { font-size: 11pt; background: #fff; color: #000; }
  html.js .wejscie, html.js [data-kaskada] > *, html.js .odslona img { opacity: 1 !important; transform: none !important; }
}
