/* Wiseant Labs - język rysunku technicznego: papier milimetrowy w hero, cienkie linie,
   numeracja sekcji, dane w kroju maszynowym. Jeden kolor chłodny (akcent i stany
   interaktywne) i jeden sygnałowy (bursztyn Wiseant, tylko na ciemnym tle). */

@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
    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: "Archivo"; src: url(fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
    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: "Plex Mono"; src: url(fonts/plexmono-400-ext.woff2) format("woff2"); font-weight: 400; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-600-ext.woff2) format("woff2"); font-weight: 600; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plexmono-600.woff2) format("woff2"); font-weight: 600; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --paper: #f1f2ec;
    --paper-2: #e6e8df;
    --sheet: #fbfbf8;
    --ink: #0d1117;
    --ink-2: #454b52;
    --ink-3: #6b7178;
    --rule: #0d1117;
    --hair: rgba(13, 17, 23, .14);
    --grid: rgba(13, 17, 23, .055);
    --cold: #2446d8;
    --cold-soft: #dfe6ff;
    --amber: #f2a900;
    --ok: #0d7a4e;
    --night: #0d1117;
    --night-ink: #eceee6;
    --night-2: #9aa2a9;
    --night-hair: rgba(236, 238, 230, .16);
    --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0f1318;
        --paper-2: #151a20;
        --sheet: #171d24;
        --ink: #eceee6;
        --ink-2: #b5bbc0;
        --ink-3: #8b9298;
        --rule: #eceee6;
        --hair: rgba(236, 238, 230, .15);
        --grid: rgba(236, 238, 230, .045);
        --cold: #8aa4ff;
        --cold-soft: #1c2748;
        --ok: #4fd39b;
        --night: #06080b;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --paper: #0f1318; --paper-2: #151a20; --sheet: #171d24;
    --ink: #eceee6; --ink-2: #b5bbc0; --ink-3: #8b9298; --rule: #eceee6;
    --hair: rgba(236, 238, 230, .15); --grid: rgba(236, 238, 230, .045);
    --cold: #8aa4ff; --cold-soft: #1c2748; --ok: #4fd39b; --night: #06080b;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 17px/1.6 var(--sans); font-stretch: 100%;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.04; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 36px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Papier milimetrowy: siatka 8 px + mocniejsza co 40 px */
.grid-paper {
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}

/* ---------- Nagłówek ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 66px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-word, .footer-brand { font-family: var(--sans); font-weight: 800; font-stretch: 112%; font-size: 1.2rem; letter-spacing: -.01em; text-transform: uppercase; }
.brand-word em, .footer-brand em { font-style: normal; font-weight: 400; font-stretch: 100%; margin-left: .18em; color: var(--cold); }
.brand-sub { font: 400 .66rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 520px) { .brand-sub { display: none; } }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font: 500 .9rem var(--sans); text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 900px) { .nav a:not(.btn) { display: none; } }

/* ---------- Przyciski ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 26px;
    font: 650 1rem var(--sans); font-stretch: 100%; letter-spacing: .005em; text-decoration: none;
    background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn::after { content: "→"; font-family: var(--mono); transition: transform .15s ease; }
.btn:hover { background: var(--cold); border-color: var(--cold); color: var(--sheet); }
.btn:hover::after { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-quiet:hover { background: var(--sheet); color: var(--ink); border-color: var(--rule); }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--rule); }
.hero-in { display: grid; gap: 48px; padding-top: 56px; padding-bottom: 56px; align-items: center; }
@media (min-width: 1020px) { .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; padding-top: 96px; padding-bottom: 96px; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 400 .76rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 26px; }
.kicker::before { content: ""; width: 22px; height: 1.5px; background: var(--cold); }
.kicker-inv { color: var(--night-2); }
.kicker-inv::before { background: var(--amber); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); font-weight: 780; font-stretch: 88%; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; max-width: 14em; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 34em; margin: 26px 0 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Rysunek techniczny urządzeń */
.drawing { margin: 0; background: var(--sheet); border: 1px solid var(--rule); padding: 26px 22px 16px; }
.drawing svg { width: 100%; height: auto; display: block; }
.d-floor { stroke: var(--rule); stroke-width: 1.5; }
.d-hatch line { stroke: var(--ink-3); stroke-width: 1; }
.d-wall { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 4; }
.d-body { fill: var(--paper); stroke: var(--rule); stroke-width: 1.6; }
.d-screen { fill: var(--cold-soft); stroke: var(--cold); stroke-width: 1; }
.d-ui { stroke: var(--cold); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.d-ui-btn { fill: var(--cold); }
.d-part { fill: var(--ink); }
.d-part-o { fill: none; stroke: var(--rule); stroke-width: 1.2; }
.d-wave { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; }
.d-dim line { stroke: var(--ink-3); stroke-width: 1; }
.d-lead { stroke-dasharray: 2 3; }
.d-lead-s { stroke: var(--ink-3); stroke-width: 1; }
.d-tag circle { fill: var(--sheet); stroke: var(--rule); stroke-width: 1.2; }
.d-tag text { font: 600 13px var(--mono); fill: var(--ink); }
.d-cap { font: 400 12.5px var(--mono); fill: var(--ink-2); }

/* Zdjęcia w jednym chłodnym kolorze - scala niską rozdzielczość z resztą grafiki */
.duo { background: var(--cold); }
.duo img { filter: grayscale(1) contrast(1.12) brightness(1.06); mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .duo img { mix-blend-mode: multiply; filter: grayscale(1) contrast(1.2) brightness(1.25); } }

/* ---------- Sekcje ---------- */
.sec { padding: 80px 0 88px; border-bottom: 1px solid var(--rule); }
@media (min-width: 1020px) { .sec { padding: 112px 0 120px; } }
.sec-alt { background: var(--paper-2); }
.sec-head { display: grid; gap: 14px 40px; margin-bottom: 52px; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.sec-no { font: 400 .8rem/2.4 var(--mono); color: var(--cold); border-top: 1.5px solid var(--cold); width: 3rem; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 760; font-stretch: 90%; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.sec-intro { margin: 0; color: var(--ink-2); font-size: 1.05rem; max-width: 32em; }
@media (min-width: 900px) { .sec-intro { padding-top: 6px; } }

/* 01 - obszary */
.areas { display: grid; border-top: 1px solid var(--rule); border-left: 1px solid var(--hair); }
@media (min-width: 680px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .areas { grid-template-columns: repeat(3, 1fr); } }
.area { padding: 28px 26px 32px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--paper); transition: background .15s ease; }
.sec-alt .area { background: var(--paper-2); }
.area:hover { background: var(--sheet); }
.area-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.ico { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.area h3 { font-size: 1.2rem; font-weight: 720; font-stretch: 95%; margin-bottom: 10px; }
.area p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.area-open { background: var(--ink) !important; color: var(--paper); display: flex; flex-direction: column; }
.area-open p { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.arrow { margin-top: auto; padding-top: 22px; font: 600 .95rem var(--sans); color: var(--paper); text-decoration: none; }
.arrow::after { content: "  →"; font-family: var(--mono); }
.arrow:hover { color: var(--amber); }

/* 02 - realizacja */
.sec-ink { background: var(--night); color: var(--night-ink); border-bottom-color: var(--night); }
.sec-ink .sec-no { color: var(--amber); border-top-color: var(--amber); }
.sec-ink .sec-intro { color: var(--night-2); }
.case { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1020px) { .case { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 64px; } }
.case-media { border: 1px solid var(--night-hair); max-width: 380px; }
.case-media img { width: 100%; }
.case-facts { margin: 0 0 32px; border-top: 1px solid var(--night-hair); }
.case-facts div { display: grid; gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--night-hair); }
@media (min-width: 640px) { .case-facts div { grid-template-columns: 8rem 1fr; } }
.case-facts dt { font: 400 .74rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--amber); }
.case-facts dd { margin: 0; color: var(--night-ink); }
.log { font: 400 .84rem/1.5 var(--mono); border: 1px solid var(--night-hair); background: rgba(236, 238, 230, .03); }
.log-head { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--night-hair); color: var(--night-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.log-row { display: grid; grid-template-columns: 5.2em 6.4em 1fr; gap: 12px; margin: 0; padding: 9px 16px; border-bottom: 1px solid rgba(236, 238, 230, .07); }
.log-row time { color: var(--night-2); }
.log-row b { font-weight: 600; color: var(--amber); }
.log-ok { border-bottom: 0; }
.log-ok b, .log-ok span { color: #6fe0ae; }
@media (max-width: 480px) { .log-row { grid-template-columns: 5.2em 1fr; } .log-row span { grid-column: 1 / -1; } }
.js .log .log-row { opacity: 0; transition: opacity .35s ease; }
.js .log .log-row.on { opacity: 1; }
.case-note { margin: 24px 0 0; color: var(--night-2); }
.case-note a { color: var(--night-ink); text-underline-offset: 4px; font-weight: 600; }
.case-note a:hover { color: var(--amber); }

/* 03 - proces */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 680px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process li { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--hair); position: relative; }
@media (min-width: 1020px) { .process li { border-bottom: 0; padding-right: 32px; } .process li + li { padding-left: 26px; border-left: 1px solid var(--hair); } }
.process span { display: block; font: 400 .78rem var(--mono); color: var(--cold); margin-bottom: 40px; }
.process h3 { font-size: 1.2rem; font-weight: 720; font-stretch: 95%; margin-bottom: 10px; }
.process p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* 04 - współpraca */
.coop { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1020px) { .coop { grid-template-columns: 1fr 1fr; gap: 64px; } }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); min-width: 400px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.compare thead th { font: 720 1.05rem var(--sans); font-stretch: 95%; border-bottom: 1px solid var(--rule); }
.compare thead th + th, .compare td { border-left: 1px solid var(--hair); }
.compare tbody th { font: 400 .74rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); width: 42%; }
.compare td { font-weight: 550; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.services li { padding: 22px 0; border-bottom: 1px solid var(--hair); }
.services h3 { font-size: 1.12rem; font-weight: 720; font-stretch: 95%; margin-bottom: 6px; }
.services p { margin: 0; color: var(--ink-2); }

/* 05 - zasady */
.principles { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); column-gap: 64px; } }
.principles div { padding: 24px 0 26px; border-bottom: 1px solid var(--hair); }
.principles dt { font-weight: 720; font-stretch: 95%; font-size: 1.12rem; margin-bottom: 6px; }
.principles dt::before { content: "■"; color: var(--cold); font-size: .6em; vertical-align: .25em; margin-right: 12px; }
.principles dd { margin: 0; color: var(--ink-2); }

/* 06 - pytania */
.faq { border-top: 1px solid var(--rule); max-width: 920px; }
@media (min-width: 900px) { .faq { margin-left: calc(5rem + 40px); } }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 650; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--mono); color: var(--cold); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 40px 24px 0; margin: 0; max-width: 46em; }

/* Kontakt */
.contact { background: var(--night); color: var(--night-ink); padding: 96px 0 104px; }
.contact-in { display: grid; gap: 48px; align-items: end; }
@media (min-width: 1020px) { .contact-in { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 760; font-stretch: 88%; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; margin-bottom: 20px; }
.contact-lead { color: var(--night-2); font-size: 1.1rem; margin: 0; max-width: 30em; }
.contact-links { border-top: 1px solid var(--night-hair); }
.contact-links a {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px;
    padding: 22px 0; border-bottom: 1px solid var(--night-hair); text-decoration: none;
    font: 700 clamp(1.3rem, 3vw, 2rem)/1.1 var(--sans); font-stretch: 92%; overflow-wrap: anywhere;
    transition: color .15s ease;
}
.contact-links a span { font: 400 .74rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--night-2); order: -1; }
.contact-links a::after { content: "→"; font-family: var(--mono); font-weight: 400; color: var(--amber); }
.contact-links a:hover { color: var(--amber); }

/* Treść prawna i 404 */
.prose { padding-top: 72px; padding-bottom: 88px; max-width: 824px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 30px; }
.prose h2 { font-size: 1.2rem; font-weight: 720; margin: 34px 0 10px; }
.prose p { color: var(--ink-2); }
.prose a:not(.btn) { color: var(--cold); }

/* Stopka */
.footer { border-top: 1px solid var(--rule); padding: 44px 0 52px; font-size: .92rem; background: var(--paper); }
.footer-in { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-in { grid-template-columns: 1.3fr 1fr 1.4fr; } }
.footer-brand { margin: 0 0 6px; font-size: 1.1rem; }
.footer-h { font: 400 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }
.footer p { margin-bottom: .5em; }
.footer a { text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .log .log-row { opacity: 1; }
}

/* Wyróżniona liczba w hero */
.stat { display: flex; align-items: center; gap: 18px; margin: 30px 0 0; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--hair); max-width: 34em; }
.stat strong { font: 800 clamp(2.6rem, 5vw, 3.6rem)/.9 var(--sans); font-stretch: 80%; letter-spacing: -.03em; color: var(--cold); white-space: nowrap; }
.stat span { font-size: 1.02rem; line-height: 1.4; color: var(--ink); font-weight: 550; }
.case-facts dd strong { color: var(--amber); font-weight: 700; }
