/* Straight2Digital — Artur Ciesielski. Jeden plik, bez frameworka.
   Fonty hostowane lokalnie (OFL): Geist, Geist Mono, Instrument Serif. */

/* ---------- Fonty ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(../fonts/geist-latin-wght-normal.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: "Geist"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(../fonts/geist-latin-ext-wght-normal.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: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(../fonts/geist-mono-latin-wght-normal.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: "Geist Mono"; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url(../fonts/geist-mono-latin-ext-wght-normal.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: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400;
    src: url(../fonts/instrument-serif-latin-400-italic.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: "Instrument Serif"; font-style: italic; font-display: swap; font-weight: 400;
    src: url(../fonts/instrument-serif-latin-ext-400-italic.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; }

/* Fonty zastępcze z metrykami dopasowanymi do docelowych — brak skoku układu przy podmianie */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
    size-adjust: 103.2%; ascent-override: 97.39%; descent-override: 28.59%; line-gap-override: 0%; }
@font-face { font-family: "Geist Mono Fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono");
    size-adjust: 98%; ascent-override: 102.55%; descent-override: 30.1%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; font-style: italic;
    src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic");
    size-adjust: 88.57%; ascent-override: 111.78%; descent-override: 35%; line-gap-override: 0%; }

/* ---------- Tokeny ---------- */
:root {
    /* Grafit #23272C + niebieski #407FDE. Sam #407FDE nie nadaje się na tekst ani pod tekst
       (3,6–4,2:1), dlatego --brand to wyłącznie grafika, a tekst i wypełnienia idą po odcieniach
       pochodnych i parze --fill/--fill-text. */
    --ink: #23272c;
    --ink-deep: #1b1f24;
    --ink-2: #2a2f37;
    --paper: #f2f4f7;
    --paper-2: #ffffff;
    --brand: #407fde;              
    --brand-dark: #3263ad;         
    --brand-light: #82aded;        
    --warn: #e0a550;
    --bad: #d9705f;

    --bg: var(--paper);
    --surface: var(--paper-2);
    --text: #23272c;
    --muted: #565d68;
    --line: rgba(35, 39, 45, .12);
    --todo-bg: #fff1b8;
    --todo-text: #5a4300;
    --accent: var(--brand-dark);
    --brand-soft: rgba(64, 127, 222, .22);
    --fill: var(--brand-dark);     
    --fill-text: #ffffff;          

    --sans: var(--gh-font-body, "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
    --display: var(--gh-font-heading, "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
    --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --serif: "Instrument Serif", "Instrument Serif Fallback", Georgia, "Times New Roman", serif;

    --ease: cubic-bezier(.2, .7, .2, 1);
    --gutter: 16px;
    --max: 1200px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1e2228;
        --surface: #262b32;
        --text: #eef0f3;
        --muted: #a4acb8;
        --line: rgba(238, 240, 243, .13);
        --todo-bg: #3b3210;
        --todo-text: #ffe38a;
        --accent: var(--brand-light);
        --brand-soft: rgba(130, 173, 237, .2);
        --fill: var(--brand-light);
        --fill-text: var(--ink);   
    }
}

/* Powierzchnie zawsze ciemne (hero, hero podstrony, karty produktów, kontakt, stopka) */
.hero, .sub-hero, .prod, .contact, .foot, .topbar, .ai-band {
    --text: #eef0f3;
    --muted: #a4acb8;
    --line: rgba(238, 240, 243, .13);
    --todo-bg: #3b3210;
    --todo-text: #ffe38a;
    --accent: var(--brand-light);
    --brand-soft: rgba(130, 173, 237, .2);
    --fill: var(--brand-light);
    --fill-text: var(--ink);
    color: var(--text);
}

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

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

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-wrap: break-word;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; font-weight: 600; letter-spacing: -0.025em; }
p, ul, ol, dl { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--fill); color: var(--fill-text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--fill); color: var(--fill-text); padding: .5rem .9rem; border-radius: 6px; font-weight: 600;
    text-decoration: none;
}
.skip:focus { top: 12px; }

.todo {
    background: var(--todo-bg);
    color: var(--todo-text);
    padding: .05em .35em;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: .8em;
    letter-spacing: 0;
    text-transform: none;
}
p.todo { display: inline-block; }

.eyebrow, .sec-label, .card-no, .card-cap, .reg dt, .biz-org, .layer .tag, .sl-link { font-weight: 500; }

/* ---------- Pasek górny ---------- */
.topbar {
    position: fixed; inset: 0 0 auto; z-index: 50;
    transition: background-color .4s var(--ease), border-color .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.topbar.scrolled, .topbar.solid {
    background: rgba(10, 11, 13, .9);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom-color: rgba(238, 240, 243, .08);
}
.topbar-in {
    max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
    height: 64px; display: flex; align-items: center; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand-logo { display: block; height: 22px; width: auto; }
@media (min-width: 720px) { .brand-logo { height: 26px; } }
.topnav { display: none; gap: 1.1rem; margin-left: auto; font-size: .92rem; }
@media (min-width: 1150px) { .topnav { gap: 1.75rem; } }
.topnav a { text-decoration: none; color: #c4c2ba; transition: color .2s; white-space: nowrap; }
.topnav a:hover { color: var(--text); }

.lang-switch {
    flex: none;
    font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em;
    color: var(--muted); text-decoration: none;
    border: 1px solid var(--line); border-radius: 999px; padding: .5rem .7rem; line-height: 1;
    transition: color .2s, border-color .2s, background-color .2s;
}
.lang-switch { display: inline-flex; align-items: center; gap: .45rem; }
.lang-switch:hover { color: var(--fill-text); background: var(--fill); border-color: var(--fill); }
.flag { display: block; width: 18px; height: 12px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(238, 240, 243, .25); }
.mnav-lang { display: inline-flex; align-items: center; gap: .55rem; }
@media (max-width: 900px) { .lang-switch { display: none; } }
.mnav-lang { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; }
.mnav-lang .flag { box-shadow: 0 0 0 1px rgba(238, 240, 243, .3); }
@media (min-width: 900px) {
    .topnav { display: flex; }
    .mnav { display: none; }
}

.mnav { margin-left: auto; position: relative; }
.mnav summary {
    list-style: none; cursor: pointer; display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px; border-radius: 8px;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav-ico { display: block; width: 22px; height: 14px; position: relative; }
.mnav-ico i {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--text);
    transition: transform .3s var(--ease), opacity .2s;
}
.mnav-ico i:first-child { top: 0; }
.mnav-ico i:last-child { bottom: 0; }
.mnav[open] .mnav-ico i:first-child { transform: translateY(6px) rotate(45deg); }
.mnav[open] .mnav-ico i:last-child { transform: translateY(-6px) rotate(-45deg); }
.mnav-panel {
    position: absolute; right: -10px; top: calc(100% + 10px); z-index: 60;
    min-width: min(78vw, 300px);
    display: flex; flex-direction: column;
    background: var(--ink); border: 1px solid rgba(238, 240, 243, .14); border-radius: 12px;
    padding: .5rem; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
}
.mnav-panel a {
    padding: .7rem .8rem; border-radius: 8px; text-decoration: none; font-size: 1.05rem;
}
.mnav-panel a:hover, .mnav-panel a:focus-visible { background: rgba(238, 240, 243, .07); }
@media (prefers-reduced-motion: no-preference) {
    .mnav[open] .mnav-panel { animation: rise .25s var(--ease); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--ink-deep);
    min-height: 100vh;
    min-height: 90svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 92px 0 64px;
    isolation: isolate;
    overflow: hidden;
}
.hero-bg, .hero-bg::before, .hero-bg::after { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg {
    background-image: radial-gradient(rgba(238, 240, 243, .09) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 45%, #000 20%, transparent 75%);
}
.hero-bg::before {
    content: ""; inset: auto;
    width: 70vmax; height: 70vmax; left: 45%; top: 50%;
    translate: -30% -50%;
    background: radial-gradient(closest-side, rgba(64, 127, 222, .3), rgba(64, 127, 222, .08) 55%, transparent);
    animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-6%, 8%) scale(1.12); } }

.hero-in {
    width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
    display: grid; gap: 1.5rem; align-items: center;
}
@media (max-width: 959px) {
    .hero { justify-content: flex-start; padding-top: 84px; min-height: 0; }
    .hero .scene { margin-top: .5rem; }
}
@media (min-width: 960px) {
    .hero-in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; }
}

.eyebrow {
    display: flex; align-items: center; gap: .75rem;
    font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1.5rem;
}
.eyebrow::before {
    content: ""; width: 28px; height: 1px; background: var(--accent); flex: none;
}
@media (max-width: 520px) { .eyebrow::before { display: none; } .eyebrow { letter-spacing: .05em; } }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; order: -1; border: 1px solid var(--line); }
.avatar + span { margin-left: 0; }

.hero h1 {
    font-size: clamp(3.1rem, 10.5vw, 8.4rem);
    line-height: .92;
    letter-spacing: -0.045em;
    font-weight: 620;
    margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 4.6rem); word-break: keep-all; overflow-wrap: normal; margin-bottom: clamp(1.5rem, 2.6vw, 2rem); }
@media (max-width: 959px) { .hero h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); } }
.hero h1 .two { color: var(--accent); }
.lead {
    font-size: clamp(1.2rem, 2.1vw, 1.55rem);
    line-height: 1.45; letter-spacing: -0.01em;
    max-width: 30ch; margin: 0;
}
.lead mark {
    color: inherit; background: none; padding: 0 .08em; cursor: default;
    background-image: linear-gradient(var(--fill), var(--fill));
    background-size: 100% .12em; background-position: 0 92%; background-repeat: no-repeat;
    transition: background-size .45s var(--ease), color .3s;
}
.lead mark:hover, .lead mark.on { background-size: 100% 100%; color: var(--fill-text); }

@media (prefers-reduced-motion: no-preference) {
    .eyebrow, .lead { animation: rise .9s var(--ease) both; }
    .eyebrow { animation-delay: .05s; }
    .lead { animation-delay: .2s; }
    .scene { animation: fade 1.4s .2s var(--ease) both; }
}
/* Mobile: reserved lead height and a single-line eyebrow — swapping the font must not move
   the 3D stack (keeps CLS at 0). Below 960px the metric-matched fallback always needs five
   lines where Geist needs four, so five is what we reserve. */
@media (max-width: 959px) {
    .lead { min-height: calc(5 * 1.45em); }
    .eyebrow { white-space: nowrap; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; transform: scale(.94); } }

.scene {
    --s: min(58vw, 250px);
    position: relative; height: calc(var(--s) * 1.9);
    display: grid; place-items: center;
    perspective: 1800px;
    margin-top: 1rem;
}
@media (min-width: 960px) { .scene { --s: 290px; height: 620px; margin: 0; } }

.stack {
    --gap: calc(var(--s) * .34);
    --explode: 0;
    --tx: 0deg; --ty: 0deg;
    position: relative; width: var(--s); height: var(--s);
    transform-style: preserve-3d;
    transform: translateY(calc(var(--s) * .05)) rotateX(calc(57deg + var(--ty))) rotateZ(calc(-42deg + var(--tx)));
    transition: transform .9s var(--ease);
}
.layer {
    position: absolute; inset: 0;
    border-radius: 14px;
    border: 1px solid rgba(238, 240, 243, .16);
    background:
        linear-gradient(135deg, rgba(238, 240, 243, .09), rgba(238, 240, 243, .02) 60%),
        rgba(16, 18, 22, .94);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
    transform: translateZ(calc((var(--i) - 1) * (var(--gap) + var(--explode) * var(--s) * .16)));
    transition: transform .9s var(--ease), border-color .35s, box-shadow .35s, opacity .35s;
}
.layer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer .tag {
    position: absolute; left: 14px; bottom: -30px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); white-space: nowrap;
    transition: color .3s;
}
@media (prefers-reduced-motion: no-preference) {
    .layer { animation: bob 7s ease-in-out infinite; animation-delay: calc(var(--i) * -2.3s); }
}
@keyframes bob { 50% { translate: 0 0 10px; } }

.stack[data-active] .layer { opacity: .45; }
.stack[data-active="ai"] .l-ai,
.stack[data-active="dev"] .l-dev,
.stack[data-active="wyniki"] .l-wyniki {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 0 80px -10px rgba(64, 127, 222, .8), 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.stack[data-active="ai"] .l-ai .tag,
.stack[data-active="dev"] .l-dev .tag,
.stack[data-active="wyniki"] .l-wyniki .tag { color: var(--accent); }

.scene-shadow {
    position: absolute; left: 50%; bottom: 4%; width: calc(var(--s) * 1.4); height: calc(var(--s) * .28);
    translate: -50% 0; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(64, 127, 222, .3), transparent);
    pointer-events: none;
}

.layer svg * { vector-effect: non-scaling-stroke; }
.rack rect { fill: rgba(238, 240, 243, .04); stroke: rgba(238, 240, 243, .22); }
.vents path { stroke: rgba(238, 240, 243, .18); stroke-width: 2; }
.leds circle { fill: rgba(238, 240, 243, .18); }
.leds .on { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
    .leds .d1 { animation: blink 1.6s steps(1) infinite; }
    .leds .d2 { animation: blink 2.3s .4s steps(1) infinite; }
    .leds .d3 { animation: blink 1.1s .8s steps(1) infinite; }
}
@keyframes blink { 50% { fill: rgba(238, 240, 243, .18); } }
.layer text.mono { font-family: var(--mono); font-size: 12px; fill: rgba(238, 240, 243, .6); }
.layer text.ok { fill: var(--accent); }
.sk-cards rect { fill: rgba(238, 240, 243, .03); stroke: rgba(238, 240, 243, .2); }
.sk-cards .hl { stroke: var(--accent); }
.imgs rect { fill: rgba(238, 240, 243, .09); }
.lines path { stroke: rgba(238, 240, 243, .28); stroke-width: 5; stroke-linecap: round; }
.price rect { fill: var(--brand-light); }
.flow-links path { fill: none; stroke: rgba(130, 173, 237, .8); stroke-width: 1.5; stroke-dasharray: 4 6; }
@media (prefers-reduced-motion: no-preference) {
    .flow-links path { animation: flow 1.4s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -20; } }
.node rect { fill: rgba(238, 240, 243, .05); stroke: rgba(238, 240, 243, .3); }
.node text { font-family: var(--mono); font-size: 12px; fill: rgba(238, 240, 243, .75); text-anchor: middle; }
.ai-core circle { fill: rgba(64, 127, 222, .25); stroke: var(--accent); stroke-width: 1.5; }
.ai-core path { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
    .ai-core path { transform-origin: 150px 150px; animation: pulse 2.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { transform: scale(.78) rotate(45deg); opacity: .8; } }

.scroll-cue {
    position: absolute; left: 50%; bottom: 64px; translate: -50% 0;
    width: 26px; height: 42px; border: 1px solid rgba(238, 240, 243, .3); border-radius: 14px;
    display: none;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); }
@media (min-width: 960px) and (min-height: 700px) { .scroll-cue { display: block; } }
@media (prefers-reduced-motion: no-preference) {
    .scroll-cue span { animation: cue 1.8s var(--ease) infinite; }
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Taśma kompetencji ---------- */
.tape-clip { overflow-x: clip; overflow-y: visible; position: relative; z-index: 2; }
.tape {
    position: relative; z-index: 2;
    background: var(--fill); color: var(--fill-text);
    margin: -26px -4vw 0; padding: .95rem 0;
    rotate: -2deg;
    overflow: hidden;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
.tape-track { display: flex; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
    .tape-track { animation: marquee 48s linear infinite; }
    .tape:hover .tape-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
.tape-list {
    display: flex; list-style: none; margin: 0; padding: 0;
    font-family: var(--mono); font-size: .9rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em;
    white-space: nowrap;
}
.tape-list li { display: flex; align-items: center; }
.tape-list li::after { content: "✦"; margin: 0 1.6rem; font-size: .8em; }

/* ---------- Podejście: fundament + AI ---------- */
.mix-sec h2 em { font-family: var(--serif); font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
.mix { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 900px) { .mix { grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; } }
.mix-col {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2rem);
}
.mix-col-ai { border-color: rgba(64, 127, 222, .45); }
.mix-label {
    font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 1.1rem;
}
.mix-col ul { list-style: none; margin: 0; padding: 0; }
.mix-col li {
    position: relative; padding: .55rem 0 .55rem 1.5rem;
    font-size: 1.05rem; border-bottom: 1px solid var(--line);
}
.mix-col li:last-child { border-bottom: 0; padding-bottom: 0; }
.mix-col li::before {
    content: ""; position: absolute; left: 0; top: 1.15em;
    width: 8px; height: 8px; border-radius: 2px; background: var(--brand); opacity: .55;
}
.mix-col-ai li::before { opacity: 1; }
.mix-join { display: grid; place-items: center; }
.mix-join span {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--fill); color: var(--fill-text);
    font-size: 1.4rem; font-weight: 600; line-height: 1;
}
.mix-note {
    margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
    font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.5; max-width: 68ch;
}

/* ---------- Karuzela produktów ---------- */
/* Lista pozioma z zatrzaskiem. Przewija się natywnie — palcem, gładzikiem i paskiem
   przewijania — więc działa bez JS. Strzałki, licznik i pasek postępu pokazują się
   dopiero przy .js, bo bez skryptu nic by nie robiły. */
.rail-sec { padding-top: clamp(1rem, 3vw, 2rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
/* Bez JS licznik i strzałki nic nie znaczą, więc cały pasek sterowania się nie pokazuje. */
.rail-head {
    display: none; align-items: center; gap: clamp(1rem, 3vw, 1.75rem);
    margin: clamp(1.75rem, 4vw, 2.5rem) 0 1.1rem;
}
.js .rail-head { display: flex; }
.rail-pos {
    margin: 0; font-family: var(--mono); font-size: .8rem; font-weight: 500;
    letter-spacing: .08em; color: var(--muted); white-space: nowrap;
}
.rail-pos b { color: var(--text); font-weight: 600; }
.rail-line { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
/* Pasek zachowuje się jak suwak: szerokość to widoczna część listy, przesunięcie
   to pozycja przewinięcia. Przy trzech kartach na ekranie od razu widać, że jest czwarta. */
.rail-line i {
    display: block; height: 100%; width: var(--w, 100%); margin-left: var(--x, 0); border-radius: 2px;
    background: var(--accent); transition: width .4s var(--ease), margin-left .4s var(--ease);
}
.rail-btns { display: flex; gap: .5rem; }
.rail-btn {
    width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
    display: grid; place-items: center;
    background: transparent; color: var(--text); border: 1px solid var(--line);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}
.rail-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover:not(:disabled) { background: var(--fill); color: var(--fill-text); border-color: transparent; }
.rail-btn:disabled { opacity: .3; cursor: default; }

/* Karuzela wychodzi poza kolumnę treści na całą szerokość okna. Odstęp boczny liczony
   tak samo jak w .wrap trzyma pierwszą kartę w jednej linii z nagłówkiem sekcji, a karty
   po prawej uciekają poza krawędź ekranu. 100% to szerokość sekcji, czyli bez paska
   przewijania — 100vw dawałoby przesunięcie o jego grubość. */
.rail {
    list-style: none; margin: 0;
    padding: 4px calc((100% - min(100%, var(--max))) / 2 + var(--gutter)) 1.5rem;
    scroll-padding-inline-start: calc((100% - min(100%, var(--max))) / 2 + var(--gutter));
    display: flex; gap: 20px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
}
.js .rail { scrollbar-width: none; }
.js .rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 22px; }
/* W trakcie ciągnięcia myszą zatrzask musi zniknąć, inaczej karta ucieka spod kursora.
   Po puszczeniu wraca i przeglądarka sama dosuwa najbliższą kartę. */
.rail.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }

.prod {
    flex: 0 0 auto; width: clamp(272px, 80vw, 344px);
    scroll-snap-align: start;
    position: relative; isolation: isolate;
    display: flex; flex-direction: column;
    background: var(--ink-2);
    border: 1px solid rgba(238, 240, 243, .08);
    border-radius: 20px; overflow: hidden;
    transition: translate .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
@media (min-width: 700px) { .prod { width: 372px; } }
@media (min-width: 1200px) { .prod { width: 376px; } }
.prod::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .65;
    background: radial-gradient(75% 70% at 100% 0%, rgba(64, 127, 222, .32), transparent 62%);
    transition: opacity .4s var(--ease);
}
/* Włos u góry karty zapala się na tej, która stoi przy lewej krawędzi, i pod kursorem. */
.prod::after {
    content: ""; position: absolute; inset: 0 0 auto; height: 2px; opacity: .25;
    background: linear-gradient(90deg, transparent, var(--brand-light) 35%, var(--brand-light) 65%, transparent);
    transition: opacity .4s var(--ease);
}
.prod.is-near {
    border-color: rgba(130, 173, 237, .38);
    box-shadow: 0 0 0 1px rgba(130, 173, 237, .1), 0 34px 60px -44px rgba(64, 127, 222, .9);
}
.prod.is-near::before, .prod.is-near::after { opacity: 1; }
@media (hover: hover) {
    .prod:hover { translate: 0 -6px; box-shadow: 0 28px 50px -30px rgba(0, 0, 0, .95); }
    .prod:hover::before, .prod:hover::after { opacity: 1; }
}
.prod-kind {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    margin: 0 0 -.1rem;
    font-family: var(--mono); font-size: .68rem; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.prod-badge { translate: 0; flex: 0 0 auto; font-size: .6rem; padding: .2rem .55rem; }
/* Na wąskiej karcie rodzaj produktu i plakietka ledwo mieszczą się w jednym wierszu. */
@media (max-width: 480px) { .prod-kind { font-size: .62rem; letter-spacing: .08em; } }
.prod-vis {
    position: relative; height: clamp(156px, 38vw, 184px); overflow: hidden;
    display: grid; place-items: center; padding: clamp(1rem, 3vw, 1.4rem) clamp(1.1rem, 4vw, 1.6rem);
    border-bottom: 1px solid rgba(238, 240, 243, .08);
    background: linear-gradient(180deg, rgba(238, 240, 243, .05), transparent);
}
.prod-vis::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(80% 110% at 50% 118%, rgba(64, 127, 222, .22), transparent 68%);
}
.prod-body { flex: 1; display: flex; flex-direction: column; gap: .85rem; padding: clamp(1.2rem, 4vw, 1.6rem); }
.prod-name { margin: 0; }
.prod .sl-logo { height: clamp(26px, 7vw, 31px); }
.prod-sum { margin: 0; font-size: 1rem; line-height: 1.5; }
.prod-kicker { margin: 0; font-family: var(--mono); font-size: .76rem; font-weight: 500; line-height: 1.5; color: var(--accent); }
.prod-go { margin: auto 0 0; padding-top: .3rem; }
.prod-go .sl-link { font-size: .85rem; }

/* Oznaczenia i odnośniki produktów — .sl-lead i .sl-link używa też pas „Wdrożenia AI”. */
.sl-logo { display: block; width: auto; height: clamp(32px, 4.5vw, 46px); max-width: 100%; }
.badge {
    display: inline-block; vertical-align: middle; translate: 0 -.35em;
    font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
    color: var(--fill-text); background: var(--fill); border-radius: 999px; padding: .3rem .8rem;
}
.sl-lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; max-width: 32ch; color: var(--text); }
.sl-link {
    display: inline-flex; gap: .5rem; align-items: center;
    font-family: var(--mono); font-size: .95rem; text-decoration: none;
    border-bottom: 2px solid var(--accent); padding-bottom: .15rem;
}
.sl-link span { transition: translate .3s var(--ease); }
.sl-link:hover span { translate: 6px 0; }

/* --- Resodit: miejsce w wynikach i luka do celu --- */
.pv-res-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(.9rem, 3vw, 1.4rem); align-items: center; width: 100%; }
.pv-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.pv-rows li { display: flex; align-items: center; gap: .45rem; }
.pv-rows i { flex: 1; height: 10px; border-radius: 3px; background: rgba(238, 240, 243, .09); position: relative; }
.pv-rows i::after {
    content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px;
    background: rgba(238, 240, 243, .24);
}
.pv-you i { background: rgba(130, 173, 237, .14); }
.pv-you i::after { background: var(--brand-light); }
.pv-you b {
    font-family: var(--mono); font-size: .52rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    color: var(--fill-text); background: var(--fill); border-radius: 999px; padding: .12rem .45rem;
}
.pv-num { margin: 0; text-align: right; }
.pv-num b { display: block; font-size: 2.1rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pv-num small {
    display: block; margin-top: .3rem; max-width: 11ch; margin-left: auto;
    font-family: var(--mono); font-size: .52rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); line-height: 1.35;
}
/* Animacja: firma ("Ty") zaczyna na ostatnim miejscu z krotkim paskiem, po audycie
   pasek rosnie, wiersz awansuje na pierwsze miejsce, konkurenci zjezdzaja o jedno
   w dol, a licznik klientow do celu spada z 34 do 6. Petla 7 s z krotkim
   przygaszeniem przed powtorka. Rowna wysokosc wierszy (16 px) to warunek,
   zeby przesuniecie o --pitch trafialo dokladnie w sasiedni wiersz. */
.pv-rows { --pitch: calc(16px + .55rem); }
.pv-rows li { height: 16px; }
.pv-count { font-variant-numeric: tabular-nums; }
@property --n { syntax: "<integer>"; inherits: false; initial-value: 34; }
@media (prefers-reduced-motion: no-preference) {
    .pv-rows { animation: pv-reset 7s var(--ease) infinite; }
    .pv-rows li { animation: pv-down 7s var(--ease) infinite; }
    .pv-rows li.pv-you { position: relative; z-index: 1; animation-name: pv-up; }
    .pv-you i::after { animation: pv-grow 7s var(--ease) infinite; }
    .pv-count { --n: 34; counter-reset: n var(--n); animation: pv-count 7s var(--ease) infinite; }
    .pv-count span { display: none; }
    .pv-count::after { content: counter(n); }
}
@keyframes pv-up    { 0%, 18% { translate: 0 0; } 55%, 86% { translate: 0 calc(-3 * var(--pitch)); } 100% { translate: 0 0; } }
@keyframes pv-down  { 0%, 18% { translate: 0 0; } 55%, 86% { translate: 0 var(--pitch); } 100% { translate: 0 0; } }
@keyframes pv-grow  { 0%, 12% { width: 24%; } 50%, 86% { width: var(--w); } 100% { width: 24%; } }
@keyframes pv-count { 0%, 18% { --n: 34; } 55%, 86% { --n: 6; } 100% { --n: 34; } }
@keyframes pv-reset { 0%, 86% { opacity: 1; } 93% { opacity: .35; } 100% { opacity: 1; } }

/* --- StoreLoupe: lupa przesuwa się nad listą sprawdzeń --- */
.pv-sl { padding: 0; }   /* lupa i warstwy liczą się od krawędzi pasa, nie od odstępu */
.pv-scan {
    list-style: none; margin: 0; position: absolute; inset: 0;
    padding: clamp(1.1rem, 3.5vw, 1.5rem);
    display: grid; align-content: center; gap: .55rem;
}
.pv-scan li { height: 14px; border-radius: 5px; background: rgba(238, 240, 243, .07); position: relative; }
.pv-scan li::before {
    content: ""; position: absolute; left: 10px; top: 50%; translate: 0 -50%;
    height: 4px; width: 46%; border-radius: 2px; background: rgba(238, 240, 243, .16);
}
.pv-scan li::after {
    content: ""; position: absolute; right: 10px; top: 50%; translate: 0 -50%;
    width: 8px; height: 8px; border-radius: 50%; background: rgba(238, 240, 243, .18);
}
.pv-scan li:nth-child(2)::before { width: 32%; }
.pv-scan li:nth-child(3)::before { width: 54%; }
.pv-scan li:nth-child(4)::before { width: 38%; }
.pv-scan-off { filter: blur(1.2px); opacity: .55; }
.pv-scan-on { clip-path: circle(37px at 24% 50%); }
.pv-scan-on li { background: rgba(238, 240, 243, .1); outline: 1px solid rgba(238, 240, 243, .12); }
.pv-scan-on li::before { background: rgba(238, 240, 243, .5); }
.pv-scan-on .ok::after { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pv-scan-on .warn::after { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.pv-scan-on .bad::after { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.pv-lens {
    position: absolute; left: 24%; top: 50%; width: 74px; height: 74px; translate: -50% -50%;
    border-radius: 50%; border: 2px solid rgba(238, 240, 243, .82);
    box-shadow: 0 0 0 5px rgba(238, 240, 243, .05), inset 0 0 22px rgba(130, 173, 237, .16), 0 14px 32px rgba(0, 0, 0, .5);
}
.pv-lens::after {
    content: ""; position: absolute; left: 84%; top: 84%; width: 32px; height: 9px; border-radius: 5px;
    background: linear-gradient(#eef0f3, #a3a199); transform-origin: 0 50%; rotate: 45deg;
}
@media (prefers-reduced-motion: no-preference) {
    .pv-scan-on { animation: pv-sweep 7s var(--ease) infinite alternate; }
    .pv-lens { animation: pv-sweep-lens 7s var(--ease) infinite alternate; }
}
@keyframes pv-sweep { from { clip-path: circle(37px at 24% 50%); } to { clip-path: circle(37px at 76% 50%); } }
@keyframes pv-sweep-lens { from { left: 24%; } to { left: 76%; } }

/* --- FunScore: wynik i stawka za godzinę --- */
.pv-fun { display: flex; align-items: center; justify-content: center; gap: clamp(.9rem, 4vw, 1.6rem); }
.pv-ring { position: relative; width: 102px; height: 102px; flex: 0 0 auto; }
.pv-ring svg { width: 100%; height: 100%; rotate: -90deg; }
.pv-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.pv-ring-bg { stroke: rgba(238, 240, 243, .1); }
.pv-ring-val { stroke: var(--brand-light); stroke-dasharray: 327; stroke-dashoffset: 72; }
.pv-ring-num {
    position: absolute; inset: 0; display: grid; place-content: center;
    font-size: 1.85rem; font-weight: 600; letter-spacing: -0.04em;
}
.pv-bars { display: grid; gap: 9px; flex: 1; min-width: 0; max-width: 136px; }
.pv-bars i { height: 8px; border-radius: 999px; background: rgba(238, 240, 243, .08); position: relative; }
.pv-bars i::after {
    content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
}
.pv-rate { margin: .4rem 0 0; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.pv-rate b { color: var(--text); font-size: 1.05rem; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
    .pv-ring-val { animation: pv-score 3.6s var(--ease) infinite alternate; }
}
@keyframes pv-score { from { stroke-dashoffset: 250; } to { stroke-dashoffset: 72; } }

/* --- (i)granie z głową: ocena z pudełka obok oceny po sprawdzeniu --- */
/* ---------- Sayasito: rozne zmiany wpisane zwyklym zdaniem ---------- */
/* Petla 12 s, cztery kroki po 3 s: nowa usluga, nowa cena, zdjecie, ogloszenie.
   W kazdym kroku dymek z prosba, potem zmiana na podgladzie strony i znaczek
   zatwierdzenia. Zmiany zostaja na podgladzie do konca petli, wiec strona
   widocznie "rosnie", a na koncu wraca do punktu wyjscia.
   Bez animacji (prefers-reduced-motion) widac pierwszy dymek i strone po wszystkich
   zmianach. Karta ma zawsze ciemne tlo, wiec --fill i --accent sa tu jasne. */
.pv-say { display: flex; align-items: center; justify-content: center; gap: clamp(.55rem, 2.4vw, 1rem); }
.pv-say-msgs { display: grid; width: clamp(7.4rem, 30vw, 11.5rem); }
.pv-say-msg {
    grid-area: 1 / 1; align-self: center; justify-self: end;
    margin: 0; font-size: .74rem; line-height: 1.4;
    padding: .5rem .7rem; border-radius: 13px 13px 4px 13px;
    background: var(--fill); color: var(--fill-text);
}
.pv-say-msg + .pv-say-msg { opacity: 0; }
.pv-say-pic {
    display: block; width: 34px; height: 24px; margin-bottom: .35rem; border-radius: 5px;
    background: linear-gradient(135deg, #d9a66b, #8a5a3a 55%, #3e2a20);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}
.pv-say-page {
    position: relative; flex: 0 0 auto; display: flex; flex-direction: column;
    width: 88px; height: 118px; padding: .55rem .55rem 0;
    border: 1px solid rgba(238, 240, 243, .2); border-radius: 11px;
    background: rgba(238, 240, 243, .045);
}
.pv-say-page i { display: block; flex: 0 0 auto; border-radius: 3px; }
.pv-say-ban { height: 8px; margin-bottom: .4rem; background: var(--accent); }
.pv-say-img {
    height: 26px; margin-bottom: .45rem;
    background: linear-gradient(135deg, #d9a66b, #8a5a3a 55%, #3e2a20);
    outline: 1px solid rgba(238, 240, 243, .14); outline-offset: -1px;
}
.pv-say-row { height: 7px; margin-bottom: .4rem; width: 85%; background: rgba(238, 240, 243, .16); }
.pv-say-price { width: 56%; }
.pv-say-new { width: 64%; }
.pv-say-ok {
    position: absolute; right: -9px; bottom: -9px;
    display: grid; place-items: center;
    width: 23px; height: 23px; border-radius: 50%;
    font-size: .72rem; line-height: 1;
    background: var(--fill); color: var(--fill-text);
}
@media (prefers-reduced-motion: no-preference) {
    .pv-say-msg { animation: say-msg 12s var(--ease) infinite both; }
    .pv-say-msg:nth-child(2) { animation-delay: 3s; }
    .pv-say-msg:nth-child(3) { animation-delay: 6s; }
    .pv-say-msg:nth-child(4) { animation-delay: 9s; }
    .pv-say-new   { animation: say-new 12s var(--ease) infinite; }
    .pv-say-price { animation: say-price 12s var(--ease) infinite; }
    .pv-say-img   { animation: say-img 12s var(--ease) infinite; }
    .pv-say-ban   { animation: say-ban 12s var(--ease) infinite; }
    .pv-say-ok    { animation: say-ok 3s var(--ease) infinite; }
}
/* Dymek: wchodzi na poczatku swojego kroku, schodzi pod jego koniec. */
@keyframes say-msg {
    0%   { opacity: 0; translate: 0 8px; }
    3%   { opacity: 1; translate: 0 0; }
    22%  { opacity: 1; translate: 0 0; }
    25%, 100% { opacity: 0; translate: 0 -8px; }
}
/* Krok 1 (0-25%): pojawia sie nowy wiersz uslugi. */
@keyframes say-new {
    0%, 8%   { width: 0; opacity: 0; background: var(--accent); }
    13%      { width: 64%; opacity: 1; background: var(--accent); }
    22%      { background: var(--accent); }
    27%, 96% { width: 64%; opacity: 1; background: rgba(238, 240, 243, .16); }
    100%     { width: 64%; opacity: 0; background: rgba(238, 240, 243, .16); }
}
/* Krok 2 (25-50%): wiersz ceny zmienia dlugosc i na chwile sie podswietla. */
@keyframes say-price {
    0%, 33%  { width: 70%; background: rgba(238, 240, 243, .16); }
    38%      { width: 56%; background: var(--accent); }
    47%      { background: var(--accent); }
    52%, 96% { width: 56%; background: rgba(238, 240, 243, .16); }
    100%     { width: 70%; background: rgba(238, 240, 243, .16); }
}
/* Krok 3 (50-75%): w pustym miejscu pojawia sie zdjecie. */
@keyframes say-img {
    0%, 58%  { opacity: .18; outline-color: rgba(238, 240, 243, .14); filter: grayscale(1); }
    63%      { opacity: 1; outline-color: var(--accent); filter: none; }
    72%      { outline-color: var(--accent); }
    77%, 96% { opacity: 1; outline-color: rgba(238, 240, 243, .14); filter: none; }
    100%     { opacity: .18; outline-color: rgba(238, 240, 243, .14); filter: grayscale(1); }
}
/* Krok 4 (75-100%): na gorze strony wskakuje pasek z ogloszeniem. */
@keyframes say-ban {
    0%, 83%  { height: 0; margin-bottom: 0; opacity: 0; }
    88%, 96% { height: 8px; margin-bottom: .4rem; opacity: 1; }
    100%     { height: 0; margin-bottom: 0; opacity: 0; }
}
/* Znaczek zatwierdzenia: raz na krok, po pojawieniu sie zmiany. */
@keyframes say-ok {
    0%, 32% { opacity: 0; scale: .4; }
    40%     { opacity: 1; scale: 1.15; }
    48%, 82% { opacity: 1; scale: 1; }
    92%, 100% { opacity: 0; scale: .7; }
}


.pv-izg { display: flex; align-items: center; justify-content: center; gap: clamp(.7rem, 3vw, 1.1rem); }
.pv-age { display: grid; place-items: center; gap: .2rem; text-align: center; width: 76px; aspect-ratio: 1; border-radius: 16px; }
.pv-age b { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pv-age small { font-family: var(--mono); font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.pv-age-box { border: 1px solid rgba(238, 240, 243, .22); color: var(--muted); }
.pv-age-own { background: var(--fill); color: var(--fill-text); }
.pv-arrow { color: var(--muted); font-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
    .pv-age-own { animation: pv-glow 3.6s var(--ease) infinite alternate; }
}
@keyframes pv-glow {
    from { box-shadow: 0 0 24px -16px rgba(64, 127, 222, .55); }
    to { box-shadow: 0 0 42px -10px rgba(64, 127, 222, .95); }
}

/* ---------- Szew między sekcjami ---------- */
/* Rozdzielenie, które najlepiej wyszło na granicy sekcji 03 i 04: włos przez całą
   szerokość i gasnąca siatka kropek. Tam robi to ciemny pas, tu sam wzór, bez tła,
   żeby dwie jasne sekcje nie zlewały się w jedną kolumnę tekstu. Element jest pusty
   i dekoracyjny, więc w znaczniku ma aria-hidden. */
.seam { position: relative; height: clamp(2.75rem, 6vw, 4.5rem); overflow: hidden; isolation: isolate; }
.seam::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 55% 130% at 50% 0%, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse 55% 130% at 50% 0%, #000 10%, transparent 72%);
}
.seam::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 22%, var(--line) 78%, transparent);
}

/* ---------- Odsłanianie przy przewijaniu ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0; transform: translateY(28px);
        transition: opacity .9s var(--ease), transform .9s var(--ease);
        transition-delay: var(--d, 0s);
    }
    .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ---------- W skrócie ---------- */
.facts { padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem); }
.facts-grid { display: grid; gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
@media (min-width: 720px) { .facts-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.fact { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 1.25rem; }
.fact { display: block; }
.fact-num {
    font-family: var(--display); font-weight: 600;
    font-size: clamp(4rem, 9vw, 6.5rem); line-height: .85; letter-spacing: -0.05em;
    margin: 0 0 .5rem;
}
.fact-num span { color: var(--muted); font-weight: 300; }
.fact-txt { margin: 0; max-width: 22ch; font-size: 1.02rem; line-height: 1.45; color: var(--muted); }
.statement {
    margin: 0;
    padding-top: clamp(2rem, 5vw, 3rem);
    border-top: 1px solid var(--line);
    font-size: clamp(1.5rem, 3.2vw, 2.6rem);
    line-height: 1.2; letter-spacing: -0.03em; font-weight: 500;
    max-width: 24ch;
    text-wrap: balance;
}
.statement-note {
    margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.55; color: var(--muted); max-width: 54ch;
}
.statement em {
    font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em;
    background: linear-gradient(transparent 62%, var(--brand-soft) 62%, var(--brand-soft) 92%, transparent 92%);
}

/* ---------- Sekcje ---------- */
main { counter-reset: sec; }
.numbered { counter-increment: sec; }
.sec { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sec-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-label {
    font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1rem;
    display: flex; align-items: center; gap: .75rem;
}
.sec-label::before {
    content: counter(sec, decimal-leading-zero);
    color: var(--fill-text); background: var(--fill); border-radius: 3px; padding: .1rem .4rem;
    font-weight: 600; letter-spacing: .02em;
}
.sec h2, .contact h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }
.sec-note { color: var(--muted); margin: 1.25rem 0 0; font-size: 1rem; }

.cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
    --mx: 50%; --my: 0%;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    overflow: hidden;
    isolation: isolate;
    transition: border-color .3s, translate .5s var(--ease);
}
.card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(64, 127, 222, .16), transparent 45%);
    opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(64, 127, 222, .6); }
@media (prefers-reduced-motion: no-preference) { .card:hover { translate: 0 -4px; } }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.card-wide { grid-column: 1 / -1; }
.card-wide .card-wide-in { max-width: 70ch; }
/* ta sama waga co .card h3, więc potrzebna jest wyższa: inaczej wygrywa reguła późniejsza */
.card.card-wide h3 { max-width: none; }
.card.card-wide p { max-width: 66ch; }
@media (min-width: 1100px) {
    .card-wide { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
    .card-wide .card-top { flex-direction: column; gap: 1.25rem; margin-bottom: 0; }
}
@media (min-width: 760px) { .card-top { margin-bottom: 2.5rem; } }
.card-no { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.ico { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico circle, .ico rect:not(.draw) { fill: var(--surface); }
.ico .acc { stroke: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
    /* Każdy rysowany kształt ma pathLength="160" w znaczniku, więc ta sama wartość dasharray
       znaczy dla wszystkich to samo. Bez tego ścieżki o długości od 17 do 128 jednostek
       animowały się w zupełnie różnym tempie, a najkrótsze wskakiwały skokiem. */
    .ico .draw { stroke-dasharray: 160; stroke-dashoffset: 0; }
    .card:hover .ico .draw { animation: redraw 1s var(--ease); }
    .card:hover .ico .caret { animation: caret 1.1s steps(1) 3; }
    .card:hover .ico .spark { transform-origin: 38px 9px; animation: spin .9s var(--ease); }
}
@keyframes redraw { from { stroke-dashoffset: 160; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(180deg); } }
.card h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); letter-spacing: -0.025em; margin-bottom: .85rem; max-width: 20ch; }
.card p { color: var(--muted); margin: 0; font-size: 1.02rem; max-width: 58ch; }

/* ---------- Wdrożenia AI ---------- */
.ai-band {
    background: var(--ink);
    padding: clamp(5rem, 11vw, 8.5rem) 0;
    margin: clamp(2rem, 5vw, 3rem) 0 0;
    position: relative; overflow: hidden; isolation: isolate;
}
.ai-band::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(238, 240, 243, .07) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 85% 20%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 60% at 85% 20%, #000 10%, transparent 70%);
}
.ai-band::after {
    content: ""; position: absolute; z-index: -1; left: -15%; bottom: -40%; width: 70vmax; height: 70vmax;
    background: radial-gradient(closest-side, rgba(64, 127, 222, .22), transparent); pointer-events: none;
}
.ai-band h2 { font-size: clamp(2.3rem, 6vw, 4.6rem); letter-spacing: -0.04em; line-height: 1; }
.ai-band h2 em { font-family: var(--serif); font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
.ai-lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 34ch; margin: 1.5rem 0 0; }
.ai-top { display: grid; gap: 2.5rem; align-items: end; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.ai-top .sec-head { margin: 0; }
@media (min-width: 1000px) { .ai-top { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.pipe { display: flex; align-items: center; gap: 0; }
.pipe-node {
    flex: none; font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .02em;
    border: 1px solid rgba(238, 240, 243, .22); border-radius: 999px; padding: .6rem 1rem;
    background: var(--ink-2); white-space: nowrap;
}
.pipe-core {
    color: var(--fill-text); background: var(--fill); border-color: var(--fill);
    box-shadow: 0 0 40px -8px rgba(64, 127, 222, .8);
}
.pipe-link { flex: 1; min-width: 18px; height: 1px; background: rgba(238, 240, 243, .22); position: relative; overflow: hidden; }
.pipe-link i {
    position: absolute; top: -1px; left: 0; width: 34px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-light));
    translate: -40px 0;
}
@media (prefers-reduced-motion: no-preference) {
    .pipe-link i { animation: travel 2.2s cubic-bezier(.5, 0, .5, 1) infinite; }
    .pipe-link + .pipe-core + .pipe-link i { animation-delay: 1.1s; }
}
@keyframes travel { to { left: 100%; translate: 6px 0; } }
@media (max-width: 480px) {
    .pipe-node { font-size: .7rem; padding: .5rem .7rem; }
}

.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .ai-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.ai-list li {
    display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-content: start;
    padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.ai-no {
    grid-row: span 2;
    width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
    font-family: var(--mono); font-size: .85rem; font-weight: 600;
    border: 1px solid rgba(130, 173, 237, .45); color: var(--accent); border-radius: 8px;
    transition: background-color .3s, color .3s;
}
.ai-list li:hover .ai-no { background: var(--fill); color: var(--fill-text); }
/* Ta sama lista z trzema pozycjami zamiast czterech: w dwóch kolumnach
   ostatnia zostawała sama, więc albo jedna kolumna, albo trzy. */
@media (min-width: 760px) and (max-width: 1059px) { .ai-3 { grid-template-columns: 1fr; } }
@media (min-width: 1060px) { .ai-3 { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; } }
.ai-list h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin: .2rem 0 .5rem; }
.ai-list p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 46ch; }

/* ---------- Jak pracuję ---------- */
.steps {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: 2rem; position: relative;
}
.steps li { position: relative; padding-left: 2.75rem; }
.steps::before, .steps::after {
    content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.steps li::before {
    content: ""; position: absolute; left: 4px; top: .35rem; width: 15px; height: 15px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--accent);
}
.step-no { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--muted); }
.steps h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); letter-spacing: -0.025em; margin: .35rem 0 .6rem; }
.steps p { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 30ch; }
@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
    .steps li { padding: 2.75rem 0 0; }
    .steps::before, .steps::after { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 1px; }
    .steps::after { transform-origin: left; transform: scaleX(var(--fill, 1)); }
    .steps li::before { left: 0; top: 4px; }
}
@media (prefers-reduced-motion: no-preference) {
    .js .steps { --fill: 0; }
    .js .steps.in { --fill: 1; }
    .js .steps::after { transition: transform 1.6s var(--ease) .2s; }
    .js .steps li::before { transition: background-color .4s; transition-delay: calc(.4s + var(--i) * .35s); }
    .js .steps.in li::before { background: var(--accent); }
}
@media (prefers-reduced-motion: reduce) { .steps li::before { background: var(--accent); } }

.deploys-list ul, .deploys-list ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.deploys-list li {
    display: grid; gap: .25rem 2rem;
    padding: 1.15rem 0; border-bottom: 1px solid var(--line);
    font-size: 1.1rem; line-height: 1.45;
    transition: background-color .3s, padding .4s var(--ease);
}
@media (min-width: 720px) { .deploys-list li { grid-template-columns: 7rem 1fr; } }
.deploys-list li:hover { background: var(--surface); padding-left: .75rem; }
.deploys-list li p { margin: 0; }
.deploys-list .yr {
    font-family: var(--mono); font-size: .9rem; font-weight: 600;
    align-self: start; justify-self: start;
    background: var(--fill); color: var(--fill-text); border-radius: 4px; padding: .1rem .45rem;
}

/* ---------- Dla kogo to działa ---------- */
.fit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
/* Pięć pozycji w jednej kolumnie robiło bardzo wysoką sekcję; od 980 px idą po dwie
   w wierszu, a hairline u góry i pod każdą pozycją trzyma siatkę równo. */
@media (min-width: 980px) {
    .fit-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2.5rem, 5vw, 4.5rem); }
    /* Nieparzysta ostatnia pozycja bierze oba pola, żeby kreska pod nią szła przez całą szerokość. */
    .fit-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.fit-list li { padding: 1.5rem 0 1.5rem 2.25rem; border-bottom: 1px solid var(--line); position: relative; }
.fit-list li::before {
    content: ""; position: absolute; left: 0; top: 1.95rem;
    width: 12px; height: 12px; border-radius: 3px; background: var(--brand);
}
.fit-list h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin: 0 0 .4rem; }
.fit-list p { margin: 0; color: var(--muted); font-size: 1.02rem; max-width: 52ch; }

/* ---------- O założycielu ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 4rem; } }
.about-photo { margin: 0; }
.about-photo img, .photo-ph {
    width: 100%; aspect-ratio: 4 / 5; border-radius: 14px; display: block;
}
.about-photo img { object-fit: cover; }
.photo-ph {
    display: grid; place-items: center; text-align: center; padding: 1rem;
    border: 1px dashed var(--line);
    background:
        repeating-linear-gradient(135deg, transparent 0 14px, rgba(64, 127, 222, .06) 14px 15px),
        var(--surface);
}
.about-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; letter-spacing: -0.01em; }
.about-copy p { max-width: 62ch; }
.about-copy p + p { color: var(--muted); }
.about-nums {
    display: grid; gap: 1.5rem 2.5rem; margin: clamp(2rem, 4vw, 2.75rem) 0 0;
    padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--line);
}
@media (min-width: 620px) { .about-nums { grid-template-columns: repeat(3, 1fr); } }
.about-nums dt {
    font-family: var(--display); font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: .9; letter-spacing: -0.045em;
    margin-bottom: .5rem;
}
.about-nums dt span { color: var(--muted); font-weight: 300; }
.about-nums dd { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.45; max-width: 24ch; }

/* ---------- Newsroom ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) {
    .news-list li { display: grid; grid-template-columns: 11rem 1fr; column-gap: 2.5rem; align-items: start; }
    .news-list .news-meta { grid-column: 1; grid-row: 1 / span 2; margin: 0; padding-top: .2rem; }
    .news-list h3 { grid-column: 2; grid-row: 1; }
    .news-list li p:not(.news-meta) { grid-column: 2; grid-row: 2; }
}
.news-meta {
    font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem;
}
.news-list h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -0.02em; margin: 0 0 .5rem; }
.news-list h3 a { text-decoration: none; }
.news-list h3 a:hover { color: var(--accent); }
.news-list p:not(.news-meta) { margin: 0; color: var(--muted); font-size: 1rem; max-width: 62ch; }
.news-all { margin: 1.75rem 0 0; }
.news-all a { font-family: var(--mono); font-size: .9rem; font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: .15rem; }

.news-index h1, .news-post h1 { margin-bottom: 1.5rem; }
.news-intro { color: var(--muted); max-width: 60ch; margin-bottom: 2.5rem; }
.news-item { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.news-item:last-of-type { border-bottom: 1px solid var(--line); }
.doc .news-item h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 .5rem; padding: 0; border: 0; text-transform: none; letter-spacing: -0.02em; color: var(--text); }
.doc .news-item h2 a { text-decoration: none; }
.doc .news-item h2 a:hover { color: var(--accent); }
.news-excerpt { color: var(--muted); margin: 0; max-width: 62ch; }
.news-empty { color: var(--muted); }
.news-post .news-meta { margin-bottom: 1rem; }
.news-post .sec-label a { text-decoration: none; }
.news-back { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .9rem; }
.news-back a { text-decoration: none; }

.pagination {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: .85rem; color: var(--muted);
}
.pagination a { text-decoration: none; }
.page-number { order: 2; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: flex-start; gap: 1.25rem; justify-content: space-between;
    padding: 1.35rem 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 15px; height: 15px; margin-top: .45em;
    background:
        linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
    transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(90deg); background-size: 100% 2px, 0 100%; }
.faq summary:hover { color: var(--accent); }
.faq-a { padding: 0 0 1.5rem; }
/* Bez ograniczenia szerokości: odpowiedzi idą na całą szerokość modułu. */
.faq-a p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
    .faq details[open] .faq-a { animation: rise .35s var(--ease); }
}

/* ---------- Kontakt ---------- */
.contact {
    background: var(--ink-deep);
    padding: clamp(5rem, 11vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
    position: relative; overflow: hidden; isolation: isolate;
}
.contact::before {
    content: ""; position: absolute; z-index: -1; right: -20%; top: -30%; width: 80vmax; height: 80vmax;
    background: radial-gradient(closest-side, rgba(64, 127, 222, .25), transparent);
    pointer-events: none;
}
.contact-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
.contact-copy { padding-top: 28px; }
.contact h2 { margin-bottom: 1.25rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.contact h2 { margin-bottom: 1.5rem; }
.mail { margin: 0; }
.sec-note + .mail { margin-top: 1.6rem; }
.mail a {
    font-size: clamp(1.05rem, 2.1vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.4;
    text-decoration: none; overflow-wrap: anywhere;
    background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat;
    padding-bottom: .1em;
    transition: background-size .5s var(--ease), color .3s;
}
.mail a:hover { background-size: 100% 3px; color: var(--accent); }
.mail-copy { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: 1rem 0 0; }
.copy {
    font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    color: var(--text); background: transparent;
    border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem;
    cursor: pointer; transition: border-color .3s var(--ease), color .3s var(--ease);
}
.copy:hover { border-color: var(--accent); color: var(--accent); }
.copy-say { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--accent); }

.card-wrap { padding: 28px; perspective: 1200px; justify-self: center; width: 100%; max-width: 520px; }
.bizcard {
    --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%;
    position: relative;
    background-color: #fbfbfa; color: #0e0f12;
    background-image: radial-gradient(rgba(35, 39, 45, .14) 1px, transparent 1.2px);
    background-size: 13px 13px;
    --text: #0e0f12; --muted: #5d5b54; --todo-bg: #fff1b8; --todo-text: #5a4300;
    border-radius: 8px;
    padding: clamp(1.4rem, 4vw, 2rem);
    min-height: 290px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .6s var(--ease);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
.bizcard::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(255, 255, 255, .55), transparent 40%);
    mix-blend-mode: soft-light;
}
.biz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.biz-name { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 .35rem; }
.biz-org { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin: 0; }
.biz-mark { width: 40px; height: auto; flex: none; border-radius: 6px; }
.biz-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.reg {
    display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 0;
    font-size: .92rem; line-height: 1.4;
}
.reg dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: .2em; }
.reg dd { margin: 0; font-variant-numeric: tabular-nums; }
.cm { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.cm::before, .cm::after { content: ""; position: absolute; background: rgba(238, 240, 243, .55); }
.cm::before { width: 16px; height: 1px; left: 0; top: 22px; }
.cm::after { width: 1px; height: 16px; left: 22px; top: 0; }
.cm.tl { left: -22px; top: -22px; }
.cm.tr { right: -22px; top: -22px; transform: scaleX(-1); }
.cm.bl { left: -22px; bottom: -22px; transform: scaleY(-1); }
.cm.br { right: -22px; bottom: -22px; transform: scale(-1, -1); }
.card-cap {
    margin: 2rem 0 0; text-align: center;
    font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.card-cap::before {
    content: ""; display: inline-block; width: 12px; height: 12px; margin-right: .6rem; vertical-align: -1px;
    border-radius: 50%; border: 1px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}

/* ---------- Stopka ---------- */
.foot { background: var(--ink-deep); border-top: 1px solid rgba(238, 240, 243, .08); font-size: .88rem; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 1.75rem; color: var(--muted); }
.foot-grid { display: grid; gap: 2.25rem 2rem; }
/* Do 1140 px trzy kolumny obok siebie, blok marki nad nimi — .foot-nav znika z układu.
   Od 1140 px blok marki bierze resztę szerokości, a kolumny stoją równo po prawej.
   Próg jest tak wysoko, bo logo ma 234 px: niżej tor marki byłby węższy od logo
   i rozpychałby kolumnę, zamiast trzymać odstęp od menu. */
.foot-nav { display: contents; }
@media (min-width: 680px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) {
    .foot-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; }
    .foot-nav { display: grid; grid-template-columns: repeat(4, max-content); gap: 2.25rem; }
    /* tekst nie dobija do kolumn nawet wtedy, gdy zawija się na całą szerokość toru */
    .foot-brand { padding-right: clamp(1rem, 2vw, 2.5rem); }
}
.foot-brand { display: grid; gap: .9rem; align-content: start; }
@media (min-width: 680px) and (max-width: 1139px) { .foot-brand { grid-column: 1 / -1; } }
.foot-note { max-width: 42ch; line-height: 1.55; }
.foot-h {
    font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text);
}
/* .foot p { margin: 0 } ma tę samą wagę co .foot-h i stało dalej, więc odstęp nigdy nie działał */
.foot .foot-h { margin-bottom: 1.6rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; line-height: 1.35; }
.foot-wip {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
    opacity: .85; white-space: nowrap;
}
.foot-base {
    margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.75rem;
    border-top: 1px solid rgba(238, 240, 243, .08);
    display: grid; gap: .75rem; font-size: .82rem;
}
@media (min-width: 560px) {
    .foot-base { grid-template-columns: 1fr auto; align-items: baseline; }
    .foot-top { text-align: right; }
}
.foot-logo { display: block; opacity: .85; transition: opacity .3s; width: max-content; }
.foot-logo:hover { opacity: 1; }
.foot-logo img { display: block; width: 234px; height: auto; max-width: 100%; }
.foot p { margin: 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-col a:hover { color: var(--accent); }
.foot-top a { white-space: nowrap; }

/* ---------- Podstrona usługi: hero, rozwidlenie, kolejka, suwaki, pierwszy krok ---------- */
/* Hero podstrony dzieli ciemny grunt ze stroną główną, ale nie bierze ani sceny 3D,
   ani pełnej wysokości okna — pod spodem jest jeszcze sześć sekcji, więc hero na
   100vh tylko odsuwałoby treść. Górny padding musi przeskoczyć pasek 64 px. */
.sub-hero {
    background: var(--ink-deep);
    padding: calc(64px + clamp(3.5rem, 8vw, 6rem)) 0 clamp(3.5rem, 8vw, 6rem);
    position: relative; isolation: isolate; overflow: hidden;
}
.sub-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: radial-gradient(rgba(238, 240, 243, .07) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 88% 12%, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse 60% 70% at 88% 12%, #000 10%, transparent 72%);
}
.sub-hero::after {
    content: ""; position: absolute; z-index: -1; left: -12%; bottom: -55%; width: 62vmax; height: 62vmax;
    background: radial-gradient(closest-side, rgba(64, 127, 222, .2), transparent); pointer-events: none;
}
.sub-hero h1 {
    font-size: clamp(2.3rem, 6.4vw, 4.8rem); letter-spacing: -0.04em; line-height: 1;
    max-width: 26ch; text-wrap: balance; margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
/* Dwie kolumny od 1000 px: nagłówek z leadem po lewej, powody po prawej.
   Przy jednej kolumnie prawa połowa hero stała pusta. */
.sub-hero-in { display: grid; gap: clamp(2.25rem, 5vw, 3.25rem); }
@media (min-width: 1000px) {
    .sub-hero-in { grid-template-columns: 1.1fr .9fr; column-gap: clamp(3rem, 6vw, 5rem); align-items: end; }
}
.sub-lead {
    font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.45; letter-spacing: -0.01em;
    max-width: 48ch; margin: 0;
}
.sub-pre {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.45;
    max-width: 34ch; margin: 0 0 1.1rem;
}
.sub-why {
    font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 .9rem;
}
.trig {
    list-style: none; margin: 0; padding: 0; display: grid;
    max-width: 62ch; border-top: 1px solid var(--line);
}
.trig li {
    position: relative; padding: .85rem 0 .85rem 2rem;
    border-bottom: 1px solid var(--line); font-size: 1.05rem; line-height: 1.45;
}
.trig li::before {
    content: ""; position: absolute; left: 0; top: 1.25rem;
    width: 11px; height: 11px; border-radius: 3px; background: var(--brand);
}

/* Rozwidlenie: pierwsza decyzja wdrożenia. Linie rysują pseudoelementy, więc
   w HTML-u nie ma ani jednego pustego znacznika tylko po to, żeby coś połączyć. */
.gate { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.gate-in {
    margin: 0; max-width: 34ch;
    font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: .55rem 1.1rem;
}
.gate-q {
    position: relative; margin: 2.5rem 0 0; max-width: 30ch;
    font-family: var(--display); font-weight: 500;
    font-size: clamp(1.3rem, 2.8vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.15;
}
.gate-q::before, .gate-q::after {
    content: ""; position: absolute; left: 50%; width: 1px; height: 1.25rem; background: var(--line);
}
.gate-q::before { top: -2.5rem; height: 2.5rem; }
.gate-q::after { bottom: -1.25rem; }
.gate-outs { position: relative; display: grid; gap: 1rem; width: 100%; margin-top: 2.5rem; text-align: left; }
.gate-out {
    position: relative;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: clamp(1.35rem, 3vw, 1.9rem);
}
@media (min-width: 820px) {
    .gate-outs { grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
    /* pozioma belka rozwidlenia plus dwa zjazdy w karty */
    .gate-outs::before {
        content: ""; position: absolute; top: -1.25rem; left: 25%; right: 25%; height: 1px; background: var(--line);
    }
    .gate-out::before {
        content: ""; position: absolute; left: 50%; top: -1.25rem; width: 1px; height: 1.25rem; background: var(--line);
    }
}
.gate-out-ai { border-color: rgba(64, 127, 222, .45); }
.gate-tag {
    display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .9rem;
    font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
}
.gate-tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); }
.gate-out-ai .gate-tag { color: var(--accent); }
.gate-out-ai .gate-tag::before { border-color: var(--accent); background: var(--accent); }
.gate-out h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); letter-spacing: -0.025em; margin: 0 0 .6rem; }
.gate-out p { margin: 0; color: var(--muted); font-size: 1rem; max-width: 46ch; }

/* Kolejka transferów. Statusy są tekstem, nie grafiką, więc czytnik ekranu
   dostaje dokładnie to samo co wzrok; kolorowe krawędzie tylko to powtarzają. */
.queue {
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
}
.queue-label {
    font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 1.1rem;
}
.queue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.queue-list li {
    display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .75rem;
    font-family: var(--mono); font-size: .8rem; letter-spacing: .02em;
    padding: .6rem .85rem; border-radius: 8px;
    background: rgba(238, 240, 243, .04); border-left: 2px solid var(--line);
}
.queue-list b { font-weight: 600; }
.queue-list span { color: var(--muted); }
.q-ok { border-left-color: var(--brand-light); }
.q-hold { border-left-color: var(--warn); background: rgba(224, 165, 80, .1); }
.q-hold span { color: var(--warn); }
.q-wait { opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
    .q-hold { animation: retry 2.6s var(--ease) infinite; }
}
@keyframes retry { 50% { border-left-color: rgba(224, 165, 80, .25); } }
.queue-note { margin: 1.1rem 0 0; font-size: .95rem; line-height: 1.5; color: var(--muted); max-width: 42ch; }

/* Co przesuwa termin: każda pozycja to dwa końce i tor między nimi.
   Kropka pełna znaczy szybciej, obwódka — dłużej. */
.dials { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.dials li { padding: clamp(1.1rem, 2.2vw, 1.5rem) 0; border-bottom: 1px solid var(--line); }
.dials h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.025em; margin: 0 0 .8rem; }
/* Oś podpisana raz nad listą, nie przy każdej pozycji: trzy razy to samo
   „szybciej / dłużej” było szumem, a bez podpisu nie było wiadomo, co znaczy
   który koniec. Poniżej 900 px kolumny się składają i oś znika — kolejność
   czytania (najpierw szybciej, potem dłużej) niesie to samo. */
.dials-axis {
    display: none; margin: 0 0 .5rem;
    font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
}
@media (min-width: 900px) {
    .dials-axis { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.5rem, 3vw, 3rem); }
}
.dials-axis span { position: relative; padding-left: 1.6rem; }
.dials-axis span::before { content: ""; position: absolute; left: 0; top: .35em; width: 11px; height: 11px; border-radius: 50%; }
.ax-fast::before { background: var(--brand); }
.ax-slow::before { border: 2px solid var(--line); }

.dial { display: grid; gap: .9rem; }
/* Od 900 px wiersz jest jedną linią: nazwa, koniec szybki, koniec długi. Dzięki
   display: contents oba końce stają się komórkami tej samej siatki co nagłówek,
   więc tabela jest o trzy wysokości nagłówka niższa. */
@media (min-width: 900px) {
    .dials li { display: grid; grid-template-columns: minmax(150px, .7fr) 1fr 1fr; column-gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
    .dials h3 { margin: 0; }
    .dial { display: contents; }
    .dials-axis { grid-template-columns: minmax(150px, .7fr) 1fr 1fr; }
    .ax-fast { grid-column: 2; }
}
.dial-end { position: relative; display: grid; gap: .3rem; padding-left: 1.6rem; font-size: 1.05rem; font-weight: 500; line-height: 1.35; }
.dial-end small { font-weight: 400; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.dial-end::before { content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 11px; border-radius: 50%; }
.dial-fast::before { background: var(--brand); }
.dial-slow::before { border: 2px solid var(--line); }

.first {
    margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 62ch;
    background: var(--fill); color: var(--fill-text);
    border-radius: 18px; padding: clamp(1.75rem, 4vw, 2.75rem);
}
.first-label {
    font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    margin: 0 0 1rem; opacity: .85;
}
.first-lead {
    font-family: var(--display); font-weight: 500;
    font-size: clamp(1.35rem, 3vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.2;
    margin: 0 0 1rem; text-wrap: balance;
}
.first-note { margin: 0; font-size: 1.02rem; line-height: 1.55; opacity: .92; }

/* ---------- Strony podrzędne (polityka prywatności) ---------- */
.doc { padding: clamp(7rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 6rem); }
.doc-in { max-width: calc(68ch + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.doc .sec-label::before { content: "§"; }
.doc h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 2.75rem 0 .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: .5rem; }
.doc li::marker { color: var(--muted); }
.doc a { text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.doc a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

/* Karty edytora: style dostarcza Ghost (card_assets), ale default.hbs ich nie ładuje — strona nie używa kart */
.kg-width-wide, .kg-width-full { max-width: 100%; }

/* ---------- Redukcja ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Druk ---------- */
@media print {
    .topbar, .scene, .tape, .prod-vis, .rail-head, .scroll-cue, .copy, .skip, .hero-bg, .seam { display: none !important; }
    .sub-hero::before, .sub-hero::after { display: none !important; }
    .first { color: #000 !important; border: 1px solid #000; }
    .hero, .sub-hero, .prod, .contact, .foot, .first { background: #fff !important; --text: #000; --muted: #333; color: #000; }
    /* Na papierze karuzela nie ma sensu — wszystkie karty jedna pod drugą. */
    .rail { display: block; overflow: visible; padding: 0; }
    .prod::after { display: none; }
    .prod { width: auto; border: 1px solid #000; break-inside: avoid; margin-bottom: 1rem; }
    .prod::before { display: none; }
    .hero { min-height: 0; padding: 0; }
    .bizcard { box-shadow: none; border: 1px solid #000; }
    .cm::before, .cm::after { background: #000; }
}
