/* =========================================================
   akumulatory.zs - arkusz stylow
   Czysty CSS, bez frameworkow i zewnetrznych zaleznosci.
   Fonty systemowe (brak Google Fonts = brak transferu danych, RODO).
   ========================================================= */

/* ---------- 1. Tokeny ---------- */
:root {
  --brand:        #d81f26;
  --brand-dark:   #a6141a;
  --brand-soft:   #fdecec;
  --accent:       #ffc400;
  /* Czerwien do TEKSTU. W trybie ciemnym markowa czerwien na ciemnym
     tle daje tylko 3.65:1, wiec linki dostaja jasniejszy odcien. */
  --brand-text:   #d81f26;
  --brand-text-hv:#a6141a;

  --ink:          #0e141c;
  --ink-2:        #18222f;

  --bg:           #ffffff;
  --surface:      #f4f7fa;
  --surface-2:    #eaeff5;
  --line:         #dfe6ee;

  --text:         #141c25;
  --muted:        #4a5867;   /* ciemniejszy niz wczesniej - kontrast 7:1 na bieli */
  --on-dark:      #f4f7fa;
  --on-dark-mute: #c2ced9;   /* jasniejszy - czytelniejszy na ciemnym tle */

  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    22px;

  --shadow-sm:  0 1px 2px rgba(14,20,28,.06), 0 2px 8px rgba(14,20,28,.05);
  --shadow:     0 2px 6px rgba(14,20,28,.07), 0 12px 28px rgba(14,20,28,.08);
  --shadow-lg:  0 6px 16px rgba(14,20,28,.10), 0 24px 56px rgba(14,20,28,.14);

  --wrap:       1360px;
  --gutter:     clamp(20px, 3.2vw, 44px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --t-fast: .16s ease;
  --t:      .26s cubic-bezier(.4,0,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0e141c;
    --surface:   #151e29;
    --surface-2: #1c2734;
    --line:      #2a3644;
    --text:      #e6edf4;
    --muted:     #a0b0c0;
    --brand-soft:#241417;
    --brand-text:#ff7b80;
    --brand-text-hv:#ffa8ac;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 2px 6px rgba(0,0,0,.45), 0 12px 28px rgba(0,0,0,.35);
    --shadow-lg: 0 6px 16px rgba(0,0,0,.5), 0 24px 56px rgba(0,0,0,.45);
  }

  /* Ikony w kafelkach sa czerwonymi grafikami na przezroczystym tle - na ciemnym
     kafelku traca kontrast, wiec w trybie ciemnym kafelek zostaje jasny. */
  :root:not([data-theme="light"]) .card__icon,
  :root:not([data-theme="light"]) .spec__icon,
  :root:not([data-theme="light"]) .contact-card__icon { background: #f6e7e8; }
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;      /* 17px - wieksza baza, latwiej czytac */
  line-height: 1.72;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-text-hv); }
button { font: inherit; color: inherit; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.028em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.95vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 700; }

p  { color: var(--muted); }
strong { color: var(--text); font-weight: 700; }

/* Na ciemnym tle --text jest prawie czarne, wiec pogrubienia znikaly
   (godziny w stopce mialy kontrast 1.08:1). Tam wymuszamy biel. */
.footer strong, .section--dark strong, .cta strong,
.hero strong, .pagehead strong, .statstrip strong { color: #fff; }

/* Dlugosc wiersza. W kolumnie obok zdjecia trzymamy krotko; samodzielny
   blok tekstu moze byc szerszy, bo inaczej marnuje polowe kontenera. */
.split__body p, .split__body li { max-width: 62ch; }
.prose p, .head p { max-width: 82ch; }
.head--center p { max-width: 68ch; }
.list--cols li, .grid li { max-width: none; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.25rem, 2rem + 5vw, 6rem); }
.section--tight  { padding-block: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); }
.section--surface{ background: var(--surface); }
.section--dark   { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--on-dark-mute); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .8rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- 4. Naglowek / nawigacja ---------- */
.topbar {
  background: var(--ink-2);
  color: var(--on-dark-mute);
  font-size: .93rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__inner { display: flex; flex-wrap: wrap; gap: .35rem 1.65rem; align-items: center; padding-block: .5rem; }
.topbar a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
/* Ikony w pasku: wczesniej dziedziczyly szaroblekitny kolor tekstu paska */
.topbar__item svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.topbar__spacer { margin-left: auto; }
@media (max-width: 720px) { .topbar__hide-sm { display: none; } }

.header {
  position: sticky; top: 0; z-index: 90;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner { display: flex; align-items: center; gap: 1rem; min-height: 104px; }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 74px; width: auto; }
@media (max-width: 1040px) { .header__inner { min-height: 92px; } .logo img { height: 64px; } }
@media (max-width: 480px)  { .header__inner { min-height: 80px; } .logo img { height: 54px; } }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; margin: 0; }
.nav__link {
  display: block; padding: .6rem .8rem; border-radius: var(--radius-sm);
  color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .99rem;
  white-space: nowrap; transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav__link[aria-current="page"] { color: #fff; background: rgba(216,31,38,.9); }
.nav__link--ext::after {
  content: ""; display: inline-block; width: .62em; height: .62em; margin-left: .4em;
  border: 1.6px solid currentColor; border-left: 0; border-bottom: 0;
  transform: rotate(45deg) translateY(.1em); opacity: .65;
}

/* rozwijane menu Oferta */
.nav__item--has-sub { position: relative; }
.nav__toggle {
  display: flex; align-items: center; gap: .32rem;
  background: none; border: 0; cursor: pointer;
  padding: .6rem .78rem; border-radius: var(--radius-sm);
  color: var(--on-dark); font-weight: 600; font-size: .99rem;
  transition: background var(--t-fast);
}
.nav__toggle:hover { background: rgba(255,255,255,.09); color: #fff; }
.nav__toggle::after {
  content: ""; width: .5em; height: .5em; flex: none;
  border: 1.7px solid currentColor; border-top: 0; border-left: 0;
  transform: rotate(45deg) translateY(-.15em);
  transition: transform var(--t-fast);
}
.nav__toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(.05em); }
.nav__toggle[aria-expanded="true"] { background: rgba(255,255,255,.09); color: #fff; }

.nav__sub {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 95;
  min-width: 290px; padding: .5rem; margin: 0; list-style: none;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
}
.nav__toggle[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a {
  display: block; padding: .65rem .8rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .99rem;
}
.nav__sub a:hover { background: var(--surface); color: var(--brand-text); }
.nav__sub a[aria-current="page"] { color: var(--brand-text); background: var(--brand-soft); }
.nav__sub small { display: block; font-weight: 500; font-size: .86rem; color: var(--muted); margin-top: .1rem; }

.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: rgba(255,255,255,.08); border: 0; border-radius: var(--radius-sm);
  cursor: pointer; color: #fff;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; position: absolute;
  width: 21px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.burger span { position: relative; margin: 0 auto; }
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1040px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw);
    background: var(--ink); padding: 84px 1.1rem 2rem;
    overflow-y: auto; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--t);
    visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__link, .nav__toggle { width: 100%; padding: .82rem .9rem; font-size: 1rem; }
  .nav__toggle { justify-content: space-between; }
  .nav__item--has-sub { position: static; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1);
    margin: .2rem 0 .4rem; display: none;
  }
  .nav__toggle[aria-expanded="true"] + .nav__sub { display: block; }
  .nav__sub a { color: var(--on-dark); }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { background: rgba(255,255,255,.08); color: #fff; }
  .nav__sub small { color: var(--on-dark-mute); }
  .backdrop {
    position: fixed; inset: 0; z-index: 85;
    background: rgba(8,12,17,.55);
    opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
  }
  .backdrop.is-open { opacity: 1; visibility: visible; }
}

/* ---------- 5. Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .975rem; text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(216,31,38,.32); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; box-shadow: 0 10px 26px rgba(216,31,38,.4); }
.btn--ghost { border-color: rgba(255,255,255,.38); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.btn--outline { border-color: var(--line); color: var(--text); background: var(--bg); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-text); }
.btn--lg { padding: 1rem 1.85rem; font-size: 1.04rem; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: #0b1119;
  color: var(--on-dark);
  padding-block: clamp(4rem, 2.5rem + 8vw, 8.5rem);
}
/* Zdjecie tla wstawia generator jako <img class="hero__bg"> - dzieki temu
   przegladarka moze wybrac wariant z srcset i wczytac go priorytetowo. */
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%;
}
/* Przyciemnienie musi byc mocne tam, gdzie lezy tekst - jasny akumulator
   na zdjeciu potrafi wejsc pod akapit i zabic czytelnosc. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(7,11,17,.96) 0%,  rgba(7,11,17,.93) 38%,
                            rgba(7,11,17,.62) 56%, rgba(7,11,17,.18) 80%,
                            rgba(7,11,17,.06) 100%),
    linear-gradient(0deg, rgba(7,11,17,.5), transparent 42%);
}
@media (max-width: 1100px) {
  .hero__bg { object-position: 78% 50%; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(7,11,17,.9) 0%, rgba(7,11,17,.93) 60%, rgba(7,11,17,.96) 100%);
  }
}
/* UWAGA: .hero__grid jest tez .wrap, a .wrap ma margin-inline:auto.
   Ustawienie tu max-width wysrodkowalo caly blok tekstu w oknie zamiast
   przykleic go do lewej krawedzi kontenera. Zamiast tego zwezamy
   kolumne siatki i dosuwamy ja do poczatku. */
.hero__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 48rem); justify-content: start; }
}

.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { font-size: clamp(1.02rem, .97rem + .35vw, 1.2rem); color: #cfdae6; margin-top: 1.1rem; max-width: 56ch; }

/* Jedna wersja na calej stronie: pelna czerwien + bialy tekst.
   Wczesniej byl ciemnoczerwony napis na jasnorozowym (a w trybie ciemnym
   na prawie czarnym) tle - nieczytelny. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1.15rem; border-radius: 999px;
  background: var(--brand); border: 1px solid var(--brand);
  font-size: .855rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(255,196,0,.3);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.hero__facts { display: grid; gap: .7rem; margin-top: 2.4rem; }
@media (min-width: 560px) { .hero__facts { grid-template-columns: repeat(3, 1fr); } }
.fact {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.11);
}
.fact svg { width: 19px; height: 19px; flex: none; color: var(--accent); margin-top: .18rem; }
.fact b { display: block; color: #fff; font-size: 1.01rem; line-height: 1.35; }
.fact span { font-size: .91rem; color: var(--on-dark-mute); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.hero__badge {
  position: absolute; left: -12px; bottom: -18px;
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.15rem; border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero__badge svg { width: 30px; height: 30px; color: var(--brand); flex: none; }
.hero__badge b { display: block; font-size: 1.04rem; line-height: 1.2; }
.hero__badge span { font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) {
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -14px; white-space: nowrap; }
  .hero__media { margin-bottom: 1.5rem; }
}

/* ---------- 7. Naglowki sekcji ---------- */
.head { max-width: 64ch; margin-bottom: clamp(2.25rem, 1.5rem + 2.2vw, 3.25rem); }
.head--center { margin-inline: auto; text-align: center; }
.head--center p { margin-inline: auto; }
.head p { margin-top: 1rem; font-size: 1.1rem; }

/* Krotka czerwona kreska nad naglowkiem sekcji - spina strone wizualnie */
.head--rule h2::before {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 2px;
  background: var(--brand); margin-bottom: 1.1rem;
}
.head--rule.head--center h2::before { margin-inline: auto; }

/* ---------- 7b. Pasek faktow ---------- */
.statstrip {
  display: grid; gap: 1px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 640px) { .statstrip { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 380px) and (max-width: 639px) { .statstrip { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 1.5rem 1.35rem; background: var(--ink-2); }
.stat b {
  display: block; font-size: clamp(1.65rem, 1.35rem + 1.1vw, 2.3rem);
  font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.035em;
}
.stat b em { font-style: normal; color: var(--brand); }
.stat span { display: block; margin-top: .5rem; font-size: .99rem; color: var(--on-dark-mute); line-height: 1.45; }

/* ---------- 8. Karty ---------- */
/* Wszystkie siatki maja STALA liczbe kolumn. Wczesniej byl tu auto-fit,
   ktory przy szerokim kontenerze upychal wiecej kolumn niz zakladala nazwa
   klasy - stad 6 kafelkow lamalo sie na 4+2, a 5 na 3+2. */
.grid { display: grid; gap: 1.35rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }

@media (max-width: 1240px) { .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid--2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px)  {
  .grid--3, .grid--4, .grid--5 { grid-template-columns: minmax(0, 1fr); }
}

/* Gdy w ostatnim rzedzie zostaje JEDEN kafelek, rozciagamy go na cala
   szerokosc - inaczej wisi samotnie z pusta dziura obok.
   Dwa kafelki w ostatnim rzedzie wygladaja naturalnie i zostawiamy je. */
@media (min-width: 641px) and (max-width: 1000px) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 1100px) {
  .grid--4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 820px) {
  .grid--5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.card {
  display: flex; flex-direction: column;
  padding: 1.7rem; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(216,31,38,.35); }
.card__icon {
  display: grid; place-items: center;
  width: 66px; height: 66px; margin-bottom: 1.25rem;
  border-radius: 18px; background: var(--brand-soft);
  color: var(--brand);
}
.card__icon img { width: 36px; height: 36px; object-fit: contain; }
.card__icon svg { width: 32px; height: 32px; stroke-width: 1.9; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: 1.02rem; }
.card__link {
  margin-top: auto; padding-top: 1.15rem;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
}
.card__link::after {
  content: ""; width: .48em; height: .48em;
  border: 2px solid currentColor; border-left: 0; border-bottom: 0;
  transform: rotate(45deg); transition: transform var(--t-fast);
}
.card__link:hover::after { transform: rotate(45deg) translate(2px,-2px); }

/* karta kategorii ze zdjeciem */
.cat {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(216,31,38,.4); color: inherit; }
.cat__media {
  aspect-ratio: 3 / 2; display: grid; place-items: center;
  padding: 1.1rem; background: #fff;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.cat__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform var(--t); }
.cat:hover .cat__media img { transform: scale(1.055); }
.cat__body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.cat__body h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.cat__body p { font-size: 1rem; }
.cat__more {
  margin-top: auto; padding-top: 1.1rem; color: var(--brand-text);
  font-weight: 700; font-size: .98rem; display: inline-flex; align-items: center; gap: .4rem;
}
.cat__more::after {
  content: ""; width: .48em; height: .48em;
  border: 2px solid currentColor; border-left: 0; border-bottom: 0;
  transform: rotate(45deg); transition: transform var(--t-fast);
}
.cat:hover .cat__more::after { transform: rotate(45deg) translate(2px,-2px); }

/* ---------- 9. Blok tekst + zdjecie ---------- */
.split { display: grid; gap: clamp(2rem, 1.2rem + 4vw, 3.75rem); align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: -1; }
}
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__media--plain img { box-shadow: none; background: #fff; }
.split__body > * + * { margin-top: 1.05rem; }

/* ---------- 10. Listy ---------- */
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.list li { position: relative; padding-left: 2rem; color: var(--muted); }
.list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d81f26' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .72rem no-repeat;
}
.list li strong { color: var(--text); }
.list--dark li { color: var(--on-dark-mute); }
.list--dark li strong { color: #fff; }

/* Dla list o nieparzystej liczbie pozycji: kolumny wyrownane wysokoscia,
   zeby nie zostawal samotny element w ostatnim rzedzie. */
.list--cols { display: block; columns: 2; column-gap: 2.75rem; }
.list--cols li { break-inside: avoid; margin-bottom: .8rem; }
@media (max-width: 760px) { .list--cols { columns: 1; } }

.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 0; }

/* ---------- 11. Kroki ---------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
.step {
  position: relative; padding: 1.6rem 1.5rem 1.5rem;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: 1.9rem; font-weight: 800;
  color: var(--brand); opacity: .28; line-height: 1; margin-bottom: .6rem;
  letter-spacing: -.04em;
}
.step h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.step p { font-size: 1.01rem; }

/* ---------- 12. Specyfikacje ---------- */
.spec {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color var(--t), transform var(--t);
}
.spec:hover { border-color: rgba(216,31,38,.35); transform: translateY(-3px); }
.spec__icon {
  display: grid; place-items: center; flex: none;
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);   /* bez tego ikony SVG dziedziczyly granat tekstu */
}
.spec__icon img { width: 30px; height: 30px; object-fit: contain; }
.spec__icon svg { width: 28px; height: 28px; stroke-width: 1.9; }
.spec h3 { font-size: 1.04rem; margin-bottom: .35rem; }
.spec p { font-size: 1.01rem; }

/* ---------- 13. Marki ---------- */
.brands { overflow: hidden; position: relative; }
.brands::before, .brands::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  width: clamp(40px, 8vw, 120px); z-index: 2; pointer-events: none;
}
.brands::before { left: 0;  background: linear-gradient(90deg, var(--surface), transparent); }
.brands::after  { right: 0; background: linear-gradient(270deg, var(--surface), transparent); }
.brands__track { display: flex; width: max-content; gap: 1rem; animation: marquee 46s linear infinite; }
.brands:hover .brands__track, .brands:focus-within .brands__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.brand {
  display: grid; place-items: center; flex: none;
  width: 172px; height: 86px; padding: .85rem 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.brand img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .brands { overflow-x: auto; }
  .brands__track { animation: none; }
}

/* ---------- 14. Kontakt ---------- */
.contact-grid { display: grid; gap: 1.35rem; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  padding: 1.75rem; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.contact-card__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 1.1rem;
}
.contact-card__icon svg { width: 26px; height: 26px; }
.contact-card h3 {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: .65rem;
}
.contact-card p, .contact-card a {
  font-size: 1.06rem; font-weight: 600; color: var(--text);
  text-decoration: none; line-height: 1.5; display: block;
}
.contact-card a:hover { color: var(--brand-text); }
.contact-card .sub { font-size: .97rem; font-weight: 500; color: var(--muted); margin-top: .3rem; }

.map {
  margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface-2);
}
/* Mapa Leaflet + kafelki OpenStreetMap - laduje sie od razu, bez
   zewnetrznego klucza API i bez cookies Google. */
.map__canvas { width: 100%; height: 440px; background: var(--surface-2); z-index: 0; }
@media (max-width: 600px) { .map__canvas { height: 330px; } }

.map__canvas .leaflet-container { font: inherit; background: var(--surface-2); }
.map__canvas .leaflet-control-attribution {
  font-size: 11px; background: rgba(255,255,255,.86); color: #333;
}
.map__canvas .leaflet-control-attribution a { color: #0a58a8; }
.map__canvas .leaflet-bar a {
  color: var(--ink); background: #fff; border-bottom-color: #dcdcdc;
  width: 32px; height: 32px; line-height: 32px; font-size: 19px;
}
.map__canvas .leaflet-bar a:hover { background: var(--brand-soft); color: var(--brand-text); }

/* Wlasny znacznik - kropka w kolorze marki z pulsujaca obwodka */
.map-pin {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}
.map-pin::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid var(--brand); opacity: .55;
  animation: pin-pulse 2.4s ease-out infinite;
}
@keyframes pin-pulse {
  0%   { transform: scale(.6); opacity: .65; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .map-pin::after { animation: none; } }

.map__popup strong { display: block; font-size: 1.02rem; margin-bottom: .2rem; color: var(--ink); }
.map__popup span { color: #5a6875; font-size: .92rem; }
.map__popup a { display: inline-block; margin-top: .45rem; font-weight: 700; font-size: .92rem; }

/* Zapasowy widok, gdyby JavaScript nie zadzialal */
.map__fallback {
  display: grid; place-items: center; gap: .6rem; text-align: center;
  min-height: 440px; padding: 2rem 1.5rem;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,.025) 14px 28px), var(--surface-2);
}
.map__fallback svg { width: 40px; height: 40px; color: var(--brand); }
.js .map__fallback { display: none; }

/* ---------- 15. CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg); padding: clamp(2.25rem, 1.5rem + 3.5vw, 4rem);
  background: linear-gradient(135deg, #16212e, #0e141c 60%);
  color: var(--on-dark); text-align: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(660px 320px at 78% 0%, rgba(216,31,38,.34), transparent 62%);
}
.cta h2 { color: #fff; }
.cta p { color: #c3d0dd; margin: 1rem auto 0; max-width: 58ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; margin-top: 2rem; }

/* ---------- 16. Stopka ---------- */
.footer { background: var(--ink); color: var(--on-dark-mute); padding-top: clamp(2.75rem, 2rem + 3vw, 4.25rem); }
.footer__grid { display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.45fr 1fr 1fr; } }
.footer__logo img { height: 52px; width: auto; margin-bottom: 1.15rem; }
.footer p { color: var(--on-dark-mute); font-size: 1rem; }
.footer h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .62rem; }
.footer a { color: var(--on-dark-mute); text-decoration: none; font-size: 1rem; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__contact li { display: flex; gap: .65rem; align-items: flex-start; font-size: 1rem; }
.footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: .22rem; color: var(--brand); }
.footer__bottom {
  margin-top: 2.75rem; padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .855rem;
}

/* ---------- 17. Pasek mobilny ---------- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 80; display: none;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-2); border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 -4px 20px rgba(0,0,0,.28);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .5rem; color: #fff; text-decoration: none; font-weight: 700; font-size: .94rem;
}
.callbar a + a { border-left: 1px solid rgba(255,255,255,.12); }
.callbar a:first-child { background: var(--brand); color: #fff; }
.callbar svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 760px) {
  .callbar { display: grid; }
  body { padding-bottom: 62px; }
}

/* ---------- 18. Okruszki ---------- */
.crumbs { padding-block: 1rem; font-size: .95rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.crumbs li { display: flex; align-items: center; gap: .45rem; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; opacity: .55; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-text); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------- 19. Naglowek podstrony ---------- */
.pagehead {
  position: relative; isolation: isolate; overflow: hidden;
  background: #0b1119;
  color: var(--on-dark);
  padding-block: clamp(3.25rem, 2.25rem + 5vw, 6rem);
}
.pagehead__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8,13,19,.95) 0%, rgba(8,13,19,.86) 40%, rgba(8,13,19,.6) 100%),
    radial-gradient(760px 340px at 88% -12%, rgba(216,31,38,.34), transparent 60%);
}
.pagehead h1 { color: #fff; max-width: 18ch; }
.pagehead p { color: #d3dde7; margin-top: 1.1rem; max-width: 62ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Czerwony pasek pod naglowkiem - drobny akcent marki spinajacy podstrony */
.pagehead::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand) 0 22%, var(--accent) 22% 30%, transparent 30%);
}

/* ---------- 20. Chipy ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .65rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.15rem; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line);
  font-weight: 600; font-size: 1rem; color: var(--text);
  box-shadow: var(--shadow-sm);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }

/* ---------- 21. Animacja wejscia ----------
   Elementy chowamy WYLACZNIE gdy dziala JavaScript (klasa .js ustawiana
   w <head>). Gdyby main.js sie nie wczytal albo uzytkownik mial wylaczony
   JS, tresc po prostu zostaje widoczna - nigdy nie znika na stale. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.4,0,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 21b. Strona prawna ---------- */
.legal { max-width: 78ch; }
.legal h2 { margin-top: 3rem; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); }
.legal h3 { margin-top: 2rem; font-size: 1.22rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { max-width: none; }
.legal > p + p { margin-top: 1rem; }
.legal ul, .legal ol { padding-left: 1.4rem; margin-top: .9rem; }
.legal ul li, .legal ol li { color: var(--muted); margin-bottom: .55rem; }
.legal ol { list-style: decimal; }

.legal__box {
  margin-top: 1.5rem; padding: 1.35rem 1.5rem;
  border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
}
.legal__box p { margin: 0; }
.legal__box p + p { margin-top: .7rem; }

.legal__table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: 1rem; }
.legal__table th, .legal__table td {
  text-align: left; vertical-align: top; padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.legal__table th { background: var(--surface); font-weight: 700; color: var(--text); }
.legal__table td { color: var(--muted); }
/* Trzy kolumny gestego tekstu prawnego robia sie nieczytelne juz ponizej
   ~860 px, wiec zamieniamy tabele na liste blokow z etykietami. */
@media (max-width: 860px) {
  .legal__table, .legal__table tbody, .legal__table tr, .legal__table td { display: block; width: 100%; }
  .legal__table thead { display: none; }
  .legal__table tr {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 1rem 1.1rem; margin-bottom: .8rem; background: var(--bg);
  }
  .legal__table td { border: 0; padding: .3rem 0; }
  .legal__table td::before {
    content: attr(data-label); display: block;
    font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
    font-weight: 700; color: var(--brand-text); margin-bottom: .15rem;
  }
}

/* Pole do uzupelnienia przez klienta. Celowo rzuca sie w oczy, zeby
   zadne nie zostalo przeoczone przed publikacja. */
.todo {
  display: inline-block; padding: .1em .5em; border-radius: 4px;
  background: #fff3cd; color: #7a5600; border: 1px dashed #c8971a;
  font-weight: 700; font-size: .95em; white-space: nowrap;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .todo { background: #3a2f10; color: #ffd98a; border-color: #8a6d1f; }
}

/* ---------- 22. Drobiazgi ---------- */
.muted-note { font-size: .88rem; color: var(--muted); }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
