/* ==========================================================================
   Orłowska § Bielak — Radcowie Prawni
   Arkusz stylów. Bez frameworków, bez zewnętrznych zależności.
   Kolory: czerń togi, papier kancelaryjny, ultramaryna żabotu radcy prawnego.
   Kroje: Archivo (tekst), Unbounded (akcenty), Fragment Mono (metadane).
   ========================================================================== */

/* ---------- Fonty (hostowane lokalnie — brak transferu IP do Google) ---------- */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C; /* tylko polskie znaki */
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(../fonts/archivo-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/unbounded-latin-ext.woff2) format('woff2');
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C; /* tylko polskie znaki */
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(../fonts/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Bodoni służy wyłącznie jako kształt znaku § z drobin (canvas) — nie jest używany w tekście */
@font-face {
  font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(../fonts/bodoni-moda-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: 'Fragment Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/fragment-mono-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0104-0107, U+0118-0119, U+0141-0144, U+015A-015B, U+0179-017C; /* tylko polskie znaki */
}
@font-face {
  font-family: 'Fragment Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/fragment-mono-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny ---------- */
:root {
  /* paleta */
  --ink: #0E0F14;          /* czerń togi */
  --ink-2: #171922;
  --ink-3: #242733;
  --paper: #EDEEF1;        /* papier kancelaryjny, chłodny */
  --paper-2: #E2E4EA;
  --card: #F8F8FA;
  --zabot: #2438E8;        /* ultramaryna żabotu */
  --zabot-deep: #1626B4;
  --zabot-soft: #6C9BFF;   /* jasny niebieski na ciemne tła (bez fioletu) */
  --zabot-tint: #DDE8FF;
  --muted: #595D6A;
  --muted-d: #969AA8;
  --line: rgba(14, 15, 20, .13);
  --line-d: rgba(237, 238, 241, .14);

  /* role (nadpisywane w motywach sekcji) */
  --fg: var(--ink);
  --fg-muted: var(--muted);
  --rule: var(--line);
  --accent: var(--zabot);
  --surface: var(--card);

  /* typografia */
  --f-sans: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --f-display: 'Unbounded', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'Fragment Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --fs-h1: clamp(2.5rem, 1.45rem + 3.7vw, 4.75rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.15vw, 3.1rem);
  --fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  --fs-lead: clamp(1.1rem, 1rem + .38vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9rem;
  --fs-mono: .78rem;

  /* układ */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --header-h: 76px;
  --section: clamp(88px, 10vw, 168px);

  /* ruch */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-kerning: normal;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
sup { line-height: 0; }
::selection { background: var(--zabot); color: #fff; }
:focus-visible { outline: 2px solid var(--zabot); outline-offset: 3px; }
.theme-dark :focus-visible, .theme-blue :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 600;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
  font-weight: 600; transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Motywy sekcji ---------- */
.theme-light { background: var(--paper); color: var(--ink); --fg: var(--ink); --fg-muted: var(--muted); --rule: var(--line); --accent: var(--zabot); --surface: var(--card); }
.theme-paper2 { background: var(--paper-2); color: var(--ink); --fg: var(--ink); --fg-muted: var(--muted); --rule: var(--line); --accent: var(--zabot); --surface: var(--card); }
.theme-dark { background: var(--ink); color: var(--paper); --fg: var(--paper); --fg-muted: var(--muted-d); --rule: var(--line-d); --accent: var(--zabot-soft); --surface: var(--ink-2); }
.theme-blue { background: var(--zabot); color: #fff; --fg: #fff; --fg-muted: rgba(255,255,255,.74); --rule: rgba(255,255,255,.24); --accent: #fff; --surface: var(--zabot-deep); }

/* ---------- Ziarno papieru ---------- */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Układ ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }

/* ---------- Typografia ---------- */
.h1, .h2, .h3 { font-weight: 560; color: var(--fg); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.042em; font-stretch: 104%; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.036em; font-stretch: 103%; }
.h3 { font-size: var(--fs-h3); line-height: 1.14; letter-spacing: -.022em; font-weight: 540; }
/* akcent w nagłówkach: Unbounded na niebiesko */
.h1 em, .h2 em, .h3 em, .display-em {
  font-family: var(--f-display); font-style: normal; font-weight: 500;
  letter-spacing: -.045em; color: var(--accent);
  font-size: .86em;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-muted); max-width: 38em; text-wrap: pretty; }
.lead strong { color: var(--fg); font-weight: 520; }
.prose p { text-wrap: pretty; }
.mono { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .01em; line-height: 1.5; }
.muted { color: var(--fg-muted); }
.accent { color: var(--accent); }
.paragraph-sign { font-family: var(--f-display); font-weight: 600; color: var(--accent); }

/* nagłówek rozdziału: „Rozdział II · Specjalizacje” */
.chapter {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  color: var(--fg-muted);
}
.chapter__num { font-family: var(--f-display); font-weight: 600; font-size: .78rem; letter-spacing: -.01em; color: var(--accent); white-space: nowrap; }
.chapter__line { flex: 0 0 48px; height: 1px; background: currentColor; opacity: .5; transform-origin: left; }
.chapter__name { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .02em; }

.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head__main { grid-column: 1 / span 8; }
.sec-head__aside { grid-column: 9 / -1; justify-self: end; text-align: right; }
.sec-head__aside .lead { margin-left: auto; }

/* ---------- Przyciski i linki ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-fill: var(--zabot); --btn-fill-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 22px 0 26px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 540; font-size: .98rem; letter-spacing: -.005em; font-stretch: 104%;
  border-radius: 2px; white-space: nowrap;
  transition: color .45s var(--ease-out), box-shadow .45s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 100%));
  transition: clip-path .7s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--btn-fill-fg); }
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 100%)); }
.btn__icon { width: 18px; height: 18px; flex: none; transition: transform .55s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--fg); --btn-fill: var(--fg); --btn-fill-fg: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.theme-dark .btn--ghost { --btn-fill-fg: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-fill: var(--ink); --btn-fill-fg: #fff; }
.btn--blue { --btn-bg: var(--zabot); --btn-fg: #fff; --btn-fill: var(--ink); --btn-fill-fg: #fff; }
.theme-dark .btn:not(.btn--ghost):not(.btn--light) { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-fill: var(--zabot); }
.btn--sm { min-height: 44px; padding: 0 16px 0 18px; font-size: .9rem; gap: 10px; }
.btn--sm .btn__icon { width: 15px; height: 15px; }

.link-u {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 520; color: var(--fg); padding-block: 4px;
}
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .6s var(--ease-out);
}
.link-u:hover::after { animation: underline-swap .8s var(--ease-out); }
.link-u .btn__icon { width: 16px; height: 16px; }
.link-u:hover .btn__icon { transform: translateX(4px); }
@keyframes underline-swap {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.text-link { color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 1px; }
.text-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Kurtyna (przejścia stron) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  background: var(--zabot); color: #fff;
  display: grid; place-items: center;
  transform: translate3d(0, 100%, 0);
}
.curtain__mark {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(5rem, 13vw, 10rem); line-height: 1;
  opacity: 0; transform: translateY(30px) rotate(-12deg);
  transition: opacity .35s, transform .6s var(--ease-out);
}
.curtain__label {
  position: absolute; left: var(--gutter); bottom: 28px;
  font-family: var(--f-mono); font-size: var(--fs-mono); opacity: .8;
}
html.is-leaving .curtain { transform: none; transition: transform .6s var(--ease-io); pointer-events: all; }
html.is-leaving .curtain__mark { opacity: 1; transform: none; transition-delay: .2s; }
html.is-arriving .curtain { transform: none; animation: curtain-out .8s var(--ease-io) .14s both; }
html.is-arriving .curtain__mark { opacity: 1; transform: none; animation: mark-out .5s var(--ease-io) .06s both; }
@keyframes curtain-out { from { transform: none; } to { transform: translate3d(0, -100%, 0); } }
@keyframes mark-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-50px) rotate(14deg); } }

/* ---------- Nagłówek ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: var(--ink);
  transition: transform .6s var(--ease-out), color .35s, background-color .35s;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); opacity: 0; transition: opacity .35s;
}
.site-header.is-solid { background: rgba(237, 238, 241, .8); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); }
.site-header.is-solid::after { opacity: 1; }
.site-header.on-dark { color: var(--paper); }
.site-header.on-dark.is-solid { background: rgba(14, 15, 20, .78); }
.site-header.on-dark::after { background: var(--line-d); }
.site-header.on-blue { color: #fff; }
.site-header.on-blue.is-solid { background: rgba(36, 56, 232, .82); }
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: baseline; gap: .28em; font-weight: 620; font-stretch: 108%; letter-spacing: -.02em; font-size: 1.12rem; line-height: 1; white-space: nowrap; }
.brand__amp {
  display: inline-block; font-family: var(--f-display); font-weight: 700;
  font-size: 1.05em; color: var(--zabot); transform-origin: 50% 55%;
  transition: transform .9s var(--ease-out);
}
.on-dark .brand__amp { color: var(--zabot-soft); }
.on-blue .brand__amp { color: #fff; }
.brand:hover .brand__amp { transform: rotate(360deg); }
.brand__sub { font-family: var(--f-mono); font-size: .66rem; font-weight: 400; font-stretch: 100%; letter-spacing: .02em; opacity: .62; margin-left: .9em; }

.nav ul { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 36px); }
.nav a { position: relative; display: inline-flex; align-items: center; font-size: .94rem; font-weight: 480; padding-block: 8px; }
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; }
.roll__a, .roll__b { display: block; transition: transform .55s var(--ease-out); }
.roll__b { position: absolute; left: 0; top: 0; transform: translateY(105%); color: var(--zabot); font-weight: 640; }
.on-dark .roll__b { color: var(--zabot-soft); }
.on-blue .roll__b { color: #fff; }
a:hover > .roll .roll__a, a:focus-visible > .roll .roll__a { transform: translateY(-105%); }
a:hover > .roll .roll__b, a:focus-visible > .roll .roll__b { transform: none; }
.nav a[aria-current="page"]::before {
  content: "§"; position: absolute; left: -.95em; top: 50%; transform: translateY(-52%);
  font-family: var(--f-display); font-weight: 600; font-size: .82em; color: var(--zabot);
}
.on-dark .nav a[aria-current="page"]::before { color: var(--zabot-soft); }
.on-blue .nav a[aria-current="page"]::before { color: #fff; }
.header__cta { display: flex; align-items: center; gap: 18px; }
.header__phone { font-family: var(--f-mono); font-size: .78rem; opacity: .8; white-space: nowrap; transition: opacity .3s; }
.header__phone:hover { opacity: 1; }
.site-header .btn { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.site-header.on-dark .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-fill: var(--zabot); }
.site-header.on-blue .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-fill: var(--ink); }

/* bez JavaScriptu: zwykły link do nawigacji w stopce zamiast przycisku menu */
.menu-fallback { display: none; font-family: var(--f-mono); font-size: .8rem; padding: 12px 4px; }
.menu-toggle {
  display: none; align-items: center; gap: 12px; height: 44px; padding: 0 4px;
  font-family: var(--f-mono); font-size: .8rem; position: relative; z-index: 2;
}
.menu-toggle__icon { position: relative; width: 26px; height: 10px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 8.5px; }
.menu-open .menu-toggle__icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon::after { top: 4.25px; transform: rotate(-45deg); }

/* menu mobilne */
.mmenu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 28px;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
  overflow-y: auto;
}
.menu-open .mmenu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu-open .site-header { color: var(--paper); background: transparent !important; backdrop-filter: none; }
.menu-open .site-header::after { opacity: 0; }
.menu-open .site-header .brand__amp { color: var(--zabot-soft); }
.mmenu__list { display: grid; gap: 2px; }
.mmenu__list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line-d);
  font-size: clamp(1.75rem, 6.4vw, 2.6rem); font-weight: 520; letter-spacing: -.035em; font-stretch: 106%; line-height: 1.1;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .7s var(--ease-out), color .3s;
}
.mmenu__list a small { font-family: var(--f-mono); font-size: .72rem; letter-spacing: 0; font-weight: 400; color: var(--muted-d); }
.mmenu__list a[aria-current="page"] { color: var(--zabot-soft); }
.mmenu__list a[aria-current="page"]::before { content: "§ "; font-family: var(--f-display); font-weight: 600; font-size: .7em; }
.menu-open .mmenu__list a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .05s); }
.mmenu__foot { display: grid; gap: 6px; margin-top: 36px; font-family: var(--f-mono); font-size: .82rem; color: var(--muted-d); opacity: 0; transition: opacity .6s .5s; }
.mmenu__foot a { color: var(--paper); }
.menu-open .mmenu__foot { opacity: 1; }
.menu-open { overflow: hidden; }

/* ---------- Ujawnianie przy przewijaniu ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; padding-right: .04em; margin-right: -.04em; }
.w__i { display: inline-block; transition: transform .75s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--i, 0) * 28ms); }
.js [data-split] .w__i { transform: translate3d(0, 108%, 0) rotate(2deg); }
.js [data-split].is-in .w__i { transform: none; }

/* ---------- Hero (strona główna) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-h) + clamp(28px, 5vh, 64px)); display: flex; flex-direction: column; overflow: hidden; }
.hero__grid { position: relative; flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.hero__copy { grid-column: 1 / span 7; grid-row: 1; position: relative; z-index: 2; padding-block: 24px 40px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--fg-muted); margin-bottom: clamp(24px, 3.4vw, 44px); }
.hero__meta span { display: inline-flex; align-items: center; gap: 20px; }
.hero__meta span:not(:last-child)::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--zabot); margin-left: -8px; }
.hero__title { max-width: 11.5em; }
.hero__title .fn { font-family: var(--f-display); font-weight: 600; font-size: .3em; color: var(--zabot); vertical-align: super; margin-left: .06em; letter-spacing: 0; }
.hero__title .fn a { display: inline-block; padding: 0 .1em; }
.hero__lead { margin-top: clamp(24px, 2.6vw, 36px); max-width: 33em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: clamp(32px, 3.4vw, 48px); }
.hero__art { grid-column: 6 / -1; grid-row: 1; position: relative; align-self: stretch; min-height: clamp(380px, 62vh, 760px); margin-right: calc(var(--gutter) * -.5); }
.glyph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__hint {
  position: absolute; right: 0; bottom: 2%; color: var(--fg-muted);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transition: opacity 1s 2.2s;
}
.hero__hint::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.is-loaded .hero__hint { opacity: 1; }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 28px; position: relative; z-index: 2; }
.footnote { max-width: 30em; font-size: .84rem; line-height: 1.5; color: var(--fg-muted); padding-top: 14px; border-top: 1px solid var(--rule); }
.footnote sup { font-family: var(--f-display); font-weight: 600; color: var(--accent); font-size: .8em; margin-right: .4em; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); white-space: nowrap; }
.scroll-cue__line { position: relative; width: 1px; height: 46px; background: var(--rule); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--zabot); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; padding-block: clamp(18px, 2.2vw, 28px); background: var(--ink); color: var(--paper); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__item { font-size: clamp(1.35rem, 1rem + 1.3vw, 2.2rem); font-weight: 480; font-stretch: 112%; letter-spacing: -.03em; white-space: nowrap; line-height: 1.2; }
.marquee__item:nth-child(4n+3) { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, .85rem + 1.1vw, 1.9rem); letter-spacing: -.04em; color: var(--zabot-soft); }
.marquee__sep { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.1rem, .8rem + 1vw, 1.8rem); color: var(--zabot-soft); margin-inline: .8em; line-height: 1.2; display: inline-block; }

/* ---------- Nowelizacja (sekcja podejścia) ---------- */
.approach__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.approach__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); }
.approach__head .lead { margin-top: 24px; }
.approach__body { grid-column: 7 / -1; }
.statute {
  position: relative; background: var(--surface); padding: clamp(28px, 3.6vw, 56px);
  box-shadow: 0 1px 0 var(--rule), 0 40px 80px -48px rgba(14, 15, 20, .35);
}
.statute::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--zabot);
  transform-origin: top; transform: scaleY(var(--sp, 0)); transition: transform .2s linear;
}
.statute__title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--rule); color: var(--fg-muted); }
.statute__art { font-family: var(--f-display); font-weight: 600; font-size: .86em; color: var(--fg); margin-right: .35em; }
.statute__intro { font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem); line-height: 1.55; margin-bottom: 22px; }
.statute__list { display: grid; gap: 18px; counter-reset: pkt; }
.statute__list li {
  display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline;
  font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem); line-height: 1.55;
}
.statute__list li::before { counter-increment: pkt; content: counter(pkt) ")"; font-family: var(--f-mono); font-size: .8em; color: var(--fg-muted); }
.statute__final { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem); }
.amend del {
  text-decoration: none; color: var(--fg);
  background: linear-gradient(var(--zabot), var(--zabot)) no-repeat 0 60% / 0% 2px;
  transition: background-size .8s var(--ease-out), color .6s;
}
.amend ins { text-decoration: none; font-family: var(--f-display); font-weight: 500; font-size: .84em; letter-spacing: -.03em; color: var(--zabot); }
.amend ins .aw { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(4px); transition: opacity .5s, transform .7s var(--ease-out), filter .5s; transition-delay: calc(.55s + var(--i, 0) * 70ms); }
.amend ins .q { font-family: var(--f-sans); font-weight: 400; color: var(--fg); font-size: calc(1em / .84); letter-spacing: 0; }
.amend.is-amended del { background-size: 100% 2px; color: var(--fg-muted); }
.amend.is-amended ins .aw { opacity: 1; transform: none; filter: none; }
.amend--strike.is-amended del { color: var(--fg-muted); opacity: .75; }

/* ---------- Rozdział II: stos segregatorów (grzbiety poziomo) ---------- */
.shelf { display: grid; gap: 6px; padding-right: 32px; }
.binder {
  --bc: var(--ink); --bt: var(--paper); --bs: rgba(237,238,241,.72); --bl: rgba(237,238,241,.2);
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--bc); color: var(--bt);
  transform: translateX(var(--x, 0px));
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.binder[data-c="blue"] { --bc: var(--zabot); --bt: #fff; --bs: rgba(255,255,255,.8); --bl: rgba(255,255,255,.28); }
.binder[data-c="deep"] { --bc: var(--zabot-deep); --bt: #fff; --bs: rgba(255,255,255,.78); --bl: rgba(255,255,255,.26); }
.binder[data-c="paper"] { --bc: var(--card); --bt: var(--ink); --bs: var(--muted); --bl: var(--line); }
.binder[data-c="ink3"] { --bc: var(--ink-3); }
.binder:not(.is-open):hover { transform: translateX(calc(var(--x, 0px) + 20px)); box-shadow: 0 24px 40px -26px rgba(14,15,20,.55); }
.binder.is-open { transform: translateX(0); box-shadow: 0 40px 70px -40px rgba(14,15,20,.55); z-index: 1; }
.binder__head { font: inherit; }
.binder__spine {
  width: 100%; min-height: 84px; padding: 16px 24px;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 30px; align-items: center; gap: 26px;
  color: inherit; text-align: left;
}
.binder__label {
  display: grid; place-items: center; width: 56px; height: 40px;
  background: #fff; color: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: .9rem; letter-spacing: -.03em;
  box-shadow: inset 0 0 0 1px rgba(14,15,20,.12);
}
.binder[data-c="paper"] .binder__label { background: var(--zabot); color: #fff; box-shadow: none; }
.binder__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); font-weight: 560; font-stretch: 104%; letter-spacing: -.035em; line-height: 1.12; transition: transform .6s var(--ease-out); }
.binder__cite { font-family: var(--f-mono); font-size: .8rem; color: var(--bs); white-space: nowrap; }
.binder__hole { width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.3); box-shadow: inset 0 3px 6px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.12); transition: transform .6s var(--ease-out); }
.binder[data-c="paper"] .binder__hole { background: rgba(14,15,20,.14); }
.binder.is-open .binder__hole { transform: scale(.85); }
.binder__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .75s var(--ease-out); }
.binder.is-open .binder__panel { grid-template-rows: 1fr; }
.binder__inner { overflow: hidden; min-height: 0; }
.binder__body {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 56px;
  padding: 6px 24px 30px calc(24px + 56px + 26px);
  opacity: 0; transform: translateY(-10px); transition: opacity .35s, transform .6s var(--ease-out);
}
.binder.is-open .binder__body { opacity: 1; transform: none; transition: opacity .6s .2s, transform .8s var(--ease-out) .15s; }
.binder__body::after { content: "§"; position: absolute; right: 18px; bottom: -.25em; z-index: -1; font-family: var(--f-display); font-weight: 800; font-size: 11rem; line-height: 1; color: var(--bt); opacity: .06; pointer-events: none; }
.binder__desc { grid-column: 1; font-size: clamp(1.04rem, .98rem + .25vw, 1.16rem); line-height: 1.55; color: var(--bt); opacity: .92; }
.binder__col { grid-column: 2; grid-row: 1 / span 2; }
.binder__sub { font-family: var(--f-mono); font-size: .78rem; color: var(--bs); }
.binder__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 6px; }
.binder__list li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--bl); font-size: 1rem; line-height: 1.4; }
.binder__list li::before { content: "§"; font-family: var(--f-display); font-weight: 700; font-size: .78em; flex: none; opacity: .75; }
.binder__foot { grid-column: 1; align-self: end; display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.binder__who { font-family: var(--f-mono); font-size: .8rem; color: var(--bs); }
.binder__more { color: var(--bt); }
.shelf__hint { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); }

/* ---------- Zakładki „Dla kogo” ---------- */
.tabs__list { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); margin-bottom: clamp(36px, 4vw, 56px); }
.tabs__btn { position: relative; z-index: 1; height: 48px; padding: 0 26px; white-space: nowrap; border-radius: 999px; font-weight: 520; font-size: .98rem; color: var(--fg-muted); transition: color .4s; }
.tabs__btn[aria-selected="true"] { color: var(--ink); }
.tabs__ink { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--paper); transition: transform .6s var(--ease-out), width .6s var(--ease-out); }
.theme-light .tabs__ink { background: var(--ink); }
.theme-light .tabs__btn[aria-selected="true"] { color: var(--paper); }
.tab-panel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-entering > * { animation: panel-in .8s var(--ease-out) both; }
.tab-panel.is-entering > *:nth-child(2) { animation-delay: .08s; }
.tab-panel.is-entering > *:nth-child(3) { animation-delay: .16s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(18px); } }
.tab-panel__lead { grid-column: 1 / span 5; }
.tab-panel__lead .h3 { margin-bottom: 18px; }
.tab-panel__list { grid-column: 7 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; }
.tab-panel__list li { display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; }
.tab-panel__list li::before { content: "§"; font-family: var(--f-display); font-weight: 600; font-size: .8em; color: var(--accent); flex: none; }
.tab-panel__note { grid-column: 7 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 24px; background: var(--surface); }
.tab-panel__note p { font-size: .95rem; color: var(--fg-muted); }
.tab-panel__note strong { color: var(--fg); font-weight: 540; }

/* ---------- Proces (oś etapów) ---------- */
.process__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.process__head { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.process__head .lead { margin-top: 24px; }
.process__head .btn { margin-top: 36px; }
.steps { grid-column: 7 / -1; position: relative; padding-left: clamp(56px, 6vw, 88px); }
.steps__rail { position: absolute; left: clamp(18px, 2vw, 28px); top: 12px; bottom: 12px; width: 1px; background: var(--rule); }
.steps__fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--zabot); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; padding-bottom: clamp(56px, 6vw, 96px); }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: absolute; left: calc(clamp(56px, 6vw, 88px) * -1 + clamp(18px, 2vw, 28px)); top: 0; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-size: .78rem; font-weight: 600;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); color: var(--fg-muted);
  transition: background .5s, color .5s, box-shadow .5s, transform .6s var(--ease-spring);
}
.theme-paper2 .step__num { background: var(--paper-2); }
.step.is-active .step__num { background: var(--zabot); color: #fff; box-shadow: none; transform: translateX(-50%) scale(1.08); }
.step__meta { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); margin-bottom: 10px; padding-top: 10px; }
.step__title { margin-bottom: 14px; }
.step__text { color: var(--fg-muted); max-width: 34em; }
.step__list { margin-top: 18px; display: grid; gap: 8px; }
.step__list li { display: flex; gap: 12px; font-size: .97rem; }
.step__list li::before { content: "—"; color: var(--accent); }

/* ---------- Karty osób ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.person { position: relative; display: flex; flex-direction: column; text-align: left; }
.person__portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); color: var(--ink); isolation: isolate; }
.theme-paper2 .person__portrait { background: var(--card); }
.person__portrait::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(-45deg, transparent 0 9px, rgba(14,15,20,.075) 9px 10px);
  transition: transform 1.2s var(--ease-out);
}
.person__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease-out), filter .6s; }
.person:hover .person__portrait img { transform: scale(1.04); filter: grayscale(.2); }
.person__initials {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(3.6rem, 6.4vw, 6rem); line-height: 1; letter-spacing: -.06em;
  white-space: nowrap; transition: transform 1s var(--ease-out), color .5s;
}
.person__initials span { color: var(--zabot); }
.person__tag { position: absolute; left: 16px; top: 16px; font-family: var(--f-mono); font-size: .7rem; padding: 6px 10px; background: var(--paper); color: var(--ink); }
.person__seal { position: absolute; right: 14px; bottom: 14px; width: 54px; height: 54px; color: var(--zabot); opacity: .85; transition: transform 1.2s var(--ease-out); }
.person:hover .person__portrait::before { transform: translateX(14px); }
.person:hover .person__initials { transform: translate(-50%, -58%) scale(1.04); }
.person:hover .person__seal { transform: rotate(120deg); }
.person__body { padding-top: 20px; display: grid; gap: 6px; }
.person__name { font-size: 1.32rem; font-weight: 560; letter-spacing: -.025em; line-height: 1.15; }
.person__role { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--accent); }
.person__spec { font-size: .94rem; color: var(--fg-muted); line-height: 1.5; }
.person__open { position: absolute; inset: 0; z-index: 2; }

/* ---------- Karty wiedzy ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.post-card {
  position: relative; display: flex; flex-direction: column; min-height: 360px;
  padding: clamp(24px, 2.4vw, 34px); background: var(--surface);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out), background .5s;
  overflow: hidden; isolation: isolate;
}
.post-card::after {
  content: "§"; position: absolute; right: .04em; bottom: -.18em; z-index: -1;
  font-family: var(--f-display); font-weight: 700; font-size: 10rem; line-height: 1; color: var(--zabot);
  opacity: 0; transform: translateY(30px) rotate(-14deg); transition: opacity .6s, transform 1s var(--ease-out);
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -40px rgba(14,15,20,.45); }
.post-card:hover::after { opacity: .1; transform: none; }
.post-card__top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: .74rem; color: var(--fg-muted); margin-bottom: auto; padding-bottom: 48px; }
.post-card__cat { color: var(--accent); }
.post-card__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); font-weight: 540; letter-spacing: -.024em; line-height: 1.18; margin-bottom: 14px; text-wrap: balance; }
.post-card__excerpt { font-size: .95rem; color: var(--fg-muted); line-height: 1.55; }
.post-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .88rem; font-weight: 520; }
.post-card__foot svg { width: 18px; height: 18px; transition: transform .6s var(--ease-out); }
.post-card:hover .post-card__foot svg { transform: translateX(6px); }
.post-card__link { position: absolute; inset: 0; z-index: 2; }

/* ---------- CTA (niebieska sekcja) ---------- */
.cta { position: relative; overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; }
.cta__copy { grid-column: 1 / span 8; }
.cta__copy .lead { margin-top: 24px; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 34px; margin-top: 40px; }
.cta__phone { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 520; letter-spacing: -.02em; display: inline-flex; flex-direction: column; }
.cta__phone small { font-family: var(--f-mono); font-size: .72rem; font-weight: 400; letter-spacing: 0; opacity: .75; }
.cta__seal { grid-column: 9 / -1; justify-self: end; width: min(100%, 300px); }
.cta__bg {
  position: absolute; right: -4vw; top: 50%; transform: translateY(-50%);
  font-family: var(--f-display); font-weight: 800; font-size: 46vw; line-height: .8; color: rgba(255,255,255,.06); pointer-events: none; user-select: none;
}

/* pieczęć okrągła */
.seal { width: 100%; height: auto; color: currentColor; overflow: visible; }
.seal__ring { transform-origin: 100px 100px; transform-box: view-box; }
.seal text { fill: currentColor; }
.seal__text { font-family: var(--f-mono); font-size: 11.6px; letter-spacing: .5px; }
.seal__mark { font-family: var(--f-display); font-weight: 700; font-size: 64px; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(80px, 9vw, 140px); position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; padding-bottom: clamp(56px, 7vw, 100px); border-bottom: 1px solid var(--line-d); }
.footer__clause { grid-column: 1 / span 9; }
.footer__clause .chapter { color: var(--muted-d); }
.footer__clause .h2 { color: var(--paper); max-width: 17em; }
.footer__clause .h2 em { color: var(--zabot-soft); }
.footer__seal { grid-column: 10 / -1; justify-self: end; width: min(100%, 190px); color: var(--zabot-soft); }
.footer__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px; padding-block: clamp(48px, 5vw, 72px); }
.footer__col { grid-column: span 3; }
.footer__col h2 { font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 400; color: var(--muted-d); margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { opacity: .9; transition: opacity .3s, color .3s; }
.footer__col a:hover { color: var(--zabot-soft); opacity: 1; }
.footer__big { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); font-weight: 520; letter-spacing: -.02em; line-height: 1.35; }
.footer__big a { display: inline-block; }
.footer__legal { font-size: .86rem; color: var(--muted-d); line-height: 1.6; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 26px 32px; border-top: 1px solid var(--line-d); font-family: var(--f-mono); font-size: .74rem; color: var(--muted-d); }
.footer__bottom a:hover { color: var(--paper); }
.footer__bottom ul { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Przycisk „do góry” z § ---------- */
.to-top {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 70;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(14,15,20,.35);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .5s, transform .6s var(--ease-out), background .3s, color .3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--zabot); color: #fff; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 1.5; }
.to-top .to-top__track { stroke: var(--line); }
.to-top .to-top__bar { stroke: var(--zabot); stroke-linecap: round; transition: stroke .3s; }
.to-top:hover .to-top__bar { stroke: #fff; }
.to-top__mark { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; line-height: 1; transition: transform .6s var(--ease-out); }
.to-top:hover .to-top__mark { transform: translateY(-3px); }

/* ---------- Kursor ---------- */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; mix-blend-mode: difference; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; transition: opacity .3s, width .3s, height .3s, margin .3s; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75);
  display: grid; place-items: center;
  transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), opacity .3s, background .4s, border-color .4s;
}
.cursor-ring__label { font-family: var(--f-mono); font-size: .68rem; color: #fff; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: #fff; }
.cursor-ring.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; border-color: transparent; }
.cursor-ring.is-label .cursor-ring__label { opacity: 1; color: #000; }
.cursor.is-link { opacity: 0; }
.cursor-ring.is-text, .cursor.is-text { opacity: 0; }
.cursor-ring.is-hidden, .cursor.is-hidden { opacity: 0; }

/* ==========================================================================
   PODSTRONY
   ========================================================================== */

/* nagłówek podstrony */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(56px, 9vw, 128px)); padding-bottom: clamp(56px, 7vw, 104px); overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.page-hero__main { grid-column: 1 / span 8; position: relative; z-index: 1; }
.page-hero__main .lead { margin-top: clamp(22px, 2.4vw, 32px); }
.page-hero__aside { grid-column: 9 / -1; justify-self: end; position: relative; z-index: 1; }
.page-hero__bgmark {
  position: absolute; right: -5vw; top: 38%; transform: translateY(-50%) rotate(-8deg);
  font-family: var(--f-display); font-weight: 300; font-size: clamp(14rem, 30vw, 30rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(36, 56, 232, .22);
  pointer-events: none; user-select: none; z-index: 0;
}
.theme-dark .page-hero__bgmark { -webkit-text-stroke-color: rgba(108, 155, 255, .22); }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumbs [aria-current] { color: var(--fg); }
.page-hero__facts { display: grid; gap: 4px; font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); text-align: right; }
.page-hero__facts b { font-weight: 400; color: var(--fg); }

/* specjalizacje — spis treści + sekcje */
.code-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; }
.toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 32px); }
.toc__title { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.toc ol { display: grid; gap: 2px; }
.toc a { display: grid; grid-template-columns: 2.6em 1fr; gap: 6px; padding: 8px 0; font-size: .95rem; color: var(--fg-muted); transition: color .3s, transform .5s var(--ease-out); line-height: 1.35; }
.toc a span:first-child { font-family: var(--f-display); font-weight: 600; font-size: .78em; padding-top: .15em; color: var(--fg-muted); transition: color .3s; }
.toc a:hover { color: var(--fg); }
.toc a.is-active { color: var(--fg); transform: translateX(6px); font-weight: 520; }
.toc a.is-active span:first-child { color: var(--accent); }
.toc__progress { margin-top: 22px; height: 2px; background: var(--rule); position: relative; overflow: hidden; }
.toc__progress span { position: absolute; inset: 0; background: var(--zabot); transform-origin: left; transform: scaleX(var(--p, 0)); }
.code-body { grid-column: 5 / -1; }

.area { padding-block: clamp(56px, 6vw, 96px); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 8px); }
.area:first-child { border-top: 0; padding-top: 0; }
.area__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.area__ps { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.8rem); line-height: .9; letter-spacing: -.05em; color: var(--accent); flex: none; }
.area__cite { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); margin-bottom: 14px; display: block; }
.area .lead { margin-bottom: 40px; }
.area__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; }
.mini-title { font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 400; color: var(--fg-muted); margin-bottom: 14px; }
.ticks { display: grid; }
.ticks li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.45; }
.ticks li::before { content: "§"; font-family: var(--f-display); font-weight: 600; font-size: .8em; color: var(--accent); flex: none; }
.provision {
  position: relative; padding: clamp(24px, 2.6vw, 34px); background: var(--surface);
  border-left: 3px solid var(--zabot);
}
.provision p { font-size: clamp(1.04rem, .98rem + .28vw, 1.2rem); line-height: 1.55; font-weight: 440; }
.provision p::before { content: "„"; }
.provision p::after { content: "”"; }
.provision cite { display: block; margin-top: 16px; font-family: var(--f-mono); font-size: .74rem; font-style: normal; color: var(--fg-muted); }
.area__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 36px; }
.area__for { font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); }

/* filtry (zespół, wiedza) */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(36px, 4vw, 56px); }
.chip {
  height: 42px; padding: 0 18px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--rule); color: var(--fg-muted);
  transition: background .35s, color .35s, box-shadow .35s;
  display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip__count { font-family: var(--f-mono); font-size: .7rem; opacity: .7; }
.search { position: relative; margin-left: auto; min-width: min(100%, 300px); }
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 44px; border: 0; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); font-size: .95rem;
  transition: box-shadow .3s;
}
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--zabot); }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.is-filtered-out { display: none !important; }
.filter-anim { animation: filter-in .6s var(--ease-out) both; }
@keyframes filter-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.empty-state { padding: 56px 0; text-align: center; color: var(--fg-muted); display: grid; gap: 14px; justify-items: center; }
.empty-state .paragraph-sign { font-size: 3rem; line-height: 1; }

/* dialog z biogramem */
.bio-dialog {
  width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; background: var(--paper); color: var(--ink);
  box-shadow: 0 60px 120px -40px rgba(14,15,20,.6); overflow: auto;
}
.bio-dialog::backdrop { background: rgba(14, 15, 20, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bio-dialog[open] { animation: dialog-in .7s var(--ease-out); }
.bio-dialog[open]::backdrop { animation: fade-in .5s; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.bio { display: grid; grid-template-columns: 5fr 7fr; }
.bio__portrait { min-height: 100%; }
.bio__portrait .person__portrait { height: 100%; aspect-ratio: auto; min-height: 380px; }
.bio__body { padding: clamp(28px, 4vw, 56px); display: grid; gap: 18px; align-content: start; }
.bio__body .h2 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); }
.bio__body p { color: var(--muted); }
.bio__meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .94rem; }
.bio__meta dt { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); padding-top: 3px; }
.bio__close {
  position: sticky; top: 14px; float: right; margin: 14px 14px -58px 0; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; transition: background .3s, transform .5s var(--ease-out);
}
.bio__close:hover { background: var(--zabot); transform: rotate(90deg); }
.bio__close svg { width: 18px; height: 18px; }

/* kariera */
.career { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 32px; align-items: end; }
.career__main { grid-column: 1 / span 7; }
.career__main .lead { margin-top: 20px; }
.career__aside { grid-column: 9 / -1; justify-self: end; }

/* wynagrodzenie */
.fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.fee { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 34px); background: var(--surface); min-height: 340px; transition: background .5s, color .5s, transform .7s var(--ease-out); }
.fee:hover { transform: translateY(-6px); }
.fee__icon { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.05em; line-height: 1; color: var(--accent); margin-bottom: auto; padding-bottom: 36px; }
.fee h3 { font-size: 1.3rem; font-weight: 560; letter-spacing: -.022em; margin-bottom: 12px; line-height: 1.2; }
.fee p { color: var(--fg-muted); font-size: .95rem; }
.fee__best { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: .74rem; color: var(--fg-muted); }
.fee__best b { font-weight: 400; color: var(--fg); }

/* lista kontrolna */
.checklist-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; align-items: start; }
.checklist-wrap__head { grid-column: 1 / span 5; }
.checklist-wrap__head .lead { margin-top: 20px; }
.checklist-card { grid-column: 7 / -1; position: relative; overflow: hidden; background: var(--card); padding: clamp(24px, 3vw, 44px); box-shadow: 0 40px 80px -50px rgba(14,15,20,.35); }
.checklist-card__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--muted); }
.checklist-card__bar { height: 2px; background: var(--line); margin-bottom: 10px; position: relative; overflow: hidden; }
.checklist-card__bar span { position: absolute; inset: 0; background: var(--zabot); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease-out); }
.check { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-of-type { border-bottom: 0; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 26px; height: 26px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(14,15,20,.3); display: grid; place-items: center; transition: background .3s, box-shadow .3s; margin-top: 1px; }
.check__box svg { width: 15px; height: 15px; color: #fff; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--ease-out) .05s; }
.check input:checked + .check__box { background: var(--zabot); box-shadow: none; }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 2px solid var(--zabot); outline-offset: 3px; }
.check__text strong { display: block; font-weight: 540; font-size: 1.02rem; transition: color .3s; }
.check__text span { display: block; color: var(--muted); font-size: .92rem; margin-top: 2px; }
.check input:checked ~ .check__text strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--zabot); text-decoration-thickness: 1.5px; }

/* pieczątki: prezentata „WPŁYNĘŁO” i „KOMPLET” */
.stamp {
  position: absolute; z-index: 5; pointer-events: none;
  color: var(--zabot); border: 3px solid currentColor; border-radius: 6px;
  padding: 10px 18px 12px; text-align: center; background: transparent;
  font-family: var(--f-mono); text-transform: uppercase; line-height: 1.25;
  opacity: 0; visibility: hidden; transform: rotate(var(--rot, -9deg));
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  3.2 0 0 0 -.95'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  3.2 0 0 0 -.95'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-mask-size: 300px; mask-size: 300px;
}
.stamp.is-stamped { visibility: visible; animation: stamp .55s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(var(--rot, -9deg)) scale(1.9); }
  55% { opacity: 1; transform: rotate(var(--rot, -9deg)) scale(.94); }
  100% { opacity: .92; transform: rotate(var(--rot, -9deg)) scale(1); }
}
.stamp__big { display: block; font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .04em; }
.stamp__line { display: block; font-size: .72rem; letter-spacing: .06em; margin-top: 4px; }
.stamp__line + .stamp__line { margin-top: 2px; }
.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 20% { transform: translate(-2px, 1px); } 40% { transform: translate(2px, -1px); } 60% { transform: translate(-1px, 0); } 80% { transform: translate(1px, 1px); } }
.checklist-card .stamp { right: 20px; bottom: 26px; --rot: -11deg; }

/* FAQ — akordeon */
.faq-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 40px; }
.faq-wrap__head { grid-column: 1 / span 4; }
.faq-wrap__head .lead { margin-top: 20px; }
.faq { grid-column: 6 / -1; border-top: 1px solid var(--rule); }
.acc { border-bottom: 1px solid var(--rule); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; text-align: left; font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); font-weight: 520; letter-spacing: -.018em; line-height: 1.3; transition: color .3s; }
.acc__btn:hover { color: var(--accent); }
.acc__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--rule); transition: background .4s, transform .5s var(--ease-out), box-shadow .4s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .5s var(--ease-out); }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--zabot); color: #fff; box-shadow: none; transform: rotate(180deg); }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.acc__panel > div { overflow: hidden; }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel p { padding: 0 64px 26px 0; color: var(--fg-muted); max-width: 46em; }
.acc__panel p + p { margin-top: -12px; }

/* wiedza — wyróżniony tekst */
.feature-post { position: relative; display: grid; grid-template-columns: 7fr 5fr; background: var(--ink); color: var(--paper); overflow: hidden; margin-bottom: clamp(48px, 6vw, 88px); isolation: isolate; }
.feature-post__body { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.feature-post__body .mono { color: var(--zabot-soft); }
.feature-post__body .h2 { color: var(--paper); }
.feature-post__body p { color: var(--muted-d); max-width: 34em; }
.feature-post__body .link-u { color: var(--paper); margin-top: auto; align-self: flex-start; }
.feature-post__art { position: relative; background: var(--zabot); display: grid; place-items: center; min-height: 320px; overflow: hidden; }
.feature-post__art span { font-family: var(--f-display); font-weight: 700; font-size: clamp(8rem, 17vw, 15rem); line-height: 1; color: #fff; transition: transform 1.2s var(--ease-out); }
.feature-post:hover .feature-post__art span { transform: rotate(-12deg) scale(1.06); }
.feature-post__art small { position: absolute; left: 24px; bottom: 20px; font-family: var(--f-mono); font-size: .72rem; color: rgba(255,255,255,.8); }
.feature-post__link { position: absolute; inset: 0; z-index: 2; }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.post-list--2, .posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* artykuł */
.progress-bar { position: fixed; left: 0; top: 0; z-index: 120; height: 3px; width: 100%; background: var(--zabot); transform-origin: left; transform: scaleX(var(--p, 0)); }
.article-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 112px)); padding-bottom: clamp(40px, 5vw, 72px); }
.article-hero__inner { max-width: 980px; }
.article-hero .h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); margin-top: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: clamp(28px, 3vw, 40px); padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); }
.article-meta b { font-weight: 400; color: var(--fg); }
.article-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; padding-bottom: var(--section); }
.article-layout .toc { grid-column: 1 / span 3; }
.article-body { grid-column: 4 / span 7; font-size: 1.12rem; line-height: 1.72; }
.article-body > * + * { margin-top: 1.3em; }
.article-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 560; letter-spacing: -.03em; line-height: 1.15; margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 24px); }
.article-body h2 .paragraph-sign { margin-right: .45em; font-size: .72em; vertical-align: .08em; }
.article-body p { text-wrap: pretty; }
.article-body strong { font-weight: 600; }
.article-body ul.dash { display: grid; gap: .6em; }
.article-body ul.dash li { display: grid; grid-template-columns: 1.6em 1fr; }
.article-body ul.dash li::before { content: "—"; color: var(--accent); }
.article-body .provision { margin-block: 2em; }
.article-body .lead-p { font-size: 1.3rem; line-height: 1.55; color: var(--fg); font-weight: 420; }
.article-body .lead-p::first-letter { font-family: var(--f-display); font-weight: 700; float: left; font-size: 3.3em; line-height: .86; margin: .08em .14em 0 0; color: var(--zabot); }
.table-wrap { overflow-x: auto; margin-block: 2em; }
.terms { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 520px; }
.terms caption { text-align: left; font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--fg-muted); margin-bottom: 12px; }
.terms th, .terms td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.terms th { font-family: var(--f-mono); font-size: .74rem; font-weight: 400; color: var(--fg-muted); }
.terms td:nth-child(2) { font-family: var(--f-display); font-weight: 600; font-size: .95rem; letter-spacing: -.03em; white-space: nowrap; color: var(--zabot); }
.terms td:last-child { font-family: var(--f-mono); font-size: .78rem; color: var(--fg-muted); white-space: nowrap; }
.fn-ref { font-family: var(--f-display); font-weight: 600; color: var(--accent); font-size: .62em; vertical-align: super; line-height: 0; padding-left: .1em; position: relative; }
.fn-ref a { padding: 0 .15em; }
.footnotes { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--rule); font-size: .9rem; color: var(--fg-muted); display: grid; gap: .6em; counter-reset: fn; }
.footnotes li { display: grid; grid-template-columns: 1.8em minmax(0, 1fr); scroll-margin-top: calc(var(--header-h) + 24px); }
.footnotes li::before { counter-increment: fn; content: counter(fn); font-family: var(--f-display); font-weight: 600; font-size: .85em; color: var(--accent); }
.footnotes li:target { color: var(--fg); }
.disclaimer { margin-top: 2.4em; padding: 20px 22px; background: var(--surface); font-size: .92rem; color: var(--fg-muted); display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.disclaimer .paragraph-sign { font-size: 1.3rem; line-height: 1.1; }
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--rule); }
.author-box__avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.05em; color: var(--ink); }
.author-box__avatar span { color: var(--zabot); }
.author-box b { display: block; font-weight: 560; }
.author-box small { font-family: var(--f-mono); font-size: .74rem; color: var(--fg-muted); }
.article-aside { grid-column: 11 / -1; position: sticky; top: calc(var(--header-h) + 32px); font-size: .86rem; color: var(--fg-muted); display: grid; gap: 14px; }
.article-aside .mini-title { margin-bottom: 4px; }
.article-aside a { color: var(--fg); }
.share-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .74rem; color: var(--fg); padding: 10px 14px; box-shadow: inset 0 0 0 1px var(--rule); border-radius: 999px; transition: background .3s, color .3s; justify-self: start; }
.share-btn:hover { background: var(--ink); color: var(--paper); }
.share-btn svg { width: 14px; height: 14px; }

/* kontakt */
.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); row-gap: 48px; align-items: start; }
.form-card { grid-column: 1 / span 7; position: relative; overflow: hidden; background: var(--card); padding: clamp(24px, 3.4vw, 52px); box-shadow: 0 50px 90px -60px rgba(14,15,20,.45); }
.form-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: var(--fs-mono); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; position: relative; }
.field--full { grid-column: 1 / -1; }
.field__label { font-size: .88rem; font-weight: 520; display: flex; justify-content: space-between; gap: 12px; }
.field__label .opt { font-family: var(--f-mono); font-size: .7rem; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-radius: 2px; background: var(--paper); color: var(--ink);
  padding: 14px 16px; font-size: 1rem; line-height: 1.4;
  box-shadow: inset 0 0 0 1px transparent, inset 0 -1px 0 var(--line);
  transition: box-shadow .3s, background .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 170px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%230E0F14' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--zabot); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { box-shadow: inset 0 0 0 2px #C62B3A; }
.field__error { font-size: .82rem; color: #B3202F; display: none; }
.field.is-invalid .field__error { display: block; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--paper); border-radius: 2px; position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { position: relative; z-index: 1; text-align: center; padding: 11px 12px; font-size: .94rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .35s; }
.segmented input:checked + label { color: var(--paper); }
.segmented input:focus-visible + label { outline: 2px solid var(--zabot); outline-offset: -2px; }
.segmented__ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--ink); border-radius: 2px; transition: transform .55s var(--ease-out); }
.segmented:has(#kto-osoba:checked) .segmented__ink { transform: translateX(100%); }
.toggle-line { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; cursor: pointer; line-height: 1.45; }
.toggle-line input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-line .check__box { flex: none; width: 22px; height: 22px; margin-top: 0; }
.toggle-line .check__box svg { width: 13px; height: 13px; }
.toggle-line input:checked + .check__box { background: var(--zabot); box-shadow: none; }
.toggle-line input:checked + .check__box svg { stroke-dashoffset: 0; }
.toggle-line input:focus-visible + .check__box { outline: 2px solid var(--zabot); outline-offset: 3px; }
.toggle-line a { color: var(--zabot); text-decoration: underline; text-underline-offset: 3px; }
.deadline { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.deadline > div { overflow: hidden; }
.deadline.is-open { grid-template-rows: 1fr; }
.deadline__inner { padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.deadline__note { font-size: .86rem; color: var(--muted); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-foot__note { font-size: .84rem; color: var(--muted); max-width: 28em; }
.form-status { margin-top: 20px; padding: 18px 20px; background: var(--zabot-tint); color: var(--zabot-deep); font-size: .95rem; display: none; }
.form-status.is-on { display: block; animation: panel-in .6s var(--ease-out); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }
.form-card .stamp { right: clamp(16px, 4vw, 48px); top: 110px; --rot: -8deg; }

.contact-aside { grid-column: 9 / -1; display: grid; gap: 36px; }
.contact-block h2 { font-family: var(--f-mono); font-size: var(--fs-mono); font-weight: 400; color: var(--fg-muted); margin-bottom: 12px; }
.contact-big { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 520; letter-spacing: -.03em; line-height: 1.2; display: inline-block; }
.contact-block p { color: var(--fg-muted); }
.contact-block address { font-style: normal; font-size: 1.08rem; line-height: 1.55; }
.hours { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; font-size: .96rem; }
.hours dd { font-family: var(--f-mono); font-size: .82rem; text-align: right; padding-top: 2px; }
.hours .is-today { color: var(--zabot); font-weight: 560; }
.open-now { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--f-mono); font-size: .74rem; color: var(--fg-muted); }
.open-now i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-now.is-open i { background: #1E9E5A; box-shadow: 0 0 0 4px rgba(30,158,90,.16); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(30,158,90,0); } }
.urgent { padding: 22px 24px; background: var(--ink); color: var(--paper); display: grid; gap: 8px; }
.urgent strong { font-weight: 560; display: flex; gap: 10px; align-items: baseline; }
.urgent strong .paragraph-sign { color: var(--zabot-soft); font-size: .85em; }
.urgent p { color: var(--muted-d); font-size: .92rem; }
.urgent a { color: var(--paper); font-weight: 520; }

.map { position: relative; aspect-ratio: 16 / 7; background: var(--paper-2); overflow: hidden; margin-top: clamp(56px, 6vw, 96px); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background-image: repeating-linear-gradient(0deg, transparent 0 47px, var(--line) 47px 48px), repeating-linear-gradient(90deg, transparent 0 47px, var(--line) 47px 48px); }
.map__placeholder > div { display: grid; gap: 14px; justify-items: center; max-width: 30em; background: var(--paper-2); padding: 24px; }
.map__placeholder p { font-size: .9rem; color: var(--muted); }
.map__pin { font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--zabot); }

/* polityka / dokumenty tekstowe */
.doc-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: start; padding-bottom: var(--section); }
.doc-layout .toc { grid-column: 1 / span 3; }
.doc-body { grid-column: 5 / span 7; font-size: 1.04rem; line-height: 1.7; }
.doc-body section { padding-bottom: 2.4em; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body h2 { font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); font-weight: 560; letter-spacing: -.025em; margin-bottom: .7em; display: flex; gap: .6em; align-items: baseline; }
.doc-body h2 .paragraph-sign { font-size: .7em; }
.doc-body p + p, .doc-body p + ul, .doc-body ul + p { margin-top: .9em; }
.doc-body ul { display: grid; gap: .5em; }
.doc-body ul li { display: grid; grid-template-columns: 1.6em 1fr; }
.doc-body ul li::before { content: "—"; color: var(--accent); }
.doc-body a { color: var(--zabot); text-decoration: underline; text-underline-offset: 3px; }

/* 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; padding-top: var(--header-h); position: relative; }
.notfound__copy { grid-column: 1 / span 6; grid-row: 1; position: relative; z-index: 2; }
.notfound__copy .lead { margin-top: 22px; }
.notfound__copy .hero__actions { margin-top: 36px; }
.notfound__art { grid-column: 7 / -1; grid-row: 1; position: relative; height: min(70vh, 640px); }

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1180px) {
  .nav, .header__phone { display: none; }
  .menu-toggle { display: inline-flex; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .menu-fallback { display: inline-block; }
  .header__cta .btn { display: none; }
  .fees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-aside { display: none; }
  .article-body { grid-column: 4 / -1; }
  .binder__list { grid-template-columns: 1fr; }
}
@media (min-width: 1181px) {
  .mmenu { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { grid-column: 1; grid-row: auto; padding-bottom: 0; }
  .hero__art { grid-column: 1; grid-row: auto; min-height: 0; height: clamp(320px, 88vw, 560px); margin: 8px calc(var(--gutter) * -1) 0; }
  .hero__hint { right: var(--gutter); bottom: 2%; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .sec-head__main, .sec-head__aside { grid-column: 1 / -1; }
  .sec-head__aside { justify-self: stretch; text-align: left; margin-top: 24px; }
  .sec-head__aside .lead { margin-left: 0; }
  .approach__head, .approach__body, .process__head, .steps, .tab-panel__lead, .tab-panel__list, .tab-panel__note,
  .cta__copy, .cta__seal, .footer__clause, .footer__seal, .page-hero__main, .page-hero__aside,
  .checklist-wrap__head, .checklist-card, .faq-wrap__head, .faq, .career__main, .career__aside,
  .form-card, .contact-aside, .notfound__copy, .notfound__art { grid-column: 1 / -1; }
  .approach__head, .process__head { position: static; margin-bottom: 48px; }
  .approach__head { margin-bottom: 40px; }
  .page-hero__aside { justify-self: start; margin-top: 32px; }
  .page-hero__facts { text-align: left; }
  .cta__seal { justify-self: start; width: 180px; margin-top: 48px; }
  .footer__seal { justify-self: start; width: 130px; margin-top: 40px; }
  .footer__col { grid-column: span 6; }
  .career__aside { justify-self: start; }
  /* stos segregatorów na wąskich ekranach */
  .shelf { padding-right: 0; }
  .binder, .binder.is-open, .binder:not(.is-open):hover { transform: none; }
  .binder__spine { grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 14px; min-height: 72px; padding: 14px 16px; }
  .binder__label { width: 44px; height: 34px; font-size: .78rem; }
  .binder__title { font-size: 1.12rem; }
  .binder__cite { display: none; }
  .binder__hole { width: 22px; height: 22px; }
  .binder__body { grid-template-columns: 1fr; gap: 20px; padding: 0 16px 24px; }
  .binder__col, .binder__foot { grid-column: 1; grid-row: auto; }
  .people, .posts, .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* spis treści na telefonie: przewijany pasek skrótów */
  .toc, .code-layout .toc, .article-layout .toc, .doc-layout .toc { display: block; grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .toc__title { margin-bottom: 10px; padding-bottom: 0; border: 0; }
  .toc ol { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc li { flex: none; }
  .toc a, .toc a.is-active { display: inline-flex; gap: 8px; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); background: var(--surface); white-space: nowrap; transform: none; font-size: .88rem; color: var(--fg); font-weight: 500; }
  .toc__progress { display: none; }
  .toc a.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }
  .toc a.is-active span:first-child { color: var(--zabot-soft); }
  .code-body, .article-body, .doc-body { grid-column: 1 / -1; }
  .feature-post { grid-template-columns: 1fr; }
  .feature-post__art { min-height: 220px; order: -1; }
  .bio { grid-template-columns: 1fr; }
  .bio__portrait .person__portrait { min-height: 0; aspect-ratio: 16 / 10; }
  .notfound__art { height: 52vh; grid-row: 1; }
  .notfound__copy { grid-row: 2; }
  .notfound { align-content: center; padding-block: calc(var(--header-h) + 24px) 48px; }
  .search { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .people, .posts, .post-list { grid-template-columns: 1fr; }
  .tab-panel__list { grid-template-columns: 1fr; }
  .form-grid, .deadline__inner { grid-template-columns: 1fr; }
  .fees { grid-template-columns: 1fr; }
  .fee { min-height: 0; }
  .footer__col { grid-column: 1 / -1; }
  .brand__sub { display: none; }
  .tabs__list { display: flex; width: 100%; }
  .tabs__btn { flex: 1; padding: 0 12px; }
  .hero__actions .btn { width: 100%; }
  .area__grid { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 5; }
  .acc__panel p { padding-right: 0; }
  .statute__list li { grid-template-columns: 2em 1fr; }
  .statute__title { flex-direction: column; gap: 4px; }
  .person__portrait { aspect-ratio: 4 / 3; }
  .tabs__btn { font-size: .9rem; padding: 0 10px; }
  .post-card { min-height: 300px; }
}

/* ---------- Ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w__i { opacity: 1 !important; transform: none !important; }
  .amend del { background-size: 100% 2px; color: var(--fg-muted); }
  .amend ins .aw { opacity: 1; transform: none; filter: none; }
  .curtain { display: none; }
}

/* ---------- Druk ---------- */
@media print {
  .site-header, .site-footer, .curtain, .grain, .to-top, .cursor, .cursor-ring, .progress-bar, .toc, .article-aside, .marquee, .cta { display: none !important; }
  body { background: #fff; }
  .article-body { grid-column: 1 / -1; }
}
