/* Process Auditor — system projektowy 2026 (spójny ze stroną AutomationNex).
   Ciemne sekcje marki (hero, raport, CTA, stopka) + 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;
    --cyan-deep: #0b8fb3;
    --violet: #8b7cff;
    --ok: #18a77a;
    --ok-soft: rgba(24, 167, 122, 0.12);
    --warn: #d9900b;
    --danger: #d12c43;

    --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: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --section-y: clamp(64px, 9vw, 116px);
    --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) + 20px);
}

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; }
dl, dd { margin: 0; }
figure { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
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.2rem, 1.4rem + 3vw, 3.7rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.9rem); }
h3 { font-size: clamp(1.1rem, 1.04rem + 0.3vw, 1.25rem); line-height: 1.25; letter-spacing: -0.015em; }
p, li { text-wrap: pretty; }
strong { font-weight: 650; }
[hidden] { display: none !important; }

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

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.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: 48px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--btn-h); padding: 0 22px;
    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, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-icon { 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); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.08); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef1f5; }
.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; }
.btn-row--center { justify-content: center; }

.link-button {
    padding: 0; border: 0; background: none; color: inherit; font: inherit;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.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); }

.tag {
    display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.1); color: var(--on-dark);
}

.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 650; white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--high { color: #ff6b7e; background: rgba(227, 49, 72, 0.14); }
.chip--mid { color: #f2b544; background: rgba(242, 181, 68, 0.14); }
.chip--win { color: #3fd6a4; background: rgba(24, 167, 122, 0.16); }

/* ---------- 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.76rem; 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 { background: rgba(255, 255, 255, 0.05); border-color: var(--ink-line-strong); color: var(--on-dark-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin-bottom: 0; }
.section-lead { margin: 16px 0 0; font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem); color: var(--muted); max-width: 64ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

/* ---------- 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 { color: var(--on-dark-muted); }
.section--dark h2 { color: var(--on-dark); }
.section--dark::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(55% 45% at 90% 0%, rgba(61, 214, 245, 0.12), transparent 70%),
        radial-gradient(50% 40% at 0% 100%, rgba(227, 49, 72, 0.13), transparent 70%);
}

/* ---------- 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, .nav-open .site-header { background: rgba(7, 9, 13, 0.9); border-bottom-color: var(--ink-line); }
.nav { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; flex: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-text small { font-size: 0.72rem; font-weight: 500; color: var(--on-dark-muted); letter-spacing: 0.01em; }
.nav-main { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
    display: inline-flex; padding: 9px 13px; border-radius: 10px;
    font-size: 0.93rem; font-weight: 500; color: rgba(243, 245, 248, 0.82); text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}
.nav-link:hover, .nav-link.is-active { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1001px) { .nav-main + .nav-actions { margin-left: 0; } }
.lang-switch {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px;
    font-size: 0.86rem; 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; }

.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); padding: 0; }
.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 { padding-block: 12px calc(32px + env(safe-area-inset-bottom)); }
.m-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 4px; border-bottom: 1px solid var(--ink-line);
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #fff; text-decoration: none;
}
.m-link .icon { width: 20px; color: var(--on-dark-muted); }
.m-actions { display: grid; gap: 12px; margin-top: 28px; }

@media (max-width: 1000px) {
    .nav-main { display: none; }
    .nav-burger { display: grid; place-items: center; }
    .nav-actions { margin-left: auto; }
}
@media (max-width: 560px) {
    .nav-cta, .nav-actions .lang-switch { display: none; }
    .brand-text small { font-size: 0.68rem; }
}

/* ---------- 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:
        radial-gradient(45% 55% at 12% 18%, rgba(227, 49, 72, 0.24), transparent 70%),
        radial-gradient(45% 55% at 88% 60%, rgba(61, 214, 245, 0.16), transparent 70%),
        radial-gradient(30% 40% at 60% 0%, rgba(139, 124, 255, 0.14), transparent 70%);
}
.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;
    mask-image: radial-gradient(90% 80% at 50% 30%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(90% 80% at 50% 30%, #000 30%, transparent 85%);
}
.hero-bg--soft::before { opacity: 0.7; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; color: var(--on-dark);
    padding: calc(var(--header-h) + clamp(36px, 6vw, 88px)) 0 clamp(56px, 7vw, 96px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; color: #fff; }
.hero h1 em, .page-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #ff8a98 0%, var(--brand) 40%, var(--cyan) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: clamp(1.04rem, 0.98rem + 0.32vw, 1.2rem); color: var(--on-dark-muted); max-width: 58ch; margin: 0; }

.hero-start { margin-top: 32px; max-width: 560px; }
.hero-start-field {
    display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ink-line-strong);
    box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.8);
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.hero-start-field:focus-within { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 4px rgba(227, 49, 72, 0.25); }
.hero-start-icon { color: var(--on-dark-muted); width: 20px; height: 20px; }
.hero-start input {
    flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: none;
    font-size: 1.02rem; color: #fff;
}
.hero-start input::placeholder { color: rgba(167, 176, 191, 0.8); }
.hero-start .btn { flex: none; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 22px; }
.hero-sample {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem;
    color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding-bottom: 2px;
}
.hero-sample:hover { border-color: #fff; }
.hero-sample .icon { width: 18px; height: 18px; color: var(--cyan); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; width: 100%; color: var(--on-dark-muted); font-size: 0.92rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon { width: 17px; height: 17px; color: var(--ok); }

/* Karta skanowania (wizualizacja) */
.scan-card {
    position: relative; padding: 18px; border-radius: 24px;
    background: linear-gradient(180deg, rgba(25, 32, 45, 0.86), rgba(12, 16, 23, 0.92));
    border: 1px solid var(--ink-line-strong);
    box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.scan-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.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.scan-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-line); }
.scan-dots { display: flex; gap: 5px; }
.scan-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.scan-url {
    flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06);
    font-size: 0.82rem; color: var(--on-dark-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.scan-url .icon { width: 13px; height: 13px; color: var(--ok); }
.scan-status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: #fff; white-space: nowrap; }
.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); } }

.scan-steps { display: grid; gap: 8px; padding: 16px 2px; }
.scan-steps li {
    display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--on-dark-muted);
    opacity: 0; animation: fadeUp 0.5s var(--ease) forwards; animation-delay: calc(0.35s + var(--i) * 0.55s);
}
.scan-tick {
    display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--ok-soft); color: #3fd6a4;
}
.scan-tick .icon { width: 13px; height: 13px; }
.scan-result {
    padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ink-line);
    opacity: 0; animation: fadeUp 0.6s var(--ease) forwards; animation-delay: 2.1s;
}
.scan-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-muted); }
.scan-label .icon { width: 15px; height: 15px; color: var(--cyan); }
.scan-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.scan-stats div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.scan-stats dd { font-family: var(--font-display); font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.5rem); font-weight: 700; color: #fff; letter-spacing: -0.02em; white-space: nowrap; }
.scan-stats dt { font-size: 0.74rem; line-height: 1.3; color: var(--on-dark-muted); }
.scan-items { display: grid; gap: 6px; }
.scan-items li {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); font-size: 0.86rem;
}
.scan-item-name { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-item-save { font-weight: 600; color: var(--on-dark-muted); white-space: nowrap; }
.scan-card figcaption { margin-top: 12px; font-size: 0.76rem; color: rgba(167, 176, 191, 0.85); text-align: center; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .scan-card { max-width: 560px; }
}
@media (max-width: 560px) {
    .hero-start-field { flex-wrap: wrap; padding: 8px; border-radius: 20px; }
    .hero-start-icon { margin-left: 10px; }
    .hero-start input { height: 44px; }
    .hero-start .btn { width: 100%; }
    .scan-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .scan-stats div { padding: 10px 8px; }
    .scan-items li { grid-template-columns: minmax(0, 1fr) auto; }
    .scan-items .chip { display: none; }
    .scan-head .scan-dots { display: none; }
}

/* ---------- Obszary ---------- */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.area-card {
    display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius);
    background: var(--paper); border: 1px solid var(--line);
    transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, background-color 0.25s;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); background: var(--white); }
.area-icon {
    display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 14px;
    background: var(--white); color: var(--brand); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.area-icon .icon { width: 22px; height: 22px; }
.area-card h3 { margin-bottom: 14px; }
.area-card p { margin: 0; font-size: 0.93rem; color: var(--muted); }
.area-card p span { display: block; margin-bottom: 2px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.area-before span { color: #9aa3b0; }
.area-after { margin-top: 12px !important; padding-top: 12px; border-top: 1px dashed var(--line-strong); color: var(--text) !important; }
.area-after span { color: var(--ok); }
@media (max-width: 960px) { .area-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 620px) { .area-grid { grid-template-columns: minmax(0, 1fr); } .area-card { padding: 22px; } }

/* ---------- Jak to działa ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step-card {
    position: relative; padding: 28px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step-card:not(:last-child)::after {
    content: ""; position: absolute; top: 52px; right: -17px; width: 18px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
}
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.step-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; }
.step-icon .icon { width: 22px; height: 22px; }
.step-card:nth-child(2) .step-icon { background: var(--brand); }
.step-card:nth-child(3) .step-icon { background: var(--cyan-deep); }
.step-card p { color: var(--muted); font-size: 0.96rem; }
.step-meta { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px !important; padding: 5px 11px; border-radius: 999px; background: var(--paper); font-size: 0.8rem !important; font-weight: 600; color: var(--text) !important; }
.step-meta .icon { width: 14px; height: 14px; color: var(--brand); }

.scope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.scope-col { padding: 24px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.scope-col h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.scope-col h3 .icon { width: 20px; height: 20px; }
.scope-col--yes h3 .icon { color: var(--cyan-deep); }
.scope-col--no h3 .icon { color: var(--ok); }
.scope-col ul { display: grid; gap: 9px; }
.scope-col li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--muted); }
.scope-col li .icon { width: 18px; height: 18px; margin-top: 3px; }
.scope-col--yes li .icon { color: var(--ok); }
.scope-col--no li .icon { color: #9aa3b0; }
@media (max-width: 900px) {
    .steps { grid-template-columns: minmax(0, 1fr); }
    .step-card:not(:last-child)::after { top: auto; bottom: -17px; right: auto; left: 52px; width: 2px; height: 18px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 4px, transparent 4px 8px); }
    .scope { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Raport (zakładki) ---------- */
.report { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.report-tabs { display: grid; gap: 6px; position: sticky; top: calc(var(--header-h) + 20px); }
.report-tabs button {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px;
    border: 1px solid transparent; border-radius: 14px; background: transparent;
    text-align: left; font-weight: 600; font-size: 0.97rem; color: var(--on-dark-muted);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.report-tabs button:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.report-tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, 0.07); border-color: var(--ink-line-strong); }
.report-tab-num {
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; flex: none;
    background: rgba(255, 255, 255, 0.07); font-family: var(--font-display); font-size: 0.85rem;
}
.report-tabs button[aria-selected="true"] .report-tab-num { background: var(--brand); color: #fff; }

.report-panel { outline-offset: 6px; border-radius: var(--radius); }
.report-panel:not([hidden]) { animation: fadeUp 0.4s var(--ease); }
.rp-page {
    position: relative; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius);
    background: var(--white); color: var(--text);
    box-shadow: var(--shadow-dark);
    min-height: 380px;
}
.rp-page::after {
    content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08); border: 1px solid var(--ink-line);
}
.report-panels { position: relative; isolation: isolate; }
.rp-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--text);
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.rp-sample { padding: 3px 9px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-deep); }
.rp-page h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin-bottom: 8px; }
.rp-text { color: var(--muted); max-width: 60ch; margin-bottom: 24px; }
.rp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rp-stats div { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; border-radius: 16px; background: var(--paper); }
.rp-stats dd { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; }
.rp-stats dt { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.rp-level { display: flex; gap: 6px; margin-top: 18px; max-width: 260px; }
.rp-level span { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.rp-level .on { background: linear-gradient(90deg, var(--brand), #ff8a98); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.rp-table th, .rp-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rp-table thead th { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rp-table tbody th { font-weight: 600; }
.rp-table .chip--high { color: var(--brand-deep); background: var(--brand-soft); }
.rp-table .chip--mid { color: #9a6200; background: rgba(242, 181, 68, 0.18); }

.rp-quickwin { padding: 24px; border-radius: 18px; background: linear-gradient(135deg, rgba(24, 167, 122, 0.08), rgba(61, 214, 245, 0.08)); border: 1px solid rgba(24, 167, 122, 0.25); }
.rp-qw-tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.rp-qw-tag .icon { width: 16px; height: 16px; }
.rp-qw-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; }
.rp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.rp-facts div { padding: 8px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.rp-facts dt { font-size: 0.74rem; color: var(--muted); }
.rp-facts dd { font-weight: 700; }
.rp-qw-first { font-style: italic; color: var(--muted); }

.rp-bars { display: grid; gap: 16px; }
.rp-bars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.rp-bar-label { font-weight: 600; font-size: 0.92rem; }
.rp-bar { height: 12px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.rp-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--violet)); transform-origin: left; animation: grow 0.9s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.rp-bar-value { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

.rp-steps { counter-reset: rp; display: grid; gap: 10px; }
.rp-steps li { counter-increment: rp; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--paper); font-weight: 500; }
.rp-steps li::before { content: counter(rp); display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.rp-steps li:last-child::before { background: var(--brand); }

.report-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 36px; padding-left: 280px; }
.report-disclaimer { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.86rem; color: var(--on-dark-muted); }
.report-disclaimer .icon { width: 16px; height: 16px; }

@media (max-width: 900px) {
    .report { grid-template-columns: minmax(0, 1fr); }
    .report-tabs {
        position: static; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none;
    }
    .report-tabs::-webkit-scrollbar { display: none; }
    .report-tabs button { width: auto; flex: none; white-space: nowrap; padding: 10px 14px; scroll-snap-align: start; }
    .report-foot { padding-left: 0; }
    .rp-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .rp-page { min-height: 0; }
    .rp-page::after { display: none; }
}
@media (max-width: 520px) {
    .rp-bars li { grid-template-columns: minmax(0, 1fr) auto; }
    .rp-bar { grid-column: 1 / -1; grid-row: 2; }
    .report-foot .btn { flex: 1 1 100%; }
}

/* ---------- Kalkulator ---------- */
.calc-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.calc-grid .section-head { margin-bottom: 20px; }
.calc-note { font-size: 0.86rem; color: var(--muted); margin: 0; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.calc-inputs { display: grid; gap: 24px; padding: 28px; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.range label, .calc-rate label { font-size: 0.9rem; font-weight: 600; }
.range output { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer;
    --pct: 50%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand) var(--pct), var(--line) var(--pct)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--brand); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 2px 8px rgba(227, 49, 72, 0.35); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--brand-soft); }
.calc-rate { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; }
.calc-rate-field { display: grid; gap: 8px; }
.calc-rate input, .calc-rate select {
    height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white);
    font-weight: 600; font-size: 1rem;
}
.calc-rate input:focus, .calc-rate select:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(14, 19, 25, 0.08); }
.calc-result { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: 28px; background: var(--ink); color: var(--on-dark); position: relative; isolation: isolate; }
.calc-result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 100% 0%, rgba(227, 49, 72, 0.3), transparent 70%); }
.calc-big { margin: 0; display: grid; gap: 4px; }
.calc-big span { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: #fff; word-break: break-word; }
.calc-big small { font-size: 0.9rem; color: var(--on-dark-muted); }
.calc-small { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.calc-small div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.calc-small dt { font-size: 0.78rem; color: var(--on-dark-muted); }
.calc-small dd { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; white-space: nowrap; }
.calc-result .btn { white-space: normal; text-align: center; }
@media (max-width: 1000px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
    .calc { grid-template-columns: minmax(0, 1fr); }
    .calc-inputs, .calc-result { padding: 22px; }
}

/* ---------- Opinie ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote { display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.quote-mark { width: 30px; height: 30px; color: var(--brand); margin-bottom: 16px; }
.quote blockquote { margin: 0 0 22px; flex: 1; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.quote figcaption > span:last-child { display: grid; line-height: 1.3; }
.quote small { color: var(--muted); font-size: 0.85rem; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; flex: none; }
.quotes li:nth-child(2) .avatar { background: var(--brand); }
.quotes li:nth-child(3) .avatar { background: var(--cyan-deep); }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Audyt (formularz) ---------- */
.section--audit { background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.audit-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.audit-aside { position: sticky; top: calc(var(--header-h) + 28px); }
.audit-aside .section-head { margin-bottom: 28px; }
.audit-benefits { padding: 22px 24px; border-radius: var(--radius-md); background: var(--ink); color: var(--on-dark); }
.audit-benefits-title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.audit-benefits ul { display: grid; gap: 10px; }
.audit-benefits li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--on-dark-muted); }
.audit-benefits .icon { width: 19px; height: 19px; color: #3fd6a4; margin-top: 2px; }
.audit-trust { display: grid; gap: 8px; margin: 20px 0 0; }
.audit-trust li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); }
.audit-trust .icon { width: 17px; height: 17px; color: var(--text); }
.audit-help { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.audit-help a { color: var(--text); font-weight: 600; }

.audit-card {
    position: relative; padding: clamp(22px, 3.5vw, 40px); border-radius: 26px;
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
    scroll-margin-top: calc(var(--header-h) + 16px);
}
.noscript { padding: 14px 16px; border-radius: 12px; background: #fff4e5; color: #7a4a00; margin-bottom: 16px; }

.audit-progress { margin-bottom: 28px; }
.stepper { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.stepper-num {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
    border: 1.5px solid var(--line-strong); font-family: var(--font-display); font-size: 0.88rem; color: var(--muted);
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.stepper-num .icon { display: none; width: 15px; height: 15px; }
.stepper li[aria-current="step"] { color: var(--text); }
.stepper li[aria-current="step"] .stepper-num { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.stepper li.is-done { color: var(--text); }
.stepper li.is-done .stepper-num { border-color: var(--ok); background: var(--ok); color: #fff; }
.stepper li.is-done .stepper-num span { display: none; }
.stepper li.is-done .stepper-num .icon { display: block; }
.progress-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 33.3%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #ff8a98); transition: width 0.45s var(--ease); }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-alert, .form-note {
    display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; font-size: 0.92rem; font-weight: 500;
}
.form-alert { background: rgba(209, 44, 67, 0.08); color: var(--danger); border: 1px solid rgba(209, 44, 67, 0.2); }
.form-note { background: var(--paper); color: var(--muted); }
.form-alert .icon, .form-note .icon { width: 18px; height: 18px; }

.form-step { display: grid; gap: 22px; }
.form-step:not([hidden]) { animation: fadeUp 0.35s var(--ease); }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.field > legend { margin-bottom: 4px; }
.field--group { gap: 10px; }
.opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.field-hint { margin: -2px 0 0; font-size: 0.84rem; color: var(--muted); }
.field--group .field-hint { margin-top: -6px; }
.field-error { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.85rem; font-weight: 500; color: var(--danger); }
.field-error .icon { width: 16px; height: 16px; }
.field-limit { margin: 0; font-size: 0.85rem; color: var(--warn); font-weight: 500; }
.field-count { text-align: right; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.field-row--rate { grid-template-columns: minmax(0, 1fr) 140px; align-items: start; }
.field--other { margin-top: -10px; }

.input { position: relative; }
.input input, .input select, .input textarea {
    width: 100%; min-height: 52px; padding: 12px 16px;
    border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--white);
    font-size: 1rem; line-height: 1.4; color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.input textarea { resize: vertical; min-height: 96px; }
.input input::placeholder, .input textarea::placeholder { color: #9aa3b0; }
.input input:hover, .input select:hover, .input textarea:hover { border-color: #b3bcc8; }
.input input:focus, .input select:focus, .input textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(14, 19, 25, 0.08); }
.input--icon > .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #9aa3b0; pointer-events: none; }
.input--icon input { padding-left: 46px; }
.input--select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.input--select select:invalid { color: #8a93a0; }
.select-chevron { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fffafa; }
.field.has-error input:focus, .field.has-error select:focus { box-shadow: 0 0 0 4px rgba(209, 44, 67, 0.12); }
.field.is-valid input:not(:focus) { border-color: rgba(24, 167, 122, 0.6); }

/* Wybór (radio / checkbox) */
.choices { display: grid; gap: 10px; }
.choices--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-box {
    display: flex; align-items: center; gap: 12px; height: 100%; min-height: 52px; padding: 12px 14px;
    border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--white);
    font-size: 0.94rem; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.choice:hover .choice-box { border-color: #b3bcc8; }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice input:checked + .choice-box { border-color: var(--text); background: var(--paper); box-shadow: inset 0 0 0 1px var(--text); }
.choice input:disabled + .choice-box { opacity: 0.45; cursor: not-allowed; }
.choice-text { display: grid; gap: 2px; line-height: 1.3; }
.choice-text strong { font-weight: 600; }
.choice-text small { font-size: 0.82rem; color: var(--muted); }
.choice-radio, .choice-check {
    display: grid; place-items: center; width: 20px; height: 20px; flex: none;
    border: 1.5px solid var(--line-strong); background: var(--white); transition: all 0.2s;
}
.choice-radio { border-radius: 50%; }
.choice-check { border-radius: 6px; color: #fff; }
.choice-check .icon { width: 13px; height: 13px; opacity: 0; transform: scale(0.6); transition: all 0.2s var(--ease); }
.choice input:checked + .choice-box .choice-radio { border: 6px solid var(--brand); }
.choice input:checked + .choice-box .choice-check { background: var(--brand); border-color: var(--brand); }
.choice input:checked + .choice-box .choice-check .icon { opacity: 1; transform: none; }
.choice--card .choice-box { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px; }
.choices--chips .choice-box { min-height: 42px; padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; gap: 8px; }
.choices--chips .choice-check { width: 18px; height: 18px; border-radius: 50%; }
.field.has-error .choice-box { border-color: rgba(209, 44, 67, 0.45); }

.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent .choice-check { margin-top: 2px; }
.consent input:checked + .choice-check { background: var(--brand); border-color: var(--brand); }
.consent input:checked + .choice-check .icon { opacity: 1; transform: none; }
.consent input:focus-visible + .choice-check { outline: 2px solid var(--brand); outline-offset: 2px; }
.consent a { color: var(--text); font-weight: 600; }
.field--consent.has-error .choice-check { border-color: var(--danger); }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav [data-next], .form-nav [data-submit] { margin-left: auto; }
.form-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 0.82rem; color: var(--muted); }
.form-secure .icon { width: 15px; height: 15px; }
.is-sending [data-submit] { pointer-events: none; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Wynik wysyłki */
.form-result { text-align: center; padding: 12px 0; }
.form-result:focus { outline: none; }
.form-result h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 10px; }
.form-result > p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.result-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; }
.result-icon .icon { width: 34px; height: 34px; }
.form-result--ok .result-icon { background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 10px rgba(24, 167, 122, 0.06); animation: pop 0.5s var(--ease); }
.form-result--err .result-icon { background: rgba(209, 44, 67, 0.1); color: var(--danger); }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
.timeline { display: grid; gap: 10px; max-width: 360px; margin: 26px auto; text-align: left; }
.timeline li { display: flex; align-items: center; gap: 12px; font-size: 0.94rem; color: var(--muted); opacity: 0; animation: fadeUp 0.4s var(--ease) forwards; animation-delay: calc(var(--i) * 0.25s); }
.tl-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.tl-dot .icon { width: 13px; height: 13px; opacity: 0; }
.timeline li.done { color: var(--text); font-weight: 600; }
.timeline li.done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.done .tl-dot .icon { opacity: 1; }
.timeline li.active .tl-dot { border-color: var(--brand); border-top-color: transparent; animation: spin 1s linear infinite; }
.timeline li.active { color: var(--text); }
.result-next { margin: 8px auto 18px; padding: 22px; border-radius: 18px; background: var(--paper); max-width: 480px; }
.result-next-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; color: var(--text); }
.result-next p { color: var(--muted); font-size: 0.93rem; }
.result-next .btn { margin-top: 14px; white-space: normal; }
.result-hint { font-size: 0.86rem; color: var(--muted); margin-inline: auto; }
.result-hint a { color: var(--text); font-weight: 600; }
.form-result .link-button { margin-top: 6px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.form-result .btn-row { margin: 22px 0 18px; }

@media (max-width: 1000px) {
    .audit-grid { grid-template-columns: minmax(0, 1fr); }
    .audit-aside { position: static; }
    .audit-benefits, .audit-trust, .audit-help { display: none; }
    .audit-aside .section-head { margin-bottom: 0; }
}
@media (max-width: 620px) {
    .audit-card { padding: 20px 16px; margin-inline: calc(-1 * var(--gutter) + 8px); border-radius: 22px; }
    .stepper li { flex-direction: column; gap: 6px; text-align: center; font-size: 0.8rem; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
    .field-row--rate { grid-template-columns: minmax(0, 1fr) 110px; }
    .choices--2, .choices--3 { grid-template-columns: minmax(0, 1fr); }
    .choice--card .choice-box { flex-direction: row; align-items: center; }
    .form-nav { flex-wrap: wrap; }
    .form-nav .btn-lg { flex: 1; }
    .form-nav [data-back] { order: 2; flex: 0 0 auto; }
    .form-nav [data-next], .form-nav [data-submit] { order: 1; width: 100%; flex-basis: 100%; white-space: normal; }
    .form-nav [data-back] { margin-inline: auto; border-color: transparent; background: transparent; }
}

/* ---------- Po raporcie ---------- */
.after-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.after-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.after-card p { color: var(--muted); flex: 1; }
.after-card .text-link { margin-top: 8px; }
.after-card--accent { background: var(--ink); color: var(--on-dark); border-color: var(--ink); position: relative; overflow: hidden; isolation: isolate; }
.after-card--accent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 100% 0%, rgba(227, 49, 72, 0.35), transparent 70%); }
.after-card--accent p { color: var(--on-dark-muted); }
.after-card--accent .area-icon { background: rgba(255, 255, 255, 0.08); border-color: var(--ink-line-strong); color: #fff; box-shadow: none; }
.after-card--accent .text-link { color: #fff; }
@media (max-width: 900px) { .after-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 28px); }
.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; }
.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; cursor: pointer; list-style: none;
    font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -2px; border-radius: var(--radius-md); }
.faq-chevron { width: 20px; height: 20px; color: var(--muted); transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--brand); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-item[open] .faq-body { animation: fadeUp 0.3s var(--ease); }
@media (max-width: 900px) {
    .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .faq-grid .section-head { position: static; margin-bottom: 8px; }
}

/* ---------- CTA końcowe ---------- */
.final-cta { padding: 0 0 var(--section-y); background: var(--paper); }
.final-cta-box {
    position: relative; isolation: isolate; overflow: hidden; text-align: center;
    padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: 30px;
    background: var(--ink); color: var(--on-dark);
}
.final-cta-box::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(50% 70% at 0% 0%, rgba(227, 49, 72, 0.35), transparent 70%),
        radial-gradient(50% 70% at 100% 100%, rgba(61, 214, 245, 0.22), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 48px 48px;
}
.final-cta-box h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.final-cta-box p { color: var(--on-dark-muted); font-size: 1.08rem; max-width: 52ch; margin: 0 auto 28px; }
@media (max-width: 560px) { .final-cta-box .btn { width: 100%; white-space: normal; } }

/* ---------- Przyklejone CTA (telefon) ---------- */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: none;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(7, 9, 13, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--ink-line);
    transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
@media (max-width: 760px) { .sticky-cta { display: block; } }

/* ---------- Stopka ---------- */
.site-footer { background: var(--bg); color: var(--on-dark-muted); padding: clamp(48px, 7vw, 80px) 0 28px; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--ink-line); }
.footer-brand p { margin-top: 18px; max-width: 40ch; }
.footer-title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 0.98rem; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col .link-button { color: var(--on-dark-muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover, .footer-col .link-button:hover { color: #fff; }
.footer-col .link-button { text-decoration: none; text-align: left; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 24px; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.made-by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-dark-muted); }
.made-by img { width: 22px; height: 22px; }
.made-by strong { font-family: var(--font-display); color: #fff; font-weight: 700; }
.made-by strong b { color: var(--brand); font-weight: 700; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .page-home .site-footer { padding-bottom: 96px; } }

/* ---------- Baner cookies ---------- */
.cookie-banner {
    position: fixed; left: 16px; bottom: 16px; z-index: 1100; width: min(440px, calc(100% - 32px));
    display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start;
    padding: 16px 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);
    transition: opacity 0.3s, transform 0.3s var(--ease);
}
.cookie-banner.is-hiding { opacity: 0; transform: translateY(12px); }
.cookie-icon { width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }
.cookie-banner p { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--on-dark-muted); }
.cookie-banner p a { color: #fff; }
.cookie-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.cookie-actions .btn-outline { background: transparent; color: var(--on-dark); border-color: var(--ink-line-strong); }
.cookie-actions .btn-outline:hover { border-color: rgba(255, 255, 255, 0.4); }
@media (max-width: 520px) {
    .cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; }
    .cookie-actions .btn { flex: 1; }
}

/* ---------- Strony dokumentów i 404 ---------- */
.page-hero {
    position: relative; isolation: isolate; color: var(--on-dark);
    padding: calc(var(--header-h) + clamp(32px, 5vw, 64px)) 0 clamp(36px, 5vw, 56px);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 0.86rem; color: var(--on-dark-muted); }
.breadcrumbs a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.doc-updated { color: var(--on-dark-muted); margin: 0; }
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 18px; border-radius: var(--radius-md); background: var(--paper); font-size: 0.88rem; }
.doc-toc-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-weight: 700; font-family: var(--font-display); list-style: none; cursor: pointer; }
.doc-toc-title::-webkit-details-marker { display: none; }
.doc-toc[open] .doc-toc-title { margin-bottom: 10px; }
.doc-toc[open] .faq-chevron { transform: rotate(180deg); }
@media (min-width: 901px) { .doc-toc-title { pointer-events: none; } .doc-toc-title .icon { display: none; } }
.doc-toc ol { display: grid; gap: 4px; list-style: decimal; padding-left: 18px; color: var(--muted); }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover, .doc-toc a.is-active { color: var(--brand); }
.prose { max-width: 760px; color: #2b333f; }
.prose h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); margin: 44px 0 14px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; display: grid; gap: 6px; }
.prose a { color: var(--brand-deep); font-weight: 600; }
.prose code { font-size: 0.88em; padding: 1px 6px; border-radius: 6px; background: var(--paper); }
.note-box { margin: 20px 0; padding: 18px 20px; border-radius: 14px; background: var(--paper); border-left: 4px solid var(--brand); }
.note-box p { margin: 0; color: var(--text); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 8px; }
.data-table th, .data-table td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--paper); font-weight: 700; color: var(--text); }
.todo-fill { background: #fef3c7; border-bottom: 2px dashed #d97706; color: #78350f; font-weight: 700; padding: 0 4px; border-radius: 3px; }
.doc-back { margin-top: 40px; }
@media (max-width: 900px) {
    .doc-grid { grid-template-columns: minmax(0, 1fr); }
    .doc-toc { position: static; }
}

.page-hero--404 { min-height: 78vh; display: grid; align-items: center; text-align: center; }
.nf { display: grid; justify-items: center; }
.nf-code { font-family: var(--font-display); font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 700; line-height: 1; letter-spacing: -0.06em; margin: 0 0 12px; background: linear-gradient(100deg, #ff8a98, var(--brand) 45%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf .hero-lead { margin: 0 auto 28px; }

/* ---------- Animacje przy przewijaniu ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .site-header, .sticky-cta, .cookie-banner, .site-footer, .hero-bg { display: none !important; }
    .page-hero, .hero { color: var(--text); padding-top: 24px; }
    .page-hero h1 { color: var(--text); }
}

/* Tabela procesów jako karty na wąskich ekranach */
@media (max-width: 560px) {
    .rp-table { min-width: 0; }
    .rp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .rp-table, .rp-table tbody { display: block; }
    .rp-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .rp-table th, .rp-table td { padding: 0; border: 0; }
    .rp-table tbody th { grid-column: 1 / -1; }
    .rp-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
}
