@charset "UTF-8";
/* ==========================================================================
   elnix.pl — arkusz stylów serwisu
   Kolejność: reset → tokeny → typografia → pomoce → nagłówek → przyciski
              → hero → nagłówek podstrony → układ dokumentacyjny → sekcje
              → siatki i karty → proza → tabele → akordeon → pasma → stopka
              → rysunki SVG → responsywność → druk
   Bez frameworków i bez zależności poza Google Fonts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] { list-style: none; }

img, svg, video { max-width: 100%; }
img { height: auto; border: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; }

table { border-collapse: collapse; border-spacing: 0; }

:where(:focus-visible) {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   2. Tokeny — motyw jasny
   -------------------------------------------------------------------------- */
:root {
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Spectral", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
          "Liberation Mono", monospace;

  --bg:           #f7f5f2;
  --bg-soft:      #efebe4;
  --bg-tint:      #f2efe9;
  --card:         #ffffff;
  --card-2:       #fbfaf7;
  --line:         #e4dfd6;
  --line-soft:    #eeeae2;
  --line-strong:  #cec7b9;

  --ink:    #14181d;
  --text:   #3b434d;
  --muted:  #646d79;
  --faint:  #767f8b;

  --deep:        #0f1419;
  --deep-2:      #161e26;
  --deep-3:      #1d2731;
  --deep-line:   #27323e;
  --deep-ink:    #f4f1ea;
  --deep-text:   #b6c0cb;
  --deep-muted:  #838f9c;

  --brand:        #8a6413;
  --brand-2:      #a87c22;
  --brand-bright: #c9932e;
  --brand-soft:   #f6efdd;
  --brand-line:   #e2d2aa;

  --steel:       #285b87;
  --steel-soft:  #e6eef6;
  --steel-line:  #c6d9ea;
  --green:       #2c6b4f;
  --green-soft:  #e2f0e8;
  --green-line:  #bfdcce;
  --rust:        #9a4726;
  --rust-soft:   #fbe9e1;
  --rust-line:   #edcbba;

  --accent:      #8a6413;
  --accent-soft: #f6efdd;
  --accent-line: #e2d2aa;

  --shadow-xs: 0 1px 2px rgba(22, 18, 10, .05);
  --shadow-sm: 0 1px 2px rgba(22, 18, 10, .05), 0 2px 8px rgba(22, 18, 10, .04);
  --shadow-md: 0 2px 4px rgba(22, 18, 10, .05), 0 10px 26px rgba(22, 18, 10, .07);
  --shadow-lg: 0 4px 10px rgba(22, 18, 10, .06), 0 22px 54px rgba(22, 18, 10, .10);
  --ring: #a87c22;

  --r-xs: 3px;
  --r-sm: 5px;
  --r:    8px;
  --r-lg: 14px;
  --r-xl: 22px;

  --nav-h: 68px;
  --maxw: 1200px;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   3. Tokeny — motyw ciemny
   Blok powtórzony, żeby ręczny przełącznik wygrywał w obie strony.
   Żaden kolor nie jest definiowany wyłącznie tutaj.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:           #0b1015;
    --bg-soft:      #10161d;
    --bg-tint:      #0e141a;
    --card:         #121a22;
    --card-2:       #16202a;
    --line:         #22303d;
    --line-soft:    #1b2531;
    --line-strong:  #35485c;

    --ink:    #eef2f7;
    --text:   #c1cbd6;
    --muted:  #8b97a5;
    --faint:  #77838f;

    --deep:        #070b0f;
    --deep-2:      #0d141a;
    --deep-3:      #141d25;
    --deep-line:   #1e2a35;
    --deep-ink:    #f2f5f9;
    --deep-text:   #b4bfca;
    --deep-muted:  #7f8b98;

    --brand:        #dcae57;
    --brand-2:      #e9c179;
    --brand-bright: #e9c179;
    --brand-soft:   #241b09;
    --brand-line:   #47371a;

    --steel:       #7cb2e2;
    --steel-soft:  #101f2e;
    --steel-line:  #23384c;
    --green:       #6fc69d;
    --green-soft:  #0d2119;
    --green-line:  #1d3b2d;
    --rust:        #e28f69;
    --rust-soft:   #26140d;
    --rust-line:   #422217;

    --accent:      #dcae57;
    --accent-soft: #241b09;
    --accent-line: #47371a;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .40);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40), 0 2px 10px rgba(0, 0, 0, .34);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .44), 0 12px 30px rgba(0, 0, 0, .42);
    --shadow-lg: 0 6px 14px rgba(0, 0, 0, .48), 0 26px 60px rgba(0, 0, 0, .52);
    --ring: #dcae57;

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:           #0b1015;
  --bg-soft:      #10161d;
  --bg-tint:      #0e141a;
  --card:         #121a22;
  --card-2:       #16202a;
  --line:         #22303d;
  --line-soft:    #1b2531;
  --line-strong:  #35485c;

  --ink:    #eef2f7;
  --text:   #c1cbd6;
  --muted:  #8b97a5;
  --faint:  #77838f;

  --deep:        #070b0f;
  --deep-2:      #0d141a;
  --deep-3:      #141d25;
  --deep-line:   #1e2a35;
  --deep-ink:    #f2f5f9;
  --deep-text:   #b4bfca;
  --deep-muted:  #7f8b98;

  --brand:        #dcae57;
  --brand-2:      #e9c179;
  --brand-bright: #e9c179;
  --brand-soft:   #241b09;
  --brand-line:   #47371a;

  --steel:       #7cb2e2;
  --steel-soft:  #101f2e;
  --steel-line:  #23384c;
  --green:       #6fc69d;
  --green-soft:  #0d2119;
  --green-line:  #1d3b2d;
  --rust:        #e28f69;
  --rust-soft:   #26140d;
  --rust-line:   #422217;

  --accent:      #dcae57;
  --accent-soft: #241b09;
  --accent-line: #47371a;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .40);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40), 0 2px 10px rgba(0, 0, 0, .34);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .44), 0 12px 30px rgba(0, 0, 0, .42);
  --shadow-lg: 0 6px 14px rgba(0, 0, 0, .48), 0 26px 60px rgba(0, 0, 0, .52);
  --ring: #dcae57;

  color-scheme: dark;
}

/* akcent działu — ustawiany lokalnie na sekcji, karcie albo na <body> */
[data-domain="tel"] { --accent: var(--steel); --accent-soft: var(--steel-soft); --accent-line: var(--steel-line); }
[data-domain="en"]  { --accent: var(--brand); --accent-soft: var(--brand-soft); --accent-line: var(--brand-line); }
[data-domain="rcp"] { --accent: var(--green); --accent-soft: var(--green-soft); --accent-line: var(--green-line); }
[data-domain="doc"] { --accent: var(--brand); --accent-soft: var(--brand-soft); --accent-line: var(--brand-line); }

/* --------------------------------------------------------------------------
   4. Typografia
   -------------------------------------------------------------------------- */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -.012em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.05rem, 1.35rem + 2.6vw, 3.3rem); }
h2 { font-size: clamp(1.52rem, 1.16rem + 1.3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + .48vw, 1.38rem); }
h4 { font-size: 1.04rem; letter-spacing: 0; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: var(--ink); }
small { font-size: .875em; }

code, kbd, samp { font-family: var(--mono); font-size: .9em; }

hr { border: 0; height: 1px; background: var(--line); margin: 2.4rem 0; }

::selection { background: #a87c22; color: #fff; }

/* --------------------------------------------------------------------------
   5. Pomoce
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, .55rem + 2.2vw, 2.5rem);
}
.container-narrow { max-width: 880px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .92rem;
  transition: top .18s ease;
}
.skip-link:focus { top: 1rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  vertical-align: -.22em;
}
.ic-sm { width: 1em; height: 1em; }
.ic-lg { width: 1.6em; height: 1.6em; }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: linear-gradient(90deg, var(--brand-2), var(--brand-bright));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.to-top {
  position: fixed;
  right: clamp(.9rem, 2vw, 1.6rem);
  bottom: clamp(.9rem, 2vw, 1.6rem);
  z-index: 110;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brand); color: var(--brand); }

/* --------------------------------------------------------------------------
   6. Nagłówek serwisu
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .header {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
  }
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--steel) 0 33.33%, var(--brand-2) 33.33% 66.66%, var(--green) 66.66% 100%);
  opacity: .9;
}

.header-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  text-decoration: none;
  flex: none;
  padding: .3rem 0;
}
.brand-mark { width: 34px; height: 34px; display: block; border-radius: 7px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand-name b { font-weight: 600; color: var(--brand); }
.brand-sub {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .1rem; }
.nav-list a {
  display: block;
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  transition: color .16s ease, background .16s ease;
}
.nav-list a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-list a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.header-tools { display: flex; align-items: center; gap: .4rem; flex: none; }

.theme-toggle {
  width: 38px; height: 38px;
  display: none; place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--card);
  transition: color .16s ease, border-color .16s ease;
}
.js .theme-toggle { display: grid; }
.theme-toggle:hover { color: var(--brand); border-color: var(--brand-line); }
.theme-toggle .ic-sun, .theme-toggle .ic-moon {
  width: 17px; height: 17px; fill: none; stroke: currentColor;
}
.theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: block; }
}

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
.nav-toggle .ic { width: 19px; height: 19px; }
.nav-toggle .ic-close { display: none; }
.header[data-nav-open] .nav-toggle .ic-open { display: none; }
.header[data-nav-open] .nav-toggle .ic-close { display: block; }

/* --------------------------------------------------------------------------
   7. Przyciski i odnośniki akcji
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .74rem 1.3rem;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease,
              color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 1.05em; height: 1.05em; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.3); }
:root[data-theme="dark"] .btn-primary { color: #191202; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { color: #191202; }
}

.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-quiet { background: transparent; color: var(--deep-ink); border-color: rgba(255,255,255,.26); }
.btn-quiet:hover { border-color: var(--brand-bright); color: var(--brand-bright); }

.btn-sm { padding: .5rem .9rem; font-size: .875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-weight: 600;
  font-size: .93rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: gap .16s ease, border-color .16s ease;
}
.link-arrow .ic { width: 1.02em; height: 1.02em; }
.link-arrow:hover { gap: .62rem; border-bottom-color: currentColor; }

/* --------------------------------------------------------------------------
   8. Nadtytuły, plakietki, znaczniki
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .65;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  padding: .24rem .55rem;
  border-radius: var(--r-xs);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
  margin: 1.6rem 0;
  border: 0;
}

/* --------------------------------------------------------------------------
   9. Hero — strona główna
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--deep);
  color: var(--deep-text);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 74% 8%, rgba(201,147,46,.16), transparent 62%),
    radial-gradient(700px 400px at 12% 96%, rgba(40,91,135,.22), transparent 64%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1100px 620px at 50% 30%, #000, transparent 78%);
  mask-image: radial-gradient(1100px 620px at 50% 30%, #000, transparent 78%);
  z-index: -1;
}

.hero-inner { padding: clamp(3.2rem, 2rem + 5vw, 6.4rem) 0 clamp(3rem, 2rem + 4vw, 5.4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 1rem + 4vw, 4.4rem);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero .eyebrow { color: var(--brand-bright); }
.hero h1 { color: var(--deep-ink); margin-bottom: 1.1rem; }
.hero-claim {
  font-family: var(--serif);
  font-size: clamp(1.08rem, .98rem + .5vw, 1.32rem);
  font-weight: 500;
  color: var(--brand-bright);
  margin: 0 0 1.15rem;
  line-height: 1.42;
}
.hero-lead {
  font-size: clamp(1rem, .96rem + .22vw, 1.09rem);
  color: var(--deep-text);
  max-width: 54ch;
  margin-bottom: 1rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.8rem 0 0;
}
.hero-note {
  margin-top: 1.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--deep-line);
  font-size: .87rem;
  color: var(--deep-muted);
  max-width: 58ch;
}
.hero-note b { color: var(--deep-text); font-weight: 600; }
.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; height: auto; }

.hero-strip {
  border-top: 1px solid var(--deep-line);
  background: rgba(0,0,0,.18);
}
.hero-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.hero-stat { padding: 1.35rem 1.2rem; border-left: 1px solid var(--deep-line); }
.hero-stat:first-child { border-left: 0; padding-left: 0; }
.hero-stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.62rem;
  font-weight: 600;
  color: var(--deep-ink);
  line-height: 1.1;
}
.hero-stat-lab {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--deep-muted);
  margin-top: .42rem;
}

/* --------------------------------------------------------------------------
   10. Nagłówek podstrony
   -------------------------------------------------------------------------- */
.pagehead {
  position: relative;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.6rem, 1rem + 2vw, 2.6rem) 0 clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  opacity: .9;
}
.pagehead-inner { max-width: 60rem; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .42rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.crumbs a { text-decoration: none; color: var(--muted); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--accent); border-bottom-color: currentColor; }
.crumbs .sep { opacity: .5; }
.crumbs [aria-current="page"] { color: var(--ink); }

.pagehead h1 { margin-bottom: .75rem; }
.pagehead-lead {
  font-size: clamp(1rem, .96rem + .24vw, 1.12rem);
  color: var(--muted);
  max-width: 62ch;
}
.pagemeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.35rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--faint);
}
.pagemeta span { display: inline-flex; align-items: center; gap: .4rem; }
.pagemeta .ic { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   11. Układ dokumentacyjny: nawigacja boczna + treść + spis treści
   -------------------------------------------------------------------------- */
.doc {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 232px;
  gap: clamp(1.6rem, 1rem + 2.4vw, 3.4rem);
  align-items: start;
  padding: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem) 0 clamp(3rem, 2rem + 3vw, 4.6rem);
}
.doc-side { position: sticky; top: calc(var(--nav-h) + 18px); grid-column: 1; grid-row: 1; }
.doc-article { grid-column: 2; grid-row: 1; min-width: 0; }
.doc-sections > summary { display: none; }
.doc-nav-title {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 .85rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.doc-nav ul { display: flex; flex-direction: column; gap: 1px; list-style: none; margin: 0; padding: 0; }
.doc-nav ul + .doc-nav-title { margin-top: 1.5rem; }
.doc-nav a {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding: .44rem .6rem .44rem .7rem;
  border-radius: var(--r-xs);
  border-left: 2px solid transparent;
  text-decoration: none;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--muted);
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.doc-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.doc-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--accent);
  background: var(--accent-soft);
}
.doc-nav .no {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--faint);
  flex: none;
  min-width: 1.5em;
}
.doc-nav a[aria-current="page"] .no { color: var(--accent); }

.doc-toc { position: sticky; top: calc(var(--nav-h) + 18px); grid-column: 3; grid-row: 1; }
.toc-title {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 .8rem;
}
.doc-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--line);
  margin: 0; padding: 0;
}
.doc-toc a {
  display: block;
  padding: .32rem .7rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: .82rem;
  line-height: 1.42;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }

/* --------------------------------------------------------------------------
   12. Sekcje
   -------------------------------------------------------------------------- */
.section { padding: clamp(3.2rem, 2rem + 4vw, 5.6rem) 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-tint { background: var(--bg-tint); }
.section-deep {
  background: var(--deep);
  color: var(--deep-text);
  position: relative;
  overflow: hidden;
}
.section-deep h2, .section-deep h3 { color: var(--deep-ink); }
.section-deep .eyebrow { color: var(--brand-bright); }
.section-deep .section-lead { color: var(--deep-text); }

.price-note { margin-top: 1rem; font-size: .9rem; line-height: 1.6; }

.section-head { max-width: 62ch; margin-bottom: clamp(1.9rem, 1.2rem + 2vw, 2.9rem); }
.section-head-wide { max-width: none; }
.section-head h2 { margin-bottom: .7rem; }
.section-lead { color: var(--muted); font-size: 1.03rem; }

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 1rem + 3.5vw, 4rem);
  align-items: center;
}

/* --------------------------------------------------------------------------
   13. Siatki i karty
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, .7rem + 1vw, 1.5rem); }
.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)); }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.3rem, 1rem + .8vw, 1.8rem);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card-link { text-decoration: none; display: flex; flex-direction: column; }
.card-link:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-foot { margin-top: auto; padding-top: 1.05rem; }

.icon-box {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: 1rem;
}
.icon-box .ic { width: 21px; height: 21px; }

/* karta działu katalogu */
.domain {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.domain:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.domain-art {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
  padding: 1.1rem 1.1rem 0;
}
.domain-art svg { display: block; width: 100%; height: auto; }
.domain-body { padding: clamp(1.3rem, 1rem + .8vw, 1.7rem); display: flex; flex-direction: column; flex: 1; }
.domain-kicker {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.domain h3 { margin-bottom: .6rem; }
.domain p { color: var(--muted); font-size: .96rem; margin-bottom: 1.05rem; }
.domain-list {
  display: flex;
  flex-wrap: wrap;
  gap: .34rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.domain-list li {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .03em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: .2rem .45rem;
  background: var(--card-2);
}
.domain .card-foot { margin-top: auto; padding-top: 0; }

/* karta poradnika */
.guide {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.3rem, 1rem + .8vw, 1.75rem);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.guide:hover { border-color: var(--brand-line); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.guide-no {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--brand);
}
.guide h3 { font-size: 1.16rem; margin: 0; }
.guide p { color: var(--muted); font-size: .94rem; margin: 0; }
.guide .card-foot { padding-top: .7rem; }

/* liczby */
.stats {
  display: grid;
  /* stała liczba kolumn — przy auto-fit ostatni wiersz zostawiał pustą kratkę */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.stat { background: var(--card); padding: 1.3rem 1.2rem; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.stat-lab {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .45rem;
}

/* lista odnośników do materiałów */
.linklist { display: grid; gap: .55rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.linkitem {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
a.linkitem:hover { border-color: var(--accent-line); background: var(--card-2); transform: translateX(2px); }
.linkitem .ic { color: var(--accent); width: 17px; height: 17px; }
.linkitem-name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.linkitem-host {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--faint);
  white-space: nowrap;
}

/* pary etykieta / wartość */
.kv { display: grid; gap: 0; margin: 1.4rem 0; border-top: 1px solid var(--line); }
.kv > div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.kv dt {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .2rem;
}
.kv dd { margin: 0; color: var(--ink); font-weight: 500; }
.kv dd a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.kv dd a:hover { border-bottom-color: currentColor; }

/* --------------------------------------------------------------------------
   14. Proza — treść redakcyjna
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; font-size: 1.035rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 {
  margin-top: 2.9rem;
  margin-bottom: .95rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 2rem; margin-bottom: .6rem; scroll-margin-top: 100px; }
.prose h2:target, .prose h3:target { color: var(--accent); }
.prose h4 { margin-top: 1.6rem; margin-bottom: .4rem; }
.prose p { margin-bottom: 0; }
.prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  transition: border-color .16s ease, color .16s ease;
}
.prose a:hover { border-bottom-color: currentColor; }
.prose .lead {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
}
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: var(--r-sm); }

.checks { list-style: none; padding: 0 !important; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.85rem; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.checks li + li { margin-top: 0; }

.numbered { list-style: none; padding: 0 !important; counter-reset: n; display: grid; gap: .85rem; }
.numbered li { position: relative; padding-left: 2.6rem; counter-increment: n; }
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0; top: .1em;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: var(--r-xs);
  padding: .05rem .35rem;
}
.numbered li + li { margin-top: 0; }

.notice {
  position: relative;
  display: flex;
  gap: .9rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--card-2);
  font-size: .95rem;
  color: var(--text);
}
.notice .ic { color: var(--muted); margin-top: .18rem; width: 19px; height: 19px; }
.notice p { margin-bottom: .6rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-title {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .3rem;
  font-size: .95rem;
}
.notice-info { border-left-color: var(--steel); background: var(--steel-soft); border-color: var(--steel-line); }
.notice-info .ic { color: var(--steel); }
.notice-warn { border-left-color: var(--rust); background: var(--rust-soft); border-color: var(--rust-line); }
.notice-warn .ic { color: var(--rust); }
.notice-ok { border-left-color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
.notice-ok .ic { color: var(--green); }
.notice-src { border-left-color: var(--brand); background: var(--brand-soft); border-color: var(--brand-line); }
.notice-src .ic { color: var(--brand); }
.notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.keypoint {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1rem + .5vw, 1.34rem);
  line-height: 1.48;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: .3rem 0 .3rem 1.4rem;
  margin: 2rem 0;
}

.tpl {
  font-family: var(--mono);
  font-size: .88rem;
  line-height: 1.75;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1.25rem 1.4rem;
  color: var(--text);
  white-space: pre-wrap;
  overflow-x: auto;
}
.tpl b { color: var(--ink); }

.srcnote {
  font-size: .86rem;
  color: var(--faint);
  font-style: italic;
}

.mail { font-family: var(--mono); font-size: .95em; }
.mail-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  word-break: break-word;
}
.mail-link:hover { border-bottom-color: currentColor; }


/* --------------------------------------------------------------------------
   15. Tabele
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
table.data { width: 100%; min-width: 560px; font-size: .93rem; }
table.data th, table.data td {
  padding: .8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
table.data thead th {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card-2);
  white-space: nowrap;
}
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td, table.data tbody tr:hover th { background: var(--bg-tint); }
table.data td.num { font-family: var(--mono); white-space: nowrap; }
table.data .hi { color: var(--brand); font-weight: 600; }

/* --------------------------------------------------------------------------
   16. Akordeon i FAQ
   -------------------------------------------------------------------------- */
.acc { display: grid; gap: .6rem; }
.acc details {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.acc details[open] { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.acc summary {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease, border-color .2s ease;
}
.acc details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--accent);
}
.acc summary:hover { color: var(--accent); }
.acc .acc-body {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
  font-size: .98rem;
}
.acc .acc-body > * + * { margin-top: .85rem; }
.acc .acc-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.acc .acc-body a:hover { border-bottom-color: currentColor; }

/* --------------------------------------------------------------------------
   17. Pasma i nawigacja między stronami
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--deep);
  color: var(--deep-text);
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 320px at 82% 0%, rgba(201,147,46,.18), transparent 64%);
  z-index: -1;
}
.cta-inner {
  padding: clamp(2.6rem, 1.8rem + 3vw, 4.2rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
.cta-band h2 { color: var(--deep-ink); margin-bottom: .7rem; }
.cta-band p { color: var(--deep-text); max-width: 60ch; }
.cta-band .eyebrow { color: var(--brand-bright); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 2.2rem 0 0;
  border-top: 1px solid var(--line);
  margin-top: 2.8rem;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--card);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.pager a:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pager .dir {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.pager .ttl { font-weight: 600; color: var(--ink); font-size: .98rem; line-height: 1.35; }
.pager-prev { text-align: left; }
.pager-next { text-align: right; }
.pager-next.is-only { grid-column: 2; }

/* --------------------------------------------------------------------------
   18. Stopka
   -------------------------------------------------------------------------- */
.footer {
  background: var(--deep);
  color: var(--deep-text);
  border-top: 1px solid var(--deep-line);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 1rem + 2vw, 3rem);
  padding: clamp(2.6rem, 1.8rem + 2.6vw, 4rem) 0 2.4rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .9rem; }
.footer-brand .brand-name { color: var(--deep-ink); }
.footer-brand .brand-name b { color: var(--brand-bright); }
.footer-brand .brand-sub { color: var(--deep-muted); }
.footer-about { font-size: .89rem; color: var(--deep-muted); max-width: 40ch; line-height: 1.62; }
.footer-col h3 {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--deep-muted);
  margin-bottom: .95rem;
}
.footer-col ul { display: grid; gap: .48rem; list-style: none; margin: 0; padding: 0; }
.footer-col a {
  text-decoration: none;
  font-size: .9rem;
  color: var(--deep-text);
  transition: color .16s ease;
}
.footer-col a:hover { color: var(--brand-bright); }
.footer-bottom {
  border-top: 1px solid var(--deep-line);
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--deep-muted);
}
.footer-note { max-width: 76ch; line-height: 1.6; }
.footer-bottom a { color: var(--deep-text); text-decoration: none; border-bottom: 1px solid var(--deep-line); }
.footer-bottom a:hover { color: var(--brand-bright); }

/* --------------------------------------------------------------------------
   19. Rysunki SVG
   Kolory wyłącznie przez klasy — inaczej rysunek nie zadziała w motywie ciemnym.
   -------------------------------------------------------------------------- */
.fig { margin: 2.2rem 0; }
.fig-art {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  padding: 1.2rem 1.1rem;
  overflow-x: auto;
}
.fig-art svg { display: block; width: 100%; min-width: 840px; max-width: none; height: auto; }
.fig-art::after { content: "Schemat można przewijać poziomo."; display: block; margin-top: .7rem; font-size: .85rem; color: var(--muted); }
.fig-zoom-ready .fig-art svg { min-width: 0; }
.fig-zoom-ready .fig-art::after { display: none; }
.fig-zoom {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .8rem;
  margin-top: .7rem;
  border: 1px solid currentColor;
  border-radius: var(--r-sm);
  font-size: .875rem;
  color: inherit;
}
.fig-zoom:hover { text-decoration: underline; text-underline-offset: 3px; }
.fig-dialog {
  width: min(96vw, 1240px);
  max-width: 96vw;
  max-height: 92dvh;
  padding: 1rem;
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--card);
  color: var(--text);
}
.fig-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.fig-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.fig-dialog-head p { margin: 0; font-weight: 600; }
.fig-dialog-head button { min-width: 44px; min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.fig-dialog-view { max-height: 66dvh; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.fig-dialog-view svg { display: block; width: 100%; min-width: 960px; max-width: none; height: auto; }
.fig-dialog-deep .fig-dialog-view { background: var(--deep); }
.fig-dialog-note { margin: .8rem 0 0; font-size: .875rem; }
.fig-cap {
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
}
.fig-num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: .5rem;
}

/* obrysy */
.st-none   { stroke: none; }
.st-line   { stroke: var(--line-strong); }
.st-grid   { stroke: var(--line); }
.st-ink    { stroke: var(--ink); }
.st-muted  { stroke: var(--muted); }
.st-brand  { stroke: var(--brand); }
.st-steel  { stroke: var(--steel); }
.st-green  { stroke: var(--green); }
.st-rust   { stroke: var(--rust); }
.st-accent { stroke: var(--accent); }
.st-white  { stroke: #ffffff; }

/* wypełnienia */
.fl-none       { fill: none; }
.fl-card       { fill: var(--card); }
.fl-soft       { fill: var(--bg-soft); }
.fl-tint       { fill: var(--bg-tint); }
.fl-line       { fill: var(--line); }
.fl-ink        { fill: var(--ink); }
.fl-muted      { fill: var(--muted); }
.fl-brand      { fill: var(--brand); }
.fl-steel      { fill: var(--steel); }
.fl-green      { fill: var(--green); }
.fl-rust       { fill: var(--rust); }
.fl-accent     { fill: var(--accent); }
.fl-brand-soft { fill: var(--brand-soft); }
.fl-steel-soft { fill: var(--steel-soft); }
.fl-green-soft { fill: var(--green-soft); }
.fl-rust-soft  { fill: var(--rust-soft); }
.fl-accent-soft{ fill: var(--accent-soft); }
.fl-deep       { fill: var(--deep); }
.fl-white      { fill: #ffffff; }

/* napisy na rysunkach */
.tx {
  font-family: var(--sans);
  font-size: 12px;
  fill: var(--text);
}
.tx-sm { font-size: 10.5px; }
.tx-lg { font-size: 15px; }
.tx-b  { font-weight: 600; }
.tx-mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; }
.tx-serif { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.tx-ink   { fill: var(--ink); }
.tx-muted { fill: var(--muted); }
.tx-brand { fill: var(--brand); }
.tx-steel { fill: var(--steel); }
.tx-green { fill: var(--green); }
.tx-rust  { fill: var(--rust); }
.tx-accent{ fill: var(--accent); }
.tx-white { fill: #ffffff; }

/* animacje rysunków */
@keyframes dashflow { to { stroke-dashoffset: -40; } }
@keyframes softpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes blinkdot { 0%, 44% { opacity: 1; } 50%, 94% { opacity: .18; } 100% { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.flow { stroke-dasharray: 6 6; animation: dashflow 2.4s linear infinite; }
.pulse { animation: softpulse 3.2s ease-in-out infinite; }
.blink { animation: blinkdot 2.6s ease-in-out infinite; }
.float-y { animation: floaty 5s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   20. Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .doc { grid-template-columns: 224px minmax(0, 1fr); }
  .doc-side { grid-column: 1; grid-row: 1 / span 2; }
  .doc-toc { grid-column: 2; grid-row: 1; position: static; margin-bottom: .4rem; }
  .doc-article { grid-column: 2; grid-row: 2; }
  .doc-toc ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .35rem;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--card-2);
    padding: .7rem .85rem;
  }
  .doc-toc a {
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    background: var(--card);
    padding: .25rem .55rem;
    margin-left: 0;
    font-size: .78rem;
  }
  .doc-toc a.is-active { border-color: var(--accent); }
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* menu zwija się wcześniej — siedem pozycji nie mieści się poniżej 1080 px */
@media (max-width: 1079px) {
  .header { position: static; }
  .js .header { position: sticky; }
  .header-inner { flex-wrap: wrap; }
  .header-tools { margin-left: auto; }
  .js .nav-toggle { display: grid; }
  .nav {
    position: static;
    order: 3;
    width: 100%;
    margin: 0;
  }
  .js .nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    margin: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .26s ease, visibility .26s;
  }
  .js .nav.is-open { max-height: 70vh; overflow-y: auto; visibility: visible; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .6rem clamp(1.1rem, .55rem + 2.2vw, 2.5rem) 1rem;
  }
  .nav-list a { padding: .78rem .5rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1rem; }
  .nav-list li:last-child a { border-bottom: 0; }
}

@media (max-width: 959px) {
  :root { --nav-h: 62px; }


  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
  .hero-art { order: -1; max-width: 560px; }
  .hero-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--deep-line); }
  .hero-stat:first-child, .hero-stat:nth-child(2) { border-top: 0; }

  .doc { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .doc-side { position: static; grid-column: 1; grid-row: 1; }
  .doc-sections > summary {
    display: list-item;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    font-weight: 500;
    list-style-position: inside;
  }
  .doc-sections[open] > summary { margin-bottom: .6rem; }
  .doc-nav {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    padding: 1rem 1.1rem;
  }
  .doc-nav-title { margin-bottom: .7rem; }
  .doc-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; list-style: none; }
  .doc-toc { grid-column: 1; grid-row: 2; }
  .doc-article { grid-column: 1; grid-row: 3; }

  .section-split { grid-template-columns: minmax(0, 1fr); }
  .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

@media (max-width: 719px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .doc-nav ul { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { text-align: left; }
  .pager-next.is-only { grid-column: 1; }
  .brand-sub { display: none; }
  .hero-strip-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stat:nth-child(2) { border-top: 1px solid var(--deep-line); }
  .prose { font-size: 1rem; }
  .keypoint { padding-left: 1.1rem; }
}

@media (max-width: 460px) {
  .btn { width: 100%; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
}

/* --------------------------------------------------------------------------
   21. Ograniczenie ruchu
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Druk
   -------------------------------------------------------------------------- */
@media print {
  .fig-zoom, .fig-dialog, .fig-art::after { display: none !important; }
  .fig-art svg { min-width: 0; }
  .header, .footer, .to-top, .progress, .doc-side, .doc-toc, .cta-band,
  .pager, .skip-link, .hero-art, .hero-actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .section-deep { background: #fff !important; color: #000 !important; }
  .hero h1, .section-deep h2, .section-deep h3 { color: #000 !important; }
  .doc { display: block; padding: 0; }
  .prose { max-width: none; }
  .card, .guide, .fig-art, .notice, .table-wrap { break-inside: avoid; border-color: #bbb; }
  a { text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
