/* AutomationNex — system projektowy 2026
   Ciemne sekcje marki (hero, proces, kontakt) + jasne sekcje treści dla czytelności. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-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: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/space-grotesk-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("../fonts/space-grotesk-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; }

:root {
    --bg: #07090d;
    --ink: #0b0e13;
    --ink-2: #111620;
    --ink-3: #19202d;
    --ink-line: rgba(255, 255, 255, 0.09);
    --ink-line-strong: rgba(255, 255, 255, 0.16);
    --on-dark: #f3f5f8;
    --on-dark-muted: #a7b0bf;

    --paper: #f4f6f9;
    --white: #ffffff;
    --text: #0e1319;
    --muted: #556070;
    --line: #e2e6ec;
    --line-strong: #cfd6df;

    --brand: #e33148;
    --brand-hover: #f0455b;
    --brand-deep: #b9182f;
    --brand-soft: rgba(227, 49, 72, 0.1);
    --cyan: #3dd6f5;
    --violet: #8b7cff;
    --ok: #18a77a;

    --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(14, 19, 25, 0.06), 0 2px 8px rgba(14, 19, 25, 0.04);
    --shadow: 0 1px 2px rgba(14, 19, 25, 0.05), 0 18px 48px -18px rgba(14, 19, 25, 0.22);
    --shadow-dark: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --section-y: clamp(64px, 9vw, 120px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 64px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3.05rem); }
h3 { font-size: clamp(1.14rem, 1.06rem + 0.3vw, 1.3rem); line-height: 1.25; letter-spacing: -0.015em; }
p, li { text-wrap: pretty; }
strong { font-weight: 650; }

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

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
    position: fixed; top: 10px; left: 10px; z-index: 2000;
    padding: 10px 16px; border-radius: 10px;
    background: var(--white); color: var(--text); font-weight: 600;
    transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Przyciski ---------- */
.btn {
    --btn-h: 46px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--btn-h); padding: 0 20px;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 600; font-size: 0.97rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn-sm { --btn-h: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn-lg { --btn-h: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--brand); color: #fff;
    box-shadow: 0 10px 30px -12px rgba(227, 49, 72, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { color: var(--on-dark); border-color: var(--ink-line-strong); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { color: var(--text); border-color: var(--line-strong); background: var(--white); }
.btn-outline:hover { border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--brand); }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Eyebrow / nagłówki sekcji ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 0 0 18px; padding: 6px 12px 6px 10px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--white);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.eyebrow--dark, .section--dark .eyebrow { background: rgba(255, 255, 255, 0.05); border-color: var(--ink-line-strong); color: var(--on-dark-muted); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin-bottom: 0; }
.section-lead { margin: 18px 0 0; font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.14rem); color: var(--muted); max-width: 68ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { max-width: none; display: grid; gap: 18px 56px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; }
.section-head--split .eyebrow { grid-column: 1 / -1; justify-self: start; margin-bottom: 0; }
.section-head--split .section-lead { margin: 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Sekcje ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--light { background: var(--white); }
.section--muted { background: var(--paper); }
.section--dark { background: var(--ink); color: var(--on-dark); isolation: isolate; overflow: hidden; }
.section--dark .section-lead, .section--dark p { color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 50% at 85% 0%, rgba(139, 124, 255, 0.14), transparent 70%),
        radial-gradient(50% 40% at 0% 100%, rgba(227, 49, 72, 0.12), transparent 70%);
}
.section--cta { background: var(--white); padding-top: 0; }
.section--muted + .section--cta { background: var(--paper); }

/* ---------- Nagłówek i nawigacja ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h);
    color: var(--on-dark);
    background: rgba(7, 9, 13, 0.55);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled { background: rgba(7, 9, 13, 0.86); border-bottom-color: var(--ink-line); }
.nav { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: #fff; }
.brand img { width: 36px; height: auto; }
.brand b { color: var(--brand); font-weight: 700; }
.nav-main { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 9px 12px; border: 0; border-radius: 10px; background: none;
    font-size: 0.94rem; font-weight: 500; color: rgba(243, 245, 248, 0.84); text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover, .nav-trigger[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-chevron { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-item { position: relative; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px;
    font-size: 0.88rem; font-weight: 600; text-decoration: none; color: rgba(243, 245, 248, 0.84);
}
.lang-switch:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.lang-switch .icon { width: 17px; height: 17px; }

.mega {
    position: absolute; top: calc(100% + 12px); left: 50%; width: min(760px, 92vw);
    transform: translate(-50%, 6px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-inner {
    display: grid; grid-template-columns: 220px 1fr; gap: 8px;
    padding: 10px; border-radius: 20px;
    background: rgba(17, 22, 32, 0.97); border: 1px solid var(--ink-line-strong);
    box-shadow: var(--shadow-dark);
}
.mega-intro { padding: 18px; border-radius: 14px; background: linear-gradient(160deg, rgba(227, 49, 72, 0.16), rgba(139, 124, 255, 0.08)); }
.mega-intro p { font-size: 0.9rem; color: var(--on-dark-muted); }
.mega-intro .eyebrow { margin-bottom: 12px; }
.mega-intro .text-link { color: #fff; font-size: 0.9rem; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-link { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; transition: background-color 0.15s; }
.mega-link:hover, .mega-link:focus-visible { background: rgba(255, 255, 255, 0.06); }
.mega-link strong { display: block; font-size: 0.93rem; color: #fff; }
.mega-link small { display: block; margin-top: 2px; font-size: 0.8rem; line-height: 1.45; color: var(--on-dark-muted); }
.mega-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: var(--brand-hover); flex: none; }
.mega-icon .icon { width: 18px; height: 18px; }

.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--ink-line-strong); background: rgba(255, 255, 255, 0.04); }
.burger-lines { display: grid; gap: 5px; width: 20px; margin: auto; }
.burger-lines span { height: 2px; border-radius: 2px; background: #fff; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-open .burger-lines span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger-lines span:nth-child(2) { opacity: 0; }
.nav-open .burger-lines span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 999;
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0.25s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }
.mobile-nav-inner { display: grid; gap: 4px; padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.m-group summary, .m-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 4px; border-bottom: 1px solid var(--ink-line);
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: #fff; text-decoration: none;
    list-style: none; cursor: pointer;
}
.m-group summary::-webkit-details-marker { display: none; }
.m-group summary .icon { transition: transform 0.25s; }
.m-group[open] summary .icon { transform: rotate(180deg); }
.m-group ul { display: grid; gap: 2px; padding: 8px 0 12px; }
.m-group li a { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 10px; color: var(--on-dark-muted); text-decoration: none; }
.m-group li a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.m-group li a .icon { color: var(--brand-hover); }
.m-group .m-all { color: #fff; font-weight: 600; }
.m-link .icon { width: 18px; color: var(--on-dark-muted); }
.m-actions { display: grid; gap: 12px; margin-top: 24px; }
.m-actions .btn { white-space: normal; }
.m-contact { display: grid; gap: 4px; margin-top: 12px; }
.m-contact a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: var(--on-dark-muted); text-decoration: none; }

/* ---------- Tła hero ---------- */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background-image: url("../img/hero-bg-900.webp");
    background-size: cover; background-position: 70% 50%;
    opacity: 0.38;
    mask-image: radial-gradient(80% 90% at 80% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(80% 90% at 80% 40%, #000 20%, transparent 75%);
}
@media (min-width: 900px) { .hero-bg::before { background-image: url("../img/hero-bg.webp"); } }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
        radial-gradient(40% 50% at 10% 20%, rgba(227, 49, 72, 0.22), transparent 70%),
        linear-gradient(180deg, transparent 60%, var(--bg));
    mask-image: linear-gradient(180deg, #000 70%, transparent);
}
.hero-bg--contact::before { opacity: 0.18; background-position: 20% 50%; }

/* ---------- Hero strony głównej ---------- */
.home-hero { position: relative; isolation: isolate; color: var(--on-dark); padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.home-hero h1 { margin-bottom: 22px; font-size: clamp(2.35rem, 1.5rem + 3vw, 4rem); }
.home-hero h1 em, .page-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #ff8a98 0%, var(--brand) 45%, #c9a9ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.24rem); color: var(--on-dark-muted); max-width: 60ch; margin: 0; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--on-dark-muted); font-size: 0.93rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon { width: 18px; height: 18px; color: var(--ok); }

.flow-card {
    position: relative; padding: 18px; border-radius: 24px;
    background: linear-gradient(180deg, rgba(25, 32, 45, 0.82), rgba(12, 16, 23, 0.9));
    border: 1px solid var(--ink-line-strong);
    box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}
.flow-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, rgba(227, 49, 72, 0.6), transparent 35%, transparent 65%, rgba(61, 214, 245, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.flow-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.flow-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 0.86rem; font-weight: 600; color: #fff !important; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(24, 167, 122, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(24, 167, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(24, 167, 122, 0); } }
.flow-tabs { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.flow-tabs button { padding: 6px 12px; border: 0; border-radius: 999px; background: none; font-size: 0.8rem; font-weight: 600; color: var(--on-dark-muted); }
.flow-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.flow-steps { position: relative; display: grid; gap: 10px; }
.flow-steps::before {
    content: ""; position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0 6px, transparent 6px 12px);
    background-size: 2px 12px; animation: flowline 1s linear infinite;
}
@keyframes flowline { to { background-position: 0 12px; } }
.flow-step {
    position: relative; display: flex; align-items: center; gap: 14px;
    padding: 10px 12px 10px 8px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.035); border: 1px solid var(--ink-line);
    opacity: 0.35; transform: translateX(-4px);
    transition: opacity 0.4s, transform 0.5s var(--ease), border-color 0.4s;
}
.flow-step.is-on { opacity: 1; transform: none; border-color: var(--ink-line-strong); }
.flow-node { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink-3); color: #fff; border: 1px solid var(--ink-line-strong); flex: none; }
.flow-node .icon { width: 18px; height: 18px; }
.flow-step:nth-child(1) .flow-node { color: var(--cyan); }
.flow-step:nth-child(2) .flow-node { color: var(--violet); }
.flow-step:nth-child(3) .flow-node { color: #ffb86b; }
.flow-step:nth-child(4) .flow-node { color: var(--brand-hover); }
.flow-text { display: grid; min-width: 0; }
.flow-text strong { font-size: 0.93rem; color: #fff; }
.flow-text small { font-size: 0.8rem; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-status { margin-left: auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(24, 167, 122, 0.16); color: var(--ok); opacity: 0; transform: scale(0.6); transition: 0.3s var(--ease); flex: none; }
.flow-step.is-on .flow-status { opacity: 1; transform: none; }
.flow-status .icon { width: 14px; height: 14px; }
.flow-result { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(24, 167, 122, 0.1); border: 1px solid rgba(24, 167, 122, 0.25); color: #d9f5ea !important; font-size: 0.88rem; }
.flow-result .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.flow-auditor {
    display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px;
    border-radius: 14px; text-decoration: none; background: rgba(227, 49, 72, 0.1); border: 1px solid rgba(227, 49, 72, 0.3);
    transition: background-color 0.2s, border-color 0.2s;
}
.flow-auditor:hover { background: rgba(227, 49, 72, 0.18); border-color: rgba(227, 49, 72, 0.55); }
.flow-auditor-badge { padding: 6px 9px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; flex: none; }
.flow-auditor strong { display: block; font-size: 0.93rem; color: #fff; }
.flow-auditor small { display: block; font-size: 0.8rem; color: var(--on-dark-muted); }
.flow-auditor .icon { margin-left: auto; color: #fff; }

.stack-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--ink-line); }
.stack-strip > span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.stack-strip ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.stack-strip li { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: rgba(243, 245, 248, 0.62); }

/* ---------- Hero podstron ---------- */
.page-hero { position: relative; isolation: isolate; color: var(--on-dark); padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(48px, 6vw, 88px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.page-hero-grid--solo { grid-template-columns: minmax(0, 880px); }
.page-hero h1 { font-size: clamp(2.2rem, 1.45rem + 3vw, 3.9rem); margin-bottom: 20px; }
.breadcrumbs { margin-bottom: 22px; font-size: 0.86rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0.6; }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: #fff; }
.hero-panel {
    padding: 24px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(25, 32, 45, 0.78), rgba(12, 16, 23, 0.88));
    border: 1px solid var(--ink-line-strong); box-shadow: var(--shadow-dark); backdrop-filter: blur(8px);
}
.hero-panel-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff; }
.hero-panel-title .icon { color: var(--brand-hover); }
.hero-panel .check-list li { color: var(--on-dark); }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.hero-facts div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--ink-line); }
.hero-facts dt { font-size: 0.76rem; color: var(--on-dark-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-facts dd { margin: 2px 0 0; font-weight: 600; color: #fff; }
.hero-facts--light div { background: var(--paper); border-color: var(--line); }
.hero-facts--light dt { color: var(--muted); }
.hero-facts--light dd { color: var(--text); }
.error-code { margin: 0; font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(100deg, #ff8a98, var(--brand) 50%, #c9a9ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Spis treści (przyklejony) ---------- */
.toc { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.toc-inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.toc-label { flex: none; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.toc ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 980px) { .toc ul { padding-right: 32px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { display: block; padding: 7px 12px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: 0.2s; }
.toc a:hover { color: var(--text); background: var(--paper); }
.toc a.is-active { color: #fff; background: var(--ink); }

/* ---------- Karty i siatki ---------- */
.grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    position: relative; display: flex; flex-direction: column;
    padding: clamp(22px, 2.2vw, 30px); border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    color: var(--text); text-decoration: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}
.section--light .card { background: var(--paper); box-shadow: none; }
.section--light .card--link:hover, .section--light .card--accent { background: var(--white); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex: none; }
.card-icon .icon { width: 22px; height: 22px; }
.card-label { margin: 0 0 6px !important; font-size: 0.76rem !important; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brand) !important; }
.card-num { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--brand); margin-bottom: 18px; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 0.93rem; color: var(--text); }
.card-more .icon { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card--link:hover .card-more .icon { transform: translateX(4px); }
.card--link:hover .card-more { color: var(--brand); }
.card--accent { border-color: rgba(227, 49, 72, 0.25); background: linear-gradient(180deg, #fff, #fff7f8); }
.card-cost { display: flex; gap: 8px; margin-top: auto !important; padding-top: 16px; font-size: 0.88rem !important; color: var(--brand-deep) !important; font-weight: 500; }
.card-cost .icon { width: 17px; height: 17px; margin-top: 3px; }
.section--dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--ink-line); color: var(--on-dark); box-shadow: none; }
.section--dark .card-icon { background: rgba(227, 49, 72, 0.14); color: var(--brand-hover); }
.section--dark .card-more { color: #fff; }

.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.li-icon { width: 20px; height: 20px; padding: 3px; margin-top: 2px; border-radius: 50%; background: rgba(24, 167, 122, 0.14); color: var(--ok); stroke-width: 2.6; }
.check-list--sm { gap: 8px; margin-top: 14px; font-size: 0.93rem; color: var(--muted); }
.check-list--sm .li-icon { width: 18px; height: 18px; }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.bento > * { grid-column: span 3; }
.bento .bento-1 { grid-column: span 4; }
.bento .bento-2 { grid-column: span 2; }
.bento .bento-3 { grid-column: span 2; }
.bento .bento-4 { grid-column: span 4; }

/* ---------- Proza ---------- */
.prose-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.prose-grid--solo { grid-template-columns: minmax(0, 860px); }
.prose-main .section-head { margin-bottom: 24px; }
.rich { font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.rich p { margin-bottom: 1.1em; }
.rich strong { color: var(--text); }
.section--dark .rich strong { color: #fff; }
.rich a { color: var(--brand); }
.prose-aside { position: sticky; top: calc(var(--header-h) + 80px); }
.prose-aside h3 { margin-bottom: 14px; }

/* ---------- Porównanie ---------- */
.compare-card { padding: clamp(22px, 2.2vw, 30px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.section--muted .compare-card { background: var(--white); }
.section--light .compare-card { background: var(--paper); }
.compare-card p { color: var(--muted); }
.compare-label { display: inline-block; margin-bottom: 16px !important; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 0.8rem; font-weight: 600; }
.compare-card.is-highlight { background: var(--ink) !important; border-color: var(--ink); color: var(--on-dark); box-shadow: var(--shadow); }
.compare-card.is-highlight h3 { color: #fff; }
.compare-card.is-highlight p, .compare-card.is-highlight .check-list--sm { color: var(--on-dark-muted); }
.compare-card.is-highlight .compare-label { background: var(--brand); }

/* ---------- Kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(14px, 1.6vw, 20px); counter-reset: step; }
.step { position: relative; padding: clamp(22px, 2.2vw, 28px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.section--light .step { background: var(--paper); }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; }
.step:first-child .step-num { background: var(--brand); }
.step p { color: var(--muted); font-size: 0.96rem; }
.step-meta { margin-bottom: 6px !important; font-size: 0.76rem !important; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brand) !important; }
.section--dark .step { background: rgba(255, 255, 255, 0.04); border-color: var(--ink-line); }

/* ---------- Przed / po ---------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.ba-col { padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.section--light .ba-col { background: var(--paper); }
.ba-label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px !important; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.ba-label .icon { width: 36px; height: 36px; padding: 8px; border-radius: 11px; }
.ba-before .ba-label .icon { background: #fff1e6; color: #c2570c; }
.ba-after { background: var(--ink) !important; color: var(--on-dark); border-color: var(--ink); box-shadow: var(--shadow); }
.ba-after .ba-label { color: #fff; }
.ba-after .ba-label .icon { background: rgba(24, 167, 122, 0.18); color: #3ee0a8; }
.ba-col ul { display: grid; gap: 12px; }
.ba-col li { position: relative; padding-left: 22px; color: var(--muted); }
.ba-col li::before { content: ""; position: absolute; left: 2px; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: #f0a26a; }
.ba-after li { color: var(--on-dark-muted); }
.ba-after li::before { background: #3ee0a8; }
.ba-arrow { display: grid; place-items: center; }
.ba-arrow .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(227, 49, 72, 0.8); }

/* ---------- Checklista, tagi, callout, statystyki ---------- */
.checklist-grid, .tags-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.checklist-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.section--light .checklist-card { background: var(--paper); box-shadow: none; }
.section--dark .checklist-card { background: rgba(255, 255, 255, 0.04); border-color: var(--ink-line); }
.checklist-card .check-list { gap: 14px; font-size: 1.02rem; }
.note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--brand-soft); font-size: 0.95rem; }
.section--dark .note { color: var(--on-dark) !important; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 500; font-size: 0.95rem; }
.section--light .tags li { background: var(--paper); }
.section--dark .tags li { background: rgba(255, 255, 255, 0.05); border-color: var(--ink-line); color: var(--on-dark); }
.callout { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.callout .card-icon { margin: 0; }
.callout h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin-bottom: 8px; }
.callout p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0; }
.stats div { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: 0.92rem; }
.stats dd { order: -1; margin: 0 0 6px; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; }
.stats div { display: flex; flex-direction: column; }

/* ---------- Strona główna: proces ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.timeline li { position: relative; padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ink-line); }
.timeline-num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%; border: 1px solid var(--ink-line-strong); font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--ink-2); }
.timeline li:first-child .timeline-num { background: var(--brand); border-color: var(--brand); }
.timeline-label { margin-bottom: 6px !important; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-hover) !important; }
.timeline li p:last-child { font-size: 0.95rem; }
.deliverables { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; margin-top: 20px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: linear-gradient(135deg, rgba(227, 49, 72, 0.14), rgba(139, 124, 255, 0.08)); border: 1px solid var(--ink-line-strong); }
.deliverables h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin: 0; }
.deliverables ul { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.deliverables li { display: flex; gap: 12px; color: var(--on-dark-muted); font-size: 0.93rem; }
.deliverables li .icon { width: 22px; height: 22px; color: var(--brand-hover); margin-top: 2px; }
.deliverables li strong { display: block; color: #fff; font-size: 0.98rem; }

/* ---------- Quiz ---------- */
.quiz-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.quiz { padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.quiz fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.quiz legend { margin-bottom: 14px; font-weight: 600; }
.quiz-option { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: 0.2s; }
.quiz-option:hover { border-color: var(--line-strong); }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-box { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: #fff; flex: none; transition: 0.2s; }
.quiz-box .icon { width: 15px; height: 15px; color: #fff; stroke-width: 3; opacity: 0; transform: scale(0.5); transition: 0.2s var(--ease); }
.quiz-option input:checked + .quiz-box { background: var(--brand); border-color: var(--brand); }
.quiz-option input:checked + .quiz-box .icon { opacity: 1; transform: none; }
.quiz-option:has(input:checked) { border-color: rgba(227, 49, 72, 0.4); background: #fff7f8; }
.quiz-option input:focus-visible + .quiz-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.quiz-result { margin-top: 22px; }
.quiz-meter { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; border: 1px solid var(--line); }
.quiz-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f0a26a, var(--brand)); transition: width 0.5s var(--ease); }
.quiz-score { margin: 14px 0 0 !important; color: var(--muted); }
.quiz-score strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); margin-right: 6px; }
.quiz .btn-row { margin-top: 18px; }

/* ---------- O nas / książka ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.about-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.about-photo img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 20%; }
.about-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; padding: 14px 18px; border-radius: 16px; background: rgba(7, 9, 13, 0.72); backdrop-filter: blur(10px); color: #fff; }
.about-photo figcaption span { font-size: 0.86rem; color: var(--on-dark-muted); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 0.9rem; font-weight: 600; }
.badges .icon { width: 18px; height: 18px; color: var(--brand); }

.book-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 7vw, 96px); padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: var(--paper); border: 1px solid var(--line); }
.book-copy h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.book-copy > p { color: var(--muted); }


/* ---------- Blog ---------- */
.blog-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--line); }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.blog-card h3 { font-size: 1.12rem; }
.blog-card p { color: var(--muted); font-size: 0.94rem; }
.blog-card .card-more { margin-top: auto; }
.blog-card.is-skeleton { min-height: 360px; padding: 0; }
.blog-card.is-skeleton span { display: block; margin: 20px 22px 0; height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--line), #eef1f5, var(--line)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.blog-card.is-skeleton span:first-child { margin: 0 0 8px; height: 200px; border-radius: 0; }
.blog-card.is-skeleton span:last-child { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.blog-fallback { grid-column: 1 / -1; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px dashed var(--line-strong); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 80px); }
.faq-list { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.section--light .faq-item { background: var(--paper); }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--paper); transition: transform 0.3s var(--ease), background-color 0.2s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); background: var(--ink); color: #fff; }
.faq-answer { padding: 0 22px 22px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow); }
.cta-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 100% 0%, rgba(227, 49, 72, 0.35), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(139, 124, 255, 0.2), transparent 70%), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 40px 40px; }
.cta-copy h2 { color: #fff; font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem); }
.cta-copy p { color: var(--on-dark-muted); font-size: 1.05rem; }
.cta-actions { display: grid; gap: 12px; justify-items: stretch; }
.cta-actions .btn { white-space: normal; text-align: center; }
.cta-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 6px 0 0 !important; font-size: 0.9rem; }
.cta-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-muted); text-decoration: none; }
.cta-contact a:hover { color: #fff; }
.cta-contact .icon { width: 16px; height: 16px; }

/* ---------- Kontakt i formularze ---------- */
.contact { padding-bottom: calc(var(--section-y) + 20px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-options { display: grid; gap: 10px; }
.contact-options a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ink-line); text-decoration: none; transition: 0.2s; }
.contact-options a:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--ink-line-strong); }
.contact-options .card-icon { margin: 0; width: 42px; height: 42px; background: rgba(227, 49, 72, 0.14); color: var(--brand-hover); }
.contact-options strong { display: block; color: #fff; }
.contact-options small { display: block; color: var(--on-dark-muted); font-size: 0.86rem; }
.contact-options a > .icon { margin-left: auto; color: var(--on-dark-muted); }
.apply-steps { display: grid; gap: 10px; counter-reset: s; }
.apply-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ink-line); color: var(--on-dark); }
.apply-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-display); font-weight: 700; color: var(--brand-hover); }

.form { padding: clamp(22px, 3vw, 36px); color: var(--text); box-shadow: var(--shadow-dark); }
.section--dark .form.card { background: var(--white); border-color: transparent; color: var(--text); }
.section--dark .form p { color: var(--muted); }
.section--dark .form h3, .section--dark .form legend { color: var(--text); }
.form-title { margin-bottom: 18px; font-size: 1.3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .field-label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.field label span, .field-label span { color: var(--brand); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white);
    font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(14, 19, 25, 0.08); }
.field [aria-invalid="true"] { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field-error { display: none; margin: 0 !important; font-size: 0.83rem; color: var(--brand-deep) !important; }
.field [aria-invalid="true"] ~ .field-error { display: block; }
.topics { margin: 0 0 18px; padding: 0; border: 0; }
.topics legend { margin-bottom: 10px; font-size: 0.88rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.9rem; font-weight: 500; transition: 0.2s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form-legal { margin: 16px 0 !important; font-size: 0.82rem; color: var(--muted); }
.form-legal a { color: var(--text); }
.form-status { margin: 14px 0 0 !important; font-size: 0.93rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 12px 14px; border-radius: 12px; background: #e8f8f1; color: #0c6b4c !important; }
.form-status.is-error { padding: 12px 14px; border-radius: 12px; background: #fdecee; color: var(--brand-deep) !important; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.file-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--paper); font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.file-drop:hover { border-color: var(--text); }
.file-drop .icon { color: var(--brand); }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- Kariera ---------- */
.jobs { display: grid; gap: clamp(40px, 6vw, 72px); margin-top: clamp(28px, 4vw, 44px); }
.job + .job { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.job .section-head { margin-bottom: 24px; }
.job-description { margin-top: 28px; max-width: 760px; font-size: 1rem; }
.job.is-highlight .job-summary { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.field-help { margin: 0 !important; font-size: 0.8rem; color: var(--muted); }
.job-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.job-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.job-summary .btn { margin-top: 20px; }

/* ---------- Zgoda w formularzu rekrutacyjnym ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }

/* ---------- Blog: lista ---------- */
.blog-filters { margin-bottom: 28px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--text); font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: 0.2s; }
.chip-btn small { color: var(--muted); font-size: 0.78rem; }
.chip-btn:hover { border-color: var(--text); }
.chip-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn.is-active small { color: var(--on-dark-muted); }
.chip-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.blog-card[hidden] { display: none; }
.blog-card-ph { display: block; aspect-ratio: 16 / 9; background: radial-gradient(120% 120% at 0% 0%, rgba(227, 49, 72, 0.35), transparent 55%), var(--ink-2); }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px !important; font-size: 0.8rem !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card-meta span:first-child { color: var(--brand); }
.blog-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0 !important; padding-top: 18px; font-size: 0.85rem !important; }
.blog-card-foot .card-more { padding-top: 0; }
.blog-card--featured { grid-column: span 2; }
.blog-empty { padding: 28px; margin-bottom: 28px; border-radius: var(--radius); background: var(--paper); border: 1px dashed var(--line-strong); color: var(--muted); }

/* ---------- Blog: artykuł ---------- */
.page-hero--blog .page-hero-copy h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; color: var(--on-dark-muted); font-size: 0.92rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .icon { width: 17px; height: 17px; color: var(--brand-hover); }
.article-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 280px); justify-content: space-between; gap: clamp(28px, 5vw, 72px); align-items: start; }
.article-main { min-width: 0; }
.article-cover { margin: 0 0 36px; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { font-size: 1.08rem; line-height: 1.75; color: #28303b; }
.article-body > * + * { margin-top: 1.15em; }
.article-body { max-width: 70ch; }
.article-body h2 { position: relative; margin-top: 2.4em; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.25; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.article-body h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--brand); }
.article-body > h2:first-child { margin-top: 0; }
.article-body h2 + * { margin-top: 0.8em; }
.article-body h3 { margin-top: 1.7em; font-size: 1.25rem; color: var(--text); }
.article-body h4 { margin-top: 1.4em; font-size: 1.08rem; color: var(--text); }
.article-body p { margin-bottom: 0; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--brand-deep); text-underline-offset: 3px; }
/* Listy: własne znaczniki (reset globalny zdejmuje list-style). */
.article-body ul, .article-body ol { padding: 0; list-style: none; }
.article-body li { position: relative; }
.article-body li + li { margin-top: 0.6em; }
.article-body ul > li { padding-left: 1.6em; }
.article-body ul > li::before { content: ""; position: absolute; left: 0.35em; top: 0.72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.article-body ol > li { padding: 16px 18px 16px 62px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.article-body ol > li + li { margin-top: 12px; }
.article-body ol > li::before { content: counter(list-item); /* szanuje <ol start> */ position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.9rem; font-weight: 700; line-height: 1; }
.article-body li > strong:first-child { color: var(--text); }
.article-body blockquote { margin-left: 0; margin-right: 0; padding: 14px 20px; border-left: 3px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--paper); color: var(--muted); font-size: 0.95em; }
.article-body blockquote > * + * { margin-top: 0.6em; }
.article-body code { padding: 0.12em 0.4em; border-radius: 6px; background: #eef1f5; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; color: #b9182f; overflow-wrap: anywhere; }
.article-body pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--ink-line); line-height: 1.6; }
.article-body pre code { padding: 0; background: none; color: #e6edf6; font-size: 0.9rem; overflow-wrap: normal; white-space: pre; }
.article-body hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line); }
.article-body img { max-width: 100%; height: auto; border-radius: 14px; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.article-tags li { padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.article-back { margin-top: 32px; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.article-toc { padding: 22px; border-radius: var(--radius-md); background: var(--paper); border: 1px solid var(--line); }
.article-toc .hero-panel-title { color: var(--text); }
.article-toc .hero-panel-title .icon { color: var(--brand); }
.article-toc ol { display: grid; gap: 10px; margin: 14px 0 0; padding-left: 1.2em; font-size: 0.92rem; }
.article-toc a { color: var(--muted); text-decoration: none; }
.article-toc a:hover, .article-toc a.is-current { color: var(--text); }
@media (max-width: 980px) {
    .article-grid { grid-template-columns: minmax(0, 1fr); }
    .article-aside { display: none; }
    .blog-card--featured { grid-column: auto; }
}
@media (max-width: 720px) {
    .article-body { font-size: 1.02rem; }
    .article-body ol > li { padding: 14px 14px 14px 50px; }
    .article-body ol > li::before { left: 12px; top: 14px; width: 26px; height: 26px; font-size: 0.82rem; }
    .article-body pre { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; border-left: 0; border-right: 0; }
}

/* ---------- Stopka ---------- */
.site-footer { position: relative; background: var(--bg); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 0.94rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin: 18px 0; max-width: 40ch; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact a, .footer-col a { color: var(--on-dark-muted); text-decoration: none; transition: color 0.2s; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 17px; height: 17px; color: var(--brand-hover); }
.footer-contact a:hover, .footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--ink-line-strong); color: #fff; transition: 0.2s; }
.socials a:hover { background: var(--brand); border-color: var(--brand); }
.socials .icon { width: 18px; height: 18px; }
.footer-title { margin-bottom: 16px; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.footer-col ul { display: grid; gap: 9px; }
.footer-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--ink-line); border-bottom: 1px solid var(--ink-line); }
.footer-cities p { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-weight: 500; }
.footer-cities p .icon { width: 18px; height: 18px; color: var(--brand-hover); }
.footer-cities ul { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.footer-cities a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--ink-line); color: var(--on-dark-muted); text-decoration: none; font-size: 0.88rem; }
.footer-cities a:hover { color: #fff; border-color: var(--ink-line-strong); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 0.86rem; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal a { color: var(--on-dark-muted); }
.legal a:hover { color: #fff; }

/* ---------- Pływające CTA (mobile) i cookies ---------- */
.mobile-cta { display: none; }
.cookie-banner {
    position: fixed; left: 16px; bottom: 16px; z-index: 1500; width: min(420px, calc(100vw - 32px));
    padding: 18px; border-radius: 18px; background: rgba(17, 22, 32, 0.97); color: var(--on-dark);
    border: 1px solid var(--ink-line-strong); box-shadow: var(--shadow-dark);
    animation: rise 0.4s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.cookie-banner p { margin: 0 0 14px; font-size: 0.88rem; color: var(--on-dark-muted); }
.cookie-banner a { color: #fff; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { flex: 1; }

/* ---------- Animacje wejścia ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsywność ---------- */
@media (max-width: 1180px) {
    .nav-main .nav-item:nth-child(n + 5) { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .job-cols { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
    :root { --header-h: 64px; }
    .nav-main, .nav-actions .lang-switch { display: none; }
    .nav-burger { display: grid; }
    .nav-actions { margin-left: auto; }
    .home-hero-grid, .page-hero-grid, .prose-grid, .checklist-grid, .tags-grid, .quiz-grid,
    .about-grid, .faq-grid, .contact-grid, .cta-band, .job-grid, .deliverables, .section-head--split { grid-template-columns: minmax(0, 1fr); }
    .section-head--split { align-items: start; }
    .page-hero-grid { align-items: start; }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento > *, .bento .bento-1, .bento .bento-2, .bento .bento-3, .bento .bento-4 { grid-column: span 3; }
    .prose-aside, .faq-grid .section-head, .job-summary { position: static; }
    .ba { grid-template-columns: 1fr; }
    .ba-arrow .icon { transform: rotate(90deg); }
    .about-photo { max-width: 460px; }
    .callout { grid-template-columns: 1fr; }
    .cta-actions { justify-items: start; }
    .cta-contact { justify-content: flex-start; }
}

@media (max-width: 720px) {
    :root { --section-y: 56px; }
    body { font-size: 0.98rem; }
    /* Karty-linki jako zwarta lista: ikona po lewej, bez wiersza „więcej” */
    .card--link { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 18px; }
    .card--link > * { grid-column: 2; }
    .card--link .card-icon { grid-column: 1; grid-row: 1 / span 3; width: 40px; height: 40px; margin: 0; border-radius: 12px; }
    .card--link .card-icon .icon { width: 20px; height: 20px; }
    .card--link h3 { margin-bottom: 4px; font-size: 1.06rem; }
    .card--link p { font-size: 0.92rem; }
    .card--link .card-more { display: none; }
    .grid--cities { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .grid--cities .card--link { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
    .grid--cities .card--link > * { grid-column: 1; }
    .grid--cities .card-icon, .grid--cities .card--link p:not(.card-label) { display: none; }
    .grid--cities h3 { margin: 0; }
    .about-photo { max-width: 300px; }
    .about-photo img { aspect-ratio: 1 / 1; }
    .card { padding: 20px; }
    .card-icon { margin-bottom: 14px; }
    .nav-cta { display: none; }
    .grid--2, .grid--3, .grid--4, .timeline, .form-grid, .deliverables ul { grid-template-columns: minmax(0, 1fr); }
    .bento { grid-template-columns: minmax(0, 1fr); }
    .bento > *, .bento .bento-1, .bento .bento-2, .bento .bento-3, .bento .bento-4 { grid-column: auto; }
    .btn-row .btn { flex: 1 1 100%; }
    .btn { white-space: normal; text-align: center; }
    .hero-facts { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; }
    .toc-label { display: none; }
    .flow-card { padding: 14px; }
    .flow-head { flex-direction: column; align-items: flex-start; }
    .stack-strip ul { gap: 6px 18px; }
    .stack-strip li { font-size: 0.92rem; }

    .mobile-cta {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(7, 9, 13, 0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--ink-line);
        transform: translateY(110%); transition: transform 0.35s var(--ease);
    }
    .mobile-cta .btn { --btn-h: 46px; padding: 0 12px; }
    .mobile-cta.is-visible { transform: none; }
    .nav-open .mobile-cta { transform: translateY(110%); }
    .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; }
}

@media (max-width: 380px) {
    .brand span { font-size: 1.08rem; }
    .flow-tabs button { padding: 6px 9px; }
}

@media print {
    .site-header, .mobile-cta, .toc, .cookie-banner, .hero-bg, .cta-band { display: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .page-hero, .home-hero, .section--dark { color: #000; background: #fff; }
}
