/* Kolory odczytane z winkhaus.pl. Zmieniaj je tylko tutaj i tylko zgodnie z wytycznymi marki.
   --brand to niebieskie tło (pasy, przyciski) z białym tekstem, --blue to niebieski tekst, linki i obramowania
   na tle strony. W jasnym trybie to ten sam kolor, w ciemnym --blue jest jaśniejszy, żeby był czytelny.
   --white to zawsze biel (tekst na niebieskim, podkład pod zrzuty), a tło strony to --bg. */
:root { --head: 72px;
  color-scheme: light dark;
  --brand: #0014AA;
  --brand-dark: #000E77;
  --blue: #0014AA;
  --blue-dark: #000E77;
  --ink: #000000;
  --text: #000000;
  --nav: #737373;
  --line: #E2E1E1;
  --grey: #E2E1E1;
  --white: #FFFFFF;
  --light-hover: #DCE3FF;
  --bg: #FFFFFF;
  --tint: #F1F3FB;
  --page-soft: #F4F4F5;
  --card: #FFFFFF;
  --foot-bg: #000000;
  --logo-filter: none;
  --shot-filter: none;
  --radius: 6px;
  --frame: 1440px;
  --side: clamp(16px, 10.5vw, 150px);
  --band-top: clamp(44px, 7.7vw, 110px);
  --band-bottom: clamp(52px, 10.5vw, 150px);
  --font: Gotham, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
/* Tryb ciemny: według ustawienia systemu albo przełącznika w nagłówku (js/theme.js ustawia data-theme na html).
   Panel ma data-theme="light" na stałe. Te same wartości są w obu blokach, bo stary CSS nie ma light-dark() dla zmiennych. */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #0B1B9C; --brand-dark: #08136F;
  --blue: #9AACFF; --blue-dark: #C1CCFF;
  --ink: #F1F3F9; --text: #D9DDE8; --nav: #9EA5B8;
  --line: #2E3548; --grey: #1B2030; --bg: #11141D; --tint: #252C44; --page-soft: #0B0E15; --card: #181C2A;
  --foot-bg: #080A10; --logo-filter: brightness(0) invert(1); --shot-filter: brightness(.88);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #0B1B9C; --brand-dark: #08136F;
    --blue: #9AACFF; --blue-dark: #C1CCFF;
    --ink: #F1F3F9; --text: #D9DDE8; --nav: #9EA5B8;
    --line: #2E3548; --grey: #1B2030; --bg: #11141D; --tint: #252C44; --page-soft: #0B0E15; --card: #181C2A;
    --foot-bg: #080A10; --logo-filter: brightness(0) invert(1); --shot-filter: brightness(.88);
  }
}

/* Zakresy wag: CSS używa 200 i 300 (Light), 400 (Book), 500 i 600 (Medium) oraz 700 i 800 (Bold). */
@font-face { font-family: Gotham; font-weight: 200 300; font-display: swap; src: url("/fonts/Gotham-Light.otf") format("opentype"); }
@font-face { font-family: Gotham; font-weight: 400; font-display: swap; src: url("/fonts/Gotham-Book.otf") format("opentype"); }
@font-face { font-family: Gotham; font-weight: 500 600; font-display: swap; src: url("/fonts/Gotham-Medium.otf") format("opentype"); }
@font-face { font-family: Gotham; font-weight: 700 800; font-display: swap; src: url("/fonts/Gotham-Bold.otf") format("opentype"); }

/* Płynne przejście między podstronami w Chrome, Edge i Safari. Pozostałe przeglądarki przechodzą od razu. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head); }
/* 1rem zamiast 16px, żeby działał rozmiar tekstu ustawiony w przeglądarce.
   font-size-adjust dopasowuje czcionkę zapasową do Gothama, więc tekst nie przeskakuje po jego wczytaniu. */
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.6 var(--font); font-size-adjust: from-font; overflow-wrap: break-word; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2 { margin: 0; color: var(--ink); font-weight: 300; line-height: 1.25; }
h3 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.375rem); }
h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); }
/* Gotham Medium i Bold mają kropkę nad „i” i „j” tuż przy kresce: poniżej ok. 19 px na zwykłym monitorze
   zlewa się ona z literą. Dlatego pogrubione nagłówki mają co najmniej 1.25rem, drobne wyróżnienia
   (linki, pytania, etykiety) są w Book i wyróżnia je kolor, a pogrubienia w tekście używają Medium zamiast Bold. */
h3 { font-size: 1.25rem; }
b, strong, th { font-weight: 600; }
h1, h2, h3, h4, summary { text-wrap: balance; }
p { margin: 0 0 1em; }
p, li, figcaption { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Układ jak na obecnej stronie: ramka 1440 px i 150 px marginesu wewnątrz. */
.wrap { max-width: var(--frame); margin: 0 auto; padding: 0 var(--side); }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }

/* Nagłówek */
@media (max-width: 1000px) { :root { --head: 60px; } }
/* Zwarty nagłówek: treść zaczyna się wyżej (content-first-noise-reduction). Po przewinięciu nagłówek jeszcze się zmniejsza. */
.top { height: 128px; margin-bottom: clamp(16px, 3vw, 40px); }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 60px; pointer-events: none; }
.top-bar { position: fixed; top: 0; right: 0; left: 0; z-index: 30; background: var(--bg); transition: box-shadow .2s; }
.top-bar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top-in { position: relative; display: flex; align-items: center; max-width: var(--frame); margin: 0 auto; padding: 32px 0; transition: padding .2s; }
/* Odstęp od krawędzi, który wcześniej dawał pusty margines w samym pliku logo. */
.logo { flex: none; margin-inline-start: 24px; }
/* Plik logo jest przycięty do samego znaku, więc wysokość tutaj to wysokość widocznego logo. */
.logo img { display: block; width: auto; height: 64px; filter: var(--logo-filter); transition: height .2s; }
.is-scrolled .top-in { padding: 10px 0; }
.is-scrolled .logo img { height: 40px; }
.main-nav { display: flex; }
/* Menu stoi dokładnie na środku nagłówka: logo i lupa mają po równej kolumnie po bokach,
   więc szerokość logo nie przesuwa menu. Na telefonie zostaje burger. */
@media (min-width: 1001px) {
  .top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .top-in > .logo { justify-self: start; }
  .top-in > .top-tools { justify-self: end; }
}
.main-nav a { padding: 13px 20px; color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .3s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue); }
.top-tools { display: flex; align-items: center; margin-left: auto; }
.search-open { display: flex; align-items: center; justify-content: center; width: 72px; height: 47px; color: var(--nav); transition: color .3s; }
.theme-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 47px; padding: 0; border: 0; background: none; color: var(--nav); cursor: pointer; transition: color .3s; }
.theme-toggle:hover { color: var(--blue); }
.theme-toggle[hidden] { display: none; }
.theme-toggle[aria-pressed="true"] .i-moon, .theme-toggle[aria-pressed="false"] .i-sun { display: none; }
.search-open:hover { color: var(--blue); }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; color: var(--blue); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 1240px) { .main-nav a { padding: 13px 12px; } }
@media (max-width: 1000px) {
  .top { height: 96px; }
  .top-in { padding: 24px 0; }
  .is-scrolled .top-in { padding: 13px 0; }
  .logo { margin-inline-start: 16px; }
  .logo img { height: 48px; }
  .is-scrolled .logo img { height: 34px; }
  .burger { display: block; order: 3; margin-right: 8px; }
  .search-open, .theme-toggle { width: 44px; height: 44px; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; margin: 0; padding: 8px 16px 16px; max-height: calc(100vh - 96px); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
}
/* Grupy w menu (Moduły, Co nowego). Lista to popover przypięty do przycisku przez anchor positioning;
   przeglądarki bez tej funkcji dostają pozycję z site.js. Na telefonie grupa to nagłówek z linkami. */
.main-nav { align-items: center; }
.nav-head { display: none; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border: 0; background: none; color: var(--ink); font: inherit; white-space: nowrap; cursor: pointer; transition: color .3s; }
.nav-toggle svg { flex: none; transition: rotate .2s; }
.nav-toggle:hover, .nav-toggle.is-current, .nav-group:has(.nav-menu:popover-open) .nav-toggle { color: var(--blue); }
.nav-group:has(.nav-menu:popover-open) .nav-toggle svg { rotate: 180deg; }
#navModulesBtn { anchor-name: --nav-modules; }
#navModules { position-anchor: --nav-modules; }
#navNewsBtn { anchor-name: --nav-news; }
#navNews { position-anchor: --nav-news; }
.nav-menu { position-area: bottom span-right; position-try-fallbacks: flip-inline; inset: auto; width: 320px; margin: 6px 0 0; padding: 8px; overflow: visible; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); box-shadow: 0 18px 48px rgba(0, 14, 119, .16); }
.nav-menu:popover-open { display: grid; gap: 2px; }
.main-nav .nav-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; white-space: normal; }
.main-nav .nav-menu a:hover, .main-nav .nav-menu a:focus-visible { background: var(--tint); color: var(--ink); }
.nav-menu strong { font-weight: 400; }
.nav-menu a[aria-current="page"] strong { color: var(--blue); }
.nav-menu small { color: var(--nav); font-size: .82rem; line-height: 1.35; }
/* Wejście listy według animate-to-from-top-layer. */
.nav-menu { opacity: 0; translate: 0 -4px; transition-property: opacity, translate, display, overlay; transition-duration: .15s; transition-timing-function: ease-out; transition-behavior: allow-discrete; }
.nav-menu:popover-open { opacity: 1; translate: 0 0; }
@starting-style { .nav-menu:popover-open { opacity: 0; translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .nav-menu, .nav-toggle svg { transition: none; } }
/* Moduły: siatka 2 × 4 z ikonami, żeby 8 pozycji nie tworzyło długiej listy. */
.nav-mods { width: 560px; }
.nav-mods:popover-open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.main-nav .nav-mods a:not(.nav-all) { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; }
.nav-mods img { grid-row: span 2; width: 32px; height: 32px; border-radius: 6px; }
.main-nav .nav-mods .nav-all { grid-column: 1 / -1; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; color: var(--blue); font-size: .9rem; }
@media (max-width: 1240px) { .nav-toggle { padding: 13px 12px; } }
@media (max-width: 1000px) {
  .main-nav { align-items: stretch; }
  .main-nav > * + * { border-top: 1px solid var(--line); }
  .nav-toggle { display: none; }
  .nav-head { display: block; margin: 0; padding: 14px 12px 4px; color: var(--nav); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .nav-menu, .nav-menu:popover-open { position: static; display: grid; width: auto; height: auto; margin: 0 0 6px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 1; translate: none; transition: none; }
  .main-nav .nav-menu a { padding: 8px 12px; }
  /* W menu z burgera same nazwy z ikonami w dwóch kolumnach. */
  .nav-mods, .nav-mods:popover-open { width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav .nav-mods a:not(.nav-all) { grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; }
  .nav-mods img { grid-row: auto; width: 24px; height: 24px; border-radius: 4px; }
  .nav-mods small { display: none; }
}
/* Wyszukiwarka w nagłówku: pole na górze, wyniki od razu pod nim. */
.search-dialog { width: min(720px, calc(100% - 32px)); max-height: min(640px, 80vh); margin: 10vh auto auto; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--bg); color: var(--text); box-shadow: 0 24px 64px rgba(0, 14, 119, .28); }
.search-dialog[open] { display: flex; flex-direction: column; }
/* Wejście i wyjście okna według animate-to-from-top-layer. Bez obsługi okno pojawia się od razu. */
.search-dialog { opacity: 0; transition-property: opacity, transform, display, overlay; transition-duration: .2s; transition-timing-function: ease-out; transition-behavior: allow-discrete; }
.search-dialog[open] { opacity: 1; }
@starting-style { .search-dialog[open] { opacity: 0; } }
.search-dialog::backdrop { background-color: rgba(0, 14, 119, 0); backdrop-filter: blur(0); transition-property: background-color, backdrop-filter, display, overlay; transition-duration: .2s; transition-timing-function: ease-out; transition-behavior: allow-discrete; }
.search-dialog[open]::backdrop { background-color: rgba(0, 14, 119, .35); backdrop-filter: blur(3px); }
@starting-style { .search-dialog[open]::backdrop { background-color: rgba(0, 14, 119, 0); backdrop-filter: blur(0); } }
@media (prefers-reduced-motion: no-preference) {
  .search-dialog { transform: translateY(-8px); }
  .search-dialog[open] { transform: none; }
  @starting-style { .search-dialog[open] { transform: translateY(-8px); } }
}
@media (prefers-reduced-motion: reduce) {
  .search-dialog, .search-dialog::backdrop { transition-duration: .1s; }
}
.sd-form { display: flex; flex: none; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); }
.sd-icon { flex: none; color: var(--blue); }
.sd-form input { flex: 1; min-width: 0; height: 64px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 1.125rem; outline: 0; }
.sd-form input::-webkit-search-cancel-button { display: none; }
.sd-close { flex: none; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--nav); font: inherit; font-size: .75rem; cursor: pointer; }
.sd-close:hover { border-color: var(--blue); color: var(--blue); }
.sd-close-word { display: none; }
.sd-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.sd-label { margin: 0; padding: 8px 12px 4px; color: var(--nav); font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; }
.sd-status { margin: 0; padding: 0 12px; color: var(--nav); }
.sd-status:not(:empty) { padding: 20px 12px; }
.sd-list { margin: 0; padding: 0; list-style: none; }
.sd-list a { display: grid; gap: 2px; padding: 10px 12px; border-left: 3px solid transparent; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.sd-list [aria-selected="true"] a { border-left-color: var(--blue); background: var(--grey); }
.sd-all { display: block; margin: 4px 0 0; padding: 10px 12px; font-weight: 400; text-decoration: none; }
.sd-all:hover { text-decoration: underline; }
.sd-foot { display: flex; flex: none; gap: 18px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--nav); font-size: .75rem; }
.sd-foot kbd { display: inline-block; min-width: 20px; margin-right: 3px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; font: inherit; text-align: center; }
@media (hover: none), (pointer: coarse) { .sd-foot { display: none; } }
@media (max-width: 640px) {
  .search-dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .sd-close-key { display: none; }
  .sd-close-word { display: inline; }
  .sd-close { border: 0; color: var(--blue); font-size: .9rem; }
}

/* Wynik wyszukiwania: rodzaj wpisu, tytuł i fragment treści z wyróżnionymi słowami. */
.sr-kind { color: var(--nav); font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; }
.sd-list b, .results b { color: var(--blue); font-weight: 400; }
.sd-list small, .results small { color: var(--text); font-size: .85rem; line-height: 1.45; }
.sd-list mark, .results mark { background: none; color: inherit; font-weight: 400; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 2px; }
.sd-list b mark, .results b mark { color: var(--blue); }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 7.84px 33.6px; border: 0; border-radius: 50px; background: var(--brand); color: var(--white); font: inherit; font-size: .7rem; font-weight: 400; line-height: 1.5; text-align: center; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .3s, color .3s; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: var(--bg); color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn.ghost:hover { background: var(--grey); }
@media (pointer: coarse) { .btn { min-height: 44px; } }

/* Strona główna */
.sec { max-width: var(--frame); margin: 0 auto 80px; }
.band { padding: var(--band-top) var(--side) var(--band-bottom); }
.band.blue { background: var(--brand); color: var(--white); }
.band.blue h1, .band.blue h2, .band.blue h3 { color: var(--white); }
.band.blue :focus-visible { outline-color: var(--white); }
/* W trybie jasnym --blue to ten sam kolor co tło pasa, więc linki byłyby niewidoczne. */
.band.blue a:not(.btn) { color: var(--white); }
.band.grad { background: var(--grey); }
.band.grad2 { background: var(--grey); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.home-hero .split { grid-template-columns: minmax(0, 540px) minmax(300px, 1fr); min-height: 428px; gap: 60px; }
.hero-name { margin: 0 0 6px; color: var(--white); font-size: clamp(1.8125rem, 3.4vw, 2.375rem); font-weight: 600; line-height: 1.25; }
.home-hero h1 { font-weight: 200; }
.hero-lead { margin: 22px 0 0; font-weight: 200; }
.hero-lead span { display: block; }
.motion-toggle { padding: 4px 14px; border: 1px solid currentColor; border-radius: 50px; background: transparent; color: var(--white); font: inherit; font-size: .75rem; cursor: pointer; }
.motion-toggle:hover { background: rgba(255, 255, 255, .15); }
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; width: min(470px, 100%); margin: 0 auto; padding: 0; list-style: none; }
/* Szerokość 174 jednostek mieści najdłuższą nazwę (Konfigurator); 214 px zachowuje skalę dawnych logo. */
.logos .logo-svg { display: block; width: 100%; max-width: 214px; height: auto; }
/* Logo prowadzi do karty modułu niżej na stronie. */
.logos a { display: block; border-radius: 8px; transition: transform .2s, opacity .2s; }
.logos a:hover { transform: translateY(-3px); }
.logos:hover a:not(:hover) { opacity: .6; }
.mod-card { scroll-margin-top: 96px; }
.mod-card:target { animation: mod-flash 1.6s ease-out; }
@keyframes mod-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--blue); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .logos a { transition: none; } .mod-card:target { animation: none; outline: 3px solid var(--blue); } }
.film { position: relative; background: var(--grey); }
.film-toggle { position: absolute; right: 16px; bottom: 16px; background: rgba(0, 0, 0, .55); }
.film-toggle:hover { background: rgba(0, 0, 0, .75); }
.film video { width: 100%; aspect-ratio: 16 / 9; }
.band h2 { margin-bottom: 0; }
.prose-home { margin-top: 12px; }
.prose-home p:last-child { margin-bottom: 0; }
.limit { max-width: 788px; }
.alt-rows { display: grid; gap: 38px; margin-top: 38px; }
.alt-row { display: grid; grid-template-columns: minmax(0, 439px) minmax(0, 506px); justify-content: space-between; align-items: center; gap: 40px; }
.alt-row.flip > :first-child { order: 2; }
.alt-row p { margin: 4px 0 0; font-weight: 300; }
.alt-row img { margin: 0 auto; }
.alt-row.flip { grid-template-columns: minmax(0, 506px) minmax(0, 439px); }
.alt-row.flip > :first-child { order: 2; }
.sec-title { padding: 0 var(--side); margin-bottom: 15px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 23px; padding: 0 var(--side); }
.fcard { --gap: 40px; display: flex; flex-direction: column; gap: var(--gap); padding: 32px; background: var(--grey); transition: box-shadow .3s, transform .3s; }
.fcard:hover { box-shadow: 0 10px 28px rgba(0, 20, 170, .16); transform: translateY(-3px); }
.fcard-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 54px; }
.fcard-head img { flex: none; width: 58px; height: auto; }
.fcard p { margin: 0; }
.checks { display: grid; gap: 9px; margin: 0; padding: 0; color: var(--ink); list-style: none; }
.checks li { position: relative; padding-left: 32px; }
.more-checks { margin-top: calc(9px - var(--gap, 40px)); }
.more-checks > .checks { margin-top: 9px; }
.more-checks summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--blue); font-weight: 400; list-style: none; cursor: pointer; }
.more-checks summary::-webkit-details-marker { display: none; }
.more-checks summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.more-checks[open] summary::before { transform: translateY(2px) rotate(-135deg); }
.more-checks[open] .more-open, .more-checks:not([open]) .more-close { display: none; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: var(--blue); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.36 14.43 1.59 9.66 0 11.25l6.36 6.36L20 3.98l-1.59-1.59z'/%3E%3C/svg%3E") no-repeat center; }
.files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; padding: 0 var(--side); }
.file-card { display: flex; flex-direction: column; align-items: center; padding: 32px; background: var(--grey); font-size: .8rem; text-align: center; transition: box-shadow .3s; }
.file-card:hover { box-shadow: 0 10px 28px rgba(0, 20, 170, .16); }
.file-card img { width: 37px; height: 44px; }
.file-card p { flex: 1; margin: 14px 0 12px; }
.help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 0 var(--side); }
.help h2 { font-weight: 200; }
.help-text { margin: 12px 0 14px; }
.help-sub { margin-top: 34px; }
.people { margin: 12px 0; padding: 0; list-style: none; }
.people li { padding: 0; }
.people a { color: inherit; text-decoration: none; }
.help-img { width: 100%; }
.help-mail a { color: inherit; }
@media (max-width: 1000px) {
  .home-hero .split, .split { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 32px; }
  .alt-row, .alt-row.flip { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .alt-row.flip > :first-child { order: 0; }
  .alt-row img { max-width: 240px; }
  .help { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .sec { margin-bottom: 48px; }
  .cards, .files { grid-template-columns: minmax(0, 1fr); }
  .fcard { --gap: 22px; padding: 24px 20px; }
}

@property --fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes di-fade-start { from { --fade-start: 0px; } to { --fade-start: 40px; } }
@keyframes di-fade-end { from { --fade-end: 40px; } to { --fade-end: 0px; } }

/* Płynne pojawianie się przy przewijaniu. Nowe przeglądarki robią to samym CSS,
   starsze przez site.js (klasa .js na html). Bez obsługi i bez JavaScriptu treść jest widoczna od razu. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-fade { from { opacity: 0; } }
    @keyframes reveal-left { from { opacity: 0; transform: translateX(-36px); } }
    @keyframes reveal-right { from { opacity: 0; transform: translateX(36px); } }
    .reveal { animation: reveal-fade linear backwards; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .reveal.from-left { animation-name: reveal-left; }
    .reveal.from-right { animation-name: reveal-right; }
  }
}
html.js .reveal { opacity: 0; transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.from-left { transform: translateX(-36px); }
html.js .reveal.from-right { transform: translateX(36px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .top-bar, .top-in, .logo img { transition: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .fcard, .file-card { transition: none; }
}

.block { max-width: var(--frame); margin: 0 auto; padding: clamp(36px, 6vw, 64px) 0; }
.block.alt { background: var(--grey); }
.block.modules { background: var(--grey); }
.block.grey { background: var(--grey); }
.block.blue { background: var(--brand); color: var(--white); }
.block.blue h2 { color: var(--white); font-weight: 200; }
.block.blue h3 { color: var(--white); }
.block.blue a:not(.btn) { color: var(--white); }
.block.blue p { margin: 8px 0 0; font-size: .95rem; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 16px; margin-bottom: 20px; }
.sec-head a { font-weight: 400; font-size: .94rem; text-decoration: none; }
.lead-text { max-width: 52em; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--grey); color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.card:hover { box-shadow: 0 6px 18px rgba(0, 20, 170, .14); transform: translateY(-2px); }
.card.file { background: var(--grey); }
.card p { margin: 0; font-size: .95rem; }
.card .more { margin-top: auto; padding-top: 8px; color: var(--blue); font-size: .88rem; font-weight: 400; }
.card .btn { align-self: flex-start; margin-top: auto; }
.meta { color: var(--blue); font-size: .85rem; }
.big { color: var(--blue); font-size: 2rem; font-weight: 600; line-height: 1; }
.mod-ico { width: auto; height: 46px; margin-bottom: 4px; }


/* Podstrony */
.page-head { max-width: var(--frame); margin: 0 auto; padding: clamp(36px, 6vw, 72px) 0; background: var(--grey); }
.page-head p { max-width: 44em; margin: 10px 0 0; }
.page-head + .block.grey { margin-top: 19px; }
/* Ścieżka nawigacji według wytycznej breadcrumbs: lista w nav, separatory z CSS niewidoczne
   dla czytników ekranu, bieżąca strona jako link z aria-current. */
.crumb { margin-bottom: 10px; font-size: .86rem; }
.crumb > ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; margin: 0; padding: 0; list-style: none; }
.crumb > ol > li + li::before { content: "/" / ""; margin-right: .4rem; color: var(--nav); }
.crumb a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.crumb [aria-current="page"] { font-weight: 400; text-decoration: none; }
.crumb a:focus-visible { position: relative; z-index: 1; }
@media (forced-colors: active) { .crumb [aria-current="page"] { text-decoration: underline; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input[type="search"] { flex: 1 1 260px; min-width: 0; height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 50px; background: var(--bg); color: var(--ink); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip { min-height: 38px; padding: 0 14px; border: 1px solid var(--blue); border-radius: 50px; background: var(--bg); color: var(--blue); font: inherit; font-size: .88rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--white); }

.kb-group { margin-bottom: 30px; }
.kb-group h2 { margin-bottom: 14px; font-size: 1.25rem; font-weight: 600; }
.kb { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.kb a { display: flex; align-items: flex-start; gap: 10px; height: 100%; padding: 11px 14px; border-radius: var(--radius); background: var(--bg); color: var(--text); text-decoration: none; transition: box-shadow .15s; }
.kb a::before { content: ""; flex: none; box-sizing: border-box; width: 18px; height: 18px; margin-top: calc((1lh - 18px) / 2); border: 2px solid var(--blue); border-radius: 50%; background: radial-gradient(var(--blue) 32%, transparent 36%); }
.kb a:hover { color: var(--blue); box-shadow: 0 4px 12px rgba(0, 20, 170, .14); }
.empty { padding: 28px; border: 1px dashed var(--nav); border-radius: var(--radius); text-align: center; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .article { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 46em; }
.prose h2 { margin: 30px 0 10px; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; }
.prose figure { margin: 14px 0 22px; }
.prose img { border: 1px solid var(--line); }
.prose li { margin-bottom: 6px; }
.prose pre { overflow-x: auto; padding: 14px; background: var(--grey); font-size: .85rem; }
.prose video { width: 100%; margin: 14px 0 22px; background: #000; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { padding: 6px 10px; border: 1px solid var(--line); }
.video { position: relative; margin: 14px 0 22px; aspect-ratio: 16 / 9; background: var(--grey); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.side { position: sticky; top: calc(var(--head) + 24px); padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: .92rem; }
@media (max-width: 900px) { .side { position: static; } }
.side dl { margin: 0 0 14px; }
.side dt { font-size: .8rem; }
.side dd { margin: 0 0 12px; color: var(--blue); font-weight: 400; }
.side ul { margin: 8px 0 0; padding: 0; list-style: none; }
.side li { padding: 6px 0; border-top: 1px solid var(--line); }
.notice { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--grey); }

/* Changelog */
.cl { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 800px) { .cl { grid-template-columns: minmax(0, 1fr); } .cl aside { display: none; } }
.cl aside { position: sticky; top: calc(var(--head) + 24px); max-height: calc(100vh - var(--head) - 48px); overflow-y: auto; overscroll-behavior-y: contain; scroll-target-group: auto; }
.cl aside a { display: block; padding: 5px 10px; border-left: 3px solid transparent; text-decoration: none; font-variant-numeric: tabular-nums; }
.cl aside a:hover { background: var(--grey); }
/* Bieżąca wersja: kolor, pogrubienie i pasek, żeby nie opierać się na samym kolorze (scrollspy). */
.cl aside a:is(:target-current, [aria-current]) { border-left-color: var(--blue); background: var(--grey); font-weight: 400; }
.cl-jump { display: none; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.cl-jump summary { padding: 12px 16px; color: var(--blue); font-weight: 400; cursor: pointer; }
.cl-jump-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 2px; max-height: 50vh; overflow-y: auto; overscroll-behavior-y: contain; padding: 0 8px 12px; }
.cl-jump-list a { padding: 8px; border-radius: var(--radius); text-decoration: none; font-variant-numeric: tabular-nums; }
.cl-jump-list a:hover { background: var(--grey); }
@media (max-width: 800px) { .cl-jump { display: block; } }
.release { padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.release summary { display: flex; text-wrap: wrap; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--blue); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.release ul { margin: 12px 0 0; padding-left: 18px; }
.release li { margin-bottom: 10px; }
.release b, .release strong { color: var(--blue); font-weight: 400; }
.release i, .release em { color: var(--blue); font-style: normal; font-weight: 400; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 50px; background: var(--brand); color: var(--white); font-size: .75rem; font-weight: 400; }
.copy { margin-top: 8px; padding: 4px 0; background: none; border: 0; color: var(--text); font: inherit; font-size: .82rem; font-weight: 400; text-decoration: underline; cursor: pointer; }

/* Nowości */
.nw { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; padding-top: clamp(28px, 4vw, 48px); padding-bottom: 16px; }
.nw-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 32px; padding: clamp(24px, 3.4vw, 40px); background: var(--brand); color: var(--white); text-decoration: none; transition: background-color .3s; }
/* Karta reaguje na szerokość własnej kolumny, a nie ekranu (size-aware-styling).
   Obrazek trafia obok tekstu dopiero wtedy, gdy obok zostaje miejsce na tytuł. */
.nw-main { container: nw-main / inline-size; }
@container nw-main (min-width: 620px) {
  .nw-feature.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: center; }
}
.nw-feature:hover { background: var(--brand-dark); }
.nw-feature h2 { margin: 10px 0; color: var(--white); font-weight: 200; }
.nw-feature p { margin: 0 0 18px; }
.nw-feature img { width: 100%; height: 200px; object-fit: cover; object-position: top left; }
.nw-feature .tag, .nw-feature .nw-tag { background: var(--white); border-color: var(--white); color: var(--brand); }
.nw-feature .nw-date { color: var(--white); }
/* Jasny przycisk stoi zawsze na niebieskim tle, w obu trybach. Po najechaniu dostaje jasnoniebieskie tło (--light-hover),
   a nie --grey, bo --grey w trybie ciemnym jest prawie czarny i granatowy napis znikał. */
.btn.light { background: var(--white); color: var(--brand); }
.btn.light:hover, .btn.light:focus-visible, .nw-feature:hover .btn.light { background: var(--light-hover); color: var(--brand-dark); }
.nw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nw-date { color: var(--nav); font-size: .9rem; }
.nw-tag { display: inline-block; padding: 1px 10px; border: 1px solid var(--nav); border-radius: 50px; color: var(--ink); font-size: .75rem; line-height: 1.6; }
.nw-tag.ver { border-color: var(--blue); color: var(--blue); }
.nw-count { margin: 0 0 8px; color: var(--nav); font-size: .9rem; }
.nw-list:not(.filtered) .is-first { display: none; }
.nw-heading { margin: 0 0 14px; color: var(--ink); font-size: 1.25rem; font-weight: 600; }
.nw-list.filtered .nw-heading { display: none; }
.nw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 19px; margin: 0; padding: 0; list-style: none; }
.nw-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.nw-card:hover, .nw-card:focus-visible { border-color: var(--blue); }
.nw-card:hover h3, .nw-card:focus-visible h3 { color: var(--blue); }
.nw-thumb { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--grey); }
.nw-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.nw-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 16px; }
.nw-card h3 { margin: 8px 0 6px; font-size: 1.25rem; font-weight: 600; transition: color .2s; }
.nw-card p { margin: 0 0 14px; line-height: 1.55; }
.nw-sect { margin-top: auto; color: var(--nav); font-size: .82rem; }
.nw-side { position: sticky; top: calc(var(--head) + 24px); display: grid; gap: 19px; }
.nw-box { padding: 24px; background: var(--grey); }
.nw-box h2 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 600; }
.nw-box p { margin: 0 0 14px; }
.nw-box p:last-child { margin-bottom: 0; }
.nw-rel { margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--bg); list-style: none; }
.nw-rel-ver { display: block; margin-bottom: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nw-rel ul { margin: 0; padding-left: 16px; font-size: .88rem; }
.nw-rel li { margin-bottom: 3px; }
.nw-rel small { display: block; margin-top: 3px; color: var(--ink); font-size: .8rem; }
.nw-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; margin-top: 40px; }
.nw-pager a { display: block; padding: 16px 18px; background: var(--grey); color: var(--ink); text-decoration: none; transition: color .2s; }
.nw-pager a:hover { color: var(--blue); }
.nw-pager small { display: block; color: var(--nav); }
.nw-pager .next { grid-column: 2; text-align: right; }
@media (max-width: 1000px) {
  .nw { grid-template-columns: minmax(0, 1fr); }
  .nw-side { position: static; }
}
@media (max-width: 640px) {
  .nw-pager { grid-template-columns: minmax(0, 1fr); }
  .nw-pager .next { grid-column: 1; }
}

.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Wyniki wyszukiwania */
.results { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.results a { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius); background: var(--grey); color: var(--ink); text-decoration: none; }
.results a:hover b { text-decoration: underline; }

/* Stopka */
.foot-sec { max-width: var(--frame); margin: 80px auto 0; }
.foot { padding: 60px clamp(16px, 10vw, 144px); background: var(--foot-bg); color: var(--white); font-size: .85rem; }
.foot h2 { margin-bottom: 10px; color: var(--white); font-size: .85rem; font-weight: 600; letter-spacing: .02em; line-height: 1.6; text-transform: uppercase; }
.foot a { color: var(--white); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 0; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { padding: 0 0 2px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 409px) auto minmax(0, 300px) auto; justify-content: space-between; gap: 32px; align-items: start; }
.foot-logo { width: 171px; height: 171px; }
@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-logo { width: 110px; height: 110px; }
}

/* Doc Import */
.di-hero .band { position: relative; display: flex; align-items: center; overflow: hidden; min-height: 500px; padding-top: 0; padding-bottom: 0; background: var(--grey); }
.di-hero h1 { margin-bottom: 22px; }
.di-hero p { max-width: 381px; margin: 0; }
.di-hero .band > div { position: relative; z-index: 1; }
.di-hero img { position: absolute; top: 0; right: 0; width: min(500px, 40%); height: 100%; object-fit: cover; filter: grayscale(1); opacity: .12; }
.di-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 437px)); justify-content: space-between; gap: 16px; margin-bottom: 41px; padding: 0 clamp(16px, 9vw, 130px); }
.di-tab { min-height: 44px; padding: 8px 24px; border: 1px solid var(--blue); border-radius: 50px; background: var(--bg); color: var(--blue); font: inherit; cursor: pointer; transition: background-color .3s, color .3s; }
.di-tab:hover { background: var(--grey); }
.di-tab[aria-selected="true"] { background: var(--brand); color: var(--white); }
.di-panel { padding-top: 96px; padding-bottom: 96px; }
.di-checks { margin-top: 32px; }
.di-checks ul { columns: 2; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.di-checks li { position: relative; padding: 0 0 22px 32px; break-inside: avoid; }
.di-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M6.36 14.43 1.59 9.66 0 11.25l6.36 6.36L20 3.98l-1.59-1.59z'/%3E%3C/svg%3E") no-repeat center; }
.di-prep { background: var(--grey); }
.di-prep-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 522px); gap: 48px; align-items: start; margin-top: 32px; }
.di-prep-body ul { margin: 0; padding-left: 20px; }
.di-prep-body li { margin-bottom: 18px; }
.di-prep-body figure { margin: 0; }
.di-nav { position: sticky; top: var(--head); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; padding: 32px var(--side); background: var(--bg); }
.di-nav-links { display: flex; gap: 4px; scroll-target-group: auto; }
.di-nav-links a { padding: 10px 16px; border-radius: 50px; font-weight: 400; text-decoration: none; white-space: nowrap; transition: background-color .3s, color .3s; }
.di-nav-links a:hover { background: var(--grey); }
.di-nav-links a:is(:target-current, [aria-current]) { background: var(--brand); color: var(--white); }
.di-sec { margin-bottom: 64px; padding: 64px var(--side); background: var(--grey); scroll-margin-top: 112px; }
.di-sec:last-child { margin-bottom: 0; }
.di-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 64px; }
.di-num { flex: none; display: flex; align-items: center; justify-content: center; width: 110px; height: 110px; border: 3px solid var(--nav); border-radius: 50%; color: var(--nav); font-size: 3.5rem; font-weight: 200; line-height: 1; }
.di-body > p, .di-body > ul { max-width: 820px; }
.di-body h3 { margin: 64px 0 24px; font-size: 1.5rem; font-weight: 300; }
.di-body h3:first-child { margin-top: 0; }
.di-body figure { margin: 32px 0 0; }
.di-body figcaption { margin-bottom: 8px; font-weight: 400; }
.di-body li { margin-bottom: 6px; }
.di-cols { columns: 2; column-gap: 32px; }
.di-cols p { break-inside: avoid; }
@media (max-width: 1000px) {
  .di-hero .band { min-height: 0; padding-top: 48px; padding-bottom: 48px; }
  .di-hero img { display: none; }
  .di-panel { padding-top: 48px; padding-bottom: 48px; }
  .di-checks ul, .di-cols { columns: 1; }
  .di-prep-body { grid-template-columns: minmax(0, 1fr); }
  .di-nav { flex-direction: column; align-items: stretch; padding-top: 12px; padding-bottom: 12px; }
  .di-nav h2 { display: none; }
  .di-nav-links { overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: 40px; }
  /* Zanikające krawędzie pokazują, że pasek da się przesunąć, i znikają na jego końcach
     (scrollability-affordance-hints). Pasek przewijania zostaje tam, gdzie zanikania nie ma. */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .di-nav-links {
      scrollbar-width: none;
      mask-image: linear-gradient(to right, transparent, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent);
      animation: di-fade-start linear both, di-fade-end linear both;
      animation-timeline: scroll(self inline), scroll(self inline);
      animation-range: 0px 40px, calc(100% - 40px) 100%;
    }
    .di-nav-links::-webkit-scrollbar { display: none; }
  }
  .di-sec { padding-top: 40px; padding-bottom: 40px; scroll-margin-top: 72px; }
  .di-sec-head { margin-bottom: 32px; }
  .di-num { width: 56px; height: 56px; border-width: 2px; font-size: 1.75rem; }
}
@media (max-width: 640px) {
  .di-tabs { grid-template-columns: minmax(0, 1fr); margin-bottom: 24px; }
}

/* Artykuł bazy wiedzy */
.page-head.compact { padding: clamp(24px, 3vw, 40px) 0; }
.compact h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.kb-meta { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 12px 0 0; padding: 0; color: var(--text); font-size: .88rem; list-style: none; }
.kb-meta:empty { display: none; }
/* Treść leży w białej karcie na jasnoszarym tle, żeby było widać, gdzie zaczyna się i kończy artykuł. */
.block.kb-page { padding-top: clamp(24px, 4vw, 48px); background: var(--page-soft); }
/* Szare tło dochodzi do stopki, bez białego pasa nad nią. */
main:has(> .kb-page:last-child) + .foot-sec { margin-top: 0; }
.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.kb-main { min-width: 0; max-width: 840px; }
.kb-card { padding: clamp(20px, 4vw, 44px); border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 1px 2px rgba(0, 14, 119, .04), 0 8px 28px rgba(0, 14, 119, .05); }
.kb-body { max-width: none; }
.kb-body > p, .kb-body > ul, .kb-body > ol, .kb-body > h2, .kb-body > h3, .kb-body > h4 { max-width: 68ch; }
.kb-body > p, .kb-body li { line-height: 1.7; }
.kb-body > p { margin: 0 0 16px; }
/* Śródtytuł oddziela kolejną część artykułu kreską, a krótka niebieska belka nad nim prowadzi wzrok. */
.kb-body > h2 { position: relative; margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.kb-body > h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 3px; border-radius: 2px; background: var(--blue); }
.kb-body > h3 { margin: 30px 0 10px; color: var(--ink); font-weight: 600; }
.kb-body > h2 + h2 { margin-top: 0; }
.kb-body > :first-child { margin-top: 0; }
.kb-body > h2:first-child { padding-top: 0; border-top: 0; }
.kb-body > h2:first-child::before { display: none; }
.kb-body .kb-lead { margin-bottom: 24px; color: var(--ink); font-size: 1.25rem; font-weight: 300; line-height: 1.5; }
.kb-body .kb-sub { margin: 30px 0 12px; color: var(--ink); font-size: 1.25rem; font-weight: 600; }
/* Zrzuty są wyśrodkowane, w jednakowej ramce z cieniem. Zrzut do powiększenia ma w rogu znaczek z lupą (js/site.js). */
.kb-body p img { display: block; margin: 10px auto; }
.kb-body figure { margin: 24px 0 30px; text-align: center; }
.kb-body figure img { margin-inline: auto; }
.kb-body img { border-radius: var(--radius); background: var(--white); box-shadow: 0 2px 10px rgba(0, 14, 119, .08); transition: border-color .2s, box-shadow .2s; }
.kb-body img.kb-zoomable { cursor: zoom-in; }
.kb-body img.kb-zoomable:hover, .kb-body img.kb-zoomable:focus-visible { border-color: var(--blue); box-shadow: 0 6px 22px rgba(0, 20, 170, .18); outline: 0; }
.kb-shot { position: relative; display: block; width: fit-content; max-width: 100%; margin: 10px auto; }
.kb-shot img { margin: 0; }
.kb-shot-hint { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 50px; background: var(--brand); color: var(--white); font-size: .75rem; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); opacity: .88; pointer-events: none; transition: opacity .2s; }
.kb-shot-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.kb-shot:hover .kb-shot-hint { opacity: 1; }
@media (max-width: 480px) { .kb-shot-hint span { display: none; } .kb-shot-hint { padding: 6px; } }
.kb-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin: 20px 0 28px; }
.kb-gallery figure { margin: 0; }
.kb-body video { display: block; aspect-ratio: 16 / 9; width: 100%; }
.kb-body figcaption { margin-top: 8px; color: var(--text); font-size: .9rem; line-height: 1.5; }
.kb-body ol li::marker { color: var(--blue); font-weight: 600; }
.kb-note { max-width: 68ch; margin: 24px 0; padding: 14px 18px; border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: var(--grey); }
.kb-note::before { content: "Wskazówka"; display: block; margin-bottom: 4px; color: var(--blue); font-size: .82rem; font-weight: 600; }
.kb-note > :last-child { margin-bottom: 0; }
.kb-note-warn { border-left-color: var(--ink); }
/* Akapit z samym linkiem do PDF-a z media (Text.ArticleBody). */
.kb-file { max-width: 68ch; margin: 24px 0; }
.kb-file a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); background: var(--grey); color: var(--ink); text-decoration: none; transition: box-shadow .3s; }
.kb-file a:hover { box-shadow: 0 10px 28px rgba(0, 20, 170, .16); }
.kb-file svg { flex: none; width: 40px; height: 40px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kb-file-name { flex: 1; min-width: 0; font-weight: 400; line-height: 1.35; }
.kb-file-name small { display: block; margin-top: 2px; color: var(--nav); font-size: .82rem; font-weight: 400; }
.kb-file-go { flex: none; padding: 8px 16px; border-radius: var(--radius); background: var(--brand); color: var(--white); font-size: .88rem; font-weight: 400; }
.kb-file a:hover .kb-file-go { background: var(--brand-dark); }
@media (max-width: 480px) { .kb-file-go { display: none; } }
@media (prefers-reduced-motion: reduce) { .kb-file a { transition: none; } }
.kb-note-warn::before { content: "Uwaga"; color: var(--ink); }
.kb-aside { position: sticky; top: calc(var(--head) + 24px); font-size: .92rem; }
/* Powrót do listy wygląda jak przycisk: obramowanie w kolorze marki, po najechaniu wypełnienie. */
.kb-back { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 18px; border: 1px solid var(--blue); border-radius: 50px; background: var(--card); color: var(--blue); font-size: .9rem; line-height: 1.3; text-decoration: none; transition: background-color .2s, color .2s; }
.kb-back span { transition: transform .2s; }
.kb-back:hover, .kb-back:focus-visible { background: var(--brand); border-color: var(--brand); color: var(--white); }
.kb-back:hover span { transform: translateX(-3px); }
/* W wąskim panelu bocznym długa nazwa działu łamie się, więc przycisk zajmuje całą szerokość i ma mniejsze zaokrąglenie. */
.kb-aside .kb-back { display: flex; width: 100%; border-radius: 10px; }
.kb-aside h2 { margin: 28px 0 10px; color: var(--ink); font-size: .85rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.kb-aside ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kb-aside li a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s; }
.kb-aside li a:hover { border-color: var(--blue); color: var(--blue); }
/* Zakończenie artykułu: kontakt i powrót do listy. */
.kb-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding: 20px 22px; border-radius: 8px; background: var(--tint); }
.kb-end-title { margin: 0 0 4px; color: var(--ink); font-size: 1.05rem; font-weight: 500; }
.kb-end p { margin: 0; font-size: .92rem; }
.kb-end a:not(.kb-back) { color: var(--blue); }
.kb-page .nw-pager a { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .2s, color .2s; }
.kb-page .nw-pager a:hover { border-color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .kb-back, .kb-back span, .kb-shot-hint { transition: none; } }
/* Strona pod otwartym oknem się nie przewija. Wytyczne odradzają overflow: hidden na html,
   bo to zmienia układ i resetuje przewinięcie. Safari tego jeszcze nie obsługuje. */
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { overflow: hidden; overscroll-behavior: contain; }
.kb-zoom { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--white); }
.kb-zoom::backdrop { background: rgba(0, 0, 0, .88); }
.kb-zoom[open] { display: flex; align-items: center; justify-content: center; }
.kb-zoom img { max-width: 92vw; max-height: 84vh; object-fit: contain; background: var(--white); }
.kb-zoom button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--brand); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.kb-zoom button[hidden], .kb-zoom-count[hidden] { display: none; }
.kb-zoom button:hover, .kb-zoom button:focus-visible { background: var(--brand); color: var(--white); outline: 0; }
.kb-zoom-close { top: 16px; right: 16px; }
.kb-zoom-prev { top: 50%; left: 16px; transform: translateY(-50%); }
.kb-zoom-next { top: 50%; right: 16px; transform: translateY(-50%); }
.kb-zoom-count { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); font-size: .92rem; }
@media (max-width: 960px) {
  .kb-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .kb-main { max-width: none; }
  .kb-aside { position: static; }
}
@media (max-width: 640px) {
  .kb-gallery { grid-template-columns: minmax(0, 1fr); }
  .kb-zoom-prev, .kb-zoom-next { top: auto; bottom: 16px; transform: none; }
}

/* Pliki do pobrania */
.dl-head { position: relative; overflow: hidden; }
.dl-head .wrap { position: relative; z-index: 1; }
.dl-head svg { position: absolute; top: 50%; right: clamp(16px, 8vw, 120px); width: clamp(120px, 16vw, 210px); transform: translateY(-50%); fill: none; stroke: var(--white); stroke-width: 5; }
/* Trzy karty obok siebie tylko przy szerokiej sekcji. Przy średniej każda karta to wiersz:
   ikona, opis i przyciski obok siebie. Przy wąskiej karty są pod sobą (size-aware-styling). */
.dl-sec { container: dl / inline-size; }
.dl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 23px; }
@container dl (min-width: 1180px) { .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container dl (min-width: 640px) and (max-width: 1179.98px) {
  .dl-sec .dl-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; column-gap: 28px; align-items: start; }
  .dl-sec .dl-card > * { grid-column: 2; }
  .dl-sec .dl-card > .dl-icon { grid-column: 1; grid-row: 1 / span 4; }
  .dl-sec .dl-card > .dl-actions { grid-column: 3; grid-row: 1 / span 4; align-self: center; margin: 0; padding: 0; }
  .dl-sec .dl-card h2 { margin-top: 0; }
}
.dl-card { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius); background: var(--grey); }
.dl-card h2 { margin: 18px 0 10px; font-size: 1.25rem; font-weight: 600; }
.dl-card p { margin: 0 0 10px; line-height: 1.55; }
.dl-card .dl-meta { font-size: .88rem; font-weight: 400; }
.dl-icon { width: 48px; height: 48px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dl-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: auto; padding-top: 14px; }
.dl-more { font-size: .92rem; }
@media (max-width: 640px) { .dl-head svg { display: none; } .dl-card { padding: 24px; } }

/* Najczęstsze pytania na stronie głównej */
.faq { padding: 0 var(--side); }
.faq details { border-bottom: 1px solid var(--grey); }
.faq details:first-child { border-top: 1px solid var(--grey); }
.faq summary { padding: 14px 0; color: var(--blue); font-weight: 400; cursor: pointer; }
/* Odpowiedź rozwija się płynnie tam, gdzie przeglądarka to umie. Gdzie indziej otwiera się od razu. */
.faq details::details-content, .more-checks::details-content { overflow: clip; }
@supports (interpolate-size: allow-keywords) {
  .faq details::details-content, .more-checks::details-content { interpolate-size: allow-keywords; block-size: 0; }
  .faq details[open]::details-content, .more-checks[open]::details-content { block-size: auto; }
  @media (prefers-reduced-motion: no-preference) {
    .faq details::details-content, .more-checks::details-content { transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  }
}
.faq summary:hover { color: var(--blue-dark); }
.faq p { max-width: 788px; margin: 0; padding: 0 0 16px; font-weight: 300; }

/* Strona konfiguratora (Pages/Konfigurator.cshtml). */
.kf-hero .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 60px); }
.kf-hero h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.kf-lead { margin: 18px 0 0; font-weight: 300; }
.kf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn.kf-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.btn.kf-ghost:hover { background: var(--brand-dark); }
.kf-shot { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.kf-intro { max-width: 788px; padding: 0 var(--side); }
.kf-intro p { font-weight: 300; }
.kf-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.kf-cards .fcard, .kf-two .fcard { --gap: 14px; }
.kf-cards h3, .kf-card-title { margin: 0; }
.kf-card-title { font-size: 1.35rem; }
.kf-sub { max-width: 788px; margin: 10px 0 0; font-weight: 300; }
.kf-steps { display: grid; gap: clamp(28px, 4vw, 48px); margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; list-style: none; container: kf-steps / inline-size; }
.kf-step { display: grid; gap: 18px; align-items: center; }
.kf-step h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.kf-step p { margin: 0; font-weight: 300; }
.kf-step figure { margin: 0; }
.kf-step img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 28px rgba(0, 20, 170, .1); }
.kf-num { display: inline-grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--white); font-size: .95rem; }
@container kf-steps (min-width: 760px) {
  .kf-step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .kf-step:nth-child(even) > :first-child { order: 2; }
  .kf-step-text { grid-template-columns: minmax(0, 1fr); max-width: 788px; }
}
.kf-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.kf-start { align-items: start; }
.kf-start p { font-weight: 300; }
.kf-contact { padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); }
.kf-contact h3 { margin-top: 0; }
.kf-contact a:not(.btn) { color: var(--white); }
@media (max-width: 1000px) { .kf-hero .split { grid-template-columns: minmax(0, 1fr); } }
.kf-kicker { margin: 0 0 6px; color: var(--blue, #0014AA); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kf-step p + p { margin-top: 10px; }
.kf-step figure a, .kf-shots a { display: block; border-radius: var(--radius); }
.kf-step figure a:hover img, .kf-shots a:hover img { box-shadow: 0 14px 34px rgba(0, 20, 170, .18); }
.kf-shots img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.kf-shots h3 { margin: 0; }
/* Powiększenie zrzutu w oknie dialogowym (site.js, linki z data-zoom). */
a[data-zoom] { cursor: zoom-in; }
.zoom-dialog { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 0; border-radius: var(--radius); background: var(--white); box-shadow: 0 24px 64px rgba(0, 14, 119, .35); cursor: zoom-out; }
.zoom-dialog img { display: block; max-width: 100%; height: auto; }
.zoom-dialog::backdrop { background-color: rgba(0, 14, 119, .55); backdrop-filter: blur(3px); }
.zoom-close { position: sticky; top: 10px; float: right; display: grid; place-items: center; width: 40px; height: 40px; margin: 10px 10px -50px 0; padding: 0; border: 0; border-radius: 50%; background: var(--brand); color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.zoom-close:focus-visible { outline: 3px solid var(--white); outline-offset: -6px; }
/* W trybie ciemnym jasne zrzuty ekranu są lekko przygaszone, żeby nie raziły. Po najechaniu wracają do pełnej jasności. */
:is(.prose, .kb-body) img, .kf-step img, .kf-shots img, .kf-shot, .nw-thumb img, .nw-feature img { filter: var(--shot-filter); transition: filter .2s, border-color .2s; }
:is(.prose, .kb-body, .kf-step, .kf-shots, .nw-card, .nw-feature) :is(a:hover, a:focus-visible) img, .kb-body img.kb-zoomable:hover { filter: none; }

/* WH Designer: rysunek przykładowego obiegu w niebieskim pasie (te same kolory w obu motywach, jak loga modułów). */
.dsg-diagram { display: block; width: 100%; height: auto; max-width: 590px; justify-self: center; }
.dsg-node rect { fill: #fff; }
.dsg-node .dsg-name { fill: #0014AA; font-size: 13.5px; font-weight: 500; }
.dsg-node .dsg-who { fill: #5a6aa8; font-size: 10.5px; font-weight: 400; }
.dsg-muted rect { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .7); stroke-dasharray: 4 3; }
.dsg-muted .dsg-name, .dsg-muted .dsg-who { fill: #fff; }
.dsg-links path { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.6; }
.dsg-links .dsg-dash { stroke-dasharray: 5 4; }
.dsg-head { fill: #fff; }
.dsg-labels text { fill: rgba(255, 255, 255, .85); font-size: 10.5px; font-weight: 300; }
.dsg-who-line { margin: 0; color: var(--blue); font-size: .9rem; font-weight: 500; }
.kf-cards .fcard h3 .kf-num { width: 28px; height: 28px; margin-right: 6px; font-size: .85rem; vertical-align: middle; }
.dsg-sub { margin: 0 0 24px; padding: 0 var(--side); }
/* Mały zrzut (np. pojedyncze okno) w naturalnym rozmiarze, żeby nie był rozmyty. */
.kf-step .kf-small { justify-self: center; } .kf-step .kf-small img { width: auto; max-width: 100%; }
