/* ==========================================================================
   RADEK MAJAK — druk 3D · skanowanie 3D · termowizja · serwisy WWW
   Motyw: ciemne hero + jasne sekcje treści. Czerń + techniczny pomarańcz.
   ========================================================================== */

:root {
    --ink: #09090b;
    --ink-2: #101014;
    --ink-3: #17171c;
    --ink-4: #1e1e25;
    --ink-5: #2a2a33;
    --paper: #ffffff;
    --paper-alt: #f4f4f5;
    --paper-3: #ececed;

    --text-dark: #09090b;
    --text-gray: #52525b;
    --text-light: #fafafa;
    --muted-dark: #a1a1aa;

    --accent: #ea580c;
    --accent-hover: #c2410c;
    --accent-soft: #fb923c;
    --accent-bright: #fdba74;
    --accent-pale: #ffedd5;

    --border: #e4e4e7;
    --border-strong: #d4d4d8;
    --border-dark: #27272a;
    --line-light: rgba(255, 255, 255, 0.09);

    --f-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --container: 1200px;
    --gutter: 20px;
    --radius: 4px;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--f-body);
    background-color: var(--paper);
    color: var(--text-dark);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .brand, .eyebrow, .btn, .tl-num {
    font-family: var(--f-head);
    font-weight: 700;
    letter-spacing: -0.02em;
}

img, svg, canvas { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

::selection { background: var(--accent); color: #fff; }

/* ---------- DOSTĘPNOŚĆ ---------- */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff;
    padding: 1rem 1.5rem; font-weight: 700; z-index: 2000;
}
.skip-link:focus { left: 20px; top: 20px; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ---------- UKŁAD ---------- */
.container { width: min(var(--container), calc(100% - (var(--gutter) * 2))); margin-inline: auto; }
.container--narrow { --container: 900px; }

.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; }

/* ---------- PRZYCISKI ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    font-size: .82rem; text-transform: uppercase; letter-spacing: 1.2px;
    padding: 1rem 1.8rem; border: 2px solid var(--text-dark);
    background: transparent; cursor: pointer;
    transition: transform .18s var(--ease), background-color .18s, color .18s, border-color .18s, box-shadow .18s;
    position: relative;
}
.btn .ic { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 8px 24px rgba(234,88,12,.32); }

.btn-outline { background: transparent; color: var(--text-dark); }
.btn-outline:hover { background: var(--text-dark); color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: var(--accent); background: rgba(234,88,12,.12); color: #fff; }

.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); border-color: var(--accent); }

.btn-ghost { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.btn-ghost:hover { border-color: var(--accent); background: rgba(234,88,12,.14); }

.btn-sm { padding: .62rem 1.1rem; font-size: .72rem; letter-spacing: 1px; }
.btn-block { width: 100%; }

/* ---------- PASEK POSTĘPU ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px;
    background: transparent; z-index: 1200; pointer-events: none;
}
.scroll-progress span {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent-hover), var(--accent), var(--accent-bright));
    box-shadow: 0 0 12px rgba(234,88,12,.7);
}

/* ---------- NAGŁÓWEK ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color .3s var(--ease), border-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(9,9,11,.72), rgba(9,9,11,0));
    pointer-events: none; transition: opacity .3s;
}
.site-header.is-solid {
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom-color: var(--text-dark);
    box-shadow: 0 6px 24px rgba(0,0,0,.07);
}
.site-header.is-solid::before { opacity: 0; }

.nav {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-cube {
    width: 30px; height: 30px; color: var(--accent);
    display: grid; place-items: center; flex: none;
    animation: cubeSpin 9s linear infinite;
}
.brand-cube svg { width: 100%; height: 100%; }
@keyframes cubeSpin { 0%,100% { transform: rotate(0deg) } 50% { transform: rotate(180deg) } }

.brand-text {
    display: flex; flex-direction: column; line-height: 1;
    font-size: 1.12rem; text-transform: uppercase; letter-spacing: -.4px;
    color: #fff; transition: color .3s;
}
.brand-text em {
    font-family: var(--f-mono); font-style: normal;
    font-size: .58rem; letter-spacing: 2.4px; text-transform: uppercase;
    color: var(--accent-soft); margin-top: 4px;
}
.site-header.is-solid .brand-text { color: var(--text-dark); }

.nav-links { display: flex; gap: 1.7rem; }
.nav-links a {
    font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
    color: rgba(255,255,255,.78); position: relative; padding: .3rem 0;
    transition: color .25s;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px; background: var(--accent); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.site-header.is-solid .nav-links a { color: var(--text-gray); }
.site-header.is-solid .nav-links a:hover,
.site-header.is-solid .nav-links a.is-active { color: var(--text-dark); }

.nav-cta { display: flex; align-items: center; gap: .8rem; }

.nav-toggle {
    display: none; width: 44px; height: 44px;
    background: transparent; border: 2px solid rgba(255,255,255,.28);
    color: #fff; cursor: pointer; align-items: center; justify-content: center;
    transition: border-color .2s, background-color .2s;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
.site-header.is-solid .nav-toggle { border-color: var(--border-strong); color: var(--text-dark); }

/* ---------- MENU MOBILNE ---------- */
.mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 990;
    background: var(--ink);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 2rem 1.4rem 2.4rem;
    overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .2rem; }
.mobile-menu nav a {
    font-family: var(--f-head); font-weight: 700; font-size: 1.5rem;
    color: #fff; padding: .7rem 0; border-bottom: 1px solid var(--line-light);
    display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu nav a::after { content: '→'; color: var(--accent); font-size: 1.1rem; }
.mobile-menu nav a:hover { color: var(--accent); }
.mobile-menu-foot { display: grid; gap: .7rem; margin-top: 2rem; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal.in.tilt {
    transition: transform .2s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    background: var(--ink);
    color: var(--text-light);
    padding: calc(var(--header-h) + 4.5rem) 0 4rem;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.grid-plane {
    position: absolute; inset: -20% -20% 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 10%, transparent 75%);
    animation: gridDrift 22s linear infinite;
}
.grid-plane--soft { opacity: .55; animation-duration: 34s; }
@keyframes gridDrift { to { background-position: 48px 48px, 48px 48px; } }

.glow {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: .5; pointer-events: none;
}
.glow-a { width: 620px; height: 620px; right: -140px; top: -160px; background: radial-gradient(circle, rgba(234,88,12,.55), transparent 68%); animation: glowFloat 16s ease-in-out infinite; }
.glow-b { width: 520px; height: 520px; left: -180px; bottom: -200px; background: radial-gradient(circle, rgba(251,146,60,.32), transparent 70%); animation: glowFloat 21s ease-in-out infinite reverse; }
.glow-a--soft { opacity: .28; }
@keyframes glowFloat {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50% { transform: translate3d(-40px, 30px, 0) scale(1.12); }
}

#dustCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }

.hero-inner {
    display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr);
    gap: 3.5rem; align-items: center;
}

.status-pill {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--f-mono); font-size: .72rem; letter-spacing: .6px;
    text-transform: uppercase; color: var(--muted-dark);
    border: 1px solid var(--line-light); background: rgba(255,255,255,.035);
    padding: .45rem .9rem; margin-bottom: 1.8rem;
}
.dot-live {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; flex: none;
    box-shadow: 0 0 0 0 rgba(34,197,94,.65);
    animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
    70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.1vw, 4.35rem);
    line-height: 1.02; letter-spacing: -2px; margin-bottom: 1.6rem;
}
.rotator {
    display: inline-block; position: relative; color: var(--accent);
    min-width: 6ch;
}
.rotator::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .075em;
    background: var(--accent); opacity: .45;
}
.rotator-word {
    display: inline-block;
    background: linear-gradient(100deg, var(--accent-bright), var(--accent) 55%, var(--accent-hover));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rotator-word.swap-out { animation: rotOut .32s var(--ease) forwards; }
.rotator-word.swap-in { animation: rotIn .42s var(--ease) forwards; }
@keyframes rotOut { to { opacity: 0; transform: translateY(-14px) } }
@keyframes rotIn { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

.hero-lead {
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    color: #c9c9d1; max-width: 56ch; margin-bottom: 2.4rem;
}
.hero-lead strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.8rem; }

.hero-facts {
    display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 1px; background: var(--line-light);
    border: 1px solid var(--line-light);
}
.hero-facts li {
    background: var(--ink); padding: 1rem .9rem;
    display: flex; flex-direction: column; gap: .15rem;
}
.hero-facts b {
    font-family: var(--f-head); font-size: 1.55rem; line-height: 1;
    color: var(--accent-soft); letter-spacing: -1px;
}
.hero-facts span {
    font-family: var(--f-mono); font-size: .62rem; letter-spacing: .8px;
    text-transform: uppercase; color: var(--muted-dark);
}

.hero-scroll {
    position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    font-family: var(--f-mono); font-size: .6rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted-dark);
}
.ic-scroll { width: 18px; height: 18px; animation: scrollBob 1.8s ease-in-out infinite; }
@keyframes scrollBob { 0%,100% { transform: translateY(0); opacity: .5 } 50% { transform: translateY(5px); opacity: 1 } }

/* ---------- PANEL MASZYNY (animowana drukarka) ---------- */
.hero-visual { position: relative; }

.machine {
    position: relative;
    background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
    border: 1px solid var(--line-light);
    box-shadow: 0 34px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
    padding: 0 0 1.1rem;
}
.machine::after {
    content: ''; position: absolute; inset: -1px; pointer-events: none;
    background: linear-gradient(120deg, transparent 30%, rgba(234,88,12,.16), transparent 70%);
    opacity: 0; transition: opacity .5s;
}
.machine:hover::after { opacity: 1; }

.machine-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem 1rem; border-bottom: 1px solid var(--line-light);
    background: rgba(0,0,0,.35);
}
.machine-title {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--f-mono); font-size: .68rem; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--accent-soft);
}
.machine-meta { font-family: var(--f-mono); font-size: .68rem; color: var(--muted-dark); letter-spacing: 1px; }

.machine-screen {
    position: relative; padding: .6rem .8rem 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(234,88,12,.08), transparent 62%),
        repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
}
.printer-svg { width: 100%; height: auto; }

.machine-hud { padding: 1rem 1.1rem 0; }
.hud-row {
    display: flex; align-items: baseline; justify-content: space-between;
    font-family: var(--f-mono); font-size: .7rem; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--muted-dark); margin-bottom: .5rem;
}
.hud-row b { font-size: 1.5rem; color: #fff; letter-spacing: -1px; font-weight: 700; }
.hud-row b i { font-style: normal; font-size: .85rem; color: var(--muted-dark); }

.hud-bar { height: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.hud-bar span {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent-hover), var(--accent), var(--accent-bright));
    box-shadow: 0 0 10px rgba(234,88,12,.65);
    transition: width .18s linear;
}
.hud-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem;
    margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line-light);
}
.hud-grid div { display: flex; flex-direction: column; gap: .1rem; }
.hud-grid span { font-family: var(--f-mono); font-size: .58rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted-dark); }
.hud-grid b { font-family: var(--f-mono); font-size: .95rem; color: var(--accent-soft); font-weight: 700; }

/* --- animacje drukarki --- */
.print-reveal {
    transform-box: fill-box; transform-origin: 50% 100%;
    animation: printGrow 14s var(--ease) infinite;
}
@keyframes printGrow {
    0%   { transform: scaleY(0); }
    86%  { transform: scaleY(1); }
    93%  { transform: scaleY(1); }
    99%, 100% { transform: scaleY(0); }
}

.noz-y { animation: nozY 14s steps(16, end) infinite; }
@keyframes nozY {
    0%   { transform: translateY(316px); }
    86%  { transform: translateY(130px); }
    93%  { transform: translateY(130px); }
    99%, 100% { transform: translateY(316px); }
}

.noz-x { animation: nozX 1.9s ease-in-out infinite alternate; }
@keyframes nozX { from { transform: translateX(214px); } to { transform: translateX(306px); } }

.hot-tip { animation: tipGlow 1.9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes tipGlow { 0%,100% { opacity: .8; transform: scale(1) } 50% { opacity: 1; transform: scale(1.35) } }

.sparks { animation: sparkFlick .95s steps(2) infinite; }
@keyframes sparkFlick { 0%,100% { opacity: .18 } 50% { opacity: .85 } }

.spool-spin { transform-box: fill-box; transform-origin: center; animation: spoolSpin 3.4s linear infinite; }
@keyframes spoolSpin { to { transform: rotate(360deg) } }

.filament { stroke-dasharray: 6 5; animation: filamentFlow 1.1s linear infinite; }
@keyframes filamentFlow { to { stroke-dashoffset: -22 } }

.dim-lines { animation: dimFade 14s ease-in-out infinite; }
@keyframes dimFade { 0%,100% { opacity: .2 } 50% { opacity: .65 } }

/* ==========================================================================
   PASEK PRZEWIJANY
   ========================================================================== */
.marquee-band {
    background: var(--accent);
    color: #1a0a02;
    border-block: 2px solid var(--ink);
    overflow: hidden;
    padding: .7rem 0;
    position: relative;
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-set {
    display: flex; align-items: center; gap: 1.9rem; padding-right: 1.9rem;
    font-family: var(--f-head); font-weight: 700; font-size: .92rem;
    text-transform: uppercase; letter-spacing: 1.6px; white-space: nowrap;
}
.marquee-set i { font-style: normal; opacity: .55; font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%) } }
.marquee-band:hover .marquee-track { animation-play-state: paused; }

/* ==========================================================================
   SEKCJE — WSPÓLNE
   ========================================================================== */
.section { padding: 6.5rem 0; position: relative; }
.section--alt { background: var(--paper-alt); border-block: 1px solid var(--border); }

.section--dark {
    background: var(--ink);
    color: var(--text-light);
    overflow: hidden;
}
.section--dark .section-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section--dark > .container { position: relative; z-index: 1; }

.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b9b9c2; }
.accent { color: var(--accent-soft); }

/* spotlight za kursorem */
.spotlight::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(234,88,12,.14), transparent 65%);
    opacity: 0; transition: opacity .4s;
}
.spotlight:hover::after { opacity: 1; }

.section-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 2rem; flex-wrap: wrap;
    margin-bottom: 3.6rem; padding-bottom: 1.6rem;
    border-bottom: 2px solid var(--text-dark);
}
.section--dark .section-header { border-bottom-color: var(--line-light); }
.section-header--center { justify-content: center; text-align: center; border-bottom: none; }

.eyebrow {
    display: inline-block; font-family: var(--f-mono);
    font-size: .68rem; letter-spacing: 2.6px; text-transform: uppercase;
    color: var(--accent); margin-bottom: .9rem;
}
.section-header h2 {
    font-size: clamp(1.95rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -1.4px;
}
.section-header p {
    color: var(--text-gray); max-width: 46ch; font-size: 1.02rem;
    padding-bottom: .35rem;
}
.section--dark .section-header p { color: var(--muted-dark); }

/* ==========================================================================
   USŁUGI
   ========================================================================== */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.service-card {
    display: flex; flex-direction: column;
    background: var(--paper); border: 2px solid var(--border-dark);
    padding: 2rem 1.7rem; position: relative; overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
    transform-style: preserve-3d;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform .38s var(--ease);
}
.service-card:hover { box-shadow: 8px 8px 0 var(--accent); border-color: var(--text-dark); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon { width: 62px; height: 62px; color: var(--accent); margin-bottom: 1.3rem; }
.service-icon svg { width: 100%; height: 100%; }
.anim-icon svg * { vector-effect: non-scaling-stroke; }
.anim-icon svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.service-card h3 { font-size: 1.32rem; margin-bottom: .65rem; letter-spacing: -.6px; }
.service-card > p { color: var(--text-gray); font-size: .95rem; margin-bottom: 1.2rem; }
.service-card ul { margin-bottom: 1.5rem; }
.service-card ul li {
    position: relative; padding-left: 1.4rem; margin-bottom: .42rem;
    font-size: .9rem; font-weight: 500;
}
.service-card ul li::before {
    content: '→'; position: absolute; left: 0; top: 0;
    color: var(--accent); font-weight: 700;
}
.card-link {
    margin-top: auto; display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--f-mono); font-size: .72rem; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--text-dark); font-weight: 700;
    padding-top: 1rem; border-top: 1px solid var(--border);
}
.card-link .ic { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.service-card:hover .card-link { color: var(--accent); }
.service-card:hover .card-link .ic { transform: translateX(5px); }

/* animacje ikon usług */
.a-plate { fill: currentColor; opacity: .35; stroke: none; }
.a-l { fill: currentColor; stroke: none; opacity: 0; }
.service-card:hover .a-l { animation: layerIn .5s var(--ease) forwards; }
.service-card:hover .a-l1 { animation-delay: .05s }
.service-card:hover .a-l2 { animation-delay: .18s }
.service-card:hover .a-l3 { animation-delay: .31s }
.service-card:hover .a-l4 { animation-delay: .44s }
@keyframes layerIn { from { opacity: 0; transform: translateY(-6px) } to { opacity: 1; transform: none } }

.a-head { animation: headSlide 2.6s ease-in-out infinite; }
@keyframes headSlide { 0%,100% { transform: translateX(-8px) } 50% { transform: translateX(8px) } }
.a-tip { fill: currentColor; stroke: none; animation: tipGlow 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

.a-frame { fill: none; }
.a-obj, .a-obj2 { fill: none; opacity: .55; }
.a-laser { stroke: currentColor; stroke-width: 2.4; animation: laserSweep 2.6s ease-in-out infinite; }
@keyframes laserSweep { 0%,100% { transform: translateY(13px); opacity: .3 } 50% { transform: translateY(47px); opacity: 1 } }

.a-d1, .a-d2, .a-d3 { fill: currentColor; stroke: none; }
.a-code { fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; }
.service-card:hover .a-code { animation: drawCode 1.1s var(--ease) forwards; }
@keyframes drawCode { to { stroke-dashoffset: 0 } }

.a-hot { fill: currentColor; opacity: .3; animation: hotPulse 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hotPulse { 0%,100% { opacity: .22; transform: scale(.85) } 50% { opacity: .6; transform: scale(1.12) } }
.a-wave { stroke-dasharray: 8 5; animation: waveFlow 1.4s linear infinite; }
@keyframes waveFlow { to { stroke-dashoffset: -26 } }

/* ==========================================================================
   PORTFOLIO WWW
   ========================================================================== */
.work-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 2rem;
}

.work-card {
    background: var(--ink-2);
    border: 1px solid var(--line-light);
    display: flex; flex-direction: column;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.work-card:hover {
    transform: translateY(-6px);
    border-color: rgba(234,88,12,.55);
    box-shadow: 0 26px 60px rgba(0,0,0,.55);
}

.shot-frame { display: block; position: relative; }
.shot-bar {
    display: flex; align-items: center; gap: 6px;
    padding: .6rem .85rem;
    background: var(--ink-4); border-bottom: 1px solid var(--line-light);
}
.shot-bar i {
    width: 9px; height: 9px; border-radius: 50%;
    background: #3f3f46; flex: none;
}
.shot-bar i:first-child { background: #ef4444; }
.shot-bar i:nth-child(2) { background: #f59e0b; }
.shot-bar i:nth-child(3) { background: #22c55e; }
.shot-bar em {
    font-family: var(--f-mono); font-style: normal; font-size: .7rem;
    color: var(--muted-dark); margin-left: .6rem; letter-spacing: .5px;
}
.shot-bar .ic-ext {
    width: 15px; height: 15px; margin-left: auto; color: var(--muted-dark);
    transition: color .25s, transform .25s var(--ease);
}
.work-card:hover .ic-ext { color: var(--accent); transform: translate(2px,-2px); }

.shot-body {
    position: relative; display: block;
    aspect-ratio: 16 / 10; overflow: hidden; background: #0b0b0e;
}
.shot-body img, .shot-body .mock {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.shot-body img { z-index: 2; }
.shot-body .mock { z-index: 1; transition: transform .6s var(--ease); }
.work-card:hover .shot-body .mock,
.work-card:hover .shot-body img { transform: scale(1.045); }
.shot-body::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
    background: linear-gradient(180deg, transparent 55%, rgba(9,9,11,.55));
    opacity: .5; transition: opacity .4s;
}
.work-card:hover .shot-body::after { opacity: .18; }

.work-info { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
    font-family: var(--f-mono); font-size: .6rem; letter-spacing: 1.1px;
    text-transform: uppercase; color: var(--accent-soft);
    border: 1px solid rgba(234,88,12,.4); background: rgba(234,88,12,.09);
    padding: .22rem .55rem;
}
.work-info h3 { font-size: 1.22rem; letter-spacing: -.5px; }
.work-info p { font-size: .93rem; color: var(--muted-dark); }
.text-link {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: auto;
    font-family: var(--f-mono); font-size: .76rem; letter-spacing: .6px;
    color: var(--accent); font-weight: 700;
}
.text-link .ic { width: 14px; height: 14px; }
.text-link:hover { color: var(--accent-bright); text-decoration: underline; }

/* animacje w makietach */
.mock-tick { animation: tickSlide 26s linear infinite; }
@keyframes tickSlide { from { transform: translateX(0) } to { transform: translateX(-620px) } }
.mock-pulse { animation: hotPulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mock-count { animation: countFlick 3s steps(6) infinite; }
@keyframes countFlick { 0% { opacity: 1 } 50% { opacity: .45 } 100% { opacity: 1 } }
.mock-prog { animation: progGrow 3s ease-in-out infinite; transform-box: fill-box; transform-origin: left; }
@keyframes progGrow { 0% { transform: scaleX(.18) } 100% { transform: scaleX(1) } }
.mock-glow { animation: glowSoft 6s ease-in-out infinite; }
@keyframes glowSoft { 0%,100% { opacity: .06 } 50% { opacity: .14 } }
.mock-route { stroke-dashoffset: 0; animation: routeDash 3s linear infinite; }
@keyframes routeDash { to { stroke-dashoffset: -44 } }

/* --- Podział: co dostajesz + terminal --- */
.web-split {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr);
    gap: 2.5rem; margin-top: 3.5rem; align-items: start;
}
.web-includes h3 { font-size: 1.45rem; margin-bottom: 1.4rem; color: #fff; }
.tick-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.tick-grid li {
    display: flex; gap: .7rem; align-items: flex-start;
    border: 1px solid var(--line-light); background: rgba(255,255,255,.028);
    padding: .85rem .9rem;
    transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.tick-grid li:hover { border-color: rgba(234,88,12,.5); background: rgba(234,88,12,.07); transform: translateX(3px); }
.tick-grid .ic { width: 18px; height: 18px; color: var(--accent); margin-top: .18rem; }
.tick-grid span { font-size: .86rem; color: var(--muted-dark); line-height: 1.45; }
.tick-grid b { color: #fff; display: block; font-weight: 600; }

.terminal {
    background: #07070a; border: 1px solid var(--line-light);
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    display: flex; flex-direction: column;
}
.terminal-bar {
    display: flex; align-items: center; gap: 6px;
    padding: .6rem .85rem; background: var(--ink-4); border-bottom: 1px solid var(--line-light);
}
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3f3f46; }
.terminal-bar i:first-child { background: #ef4444 }
.terminal-bar i:nth-child(2) { background: #f59e0b }
.terminal-bar i:nth-child(3) { background: #22c55e }
.terminal-bar span { font-family: var(--f-mono); font-size: .68rem; color: var(--muted-dark); margin-left: .6rem; }
.terminal-body {
    font-family: var(--f-mono); font-size: .79rem; line-height: 1.85;
    padding: 1.1rem 1.1rem; color: #d4d4d8;
    min-height: 260px; white-space: pre-wrap; word-break: break-word;
}
.terminal-body .p { color: var(--accent-soft); }
.terminal-body .ok { color: #4ade80; }
.terminal-body .cmd { color: #fff; }
.terminal-body .dim { color: #71717a; }
.caret {
    display: inline-block; width: 8px; height: 1.05em; background: var(--accent);
    vertical-align: text-bottom; animation: caretBlink 1s steps(2) infinite;
}
@keyframes caretBlink { 0%,100% { opacity: 1 } 50% { opacity: 0 } }
.terminal-note {
    padding: 1rem 1.1rem; border-top: 1px solid var(--line-light);
    font-size: .82rem; color: var(--muted-dark); background: rgba(255,255,255,.02);
}

/* ==========================================================================
   PANELE (skan / termowizja)
   ========================================================================== */
.panel {
    border: 1px solid var(--border-strong); background: var(--paper);
    display: flex; flex-direction: column;
    box-shadow: 10px 10px 0 rgba(9,9,11,.08);
}
.panel--dark { border-color: var(--line-light); background: var(--ink-2); box-shadow: 0 26px 64px rgba(0,0,0,.55); }
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem 1rem; border-bottom: 1px solid var(--border);
    background: var(--paper-alt);
}
.panel--dark .panel-head { background: rgba(0,0,0,.4); border-bottom-color: var(--line-light); }
.ph-title {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--f-mono); font-size: .68rem; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-dark);
}
.ph-title .ic { width: 16px; height: 16px; color: var(--accent); }
.panel--dark .ph-title { color: #fff; }
.ph-meta { font-family: var(--f-mono); font-size: .68rem; color: var(--accent); letter-spacing: .8px; }
.panel-body { position: relative; }
.panel-foot {
    display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
    padding: .6rem 1rem; border-top: 1px solid var(--border);
    font-family: var(--f-mono); font-size: .62rem; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--text-gray); background: var(--paper-alt);
}
.panel--dark .panel-foot { background: rgba(0,0,0,.32); border-top-color: var(--line-light); color: var(--muted-dark); }
.panel-foot b { color: var(--accent); }
.panel-foot .dot-live { margin-left: auto; }
.panel-caption { margin-top: 1rem; font-size: .86rem; color: var(--text-gray); }
.section--dark .panel-caption { color: var(--muted-dark); }

/* ---------- SPLIT (skanowanie) ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: 3.5rem; align-items: center; }
.split-text h2 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); line-height: 1.07; letter-spacing: -1.4px; margin-bottom: 1.3rem; }
.split-text > p { color: var(--text-gray); font-size: 1.02rem; margin-bottom: 2rem; max-width: 58ch; }

.flow-steps { counter-reset: flow; margin-bottom: 1.8rem; }
.flow-steps li {
    display: flex; gap: 1.1rem; padding: 1rem 0;
    border-bottom: 1px dashed var(--border-strong);
}
.flow-steps li:last-child { border-bottom: none; }
.flow-num {
    flex: none; width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--ink); color: #fff;
    font-family: var(--f-mono); font-size: .76rem; font-weight: 700;
    transition: background-color .3s, transform .3s var(--ease);
}
.flow-steps li:hover .flow-num { background: var(--accent); transform: rotate(-6deg) scale(1.06); }
.flow-steps h4 { font-size: 1.02rem; margin-bottom: .2rem; }
.flow-steps p { font-size: .9rem; color: var(--text-gray); }

.checklist li {
    position: relative; padding: .72rem .9rem .72rem 2.4rem;
    border: 2px solid var(--text-dark); margin-bottom: .5rem;
    font-weight: 500; font-size: .92rem; background: var(--paper);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.checklist li::before {
    content: ''; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
    width: 11px; height: 11px; background: var(--accent);
}
.checklist li:hover { transform: translateX(4px); box-shadow: -4px 4px 0 var(--accent); }
.section--alt .checklist li { background: #fff; }
.checklist--dark li { background: #fff; }

/* --- animacja skanu --- */
.scan-stage { aspect-ratio: 1 / 1; background:
    radial-gradient(circle at 50% 45%, rgba(234,88,12,.07), transparent 60%), #fff; }
.scan-svg { width: 100%; height: 100%; }
.scan-grid { opacity: .6; }
.scan-stage::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(9,9,11,.045) 0 1px, transparent 1px 4px);
}
#pointCloud circle {
    fill: var(--accent); opacity: 0;
    transition: opacity .35s ease, r .35s var(--ease);
}
#pointCloud circle.on { opacity: .92; }
#pointCloud circle.hot { fill: #7c2d12; }
.cloud-spin { transform-box: fill-box; transform-origin: center; animation: cloudSpin 12s ease-in-out infinite; }
@keyframes cloudSpin {
    0%,100% { transform: scaleX(1) rotate(0deg) }
    50% { transform: scaleX(.86) rotate(3deg) }
}
#scanLaser { opacity: .9; }

/* ==========================================================================
   TERMOGRAFIA
   ========================================================================== */
.thermal-wrap {
    display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
    gap: 2.8rem; align-items: start;
}
.thermal-stage { aspect-ratio: 4 / 3; background: #000; overflow: hidden; }
#thermalCanvas { width: 100%; height: 100%; display: block; image-rendering: auto; }

.thermal-reticle { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.thermal-stage:hover .thermal-reticle,
.thermal-reticle.on { opacity: 1; }
.thermal-reticle .rh, .thermal-reticle .rv { position: absolute; background: rgba(255,255,255,.45); }
.thermal-reticle .rh { left: 0; right: 0; height: 1px; top: var(--ry, 50%); }
.thermal-reticle .rv { top: 0; bottom: 0; width: 1px; left: var(--rx, 50%); }
.thermal-reticle b {
    position: absolute; left: var(--rx, 50%); top: var(--ry, 50%);
    transform: translate(12px, -140%);
    font-family: var(--f-mono); font-size: .74rem; font-weight: 700;
    background: #000; color: #fde047; border: 1px solid rgba(253,224,71,.55);
    padding: .15rem .45rem; white-space: nowrap;
}

.thermal-scale { position: absolute; right: 12px; top: 12px; bottom: 12px; width: 52px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; pointer-events: none; }
.scale-bar {
    flex: 1; width: 12px;
    background: linear-gradient(0deg, #050014, #2a0a4a, #7a1150, #c81e2c, #ef6a12, #f9c22b, #fffbe8);
    border: 1px solid rgba(255,255,255,.35);
}
.thermal-scale span:not(.scale-bar) {
    font-family: var(--f-mono); font-size: .58rem; color: #fff;
    text-shadow: 0 1px 3px #000; letter-spacing: .5px;
}
.thermal-scale .scale-max { order: -1; }
.thermal-scale .scale-mid { position: absolute; top: 50%; transform: translateY(-50%); right: 16px; }
.thermal-scale .scale-min { order: 1; }

.thermal-hint {
    position: absolute; left: 12px; bottom: 12px;
    font-family: var(--f-mono); font-size: .62rem; letter-spacing: 1px;
    text-transform: uppercase; color: rgba(255,255,255,.72);
    background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.16);
    padding: .3rem .6rem; pointer-events: none;
}

.thermal-content h3 { font-size: 1.75rem; margin-bottom: 1rem; color: #fff; }
.thermal-content > p { color: var(--muted-dark); margin-bottom: 2rem; font-size: 1.02rem; max-width: 60ch; }

.use-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }
.use-card {
    border: 1px solid var(--line-light); background: rgba(255,255,255,.03);
    padding: 1.3rem; position: relative; overflow: hidden;
    transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.use-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(320px circle at 100% 0%, rgba(234,88,12,.2), transparent 60%);
    opacity: 0; transition: opacity .35s;
}
.use-card:hover { border-color: rgba(234,88,12,.5); transform: translateY(-4px); }
.use-card:hover::after { opacity: 1; }
.use-card .ic { width: 26px; height: 26px; color: var(--accent); margin-bottom: .9rem; position: relative; z-index: 1; }
.use-card h4 { font-size: 1.02rem; margin-bottom: .45rem; color: #fff; position: relative; z-index: 1; }
.use-card p { font-size: .88rem; color: var(--muted-dark); position: relative; z-index: 1; }

/* ==========================================================================
   GALERIA WYDRUKÓW
   ========================================================================== */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    border: 2px solid var(--text-dark); background: var(--paper);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery-item:hover { transform: translate(-5px,-5px); box-shadow: 9px 9px 0 var(--accent); }
.gallery-img-wrap { position: relative; overflow: hidden; border-bottom: 2px solid var(--text-dark); aspect-ratio: 4/3; background: var(--paper-3); }
.gallery-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%) contrast(1.08);
    transition: filter .45s ease, transform .5s var(--ease);
}
.gallery-item:hover .gallery-img-wrap img { filter: grayscale(0%) contrast(1); transform: scale(1.06); }
.gallery-tag {
    position: absolute; left: 0; top: 0;
    background: var(--ink); color: #fff;
    font-family: var(--f-mono); font-size: .6rem; letter-spacing: 1.4px; text-transform: uppercase;
    padding: .3rem .65rem;
    transform: translateY(-100%); transition: transform .35s var(--ease);
}
.gallery-item:hover .gallery-tag { transform: none; }
.gallery-info { padding: 1.2rem 1.3rem 1.4rem; }
.gallery-info h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.gallery-info p { color: var(--text-gray); font-size: .9rem; }

/* --- Materiały --- */
.materials { margin-top: 4rem; border-top: 2px solid var(--text-dark); padding-top: 2.2rem; }
.materials h3 { font-size: 1.4rem; margin-bottom: 1.3rem; }
.material-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1rem; }
.material {
    border: 1px solid var(--border-strong); background: #fff; padding: 1.1rem 1.2rem;
    display: flex; flex-direction: column; gap: .35rem; position: relative;
    transition: border-color .25s, transform .25s var(--ease);
}
.material:hover { border-color: var(--accent); transform: translateY(-3px); }
.material b { font-family: var(--f-head); font-size: 1.05rem; }
.material span { font-size: .86rem; color: var(--text-gray); }
.material i {
    position: absolute; right: 1rem; top: 1.05rem;
    font-family: var(--f-mono); font-style: normal; font-size: .66rem;
    letter-spacing: .6px; color: var(--accent); font-weight: 700;
}
.material-note { margin-top: 1.2rem; font-size: .86rem; color: var(--text-gray); font-style: italic; }

/* ==========================================================================
   TIMELINE / PROCES
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 1rem; padding-left: 0; }
.timeline-line {
    position: absolute; left: 33px; top: 12px; bottom: 12px; width: 2px;
    background: var(--border-strong);
}
.timeline-line i {
    position: absolute; top: 0; left: 0; width: 100%; height: 0%;
    background: linear-gradient(180deg, var(--accent-bright), var(--accent));
    transition: height .35s linear;
    box-shadow: 0 0 12px rgba(234,88,12,.55);
}

.tl-step {
    display: flex; gap: 1.6rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--border);
    padding: 1.5rem 1.7rem; position: relative;
    transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.tl-step:hover { border-color: var(--text-dark); box-shadow: 6px 6px 0 rgba(234,88,12,.9); transform: translateX(4px); }
.tl-num {
    flex: none; width: 46px; height: 46px;
    display: grid; place-items: center;
    background: var(--ink); color: #fff;
    font-family: var(--f-mono); font-size: .86rem; font-weight: 700;
    position: relative; z-index: 1;
    transition: background-color .3s, transform .35s var(--ease);
}
.tl-step:hover .tl-num { background: var(--accent); transform: rotate(-8deg); }
.tl-body h3 { font-size: 1.16rem; margin-bottom: .35rem; }
.tl-body p { color: var(--text-gray); font-size: .94rem; max-width: 70ch; }
.tl-tag {
    display: inline-block; margin-top: .7rem;
    font-family: var(--f-mono); font-size: .62rem; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--accent);
    border: 1px solid rgba(234,88,12,.35); background: rgba(234,88,12,.07);
    padding: .2rem .55rem;
}

/* ==========================================================================
   O MNIE
   ========================================================================== */
.about-wrap { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 4rem; align-items: start; }
.about-text h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.4rem; letter-spacing: -1.2px; }
.about-text p { color: var(--text-gray); font-size: 1.04rem; margin-bottom: 1.15rem; }
.about-text .checklist { margin: 1.8rem 0 2.2rem; }
.about-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.about-media { display: grid; gap: 1.6rem; }
.about-photo { position: relative; border: 2px solid var(--text-dark); background: var(--paper-alt); padding: 1rem; }
.about-photo img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover;
    box-shadow: 12px 12px 0 var(--accent);
    filter: grayscale(25%) contrast(1.05);
    transition: filter .5s, transform .5s var(--ease);
}
.about-photo:hover img { filter: none; transform: scale(1.012); }
.about-photo figcaption {
    position: absolute; left: 1rem; bottom: 1rem;
    font-family: var(--f-mono); font-size: .62rem; letter-spacing: 1.4px; text-transform: uppercase;
    background: var(--ink); color: #fff; padding: .35rem .7rem;
}

.equipment { border: 1px solid var(--border); background: #fff; padding: 1.6rem 1.7rem; }
.equipment h4 {
    font-family: var(--f-mono); font-size: .7rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1.1rem; font-weight: 700;
}
.equipment li { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.equipment li:last-child { border-bottom: none; padding-bottom: 0; }
.equipment .ic { width: 19px; height: 19px; color: var(--text-dark); margin-top: .2rem; transition: color .25s; }
.equipment li:hover .ic { color: var(--accent); }
.equipment span { font-size: .9rem; color: var(--text-gray); }
.equipment b { color: var(--text-dark); display: block; font-weight: 600; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; gap: .7rem; }
.faq-item {
    background: #fff; border: 2px solid var(--border-strong);
    transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] { border-color: var(--text-dark); box-shadow: 5px 5px 0 var(--accent); }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.4rem; cursor: pointer; list-style: none;
    font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; letter-spacing: -.3px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.ic-chev { width: 20px; height: 20px; color: var(--accent); flex: none; transition: transform .3s var(--ease); }
.faq-item[open] .ic-chev { transform: rotate(180deg); }
.faq-body { padding: 0 1.4rem 1.35rem; }
.faq-body p { color: var(--text-gray); font-size: .95rem; }

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact-box { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 3.5rem; align-items: start; }
.contact-left h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); line-height: 1.08; letter-spacing: -1.4px; margin-bottom: 1.2rem; color: #fff; }
.contact-left > p { color: var(--muted-dark); font-size: 1.02rem; margin-bottom: 2.2rem; max-width: 56ch; }

.contact-form { display: grid; gap: 1rem; }
.chips { border: none; padding: 0; margin: 0 0 .3rem; }
.chips legend {
    font-family: var(--f-mono); font-size: .66rem; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--muted-dark); margin-bottom: .7rem; padding: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { flex: 0 0 100%; width: 100%; }
.chip { position: relative; cursor: pointer; }
.contact-form .chip input,
.chip input {
    position: absolute; opacity: 0; pointer-events: none;
    width: 1px; height: 1px; padding: 0; margin: 0; border: 0;
}
.chip span {
    display: inline-block; padding: .55rem 1rem;
    border: 1px solid var(--line-light); background: rgba(255,255,255,.04);
    font-size: .82rem; font-weight: 500; color: #d4d4d8;
    transition: all .22s var(--ease);
}
.chip:hover span { border-color: rgba(234,88,12,.6); color: #fff; }
.chip input:checked + span {
    background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
    box-shadow: 0 6px 18px rgba(234,88,12,.35);
}
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.form-field { display: grid; gap: .4rem; }
.form-field label {
    font-family: var(--f-mono); font-size: .64rem; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--muted-dark);
}
.form-field .opt { text-transform: none; letter-spacing: .4px; opacity: .7; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: .85rem 1rem;
    border: 1px solid var(--line-light); background: rgba(255,255,255,.045);
    color: #fff; resize: vertical;
    transition: border-color .22s, background-color .22s, box-shadow .22s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #71717a; }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent); background: rgba(234,88,12,.07);
    box-shadow: 0 0 0 3px rgba(234,88,12,.16);
}

.consent-check { display: flex; align-items: flex-start; gap: .65rem; font-size: .8rem; color: var(--muted-dark); cursor: pointer; line-height: 1.5; }
.contact-form .consent-check input {
    width: 18px; height: 18px; padding: 0; margin-top: .18rem;
    flex: none; accent-color: var(--accent); border: 1px solid var(--line-light);
}
.consent-check a { color: var(--accent-soft); text-decoration: underline; }
.form-note { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .8px; color: var(--muted-dark); text-align: center; }

.contact-right { display: grid; gap: .9rem; position: sticky; top: calc(var(--header-h) + 24px); }
.contact-card {
    border: 1px solid var(--line-light); background: rgba(255,255,255,.035);
    padding: 1.3rem 1.4rem; display: grid; gap: .3rem;
    position: relative; overflow: hidden;
    transition: border-color .3s, transform .3s var(--ease), background-color .3s;
}
.contact-card:hover { border-color: rgba(234,88,12,.55); transform: translateX(4px); background: rgba(234,88,12,.06); }
.contact-card > .ic { width: 22px; height: 22px; color: var(--accent); margin-bottom: .5rem; }
.contact-card strong {
    font-family: var(--f-mono); font-size: .64rem; letter-spacing: 1.8px;
    text-transform: uppercase; color: var(--muted-dark); font-weight: 700;
}
.contact-card span, .contact-card a { font-size: 1.05rem; color: #fff; font-weight: 500; }
.contact-card a:hover { color: var(--accent-soft); }
.contact-card .mini { font-size: .8rem; color: var(--muted-dark); font-weight: 400; }
.mini-link {
    display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem;
    font-family: var(--f-mono); font-size: .68rem !important; letter-spacing: 1px;
    text-transform: uppercase; color: var(--accent) !important; font-weight: 700 !important;
}
.mini-link .ic { width: 13px; height: 13px; }
.contact-card--accent { border-color: rgba(234,88,12,.45); background: rgba(234,88,12,.09); }
.contact-card--accent span { font-size: .9rem; color: #d4d4d8; }

/* ==========================================================================
   STOPKA
   ========================================================================== */
.site-footer { background: var(--ink-2); color: var(--muted-dark); padding: 4rem 0 2rem; border-top: 1px solid var(--line-light); }
.footer-grid {
    display: grid; grid-template-columns: minmax(0,1.5fr) repeat(4, minmax(0,1fr));
    gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light);
}
.brand--footer .brand-text { color: #fff; }
.footer-brand p { margin-top: 1.1rem; font-size: .9rem; max-width: 34ch; line-height: 1.6; }
.footer-col h4 {
    font-family: var(--f-mono); font-size: .64rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem; font-weight: 700;
}
.footer-col a, .footer-col .footer-addr {
    display: block; font-size: .88rem; color: var(--muted-dark);
    padding: .28rem 0; transition: color .2s, transform .2s var(--ease);
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    flex-wrap: wrap; padding-top: 1.6rem; font-size: .82rem;
}
.footer-bottom a { color: var(--muted-dark); }
.footer-bottom a:hover { color: var(--accent); text-decoration: underline; }
.footer-made { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .4px; }
.footer-made b { color: var(--accent-soft); }

/* ---------- Do góry ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    width: 48px; height: 48px; display: grid; place-items: center;
    background: var(--accent); color: #fff; border: 2px solid var(--ink);
    cursor: pointer; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease), background-color .2s;
    box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--accent); }
.to-top .ic { width: 20px; height: 20px; }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1100;
    background: var(--ink-3); color: #e4e4e7;
    border: 2px solid var(--accent);
    box-shadow: 0 18px 44px rgba(0,0,0,.45);
    padding: 1.1rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
    animation: cookieIn .5s var(--ease);
    max-width: 1100px; margin-inline: auto;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn { from { transform: translateY(140%); opacity: 0 } to { transform: none; opacity: 1 } }
.cookie-banner p { font-size: .88rem; line-height: 1.55; color: #d4d4d8; }
.cookie-banner a { color: var(--accent-soft); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; flex-shrink: 0; }
.cookie-btn {
    background: var(--accent); color: #fff; border: none;
    padding: .75rem 1.2rem; font-weight: 700; cursor: pointer;
    font-family: var(--f-head); font-size: .8rem; letter-spacing: 1px; text-transform: uppercase;
    transition: background-color .2s, transform .2s;
}
.cookie-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ==========================================================================
   RWD
   ========================================================================== */
@media (max-width: 1080px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content { max-width: 640px; }
    .hero-visual { max-width: 620px; }
    .hero-scroll { display: none; }
    .web-split, .split, .thermal-wrap, .about-wrap, .contact-box { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-right { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); display: grid; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; }
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-cta .btn { display: none; }
    .work-grid { grid-template-columns: 1fr; }
    .use-grid { grid-template-columns: 1fr; }
    .tick-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    :root { --header-h: 66px; }
    .section { padding: 4.5rem 0; }
    .hero { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 3rem; }
    .hero-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hero-facts b { font-size: 1.3rem; }
    .section-header { flex-direction: column; align-items: flex-start; margin-bottom: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-right { grid-template-columns: 1fr; }
    .timeline-line { left: 26px; }
    .tl-step { gap: 1.1rem; padding: 1.2rem; }
    .tl-num { width: 40px; height: 40px; font-size: .78rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; padding-bottom: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: .7rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; }
    .cookie-actions { justify-content: stretch; }
    .cookie-btn { width: 100%; }
    .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
    .machine-hud { padding: .9rem .9rem 0; }
    .hud-grid { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
    .hud-grid b { font-size: .82rem; }
    .thermal-scale { width: 42px; }
}

@media (max-width: 420px) {
    .brand-text { font-size: .98rem; }
    .btn { padding: .85rem 1.2rem; font-size: .74rem; }
    .hero-actions .btn { width: 100%; }
}

/* ---------- Druk ---------- */
@media print {
    .site-header, .to-top, .cookie-banner, .hero-bg, .marquee-band, .scroll-progress { display: none !important; }
    body { background: #fff; color: #000; }
    .section--dark { background: #fff; color: #000; }
    a { text-decoration: underline; }
}


/* WCAG Contrast Fix */
.section--alt .eyebrow { color: #c2410c; font-weight: 600; }
.section--alt .tl-tag { color: #c2410c; border-color: rgba(194,65,12,.4); }
.flow-steps h3, .flow-steps h4 { font-size: 1.05rem; font-family: var(--f-head); font-weight: 700; margin-bottom: .4rem; }
.footer-col h3, .footer-col h4, .footer-col .footer-title { font-family: var(--f-mono); font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }


/* ==========================================================================
   Modal Polityki Prywatności i RODO (#polityka)
   ========================================================================== */
.modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.is-open {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.modal-dialog {
    position: relative; width: 100%; max-width: 780px; max-height: 88vh;
    background: #18181b; color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
    display: flex; flex-direction: column; overflow: hidden;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.is-open .modal-dialog {
    transform: translateY(0) scale(1);
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.75rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #141417;
}
.modal-header h3 {
    margin: 0; font-size: 1.15rem; font-family: var(--f-head); color: #fff;
    display: flex; align-items: center; gap: 0.6rem;
}
.modal-header h3 svg { width: 20px; height: 20px; color: var(--accent); }
.modal-close {
    background: transparent; border: none; color: #a1a1aa; cursor: pointer;
    padding: 0.4rem; border-radius: 6px; font-size: 1.4rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.modal-body {
    padding: 1.75rem; overflow-y: auto; font-size: 0.92rem; line-height: 1.65;
    color: #d4d4d8;
}
.modal-body h4 {
    font-size: 0.92rem; font-family: var(--f-mono); color: var(--accent);
    margin: 1.5rem 0 0.5rem; text-transform: uppercase; letter-spacing: 1px;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 0.85rem; }
.modal-body ul { margin: 0.5rem 0 1rem 1.25rem; }
.modal-body li { margin-bottom: 0.4rem; }
.modal-body strong { color: #fff; }
.modal-body a { color: var(--accent); text-decoration: underline; }
.modal-body a:hover { color: #fff; }
.modal-footer {
    display: flex; justify-content: flex-end; padding: 1rem 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08); background: #141417;
}
body.modal-open { overflow: hidden; }

/* Toast powiadomienia wysłania formularza (#wyslano) */
.toast-success {
    position: fixed; bottom: 24px; right: 24px; z-index: 10000;
    background: #15803d; color: #fff; padding: 1rem 1.5rem;
    border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    display: flex; align-items: center; gap: 0.8rem; font-size: 0.92rem;
    font-weight: 500; font-family: var(--f-sans);
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
