/* ==========================================================================
   Tomasz Załucki: arkusz stylów
   Motyw zgodny z urządzeniem, wybór użytkownika przez data-motyw="light|dark". Akcent: niebieski z logo (#0822e8).
   Typografia: Clash Display (nagłówki), Switzer (tekst), Instrument Serif (akcenty).
   Clash Display i Switzer: Indian Type Foundry, licencja ITF Free Font License (Fontshare).
   Widżet ułatwień dostępu ma własny plik: a11y.css.
   ========================================================================== */

/* --- Czcionki -------------------------------------------------------------- */

@font-face {
    font-family: "Clash Display";
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url(../fonts/clash-display-var.woff2) format("woff2");
}
@font-face {
    font-family: "Switzer";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/switzer-var.woff2) format("woff2");
}
@font-face {
    font-family: "Instrument Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/instrument-serif-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Instrument Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/instrument-serif-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;
}


/* --- Zmienne i motywy ---------------------------------------------------------- */

:root {
    --white: #ffffff;
    --ink: #0a0c11;
    --ink-2: #12151c;
    /* kolor marki ustawiany w panelu (flexcms podaje --brand dla pakietu); wartości po przecinku to kolory z projektu */
    --navy: var(--brand, #0822e8);
    --navy-deep: color-mix(in srgb, var(--navy) 62%, #000000);
    --navy-bright: color-mix(in srgb, var(--navy) 82%, #ffffff);
    --sky: color-mix(in srgb, var(--navy) 45%, #ffffff);
    --line-dark: rgba(255, 255, 255, 0.14);
    --muted-dark: #aab2c0;
    --radius: 14px;
    --container: 1360px;
    --gutter: clamp(20px, 4vw, 48px);
    --section-y: clamp(72px, 11vw, 160px);
    --display: "Clash Display", "Switzer", "Segoe UI", system-ui, sans-serif;
    --font: "Switzer", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --sygnet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.8 3L113 106.1c-2.2 3.3-.5 6.3 3.1 6.3h18.6c3.3 0 6.1-1.5 7.9-4.2l14.9-22.1c2-3.1.5-6.5-2.9-6.5z'/%3E%3C/svg%3E");
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    color-scheme: dark;
    --bg: #0a0c11;
    --fg: #ffffff;
    --soft: #0f1219;
    --card: #151922;
    --card-alt: #181c26;
    --line: rgba(255, 255, 255, 0.14);
    --rule: rgba(255, 255, 255, 0.5);
    --muted: #aab2c0;
    --muted-inv: #4a5261;
    --accent: var(--sky);
    --accent-strong: color-mix(in srgb, var(--navy) 22%, #ffffff);
    --accent-inv: var(--navy);
    --invert-bg: #ffffff;
    --invert-fg: #0a0c11;
    --thead-bg: #222837;
    --field-bg: #0f1219;
    --field-border: #8a93a3;
    --error: #ff9a9a;
    --notice-err-bg: #2b1316;
    --notice-err-link: #ffc2c2;
    --notice-ok-bg: #0d1238;
    --s-pl: #6f82ff;
    --s-ue: #d2622a;
    --s-inne: #6b7385;
}
:root[data-motyw="light"] {
    color-scheme: light;
    --bg: #ffffff;
    --fg: #0a0c11;
    --soft: #f2f3f6;
    --card: #f2f3f6;
    --card-alt: #ffffff;
    --line: #d9dde5;
    --rule: #0a0c11;
    --muted: #4a5261;
    --muted-inv: #aab2c0;
    --accent: var(--navy);
    --accent-strong: var(--navy-deep);
    --accent-inv: var(--sky);
    --invert-bg: #0a0c11;
    --invert-fg: #ffffff;
    --thead-bg: #0a0c11;
    --field-bg: #ffffff;
    --field-border: #5b6472;
    --error: #a4161a;
    --notice-err-bg: #fdf0f0;
    --notice-err-link: #7d1013;
    --notice-ok-bg: #e8ebff;
    --ink: #ffffff;
    --ink-2: #f2f3f6;
    --white: #0a0c11;
    --sky: var(--navy);
    --muted-dark: #4a5261;
    --line-dark: #d9dde5;
    --s-pl: var(--navy);
    --s-ue: #d9541e;
    --s-inne: #8a93a3;
}

/* --- Podstawy: elementy, typografia, narzędzia --------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3 { margin: 0 0 0.5em; text-wrap: balance; overflow-wrap: break-word; }
h1, h2 {
    font-family: var(--display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.015em;
    word-spacing: 0.12em;
    line-height: 1;
}
h1 { font-size: clamp(1.85rem, 1rem + 5vw, 5.25rem); }
h2 { font-size: clamp(1.85rem, 1rem + 2.6vw, 3.6rem); }
h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
.serif {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.02em;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.on-dark :focus-visible { outline-color: var(--white); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 100;
    padding: 12px 20px;
    background: var(--white);
    color: var(--ink);
    font-weight: 600;
    border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--ink); outline: 3px solid var(--navy-bright); }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
body.menu-open { overflow: hidden; }
:where(.on-dark) a:not(.btn) { color: var(--white); }
.on-dark .lead, .on-dark .muted { color: var(--muted-dark); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; padding: 24px 28px; font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
th, td { padding: 22px 28px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
tbody th { width: 24%; font-family: var(--display); font-size: 1.05rem; font-weight: 500; color: var(--accent); }
[id] { scroll-margin-top: 100px; }
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after {
    transition: none !important;
    animation: none !important;
}
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 0;
}
.js body.menu-open .site-header { background: var(--ink); box-shadow: none; }
main > .hero:first-child, main > .page-hero:first-child { margin-top: -76px; }
main > .hero:first-child { min-height: min(100svh, 1056px); padding-top: calc(76px + clamp(48px, 7vw, 96px)); }
main > .page-hero:first-child { padding-top: calc(76px + clamp(64px, 10vw, 150px)); }
thead th {
    background: var(--thead-bg);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-top: 0;
    color: #ffffff;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 108px; }
.js body.menu-open .site-header::after { opacity: 0; }

/* --- Nagłówek strony ----------------------------------------------------------- */

.header-inner {
    display: flex;
    align-items: center;
    gap: 10px clamp(10px, 1.8vw, 28px);
    min-height: 76px;
    padding-inline: clamp(16px, 3vw, 40px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-right: auto;
    padding: 8px 0;
    color: var(--white);
    font-family: var(--display);
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    word-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.brand:hover { color: var(--white); }
.brand-mark rect { transform-box: fill-box; transform-origin: center; }
.brand:hover .brand-mark rect { animation: brand-bars 0.9s ease-in-out infinite; }
.brand:hover .brand-mark rect:nth-child(2) { animation-delay: -0.2s; }
.brand:hover .brand-mark rect:nth-child(3) { animation-delay: -0.45s; }
.brand:hover .brand-mark rect:nth-child(4) { animation-delay: -0.1s; }
.brand:hover .brand-mark rect:nth-child(5) { animation-delay: -0.6s; }
.header-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.header-contact svg {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.header-contact:hover { color: var(--sky) !important; text-decoration: underline; }
.nav-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 20px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--white) 55%, transparent);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--white); color: var(--ink); }
.nav-toggle-bars, .nav-toggle-bars::before {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 0.3s var(--ease);
}
.nav-toggle-bars { position: relative; top: -3px; }
.nav-toggle-bars::before { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-7px) rotate(-90deg); }
.theme-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 34px;
    height: 32px;
    background: var(--white);
    border-radius: 999px;
    transition: transform 0.3s var(--ease);
}
.theme-toggle svg {
    position: relative;
    justify-self: center;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color 0.3s;
}
.theme-toggle .icon-moon { color: var(--ink); }
:root[data-motyw="light"] .theme-toggle::before { transform: translateX(34px); }
:root[data-motyw="light"] .theme-toggle .icon-moon { color: var(--white); }
:root[data-motyw="light"] .theme-toggle .icon-sun { color: var(--ink); }
.theme-toggle:hover { border-color: var(--white); }
.theme-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 76px;
    height: 40px;
    padding: 3px;
    color: var(--white);
    background: color-mix(in srgb, var(--white) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 35%, transparent);
    border-radius: 999px;
    cursor: pointer;
    flex: none;
}
.site-header { position: sticky; top: 0; z-index: 60; background: var(--ink); color: var(--white); border-bottom: 0; }
.site-header .header-contact {
    width: auto;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}
.site-header .header-contact span { display: inline; }
.site-header .theme-toggle {
    position: relative;
    display: block;
    flex: none;
    width: 58px;
    height: 32px;
    padding: 0;
    background: color-mix(in srgb, var(--white) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 28%, transparent);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header .theme-toggle:hover {
    background: color-mix(in srgb, var(--white) 18%, transparent);
    border-color: color-mix(in srgb, var(--white) 60%, transparent);
}
.site-header .theme-toggle .icon-moon { color: var(--ink); opacity: 1; transform: rotate(0deg); }
.site-header .theme-toggle .icon-sun { color: var(--ink); opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-motyw="light"] .site-header .theme-toggle::before { transform: translateX(26px); }
.js .site-header {
    background: transparent;
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.brand:hover .brand-accent { transform: translate(5px, -7px); }
.brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.brand-mark { flex: none; height: auto; fill: none; color: var(--white); overflow: visible; width: 58px; }
/* logo rysuje się przy każdym wejściu na stronę: w oryginale klasę „logo-intro” dokładał skrypt w <head>,
   w pakiecie szablonu nie ma kodu w <head>, więc animacja jest przypisana wprost do logo w nagłówku */
.site-header .brand-mark path {
    stroke: currentColor;
    stroke-width: 0;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 1;
    animation: logo-draw 1.1s cubic-bezier(0.6, 0, 0.3, 1) var(--logo-d, 0s) both, logo-fill 0.7s ease calc(var(--logo-d, 0s) + 1s) both;
}
.site-header .brand-mark path:nth-child(2) { --logo-d: 0.25s; }
.site-header .brand-mark .brand-accent { --logo-d: 0.55s; color: var(--navy); }
.brand-accent { transition: transform 0.55s cubic-bezier(0.5, 0, 0.2, 1); }
.brand:hover .brand-accent, .brand:focus-visible .brand-accent { transform: translate(51.5px, -79.7px); }
.site-header .theme-toggle::before {
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transform: none;
    transition: transform 0.45s cubic-bezier(0.5, 1.4, 0.5, 1);
    top: 4px;
    left: 4px;
}
.site-header .theme-toggle, .site-header .theme-toggle:hover {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    border-radius: 50%;
}
.site-header .theme-toggle::before, :root[data-motyw="light"] .site-header .theme-toggle::before {
    inset: 0;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: background-color 0.25s var(--ease);
}
.site-header .theme-toggle:hover::before {
    background: color-mix(in srgb, var(--white) 12%, transparent);
    box-shadow: none;
}
.site-header .theme-toggle svg {
    position: absolute;
    color: var(--ink);
    transition: transform 0.45s cubic-bezier(0.5, 1.4, 0.5, 1), opacity 0.25s var(--ease);
    top: 11px;
    left: 11px;
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}
.site-header .theme-toggle .icon-moon, .site-header .theme-toggle .icon-sun { color: var(--white); }
:root[data-motyw="light"] .site-header .theme-toggle .icon-moon {
    opacity: 0;
    color: var(--white);
    transform: rotate(90deg) scale(0.6);
}
:root[data-motyw="light"] .site-header .theme-toggle .icon-sun {
    opacity: 1;
    color: var(--white);
    transform: rotate(0deg);
}
.js .site-header.is-scrolled { background: var(--ink); box-shadow: none; }
.js .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 44px;
    background: linear-gradient(to bottom, var(--ink), transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.js .site-header.is-scrolled::after { opacity: 1; }
@media (max-width: 1180px) {
    .header-contact {
        justify-content: center;
        width: 44px;
        padding: 0;
        border: 1px solid color-mix(in srgb, var(--white) 40%, transparent);
        border-radius: 50%;
    }
    .header-contact span { display: none; }
}
@media (max-width: 640px) {
    .header-contact { display: none; }
}
@media (max-width: 480px) {
    .nav-toggle { padding: 0 14px; }
    .nav-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .brand { gap: 10px; font-size: 0.95rem; }
}
@media (max-width: 700px) {
    .brand { gap: 10px; font-size: 1rem; }
}
@media (max-width: 360px) {
    .header-inner { gap: 8px; padding-inline: 12px; }
    .brand { font-size: 0.82rem; }
    .theme-toggle { width: 68px; }
    .theme-toggle::before { width: 30px; }
    :root[data-motyw="light"] .theme-toggle::before { transform: translateX(30px); }
}
@media (max-width: 900px) {
    .site-header .header-contact { display: none; }
}
@media (max-width: 380px) {
    .brand-mark { display: block; }
}
@media (max-width: 700px) {
    .brand-mark { height: auto; width: 48px; }
}

/* --- Menu pełnoekranowe -------------------------------------------------------- */

.site-nav { background: var(--ink); color: var(--white); padding: 24px clamp(16px, 3vw, 40px); }
.menu-list { list-style: none; margin: 0; padding: 0; counter-reset: menu; }
.menu-list li { margin: 0; counter-increment: menu; }
.menu-list a:hover, .menu-list a:focus-visible {
    color: var(--sky) !important;
    padding-left: clamp(8px, 1.5vw, 24px);
}
.menu-list a[aria-current="page"] { color: var(--sky) !important; }
.menu-list a[aria-current="page"]::after {
    content: "";
    align-self: center;
    width: 0.32em;
    height: 0.32em;
    border-radius: 50%;
    background: currentColor;
}
.menu-aside { margin-top: 32px; }
.menu-aside p { margin: 0 0 10px; }
.menu-aside a { font-family: var(--display); font-size: clamp(1.15rem, 1.6vw, 1.5rem); font-weight: 500; }
.menu-aside a:hover { color: var(--sky) !important; }
.js .site-nav.is-open { visibility: visible; opacity: 1; transition: opacity 0.3s var(--ease), visibility 0s; }
.js .site-nav .menu-aside { margin: 0 0 clamp(8px, 1.5vh, 18px); }
.menu-aside p:first-child { margin-top: 0; }
.menu-list a::before {
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--sky);
    content: "";
    flex: none;
    width: 26px;
    height: 18px;
    background: var(--sky);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.8 3L113 106.1c-2.2 3.3-.5 6.3 3.1 6.3h18.6c3.3 0 6.1-1.5 7.9-4.2l14.9-22.1c2-3.1.5-6.5-2.9-6.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.8 3L113 106.1c-2.2 3.3-.5 6.3 3.1 6.3h18.6c3.3 0 6.1-1.5 7.9-4.2l14.9-22.1c2-3.1.5-6.5-2.9-6.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.35s var(--ease);
}
.menu-list a:hover::before, .menu-list a:focus-visible::before { transform: translate(4px, -5px); }
.js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr);
    gap: 32px clamp(32px, 6vw, 96px);
    align-items: end;
    padding: calc(77px + clamp(20px, 5vh, 64px)) clamp(16px, 3vw, 40px) clamp(24px, 5vh, 64px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
    padding-bottom: 96px;
}
.menu-list a {
    display: flex;
    gap: clamp(14px, 2vw, 28px);
    padding: clamp(8px, 1.5vh, 18px) 0;
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.015em;
    word-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--line-dark);
    transition: color 0.25s, padding 0.35s var(--ease);
    align-items: center;
    font-size: clamp(1.2rem, min(0.9rem + 2.2vw, 4.4vh), 3rem);
    padding-block: clamp(5px, 1.1vh, 14px);
}
@media (max-width: 860px) {
    .js .site-nav { grid-template-columns: 1fr; align-items: start; align-content: start; }
}

/* --- Przyciski i odnośniki ----------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--invert-fg);
    background: var(--invert-bg);
    border: 1.5px solid var(--invert-bg);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn::after { content: "→"; content: "→" / ""; font-size: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--invert-fg); }
.btn:hover::after { transform: translateX(5px); }
.btn-outline { background: transparent; color: var(--fg); }
.btn-outline:hover { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-fg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.on-dark .btn { background: var(--white); border-color: var(--white); color: var(--ink); }
.on-dark .btn:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.on-dark .btn-outline {
    background: transparent;
    border-color: color-mix(in srgb, var(--white) 55%, transparent);
    color: var(--white);
}
.on-dark .btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    padding-bottom: 6px;
    border-bottom: 1.5px solid currentColor;
}
.arrow-link::after { content: "→"; content: "→" / ""; transition: transform 0.25s var(--ease); }
.arrow-link:hover { color: var(--accent); }
.arrow-link:hover::after { transform: translateX(5px); }
.on-dark .arrow-link:hover { color: var(--sky); }
.btn-pdf::after, .pdf-link::after { content: "↓"; content: "↓" / ""; }
.btn-pdf:hover::after { transform: translateY(3px); }
.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--muted);
    border-bottom: 1.5px solid transparent;
}
.pdf-link:hover { color: var(--accent); border-bottom-color: currentColor; }
.btn-li::after { content: none; }
.icon-li { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* --- Sekcje i siatki ----------------------------------------------------------- */

.section { padding-block: var(--section-y); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: var(--white); }
.section-head { max-width: 1000px; margin-bottom: clamp(40px, 6vw, 80px); }
.section-head .lead { margin-top: 24px; }
.statement .serif { color: var(--accent); font-size: 1.06em; }
.columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px clamp(32px, 5vw, 72px);
    align-items: start;
    /* na całą szerokość kontenera, w jednej linii z resztą treści */
    max-width: none;
    margin-left: 0;
}
.columns p { margin: 0; color: var(--muted); }
/* każdy akapit ma obok siebie znacznik z logo */
.columns-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; }
.columns-mark { display: block; }
.columns-mark .li-mark { position: static; top: auto; left: auto; width: clamp(52px, 5vw, 84px); height: auto; }
/* znacznik rysuje się konturem i konturem zostaje (bez wypełnienia) */
.columns .li-mark path { fill: none; stroke: var(--accent); stroke-width: 2.6px; }
.columns.draw-ready .li-mark path { fill-opacity: 1; stroke-width: 2.6px; stroke-dashoffset: 1; }
.columns.draw-ready.is-drawn .li-mark path { animation: mark-draw 0.9s cubic-bezier(0.6, 0, 0.3, 1) calc(var(--i, 0) * 0.22s) both; }
html[data-motion="off"] .columns .li-mark path, html.a11y-motion .columns .li-mark path { stroke-dashoffset: 0; }
@media (max-width: 700px) {
    .columns-item { gap: 14px; }
    .columns-mark .li-mark { width: 44px; }
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, max(300px, 28%)), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 7vw, 120px);
    align-items: start;
}
.split h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.statement {
    max-width: 24ch;
    margin: 0 0 clamp(40px, 6vw, 80px);
    font-family: var(--display);
    font-size: clamp(1.75rem, 1rem + 2.6vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.08;
    text-wrap: balance;
    word-spacing: 0.12em;
}
.section:has(.timeline) { overflow-x: clip; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
}

/* --- Hero i fala w tle --------------------------------------------------------- */

:root[data-motyw="light"] .hero::before {
    background: radial-gradient(60% 55% at 78% 55%, rgba(8, 34, 232, 0.06) 0%, transparent 75%);
}
:root[data-motyw="light"] .page-hero::before {
    background: radial-gradient(55% 80% at 80% 50%, rgba(8, 34, 232, 0.054) 0%, transparent 78%);
}
:root[data-motyw="light"] .hero::after { display: none; }
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: min(calc(100svh - 77px), 980px);
    padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px);
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(60% 55% at 78% 55%, rgba(8, 34, 232, 0.33) 0%, rgba(8, 34, 232, 0.108) 50%, transparent 78%), var(--ink);
}
.hero h1 {
    margin: clamp(24px, 4vw, 56px) 0;
    font-size: clamp(1.85rem, 0.8rem + 5.2vw, 5.25rem);
    text-shadow: 0 2px 40px color-mix(in srgb, var(--ink) 60%, transparent);
}
.hero h1 .serif { color: var(--sky); }
.hero-foot {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) auto;
    gap: 32px clamp(32px, 6vw, 96px);
    align-items: end;
    padding-top: clamp(24px, 3vw, 40px);
    border-top: 1px solid var(--line-dark);
}
.hero-foot .lead { margin: 0; color: color-mix(in srgb, var(--white) 86%, var(--ink)); }
.hero-fact { margin: 0; }
.hero-fact strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(3rem, 1.5rem + 3.6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 0.9;
}
.hero-fact span {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-dark);
}
.hero-foot .btn-row { margin: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
.page-hero h1 {
    font-size: clamp(2rem, 1rem + 3.6vw, 5rem);
    max-width: 16ch;
    margin-bottom: 0.4em;
    text-shadow: 0 2px 40px color-mix(in srgb, var(--ink) 60%, transparent);
}
.motion-toggle:hover { background: color-mix(in srgb, var(--white) 12%, transparent); border-color: var(--white); }
.motion-toggle-icon {
    width: 10px;
    height: 12px;
    border-left: 3px solid currentColor;
    border-right: 3px solid currentColor;
}
.motion-toggle.is-paused .motion-toggle-icon {
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left: 10px solid currentColor;
    border-right: 0;
}
.hero h1 .line { display: block; }
.wave {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    contain: strict;
    will-change: transform;
    transform: translateZ(0);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--grain);
    opacity: 0.05;
    pointer-events: none;
    display: none;
}
.hero h1, .page-hero h1 { text-shadow: none; }
.hero::after, .page-hero::after, :root[data-motyw="light"] .hero::after {
    content: "";
    display: block;
    position: absolute;
    inset: auto 0 0 0;
    z-index: -1;
    height: 45%;
    opacity: 1;
    background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, var(--bg) 100%);
    -webkit-mask-image: none;
    mask-image: none;
    pointer-events: none;
}
:root[data-motyw="light"] .hero, :root[data-motyw="light"] .page-hero { border-bottom: 0; }
.page-hero .wave { inset: 0 0 auto 0; height: max(100%, var(--wave-h)); }
.page-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    background: radial-gradient(55% 80% at 80% 50%, rgba(8, 34, 232, 0.3) 0%, rgba(8, 34, 232, 0.09) 50%, transparent 78%);
    inset: 0 0 auto 0;
    height: max(100%, var(--wave-h));
}
.page-hero::after {
    inset: auto 0 auto 0;
    top: calc(max(100%, var(--wave-h)) * 0.5);
    height: calc(max(100%, var(--wave-h)) * 0.5);
}
.page-hero + .section { position: relative; background: transparent; }
.page-hero {
    position: relative;
    padding-block: clamp(64px, 10vw, 150px) clamp(48px, 7vw, 96px);
    background: var(--ink);
    color: var(--white);
    isolation: isolate;
    overflow: visible;
    --wave-h: min(100svh, 1056px);
}
.motion-toggle {
    position: absolute;
    right: var(--gutter);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 12px;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: color-mix(in srgb, var(--ink) 55%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 35%, transparent);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    top: calc(76px + clamp(16px, 2.4vw, 32px));
}
.page-hero--article h1 { font-size: clamp(1.8rem, 1rem + 2.6vw, 3.6rem); max-width: 22ch; }
@media (max-width: 980px) {
    .hero-foot { grid-template-columns: 1fr 1fr; }
    .hero-foot .lead { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
    .hero h1 { margin-bottom: 150px; }
}
@media (max-width: 560px) {
    .hero-foot { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .page-hero h1 { margin-bottom: 130px; }
}
@media (max-width: 560px) {
    .motion-toggle-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .motion-toggle { padding: 12px; }
}
@media (max-width: 360px) {
    .hero h1 { font-size: 1.5rem; }
}
@media (max-width: 700px) {
    .page-hero { overflow: hidden; --wave-h: 0px; }
}
/* Oba przyciski w jednym rzędzie, po połowie szerokości, dopóki kolumna jest wąska. */
@media (max-width: 1000px) {
    .hero-foot .btn-row { flex-direction: row; flex-wrap: nowrap; gap: 10px; }
    .hero-foot .btn-row .btn { flex: 1 1 0; min-width: 0; justify-content: center; padding: 15px 12px; font-size: 0.76rem; gap: 8px; }
}
@media (max-width: 360px) {
    .hero-foot .btn-row .btn { padding: 14px 8px; font-size: 0.7rem; gap: 6px; letter-spacing: 0.03em; }
}

/* --- Lista usług (wiersze) ----------------------------------------------------- */

.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.rows li { margin: 0; }
.row {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1.25fr) minmax(0, 1fr) 64px;
    gap: 16px 32px;
    align-items: center;
    padding: clamp(24px, 3.4vw, 48px) clamp(0px, 1.5vw, 24px);
    color: var(--fg);
    text-decoration: none;
    border-top: 1px solid var(--line);
    isolation: isolate;
    transition: color 0.35s var(--ease), padding 0.35s var(--ease);
}
.row::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--invert-bg);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease);
}
.row:hover, .row:focus-visible { color: var(--invert-fg); padding-inline: clamp(12px, 2.5vw, 40px); }
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row:focus-visible { outline-offset: -4px; outline-color: var(--sky); }
.row:hover .row-num, .row:focus-visible .row-num { color: var(--accent-inv); }
.row-desc { font-size: 1rem; color: var(--muted); transition: color 0.35s; }
.row:hover .row-desc, .row:focus-visible .row-desc { color: var(--muted-inv); }
.row-arrow {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transition: transform 0.4s var(--ease), background-color 0.35s, color 0.35s, border-color 0.35s;
}
.row:hover .row-arrow, .row:focus-visible .row-arrow {
    transform: rotate(-45deg);
    background: var(--bg);
    border-color: var(--bg);
    color: var(--fg);
}
.row-title {
    font-family: var(--display);
    font-size: clamp(1.5rem, 0.9rem + 2.3vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1;
    text-transform: uppercase;
    word-spacing: 0.12em;
}
.row-num {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    transition: color 0.35s;
    display: block;
    line-height: 0;
}
.row-num:not(.has-mark)::before {
    content: "";
    display: block;
    width: 30px;
    height: 21px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.8 3L113 106.1c-2.2 3.3-.5 6.3 3.1 6.3h18.6c3.3 0 6.1-1.5 7.9-4.2l14.9-22.1c2-3.1.5-6.5-2.9-6.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.8 3L113 106.1c-2.2 3.3-.5 6.3 3.1 6.3h18.6c3.3 0 6.1-1.5 7.9-4.2l14.9-22.1c2-3.1.5-6.5-2.9-6.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.row .li-mark { position: static; display: block; width: 30px; height: 21px; }
.row .li-mark path { fill: currentColor; stroke: currentColor; transition: fill 0.35s; }
@media (max-width: 860px) {
    .row-num { grid-column: 1 / -1; }
    .row-desc { grid-column: 1 / -1; grid-row: 3; }
    .row-arrow { width: 48px; height: 48px; font-size: 1.2rem; }
    .row { grid-template-columns: minmax(0, 1fr) auto; }
    .row-title { overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
    .row-title { font-size: 1.3rem; }
}
@media (max-width: 860px) {
    .row .li-mark { width: 24px; height: 17px; }
}

/* --- Doświadczenie w liczbach (znak z kartami) -------------------------------- */

.liczby-top {
    display: grid;
    grid-template-columns: auto minmax(0, 24rem) auto;
    justify-content: space-between;
    gap: 24px clamp(32px, 5vw, 80px);
    align-items: center;
    margin-bottom: clamp(32px, 4vw, 56px);
}
.liczby-top h2 { margin: 0; white-space: nowrap; }
.liczby-top .lead { margin: 0; font-size: 1.1rem; line-height: 1.55; }
.liczby-top .person { margin-top: 0; }
@media (max-width: 1100px) {
    .liczby-top { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
    .liczby-top h2 { white-space: normal; }
}
.person { display: flex; align-items: center; gap: 18px; margin-top: 32px; }
.person img { flex: none; width: 88px; height: 110px; object-fit: cover; border-radius: 6px; }
.person strong {
    display: block;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.person span { display: block; margin-top: 4px; font-size: 0.9rem; color: var(--muted); }
.section--tight { padding-block: clamp(56px, 6vw, 96px); }

.orbit { --orbit: #4a60ff; position: relative; height: clamp(540px, 44vw, 640px); min-width: 0; }
:root[data-motyw="light"] .orbit { --orbit: var(--navy); }
.orbit-mark { position: absolute; left: 54%; top: 46%; width: 62%; transform: translate(-50%, -50%); overflow: visible; }
.orbit-shape { fill: none; stroke: var(--orbit); stroke-width: 1.15; stroke-linejoin: round; }
/* Poświata bez filtra SVG: filtr na ruchomym elemencie każe przeglądarce rysować go od nowa w każdej klatce. */
.orbit-ball { fill: var(--orbit); stroke: var(--ink); stroke-width: 0.6; }
.orbit-glow { fill: var(--orbit); opacity: 0.22; }
.orbit-cards { margin: 0; padding: 0; list-style: none; }
.orbit-card {
    position: absolute;
    width: 29%;
    margin: 0;
    padding: clamp(16px, 1.6vw, 24px);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    isolation: isolate;
    overflow: hidden;
    transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.orbit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 60% at 0% 0%, rgba(148, 162, 255, 0.25) 0%, transparent 60%), radial-gradient(90% 50% at 100% 55%, rgba(43, 69, 255, 0.9) 0%, transparent 70%), linear-gradient(165deg, var(--navy-bright) 0%, var(--navy) 45%, var(--navy-deep) 100%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}
/* Układ celowo niesymetryczny: karta „20+” nachodzi na znak, pozostałe stoją wokół niego. */
.orbit-card[data-pos="tl"] { left: 3%; top: 0; width: 26%; }
.orbit-card[data-pos="tr"] { left: 50%; top: 30%; width: 27%; }
.orbit-card[data-pos="bl"] { left: 0; bottom: 0; width: 21%; }
.orbit-card[data-pos="br"] { right: 0; bottom: 0; width: 25%; }
.orbit-num {
    display: block;
    font-family: var(--display);
    font-size: clamp(2.4rem, 1.2rem + 2.2vw, 3.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}
.orbit-label {
    display: block;
    margin-top: 12px;
    font-family: var(--display);
    font-size: clamp(0.95rem, 0.8rem + 0.35vw, 1.15rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.orbit-card p { margin: 10px 0 0; font-size: 1rem; line-height: 1.5; color: var(--muted); transition: color 0.5s var(--ease); }
.orbit-card.is-active { color: #ffffff; border-color: transparent; box-shadow: 0 24px 60px -24px rgba(43, 69, 255, 0.75); transform: translateY(-4px); }
.orbit-card.is-active::before { opacity: 1; }
.orbit-card.is-active p { color: #ffffff; }
.orbit-toggle {
    position: absolute;
    left: 47%;
    bottom: 0;
    transform: translateX(-50%);
    padding: 8px 14px;
    font: inherit;
    font-size: 0.8rem;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}
.orbit-toggle:hover { color: var(--white); border-color: var(--white); }
@media (max-width: 1000px) {
    .orbit { height: auto; }
    /* Układ jednokolumnowy (telefon, mały tablet): same karty, bez znaku i bez animacji. */
    .orbit-mark, .orbit-toggle { display: none; }
    .orbit-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .orbit-card, .orbit-card[data-pos] { position: relative; inset: auto; width: auto; }
    .orbit-card.is-active { transform: none; }
}
@media (max-width: 440px) {
    .orbit-cards { grid-template-columns: minmax(0, 1fr); }
}
@media print {
    .orbit-toggle, .orbit-ball { display: none; }
    .orbit { height: auto; }
    .orbit-mark { position: static; width: 40mm; transform: none; }
    .orbit-card, .orbit-card[data-pos] { position: relative; inset: auto; width: auto; margin-top: 4mm; }
}

/* --- Karty, etykiety, listy ze znacznikiem ------------------------------------- */

.section--soft .card { background: var(--card-alt); }
.card h3 { margin-bottom: 0.6em; font-size: clamp(1.35rem, 1.8vw, 1.7rem); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .muted { transition: color 0.35s var(--ease); }
.card:hover { background: var(--invert-bg); color: var(--invert-fg); transform: translateY(-4px); }
.card:hover .muted { color: var(--muted-inv); }
.card:hover a { color: var(--invert-fg); }
.card:hover .tag { color: var(--accent-inv); border-color: currentColor; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
    position: relative;
    padding: 18px 0 18px 44px;
    margin: 0;
    border-top: 1px solid var(--line);
    font-size: 1.1rem;
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 1.55em;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid var(--accent);
    border-bottom: 2.5px solid var(--accent);
    transform: rotate(-45deg);
}
.on-dark .checklist li { border-color: var(--line-dark); }
.on-dark .checklist li::before { border-color: var(--sky); }
.tag {
    align-self: flex-start;
    margin-bottom: clamp(32px, 5vw, 72px);
    padding: 6px 14px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: 999px;
    transition: color 0.35s, border-color 0.35s;
    display: inline-block;
}
.card {
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 2.6vw, 40px);
    background: var(--card);
    border-radius: var(--radius);
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
    border: 1px solid transparent;
}
.checklist li, .checklist li:last-child, .on-dark .checklist li {
    border: 0;
    padding: 10px 0 10px 42px;
    font-size: 1.08rem;
    line-height: 1.45;
    padding-left: 34px;
}
.checklist li::before, .on-dark .checklist li::before {
    left: 0;
    top: 0.62em;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent);
    transform: none;
    content: none;
}
.li-mark {
    position: absolute;
    left: 0;
    top: calc(10px + 0.725em - 6.5px);
    width: 19px;
    height: 13px;
    overflow: visible;
}
.draw-ready .li-mark path { fill-opacity: 0; stroke-width: 2.6px; stroke-dashoffset: 1; }
.draw-ready.is-drawn .li-mark path {
    animation: mark-draw 0.7s cubic-bezier(0.6, 0, 0.3, 1) calc(var(--i, 0) * 0.13s) both, mark-fill 0.45s ease calc(var(--i, 0) * 0.13s + 0.62s) both;
}
html[data-motion="off"] .draw-ready .li-mark path, html.a11y-motion .draw-ready .li-mark path { fill-opacity: 1; stroke-width: 0; stroke-dashoffset: 0; }
.li-mark path {
    stroke: var(--accent);
    stroke-width: 0;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    fill: var(--accent);
}
.checklist li::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(10px + 0.725em - 6.5px);
    width: 19px;
    height: 13px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.800 3L113 106.100c-2.200 3.300-.5 6.300 3.100 6.300h18.600c3.300 0 6.100-1.500 7.900-4.200l14.900-22.100c2-3.100.5-6.500-2.900-6.500z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.800 3L113 106.100c-2.200 3.300-.5 6.300 3.100 6.300h18.600c3.300 0 6.100-1.500 7.900-4.200l14.900-22.100c2-3.100.5-6.500-2.900-6.500z'/%3E%3C/svg%3E") center / contain no-repeat;
    background: var(--accent);
}
.has-marks li::after { content: none; }

/* --- Normy, kroki, bloki usług, oś czasu, zakres kompetencji ------------------- */

.cells {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    border-top: 1px solid var(--rule);
}
.cell p { margin: 0; color: var(--muted); max-width: 30ch; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px 0 0; margin: 0; border-top: 1px solid var(--rule); }
.steps li::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: clamp(24px, 4vw, 56px);
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--accent);
}
.steps h3 { text-transform: uppercase; font-weight: 600; font-size: 1.35rem; }
.on-dark .steps li { border-color: var(--line-dark); }
.on-dark .steps li::before { color: var(--sky); }
.service { padding-block: clamp(40px, 6vw, 88px); border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service:last-of-type { padding-bottom: 0; }
.service-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px clamp(40px, 7vw, 120px);
}
.service h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.service .tag { margin-bottom: 24px; }
.cell h3, .steps h3 { word-spacing: 0.12em; }
.scope { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.scope li {
    display: grid;
    grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px clamp(24px, 4vw, 64px);
    align-items: start;
    margin: 0;
    padding: clamp(24px, 3vw, 40px) 0;
    border-top: 1px solid var(--line);
}
.scope li:first-child { border-top-color: var(--rule); }
.scope h3 { margin: 0; font-size: clamp(1.3rem, 0.9rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.1; }
.scope p { margin: 0; color: var(--muted); }
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 clamp(24px, 4vw, 64px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.timeline::before, .timeline::after { content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--accent); transform-origin: left; transition: transform 1.4s var(--ease) 0.2s; }
.timeline li { position: relative; z-index: 1; margin: 0; padding-right: 8px; }
.timeline-dot {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: clamp(24px, 3vw, 40px);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--soft);
    border: 2px solid var(--accent);
    border-radius: 50%;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.timeline h3 {
    font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.08;
}
.timeline p { max-width: 36ch; margin: 0; }
.timeline li:hover .timeline-dot { background: var(--accent); color: var(--bg); transform: scale(1.12); }
.timeline.reveal { opacity: 1; transform: none; }
.timeline.reveal::after { transform: scaleX(0); }
.timeline.reveal.is-in::after { transform: scaleX(1); }
.timeline.reveal li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(0.25s + var(--i) * 0.3s);
}
.timeline.reveal.is-in li { opacity: 1; transform: none; }
html[data-motion="off"] .timeline.reveal li, html.a11y-motion .timeline.reveal li { opacity: 1; transform: none; }
html[data-motion="off"] .timeline.reveal::after, html.a11y-motion .timeline.reveal::after { transform: none; }
.cell-num {
    display: block;
    margin-bottom: clamp(32px, 5vw, 72px);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
}
.cell { padding: 28px 28px 36px 0; border-bottom: 1px solid var(--line); container-type: inline-size; }
.cell h3 {
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.08;
    font-size: clamp(1rem, 8.8cqi, 1.75rem);
    overflow-wrap: normal;
}
.cell-ref { display: block; margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.cell > h3:first-child { margin-top: 12px; }
.scope-num { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); padding-top: 0.2em; }
.scope-num:not(.has-mark)::before {
    content: "";
    display: block;
    width: 30px;
    height: 21px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.8 3L113 106.1c-2.2 3.3-.5 6.3 3.1 6.3h18.6c3.3 0 6.1-1.5 7.9-4.2l14.9-22.1c2-3.1.5-6.5-2.9-6.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.8 3L113 106.1c-2.2 3.3-.5 6.3 3.1 6.3h18.6c3.3 0 6.1-1.5 7.9-4.2l14.9-22.1c2-3.1.5-6.5-2.9-6.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.scope .li-mark { position: static; display: block; width: 30px; height: 21px; }
.timeline-dot, .timeline li:hover .timeline-dot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 56px;
    height: 56px;
    padding-right: 12px;
    color: var(--accent);
    background: var(--soft);
    border: 0;
    border-radius: 0;
    transform: none;
}
.timeline-dot:not(.has-mark)::before {
    content: "";
    width: 44px;
    height: 31px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.8 3L113 106.1c-2.2 3.3-.5 6.3 3.1 6.3h18.6c3.3 0 6.1-1.5 7.9-4.2l14.9-22.1c2-3.1.5-6.5-2.9-6.5z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='111 79 48 34'%3E%3Cpath d='M154.6 79.7H134.3c-2.4 0-4.5 1.2-5.8 3L113 106.1c-2.2 3.3-.5 6.3 3.1 6.3h18.6c3.3 0 6.1-1.5 7.9-4.2l14.9-22.1c2-3.1.5-6.5-2.9-6.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.timeline .li-mark {
    position: static;
    display: block;
    width: 44px;
    height: 31px;
    transition: transform 0.35s var(--ease);
}
.timeline .li-mark path { fill: currentColor; stroke: currentColor; }
.timeline li:hover .li-mark { transform: translate(4px, -5px); }
@media (max-width: 900px) {
    .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .scope li { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .timeline { grid-template-columns: 1fr; gap: 40px; padding-left: 0; }
    .timeline::before, .timeline::after { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; }
    .timeline::after { transform-origin: top; }
    .timeline.reveal::after { transform: scaleY(0); }
    .timeline.reveal.is-in::after { transform: scaleY(1); }
    .timeline li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; padding: 0; }
    .timeline-dot { grid-row: 1 / span 2; margin: 0; }
    .timeline h3 { align-self: end; margin: 6px 0 0; }
    .timeline p { grid-column: 2; }
}
@media (min-width: 761px) {
    .timeline::before, .timeline::after { left: 50%; right: auto; width: 100vw; margin-left: -50vw; }
}
@media (max-width: 860px) {
    .scope-num { padding-top: 0; margin-bottom: 4px; }
}
@media (max-width: 760px) {
    .timeline-dot, .timeline li:hover .timeline-dot { justify-content: center; padding: 0; }
    .timeline .li-mark, .timeline-dot:not(.has-mark)::before { width: 34px; height: 24px; }
}

/* --- Tabele i pytania ---------------------------------------------------------- */

.table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--card-alt); }
.faq { max-width: 1000px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary {
    position: relative;
    padding: 28px 72px 28px 0;
    font-family: var(--display);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    font-size: 1.5rem;
    font-weight: 400;
    border: 1.5px solid var(--fg);
    border-radius: 50%;
    transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.faq summary:hover::after { background: var(--invert-bg); color: var(--invert-fg); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--invert-bg); color: var(--invert-fg); }
.faq details > div { padding: 0 72px 28px 0; max-width: 72ch; color: var(--muted); }

/* --- Formularz kontaktowy ------------------------------------------------------ */

.form { display: grid; gap: 24px; }
/* „field” w rdzeniu flexcms oznacza samo pole (białe tło); u nas to opakowanie etykiety i pola. */
.form .field { width: auto; display: block; padding: 0; background: none; border: 0; border-radius: 0; }
.form .field-check { display: grid; }
/* rdzeń flexcms ustawia ciemny kolor etykiet; na tej stronie tło jest ciemne */
.form label, .form .field-check label, .form .field label { color: var(--fg); }
.form .field-check label { color: var(--muted); }
.form .field-check label a { color: var(--fg); }
.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
    width: 100%;
    padding: 15px 18px;
    font: inherit;
    color: var(--fg);
    background: var(--field-bg);
    border: 1.5px solid var(--field-border);
    border-radius: 10px;
    transition: border-color 0.2s;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    border-color: var(--accent);
    outline-offset: 1px;
}
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field .error { display: block; margin-top: 8px; font-weight: 600; color: var(--error); }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.field-check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); }
.field-check label { margin: 0; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.hp { position: absolute; left: -9999px; }
.req { color: var(--error); }
.notice { padding: 24px 28px; border-radius: var(--radius); border-left: 6px solid; margin-bottom: 32px; }
.notice h2 {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
    margin-bottom: 0.4em;
}
.notice ul { margin-bottom: 0; }
.notice--error { background: var(--notice-err-bg); border-color: var(--error); }
.notice--error a { color: var(--notice-err-link); font-weight: 600; }
.notice--ok { background: var(--notice-ok-bg); border-color: var(--accent); }
.notice p:last-child { margin-bottom: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.contact-list li { padding: 24px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
.contact-list span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-list a {
    font-family: var(--display);
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    font-weight: 500;
    color: var(--fg);
    text-decoration-thickness: 1.5px;
}
.contact-list a:hover { color: var(--accent); }

/* --- O mnie -------------------------------------------------------------------- */

.placeholder-note {
    margin-top: 32px;
    padding: 20px 24px;
    border: 1.5px dashed var(--field-border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.95rem;
}
.portrait-photo {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}
.cv { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.cv li {
    display: grid;
    grid-template-columns: 170px minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 8px clamp(24px, 4vw, 64px);
    align-items: start;
    margin: 0;
    padding: clamp(22px, 2.6vw, 36px) 0;
    border-top: 1px solid var(--line);
}
.cv li:first-child { border-top-color: var(--rule); }
.cv-date {
    margin: 0;
    padding-top: 0.25em;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
.cv h3 { margin: 0 0 4px; font-size: clamp(1.15rem, 0.95rem + 0.7vw, 1.5rem); font-weight: 600; }
.cv-org { margin: 0; font-weight: 600; }
.cv li > .muted { margin: 0; }
.tech { margin: 0; }
.tech dt { margin-top: 1.4em; font-family: var(--display); font-weight: 600; }
.tech dt:first-child { margin-top: 0; }
.tech dd { margin: 0.3em 0 0; color: var(--muted); }
@media (max-width: 860px) {
    .cv li { grid-template-columns: minmax(0, 1fr); }
    .cv-date { padding-top: 0; }
}

/* --- Referencje ---------------------------------------------------------------- */

.ref-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(300px, 30%)), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ref-list > li { display: flex; margin: 0; }
.reference { width: 100%; min-height: 0; margin: 0; justify-content: flex-start; gap: 0; }
.reference:hover { background: var(--card-alt); color: inherit; transform: none; }
.reference h3 { margin: 0 0 6px; font-size: 1.2rem; }
.ref-meta { margin: 0 0 20px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.reference blockquote { margin: 0 0 20px; padding: 0 0 0 18px; border-left: 3px solid var(--accent); }
.reference blockquote p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.reference blockquote footer { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.ref-scope { margin: 0 0 20px; font-size: 0.92rem; }
.ref-link { margin: auto 0 0; }
.ref-doc::after { content: "↗"; content: "↗" / ""; }
.reference figcaption { margin-bottom: 20px; }
.reference:hover .muted { color: var(--muted); }
.reference:hover a, .reference:hover a.pdf-link { color: var(--muted); }
.reference a.pdf-link:hover, .reference a.pdf-link:focus-visible {
    color: var(--accent);
    border-bottom-color: currentColor;
}
.section--dark .reference:hover, .section--soft .reference:hover { background: var(--card-alt); }

/* --- Publikacje: lista i artykuł ----------------------------------------------- */

.pub-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.pub-list > li { margin: 0; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.pub-list > li:first-child { border-top-color: var(--rule); }
.pub { max-width: 920px; }
.pub-meta, .pub-keywords {
    margin: 0 0 14px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
}
.pub h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.08; }
.pub h2 a { color: inherit; text-decoration: none; }
.pub h2 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.pub-sub {
    margin: 0 0 16px;
    font-family: var(--display);
    font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem);
    font-weight: 500;
}
.pub-keywords { margin: 16px 0 20px; font-weight: 500; color: var(--muted); }
.article-kicker {
    margin: 0 0 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 32px 0 0; }
.article-meta div { margin: 0; }
.article-meta dt {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-dark);
}
.article-meta dd { margin: 4px 0 0; font-weight: 600; }
.article-wrap { position: relative; background: transparent; }
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}
.article-toc { position: sticky; top: 108px; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 8px; }
.article-toc h2 {
    margin: 0 0 16px;
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.4;
}
.article-toc ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.article-toc li { margin: 0; }
.article-toc a {
    display: block;
    padding: 7px 0 7px 16px;
    margin-left: -1px;
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
}
.article-toc a:hover, .article-toc a:focus-visible { color: var(--fg); border-left-color: var(--accent); }
.article h2 {
    margin: 2.2em 0 0.7em;
    font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}
.article h3 { margin: 1.8em 0 0.5em; font-size: 1.2rem; font-weight: 600; }
.article p { margin: 0 0 1.15em; }
.article ul, .article ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article li { margin-bottom: 0.5em; }
.article a { text-decoration-thickness: 1px; }
.article blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--accent);
    color: var(--muted);
}
.article-abstract { padding: clamp(20px, 3vw, 36px); background: var(--card); border-radius: var(--radius); }
.article-abstract h2 {
    margin-top: 0;
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.article-abstract p:last-child { margin-bottom: 0; }
.article-keywords { font-size: 0.95rem; color: var(--muted); }
.fn { font-size: 0.72em; line-height: 0; vertical-align: super; }
.fn a { padding: 0 1px; font-weight: 600; text-decoration: none; }
.fn a:hover { text-decoration: underline; }
.article-notes, .article-refs { font-size: 0.95rem; line-height: 1.6; }
.article-notes ol { padding-left: 2em; }
.article-notes li { margin-bottom: 0.7em; }
.article-notes li:target, .fn a:target {
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}
.note-back { margin-left: 6px; text-decoration: none; font-weight: 600; }
.article-refs ul { list-style: none; padding: 0; }
.article-refs li { margin-bottom: 0.9em; padding-left: 1.6em; text-indent: -1.6em; overflow-wrap: anywhere; }
.article .table-wrap { margin: 1.6em 0; border: 1px solid var(--line); }
.article table { font-size: 0.95rem; min-width: 560px; }
.article th, .article td { padding: 14px 18px; }
/* Pierwsza kolumna opisuje wiersz i potrzebuje miejsca, kolumny z datami i liczbami nie. */
.article table { table-layout: fixed; width: 100%; }
.article thead th:first-child, .article tbody th[scope="row"] { width: 46%; }
.article table :is(th, td) { word-break: break-word; hyphens: auto; }
.article-cite { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.article-cite h2 {
    margin-top: 0;
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}
.article .chart-rows { padding-left: 0; }
.article .chart-data table { min-width: 0; font-size: 0.88rem; }
.article .chart-data th, .article .chart-data td { padding: 8px 12px; }
.key-findings {
    margin: 1.6em 0;
    padding: clamp(18px, 2.4vw, 28px);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
}
.key-findings h2 { margin-top: 0; }
.key-findings ul { margin-bottom: 0; }
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 1.6em 0;
    padding: 0;
    list-style: none;
}
.article .stat-row { padding-left: 0; }
.stat-row li { margin: 0; padding: 18px; background: var(--card); border-radius: var(--radius); }
.stat-row strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem);
    font-weight: 600;
    line-height: 1;
}
.stat-row span { display: block; margin-top: 8px; font-size: 0.86rem; line-height: 1.35; color: var(--muted); }
.article { max-width: 74ch; font-size: 1.1rem; line-height: 1.75; min-width: 0; }
.article .chart-legend { padding-left: 0; }
.article-refs a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.3em;
    vertical-align: -0.05em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.article-glossary { margin-top: 3em; font-size: 0.98rem; line-height: 1.6; }
.article-glossary dl { margin: 0; }
.article-glossary dt { margin-top: 1.1em; font-family: var(--display); font-weight: 600; }
.article-glossary dd { margin: 0.25em 0 0; color: var(--muted); }
.article-actions { margin-top: 28px; }
.pub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.article-metarow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 48px; margin-top: 32px; }
.article-metarow .article-meta, .article-metarow .article-actions { margin: 0; }
.article-metarow .btn { padding: 12px 22px; }
.article > :first-child { margin-top: 0; }
.article .article-meta dt { color: var(--muted); }
.article .placeholder-note { margin: 1.2em 0 2em; }
@media (max-width: 960px) {
    .article-toc {
        position: static;
        max-height: none;
        padding: 20px 24px;
        background: var(--card);
        border-radius: var(--radius);
    }
    .article-layout { grid-template-columns: minmax(0, 1fr); }
}

/* --- Wykresy w raportach ------------------------------------------------------- */

.chart { margin: 2em 0; padding: clamp(18px, 2.4vw, 28px); background: var(--card); border-radius: var(--radius); }
.chart figcaption {
    margin-bottom: 14px;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
}
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
    color: var(--muted);
}
.chart-legend li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.chart-swatch { width: 14px; height: 10px; border-radius: 3px; }
.s-pl { background: var(--s-pl); }
.s-ue { background: var(--s-ue); }
.s-inne { background: var(--s-inne); }
.chart-rows { margin: 0; padding: 0; list-style: none; }
.chart-rows li {
    display: grid;
    grid-template-columns: minmax(84px, 22%) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    line-height: 1.3;
}
.chart-rows li:first-child { border-top: 0; }
.chart-rows--dense li { padding: 3px 0; border-top: 0; font-size: 0.86rem; }
.chart-rows li.is-key .chart-label { font-weight: 700; }
.chart-label { color: var(--fg); }
.chart-bars { display: grid; gap: 2px; }
.chart-line { display: flex; align-items: center; gap: 10px; }
.chart-bar {
    position: relative;
    width: calc(var(--v) * 0.82);
    min-width: 3px;
    height: 12px;
    border-radius: 0 4px 4px 0;
}
.chart-rows--dense .chart-bar { height: 10px; }
.chart-val { font-variant-numeric: tabular-nums; font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.chart-rows li.is-key .chart-val { color: var(--fg); font-weight: 600; }
.chart-bar::after {
    content: attr(data-tip);
    position: absolute;
    left: 100%;
    bottom: calc(100% + 6px);
    z-index: 2;
    padding: 5px 9px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--invert-fg);
    background: var(--invert-bg);
    border-radius: 4px;
    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.15s;
}
.chart-line:hover .chart-bar::after { opacity: 1; }
.chart-line:hover .chart-bar { filter: brightness(1.15); }
.chart-data { margin-top: 16px; font-size: 0.9rem; }
.chart-data summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.chart-data .table-wrap { margin: 12px 0 0; }
.chart-source { margin: 14px 0 0 !important; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 560px) {
    .chart-rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .chart-rows--dense li { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
    .chart-bar { width: calc(var(--v) * 0.7); }
    .chart-bar::after { display: none; }   /* dymek przy słupku wychodził poza ekran; wartość jest obok słupka */
}

/* --- Stopka -------------------------------------------------------------------- */

:root[data-motyw="light"] .site-footer::before {
    background: radial-gradient(50% 60% at 100% 0%, rgba(8, 34, 232, 0.06) 0%, transparent 75%);
}
:root[data-motyw="light"] .site-footer { border-top: 1px solid var(--line); }
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(50% 60% at 100% 0%, rgba(8, 34, 232, 0.36) 0%, rgba(8, 34, 232, 0.12) 45%, transparent 75%);
}
.footer-cta { padding-block: var(--section-y) clamp(48px, 7vw, 96px); color: var(--white); }
.footer-cta h2 { font-size: clamp(2.2rem, 1rem + 5.4vw, 5.5rem); margin-bottom: clamp(28px, 4vw, 48px); }
.footer-cta h2 .serif { color: var(--sky); }
.footer-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}
.footer-mail {
    text-decoration: underline;
    font-family: var(--display);
    font-size: clamp(1.3rem, 3.2vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 8px;
    overflow-wrap: anywhere;
}
.footer-mail:hover { color: var(--sky) !important; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 0.9fr;
    gap: 40px;
    padding-block: clamp(40px, 5vw, 64px);
    border-top: 1px solid var(--line-dark);
}
.footer-grid p { max-width: 44ch; }
.footer-heading {
    margin-bottom: 18px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    color: var(--muted-dark);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-links { columns: 2; column-gap: 32px; }
.footer-links li { break-inside: avoid; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--sky) !important; text-decoration: underline; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 24px;
    border-top: 1px solid var(--line-dark);
    font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
:root:not([data-motyw="light"]) .site-footer { border-top: 1px solid var(--line); }
.footer-name {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer-mark { flex: none; height: auto; color: var(--white); width: 58px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-legal li { margin: 0; }
.footer-legal a { color: var(--white); text-underline-offset: 4px; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--sky) !important; }
.site-footer {
    position: relative;
    background: var(--ink);
    color: var(--muted-dark);
    overflow: hidden;
    isolation: isolate;
    padding-bottom: 0;
}
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 700px) {
    .footer-bottom { flex-direction: column; }
    .site-footer { padding-bottom: 0; }
}

/* --- Animacje wejścia ---------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }
html[data-motion="off"] .reveal, html.a11y-motion .reveal { opacity: 1; transform: none; }
@keyframes brand-bars {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.4); }
}
@keyframes logo-draw {
    from { stroke-dashoffset: 1; stroke-width: 2.4; }
    to { stroke-dashoffset: 0; stroke-width: 2.4; }
}
@keyframes logo-fill {
    from { fill-opacity: 0; stroke-width: 2.4; }
    to { fill-opacity: 1; stroke-width: 0; }
}
@keyframes mark-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}
@keyframes mark-fill {
    from { fill-opacity: 0; stroke-width: 2.6px; }
    to { fill-opacity: 1; stroke-width: 0; }
}

/* --- Pozostałe ----------------------------------------------------------------- */

.on-dark:focus-visible { outline-color: var(--white); }
.stat { padding: clamp(28px, 4vw, 56px) clamp(0px, 3vw, 48px) 0 0; margin: 0; }
.stat + .stat { padding-left: clamp(0px, 3vw, 48px); border-left: 1px solid var(--line-dark); }
.stat p { margin: 8px 0 0; max-width: 34ch; color: var(--muted-dark); }
@media (max-width: 900px) {
    .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); margin-top: 32px; }
}

/* --- Preferencje systemowe ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
    .wave, .hero::before, .hero::after, .page-hero::before, .site-footer::before { display: none; }
    .card, .table-wrap, .btn, .theme-toggle { border: 1px solid CanvasText; }
    .theme-toggle::before { background: Highlight; }
    .row::before { display: none; }
    .site-header .theme-toggle::before { background: Highlight; }
    .chart-bar { background: CanvasText; }
    .s-ue { background: Highlight; }
}

/* --- Wydruk i PDF -------------------------------------------------------------- */

@media print {
    :root:root:root {
        color-scheme: light;
        --bg: #ffffff;
        --fg: #0a0c11;
        --soft: #ffffff;
        --card: #f4f5f8;
        --card-alt: #ffffff;
        --line: #cfd4dd;
        --rule: #0a0c11;
        --muted: #3c4350;
        --muted-inv: #aab2c0;
        --accent: var(--navy);
        --accent-strong: var(--navy-deep);
        --accent-inv: var(--sky);
        --invert-bg: #0a0c11;
        --invert-fg: #ffffff;
        --thead-bg: #0a0c11;
        --ink: #ffffff;
        --ink-2: #f2f3f6;
        --white: #0a0c11;
        --sky: var(--navy);
        --muted-dark: #3c4350;
        --line-dark: #cfd4dd;
        --s-pl: var(--navy);
        --s-ue: #d9541e;
        --s-inne: #8a93a3;
    }
    html { font-size: 11pt; }
    body { background: #ffffff; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .site-header,
    .site-nav,
    .skip-link,
    .wave,
    .motion-toggle,
    .site-footer,
    .article-toc,
    .article-actions,
    .note-back,
    .page-hero::before,
    .page-hero::after,
    .hero::before,
    .hero::after,
    .chart-data summary {
        display: none !important;
    }
    main > .page-hero:first-child { margin-top: 0; padding: 0 0 8mm; }
    .page-hero { overflow: visible; border-bottom: 1pt solid #0a0c11; }
    .page-hero h1 { font-size: 24pt; max-width: none; }
    .page-hero .lead { font-size: 13pt; }
    .container { max-width: none; padding-inline: 0; }
    .section, .article-wrap { padding-block: 6mm 0; }
    .article-layout { display: block; }
    .article { max-width: none; font-size: 10.5pt; line-height: 1.55; }
    .article h2 { font-size: 14pt; margin-top: 1.6em; break-after: avoid; }
    .article h3 { font-size: 11.5pt; break-after: avoid; }
    .article p, .article li { orphans: 3; widows: 3; }
    .chart, .table-wrap, .key-findings, .stat-row li, .article-abstract { break-inside: avoid; }
    .table-wrap { overflow: visible; }
    .article table { min-width: 0; font-size: 9pt; }
    .article thead th:first-child, .article tbody th[scope="row"] { width: 42%; }
    .article th, .article td { padding: 7px 9px; }
    .chart-data { display: block; }
    .chart-data > .table-wrap { display: block; }
    .chart-bar::after { display: none; }
    .article-refs a[target="_blank"]::after { display: none; }
    .article-refs a { color: var(--navy); }
    .reveal { opacity: 1 !important; transform: none !important; }
    .article-meta dt { color: #3c4350; }
}
@media print {
    @page { size: A4; margin: 18mm 16mm 20mm; }
    /* przycisk ułatwień dostępu to element strony, nie treści: nie drukujemy go ani nie zapisujemy w PDF */
    .fx-a11y { display: none !important; }
}

/* Pojęcia ze słownika oznaczone w treści artykułu: podkreślenie kropkami i dymek z wyjaśnieniem. */
.termin { position: relative; }
.termin-btn {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    white-space: normal;
    cursor: help;
    text-decoration: underline dotted var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
    -webkit-user-select: text;
    user-select: text;
}
.termin-btn:hover, .termin.is-open .termin-btn { text-decoration-style: solid; }
.termin-opis {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: max-content;
    max-width: min(22rem, calc(100vw - 32px));
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 0.86rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
    text-align: left;
    color: var(--invert-fg);
    background: var(--invert-bg);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transform: translateX(var(--dx, 0px));
}
.termin-opis::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }   /* most między słowem a dymkiem */
.termin-opis strong { display: block; margin-bottom: 3px; font-family: var(--display); font-weight: 600; }
.termin:hover .termin-opis,
.termin:focus-within .termin-opis,
.termin.is-open .termin-opis { display: block; }
.termin.is-closed .termin-opis { display: none; }
@media print {
    .termin-opis { display: none !important; }
    .termin-btn { text-decoration: none; }
}

/* O mnie: odnośniki do własnych produktów w przebiegu kariery. */
.cv-org a { color: var(--accent); }

/* O mnie: sekcje autorskich produktów. */
.split .tag { margin-bottom: 20px; }
.stat-row--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; margin: 28px 0 0; padding: 0; }
.section--soft .stat-row li { background: var(--card-alt); }

/* --- Portfolio ------------------------------------------------------------------ */

.pf-head h2 { margin-bottom: 0.5em; }
.pf-head h3 { margin-top: 0; }
.pf-logo {
    display: grid;
    place-items: center;
    max-width: 440px;
    margin-top: clamp(28px, 4vw, 48px);
    height: 200px;
    padding: 40px 48px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.pf-logo img { width: auto; height: auto; max-width: 100%; max-height: 120px; object-fit: contain; }
.pf-logo--wide img { max-height: none; }
.pf-logo img[src$=".svg"] { width: min(240px, 100%); }
.pf-logo--wide { max-width: none; height: auto; padding: clamp(16px, 3vw, 40px); margin-top: clamp(40px, 6vw, 72px); }
.pf-logo--wide img { width: 100%; height: auto; }
.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(14px, 2vw, 24px);
    margin: clamp(40px, 6vw, 72px) 0 0;
    padding: 0;
    list-style: none;
}
.shots + .shots, .pf-logo--wide + .shots { margin-top: clamp(14px, 2vw, 24px); }
.shot {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.section--soft .shot { background: var(--card-alt); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 5s ease-in-out; }
.shot:hover img, .shot:focus-visible img { object-position: bottom; }
.shot:hover, .shot:focus-visible { border-color: var(--accent); }
.shots--telefony { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.shots--telefony .shot { aspect-ratio: 428 / 926; }
.shots--szerokie { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.shots--szerokie .shot { aspect-ratio: 16 / 10; }
.shots--kwadraty .shot { aspect-ratio: 1; }
.shots--pelne { grid-template-columns: 1fr; }
.shots--pelne .shot { aspect-ratio: auto; }
.shots--pelne .shot img { height: auto; }
@media (max-width: 640px) {
    .shots--strony, .shots--telefony, .shots--kwadraty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pf-logo { height: 150px; padding: 28px 32px; }
    .pf-logo img { max-height: 94px; }
    .pf-logo--wide { height: auto; padding: 16px; }
    .pf-logo--wide img { max-height: none; }
}

/* Informacja o produkcie autora w treści publikacji */
.promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    margin: 2.4em 0;
    padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.8vw, 30px);
    background: #0a0c11;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
}
.promo-logo { display: block; width: 138px; height: auto; color: #ffffff; }
.article .promo p { margin: 10px 0 0; font-size: 1rem; line-height: 1.4; color: #d5dae3; }
.promo .btn { padding: 13px 22px; background: #ffffff; border-color: #ffffff; color: #0a0c11; }
.promo .btn:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.promo :focus-visible { outline-color: #ffffff; }
@media print {
    .promo { background: none; color: #0a0c11; border: 1pt solid #0a0c11; break-inside: avoid; }
    .promo-logo, .article .promo p { color: #0a0c11; }
    .promo .btn { background: none; border: 1pt solid #0a0c11; color: #0a0c11; padding: 6pt 10pt; }
}

/* Dwa akapity obok siebie (sekcja „Doświadczenie zawodowe”) */
.prose-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.prose-cols p { margin: 0; font-size: 1.1rem; line-height: 1.7; }
@media (max-width: 800px) { .prose-cols { grid-template-columns: minmax(0, 1fr); } }

/* Urządzenie ustawione na jasny motyw, a użytkownik nie wybrał swojego: strona od razu jasna. */
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) {
    color-scheme: light;
    --bg: #ffffff;
    --fg: #0a0c11;
    --soft: #f2f3f6;
    --card: #f2f3f6;
    --card-alt: #ffffff;
    --line: #d9dde5;
    --rule: #0a0c11;
    --muted: #4a5261;
    --muted-inv: #aab2c0;
    --accent: var(--navy);
    --accent-strong: var(--navy-deep);
    --accent-inv: var(--sky);
    --invert-bg: #0a0c11;
    --invert-fg: #ffffff;
    --thead-bg: #0a0c11;
    --field-bg: #ffffff;
    --field-border: #5b6472;
    --error: #a4161a;
    --notice-err-bg: #fdf0f0;
    --notice-err-link: #7d1013;
    --notice-ok-bg: #e8ebff;
    --ink: #ffffff;
    --ink-2: #f2f3f6;
    --white: #0a0c11;
    --sky: var(--navy);
    --muted-dark: #4a5261;
    --line-dark: #d9dde5;
    --s-pl: var(--navy);
    --s-ue: #d9541e;
    --s-inne: #8a93a3;
}
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .theme-toggle::before { transform: translateX(34px); }
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .theme-toggle .icon-moon { color: var(--white); }
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .theme-toggle .icon-sun { color: var(--ink); }
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .site-header .theme-toggle::before { transform: translateX(26px); }
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .site-header .theme-toggle::before {
    inset: 0;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: background-color 0.25s var(--ease);
}
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .site-header .theme-toggle .icon-moon {
    opacity: 0;
    color: var(--white);
    transform: rotate(90deg) scale(0.6);
}
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .site-header .theme-toggle .icon-sun {
    opacity: 1;
    color: var(--white);
    transform: rotate(0deg);
}
}
@media (max-width: 360px) and (prefers-color-scheme: light) {
:root:not([data-motyw]) .theme-toggle::before { transform: translateX(30px); }
}
@media (prefers-color-scheme: light) {
/* --- Hero i fala w tle --------------------------------------------------------- */

:root:not([data-motyw]) .hero::before {
    background: radial-gradient(60% 55% at 78% 55%, rgba(8, 34, 232, 0.06) 0%, transparent 75%);
}
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .page-hero::before {
    background: radial-gradient(55% 80% at 80% 50%, rgba(8, 34, 232, 0.054) 0%, transparent 78%);
}
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .hero::after { display: none; }
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .hero::after {
    content: "";
    display: block;
    position: absolute;
    inset: auto 0 0 0;
    z-index: -1;
    height: 45%;
    opacity: 1;
    background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, var(--bg) 100%);
    -webkit-mask-image: none;
    mask-image: none;
    pointer-events: none;
}
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .hero, :root:not([data-motyw]) .page-hero { border-bottom: 0; }
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .orbit { --orbit: var(--navy); }
}
@media (prefers-color-scheme: light) {
/* --- Stopka -------------------------------------------------------------------- */

:root:not([data-motyw]) .site-footer::before {
    background: radial-gradient(50% 60% at 100% 0%, rgba(8, 34, 232, 0.06) 0%, transparent 75%);
}
}
@media (prefers-color-scheme: light) {
:root:not([data-motyw]) .site-footer { border-top: 1px solid var(--line); }
}

.footer-made { display: inline-block; margin-left: 10px; color: var(--muted); }
.footer-made a, .footer-made-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-made a:hover, .footer-made-link:hover { color: var(--white); }

/* Numer porządkowy zastąpiony znacznikiem z logo: bez obwódki pigułki, sam kontur znaku. */
.num-mark { border: 0; padding: 0; background: none; }
.num-mark .li-mark { position: static; display: block; width: 26px; height: 18px; top: auto; left: auto; }
.card:hover .num-mark .li-mark path, .cell:hover .num-mark .li-mark path { stroke: var(--accent-inv); fill: var(--accent-inv); }

/* Numer kroku zastąpiony znacznikiem z logo (ten sam, który rysuje się na listach). */
.steps li.ma-znacznik::before { content: none; }
.step-mark { display: block; margin-bottom: clamp(24px, 4vw, 56px); }
.step-mark .li-mark { position: static; display: block; top: auto; left: auto; width: clamp(40px, 4.6vw, 62px); height: auto; }
.steps .li-mark path { stroke: var(--accent); fill: var(--accent); }
.on-dark .steps .li-mark path { stroke: var(--sky); fill: var(--sky); }

/* Zatrzymanie animacji jest w panelu ułatwień dostępu („Zatrzymaj animacje”), więc przyciski w treści są zbędne. */
.motion-toggle, .orbit-toggle { display: none !important; }

/* Odnośnik do ustawień zgód w dolnym pasku stopki: wygląda jak pozostałe odnośniki. */
.footer-cookies { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer-cookies:hover { color: var(--white); }

/* Punktory w treści artykułów i dokumentów: sygnet z logo zamiast kropki.
   Kształt rysowany maską, więc kolor idzie za akcentem szablonu (token marki). */
.article ul:not(.checklist):not(.footer-legal):not(.menu-list) > li {
    list-style: none;
    position: relative;
    padding-left: 1.9em;
}
.article ul:not(.checklist):not(.footer-legal):not(.menu-list) > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 1.05em;
    height: 0.72em;
    background: var(--accent);
    -webkit-mask: var(--sygnet) center / contain no-repeat;
    mask: var(--sygnet) center / contain no-repeat;
}
.article ul:not(.checklist):not(.footer-legal):not(.menu-list) { padding-left: 0; }
