/* ============================================================
   MET SERWIS — style.css  (v3)
   Nowoczesny industrial: ciemny hero + ciemne akcenty,
   jasna treść. Manrope + IBM Plex Mono.
   ============================================================ */

:root {
    --bg: #f4f3ef;
    --bg-soft: #ebe9e3;
    --white: #ffffff;
    --paper: #f2f2f0;
    --ink: #131519;
    --ink-2: #1a1d23;
    --line: #e1ded5;
    --line-dark: #272c34;
    --muted: #5e626b;
    --muted-dark: #9ba1ab;
    --accent: #ff5c0a;
    --accent-ink: #b03c09;
    --err: #b3261e;
    --ok: #1e7a3c;
    --radius: 18px;
    --shadow: 0 20px 50px -20px rgba(19, 21, 25, 0.25);
    --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "Courier New", monospace;
    --header-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -0.025em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: var(--accent-ink); }
address { font-style: normal; }
code { font-family: var(--font-mono); }

::selection { background: var(--accent); color: var(--ink); }

/* ---------- 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; top: -100px; left: 16px; z-index: 200;
    background: var(--accent); color: var(--ink);
    padding: 0.8em 1.5em; font-family: var(--font-mono);
    font-size: 0.85rem; font-weight: 500; text-decoration: none;
    text-transform: uppercase; letter-spacing: 0.08em;
    border-radius: 12px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ---------- Layout ---------- */

.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--tint { background: var(--bg-soft); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.8em;
    font-family: var(--font-mono);
    font-size: 0.74rem; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-ink);
    margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent); }
.hero .eyebrow, .page-head .eyebrow, .cta-band .eyebrow { color: var(--accent); }

.section__head { margin-bottom: clamp(2.8rem, 5vw, 4.2rem); max-width: 780px; }
.section__num {
    font-family: var(--font-mono);
    font-size: 0.74rem; font-weight: 500;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin: 0 0 0.8rem;
}
.section__num::after { content: " /"; }
.section__title { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.section__lead { color: var(--muted); margin-top: 1.1rem; font-size: 1.08rem; max-width: 40rem; }
.section__more { margin-top: 3rem; }

/* ---------- Przyciski ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
    min-height: 52px;
    padding: 0.9em 1.9em;
    font-family: var(--font-mono);
    font-size: 0.8rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.09em;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
                border-color 0.3s var(--ease), transform 0.3s var(--ease),
                box-shadow 0.3s var(--ease);
}
.btn::after { content: "→"; transition: transform 0.3s var(--ease); }
.btn:hover::after { transform: translateX(4px); }
.btn--accent {
    background: var(--accent); color: var(--ink);
    box-shadow: 0 12px 30px -10px rgba(255, 92, 10, 0.5);
}
.btn--accent:hover { background: #ff7126; transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(255, 92, 10, 0.6); }
.btn--accent:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.25); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 0.6em;
    font-family: var(--font-mono);
    font-size: 0.8rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--ink); text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
    transition: color 0.25s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--accent-ink); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 90;
    background: rgba(19, 21, 25, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
    display: flex; align-items: center; gap: 1.6rem;
    min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.9rem; text-decoration: none; margin-right: auto; flex: none; }
.brand__logo { height: 34px; width: auto; }
.brand__owner { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dark); white-space: nowrap; border-left: 1px solid var(--line-dark); padding-left: 0.9rem; }

.site-nav__list { display: flex; align-items: center; }
.site-nav__list a {
    position: relative;
    display: inline-block;
    padding: 0.55em 0.6em;
    color: #d7dae0; text-decoration: none;
    font-size: 0.82rem; font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s var(--ease);
}
.site-nav__list a::after {
    content: "";
    position: absolute; left: 0.6em; right: 0.6em; bottom: 0.15em;
    height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.site-nav__list a:hover { color: #fff; }
.site-nav__list a:hover::after { transform: scaleX(1); }
.site-nav__list a[aria-current="page"] { color: var(--accent); }
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 1.1rem; flex: none; }
.site-header__cta { min-height: 42px; padding: 0.6em 1.3em; font-size: 0.72rem; }

.lang-switch { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.76rem; }
.lang-switch a { color: var(--muted-dark); text-decoration: none; padding: 0.45em 0.35em; letter-spacing: 0.06em; border-radius: 6px; transition: color 0.25s var(--ease); }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { color: var(--accent); font-weight: 500; }
.lang-switch__sep { color: var(--line-dark); }

.nav-toggle {
    display: none;
    align-items: center; gap: 0.6rem;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: var(--paper);
    min-height: 46px; padding: 0.55em 1.2em;
    font-family: var(--font-mono); font-size: 0.76rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    cursor: pointer;
    transition: border-color 0.25s var(--ease);
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle__bars span { display: block; width: 18px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--ink);
    color: #f2f2f0;
    background-image:
        radial-gradient(1000px 520px at 80% 0%, rgba(255, 92, 10, 0.1), transparent 60%),
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: auto, 30px 30px;
    overflow: hidden;
}
.hero__ghost { display: none; }
.hero__grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    min-height: calc(92vh - var(--header-h));
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.hero__eyebrow { opacity: 0; transition: opacity 0.8s var(--ease) 0.15s; }
.hero__title {
    font-size: clamp(2.4rem, 5.4vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.hero__title .accent { color: var(--accent); font-style: normal; }
.hero__lead {
    max-width: 32rem;
    margin: 1.7rem 0 0;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    color: var(--muted-dark);
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.8s var(--ease) 0.45s, transform 0.8s var(--ease) 0.45s;
}
.hero__actions {
    display: flex; flex-wrap: wrap; gap: 0.9rem;
    margin-top: 2.3rem;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.8s var(--ease) 0.6s, transform 0.8s var(--ease) 0.6s;
}
.hero__chips {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 2.6rem;
    opacity: 0;
    transition: opacity 0.9s var(--ease) 0.75s;
}
.hero__chips li {
    font-family: var(--font-mono); font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--muted-dark);
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 0.45em 1em;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero__chips li:hover { color: var(--accent); border-color: var(--accent); }

.hero__media {
    position: relative;
    opacity: 0; transform: translateY(24px);
    transition: opacity 1s var(--ease) 0.3s, transform 1s var(--ease) 0.3s;
    will-change: transform;
}
.hero__media .ph {
    border: 1px solid var(--line-dark);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.hero__badge {
    position: absolute; left: -14px; bottom: 26px;
    display: inline-flex; align-items: center; gap: 0.7em;
    background: #fff; color: var(--ink);
    border-radius: 12px;
    padding: 0.8em 1.2em;
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.05em; font-weight: 500;
    box-shadow: var(--shadow);
}
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* Kinetyczne odsłanianie nagłówka */
.line { display: block; overflow: hidden; }
.line__inner {
    display: block;
    transform: translateY(112%);
    transition: transform 1.05s var(--ease) 0.1s;
}
.line:nth-child(2) .line__inner { transition-delay: 0.26s; }

body.is-loaded .line__inner { transform: translateY(0); }
body.is-loaded .hero__eyebrow,
body.is-loaded .hero__chips { opacity: 1; }
body.is-loaded .hero__lead,
body.is-loaded .hero__actions,
body.is-loaded .hero__media { opacity: 1; transform: translateY(0); }

/* ---------- Marquee ---------- */

.marquee {
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    color: var(--muted-dark);
    overflow: hidden;
    padding-block: 0.95rem;
}
.marquee__track {
    display: flex; gap: 3.2rem;
    width: max-content;
    animation: marquee 48s linear infinite;
}
.marquee__item {
    font-family: var(--font-mono); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.18em;
    white-space: nowrap;
    display: inline-flex; align-items: center; gap: 3.2rem;
}
.marquee__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Placeholder zdjęcia ---------- */

.ph {
    position: relative;
    aspect-ratio: var(--ph-ratio, 4 / 3);
    background: var(--bg-soft);
    background-image: radial-gradient(rgba(19, 21, 25, 0.09) 1px, transparent 1px);
    background-size: 26px 26px;
    border: 1.5px dashed #c9c5b9;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.ph::before, .ph::after {
    content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.ph::before { top: 14px; left: 14px; border-top: 2px solid var(--accent-ink); border-left: 2px solid var(--accent-ink); border-top-left-radius: 6px; }
.ph::after { bottom: 14px; right: 14px; border-bottom: 2px solid var(--accent-ink); border-right: 2px solid var(--accent-ink); border-bottom-right-radius: 6px; }
.ph__inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; padding: 1.2rem; }
.ph__icon { color: var(--muted); }
.ph__label {
    font-family: var(--font-mono); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted);
}
.ph__path { font-size: 0.66rem; color: var(--muted); opacity: 0.8; word-break: break-all; }

.ph--dark {
    background: var(--ink-2);
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    border-color: var(--line-dark);
}
.ph--dark::before { border-color: var(--accent); }
.ph--dark::after { border-color: var(--accent); }
.ph--dark .ph__icon, .ph--dark .ph__label { color: var(--muted-dark); }
.ph--dark .ph__path { color: var(--muted-dark); }

.img-fluid { width: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- Split / proza ---------- */

.split {
    display: grid; grid-template-columns: 7fr 5fr;
    gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.split--start { align-items: start; }
.split__text p { font-size: 1.06rem; }
.split__text p + p { margin-top: 0; }
.split__text .link-arrow { margin-top: 0.6rem; }

.prose { max-width: 46rem; }
.prose--wide { max-width: 62rem; }
.prose p { font-size: 1.06rem; margin-bottom: 1.2em; }
.prose__heading { font-size: 1.25rem; margin: 2.4rem 0 0.9rem; }

/* ---------- Zasady ---------- */

.principles {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.4rem, 2.5vw, 2rem);
    margin-top: clamp(3.2rem, 6vw, 5rem);
}
.principles__item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem 1.9rem;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.principles__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.principles__num {
    font-family: var(--font-mono); font-size: 0.76rem; font-weight: 500;
    color: var(--accent-ink); letter-spacing: 0.14em;
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.3em;
}
.principles__title { font-size: 1.1rem; margin: 1rem 0 0.6rem; }
.principles__text { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- Karty usług ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2vw, 1.6rem); }
.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.9rem 1.8rem 2.1rem;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__num { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--accent-ink); letter-spacing: 0.13em; }
.card__title { font-size: 1.2rem; margin: 0.9rem 0 0.6rem; }
.card__text { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* ---------- Zapowiedź maszyn ---------- */

.machines-teaser {
    display: grid; grid-template-columns: 6fr 6fr;
    gap: clamp(1.4rem, 2.5vw, 2.2rem); align-items: stretch;
}
.machine-feature {
    position: relative;
    background: var(--ink); color: #f2f2f0;
    background-image: radial-gradient(520px 280px at 90% 0%, rgba(255, 92, 10, 0.14), transparent 60%);
    border-radius: var(--radius);
    padding: clamp(1.9rem, 3vw, 2.7rem);
    overflow: hidden;
}
.machine-feature__flag {
    display: inline-block;
    font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent);
    border: 1px solid rgba(255, 92, 10, 0.55);
    border-radius: 999px;
    padding: 0.4em 1em; margin: 0 0 1.4rem;
}
.machine-feature__name { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.machine-feature__cat { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-dark); margin: 0.6rem 0 1.5rem; }
.machine-feature__params li {
    font-size: 0.9rem; color: var(--muted-dark);
    padding: 0.6em 0; border-bottom: 1px solid var(--line-dark);
}
.machines-teaser__list { display: flex; flex-direction: column; gap: 0.9rem; }
.machines-teaser__list li {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center; gap: 0.3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    background: var(--white);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.machines-teaser__list li:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.machines-teaser__cat { font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.machines-teaser__name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--ink); color: #f2f2f0; position: relative; overflow: hidden; }
.cta-band::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(700px 340px at 85% 50%, rgba(255, 92, 10, 0.15), transparent 60%);
    pointer-events: none;
}
.cta-band__inner { position: relative; padding-block: clamp(4rem, 8vw, 6.5rem); max-width: 48rem; }
.cta-band__title { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.cta-band__text { color: var(--muted-dark); margin: 1.2rem 0 2.2rem; font-size: 1.08rem; }

/* ---------- Page head ---------- */

.page-head {
    position: relative;
    background: var(--ink); color: #f2f2f0;
    background-image:
        radial-gradient(900px 400px at 82% 0%, rgba(255, 92, 10, 0.09), transparent 60%),
        radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: auto, 30px 30px;
    padding-block: clamp(3.5rem, 7.5vw, 6rem);
    overflow: hidden;
}
.page-head__title { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.page-head__lead { color: var(--muted-dark); max-width: 44rem; margin: 1.3rem 0 0; font-size: 1.08rem; }

/* ---------- Lista usług ---------- */

.services-list { margin-bottom: clamp(3rem, 6vw, 5rem); }
.service-row {
    display: grid;
    grid-template-columns: 80px minmax(190px, 4fr) 7fr;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: baseline;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    transition: background-color 0.3s var(--ease);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover { background: rgba(255, 255, 255, 0.6); }
.service-row__num { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; color: var(--accent-ink); letter-spacing: 0.1em; }
.service-row__title { font-size: 1.4rem; }
.service-row__text { color: var(--muted); margin: 0; }

.production { background: var(--ink); color: #f2f2f0; border-radius: var(--radius); padding: clamp(2rem, 4vw, 3.2rem); }
.production__heading { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 1.5rem; }
.production__list { margin-bottom: 1.5rem; }
.production__list li {
    font-family: var(--font-mono); font-size: 0.88rem;
    padding: 0.75em 0; border-bottom: 1px solid var(--line-dark);
}
.production__list li::before { content: "— "; color: var(--accent); }
.production__text { color: var(--muted-dark); margin: 0; }

/* ---------- Park maszynowy ---------- */

.machine {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.9rem, 3.5vw, 3rem);
    margin-bottom: clamp(1.8rem, 3vw, 2.6rem);
    transition: box-shadow 0.35s var(--ease);
}
.machine:hover { box-shadow: var(--shadow); }
.machine:last-of-type { margin-bottom: 0; }
.machine__head { position: relative; padding-right: 100px; margin-bottom: 2.2rem; }
.machine__num {
    position: absolute; top: -0.35em; right: 0;
    font-family: var(--font-mono); font-weight: 500;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    letter-spacing: 0.02em;
    color: transparent;
    -webkit-text-stroke: 1.2px #d5d2c8;
    user-select: none;
}
.machine__name { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.machine__meta { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 1.4rem; }
.machine__meta div { display: flex; flex-direction: column; gap: 0.2rem; }
.machine__meta dt { font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.machine__meta dd { font-weight: 700; font-size: 0.95rem; }
.machine__body { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.machine__desc { font-size: 1.04rem; }
.machine__params-heading {
    font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--accent-ink);
    margin: 1.8rem 0 0.9rem;
}
.spec li {
    padding: 0.65em 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
    display: flex; gap: 0.8em;
    align-items: baseline;
}
.spec li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); align-self: center; }

/* ---------- Galeria ---------- */

.gallery-group { margin-bottom: clamp(2.8rem, 5vw, 4.5rem); }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group__heading {
    font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.16em;
    display: flex; align-items: center; gap: 0.9em;
    margin-bottom: 1.8rem;
}
.gallery-group__heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gallery-grid__btn {
    display: block; width: 100%; padding: 0;
    background: none; border: none; cursor: zoom-in;
    border-radius: var(--radius);
}
.gallery-grid__btn .img-fluid { transition: transform 0.5s var(--ease); }
.gallery-grid__btn:hover .img-fluid { transform: scale(1.02); }
.gallery-grid__caption { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); margin: 0.6rem 0 0; letter-spacing: 0.07em; }

/* ---------- Lightbox ---------- */

.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(10, 11, 14, 0.93); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb__figure { position: relative; margin: 0; max-width: min(92vw, 1100px); }
.lb__img { max-height: 80vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: var(--radius); }
.lb__caption { color: #f2f2f0; font-family: var(--font-mono); font-size: 0.76rem; text-align: center; margin-top: 1rem; letter-spacing: 0.07em; }
.lb__close {
    position: absolute; top: 20px; right: 20px;
    width: 50px; height: 50px;
    display: grid; place-items: center;
    background: var(--ink); color: #f2f2f0;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lb__close:hover { background: var(--accent); color: var(--ink); transform: rotate(90deg); }

/* ---------- Kontakt ---------- */

.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__heading { font-size: 1.35rem; margin-bottom: 1.5rem; }
.contact__data {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.2rem);
}
.contact__row { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 0.8em 0; border-bottom: 1px solid var(--line); }
.contact__row:last-child { border-bottom: none; }
.contact__row dt { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); padding-top: 0.3em; }
.contact__row dd { font-weight: 700; }
.tbc { color: var(--muted); font-style: italic; font-weight: 400; }

.contact__form-wrap {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.4rem);
}

.form { display: flex; flex-direction: column; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.form__label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.5rem; }
.req { color: var(--err); }
.optional { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.form__input {
    width: 100%;
    min-height: 52px;
    padding: 0.8em 1.1em;
    font: inherit;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form__input:hover { border-color: #c9c5b9; }
.form__input:focus { border-color: var(--accent); background: var(--white); outline: none; box-shadow: 0 0 0 4px rgba(255, 92, 10, 0.16); }
.form__input[aria-invalid="true"] { border-color: var(--err); }
.form__textarea { resize: vertical; min-height: 150px; }
.form__error { color: var(--err); font-size: 0.85rem; margin: 0.5rem 0 0; }
.form__field--consent { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
.form__field--consent .form__error { grid-column: 1 / -1; }
.form__checkbox { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.form__consent-label { font-size: 0.88rem; color: var(--muted); }
.form__submit { align-self: flex-start; }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1.2rem 1.5rem; border-radius: 14px; margin-bottom: 1.6rem; }
.alert--ok { background: #eaf5ec; border: 1px solid #bcdcc4; }
.alert--err { background: #fbeeed; border: 1px solid #eec5c2; }
.alert p { margin: 0; }
.alert ul { margin: 0.7rem 0 0; padding-left: 1.1rem; list-style: disc; }
.alert ul a { color: var(--err); }

/* ---------- Fundusze ---------- */

.funds-logos { margin-bottom: clamp(2.8rem, 5vw, 4.5rem); }
.funds-logos__slot {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: 170px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.7rem; padding: 2.4rem; text-align: center;
}
.funds-logos__img { max-height: 140px; width: auto; margin-inline: auto; }
.funds-logos__name { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.funds-logos__path { font-size: 0.66rem; color: var(--muted); opacity: 0.75; word-break: break-all; }
.funds__project { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1.8rem; max-width: 48rem; }

/* ---------- Fakty ---------- */

.facts { margin-top: clamp(3rem, 6vw, 5rem); max-width: 62rem; }
.facts__heading { font-size: 1.3rem; margin-bottom: 1.3rem; }
.facts__list {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.6rem clamp(1.4rem, 3vw, 2.2rem);
}
.facts__row { display: grid; grid-template-columns: minmax(170px, 280px) 1fr; gap: 1.2rem; padding: 1em 0; border-bottom: 1px solid var(--line); }
.facts__row:last-child { border-bottom: none; }
.facts__row dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); padding-top: 0.25em; }
.facts__row dd { font-weight: 700; }

/* ---------- Stopka ---------- */

.site-footer { position: relative; background: var(--ink); color: var(--muted-dark); overflow: hidden; }
.site-footer::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent);
}
.site-footer__grid {
    display: grid; grid-template-columns: 5fr 3fr 3fr 3fr;
    gap: clamp(1.8rem, 4vw, 3rem);
    padding-block: clamp(3rem, 6vw, 5rem);
}
.site-footer__logo { height: 40px; width: auto; margin-bottom: 1rem; }
.site-footer__tag { font-size: 0.9rem; }
.site-footer__bdo { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.09em; margin-top: 1.4rem; }
.site-footer__heading {
    font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--accent); margin-bottom: 1.2rem;
}
.site-footer__list li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--muted-dark); text-decoration: none; transition: color 0.25s var(--ease); }
.site-footer a:hover { color: var(--accent); }
.site-footer__address { font-size: 0.9rem; line-height: 1.8; }
.lang-switch--footer { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.site-footer__privacy { margin-top: 1.5rem; font-size: 0.88rem; }
.site-footer__ghost {
    display: block;
    font-size: clamp(3.2rem, 11vw, 10rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.02em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
    user-select: none;
    pointer-events: none;
    margin-bottom: -0.12em;
    white-space: nowrap;
}
.site-footer__bottom {
    border-top: 1px solid var(--line-dark);
    padding-block: 1.4rem;
    font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Dyplomy i certyfikaty ---------- */

.diplomas {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3.4rem);
    max-width: 860px;
}
.diploma__media { max-width: 360px; }
.diploma__media .img-fluid { border: 1px solid var(--line); box-shadow: var(--shadow); }
.diploma__title { font-size: 1.18rem; margin: 1.2rem 0 0.35rem; }
.diploma__sub { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease) var(--d, 0ms), transform 0.85s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */

@media (max-width: 1100px) {
    .site-header__inner { flex-wrap: wrap; gap: 0.7rem 1.2rem; padding-block: 0.7rem; }
    .nav-toggle { display: inline-flex; }
    .site-nav { order: 3; width: 100%; text-align: right; }
    .site-nav__list { display: none; flex-direction: column; align-items: stretch; padding: 0.5rem 0 1.2rem; }
    .site-nav__list.is-open { display: flex; }
    .site-nav__list a { padding: 0.85em 0.4em; border-bottom: 1px solid var(--line-dark); font-size: 1.02rem; }
    .site-nav__list a::after { display: none; }
    .site-header__cta { display: none; }
}

@media (max-width: 1020px) {
    .hero__grid { grid-template-columns: 1fr; min-height: 0; }
    .hero__media { max-width: 520px; }
    .principles { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .machines-teaser { grid-template-columns: 1fr; }
    .machine__body { grid-template-columns: 1fr; }
    .machine__media { max-width: 580px; }
    .contact__grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .split { grid-template-columns: 1fr; }
    .split__media { max-width: 480px; }
    .diplomas { grid-template-columns: 1fr; }
    .cards { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .service-row { grid-template-columns: 46px 1fr; }
    .service-row__text { grid-column: 2; }
    .form__row { grid-template-columns: 1fr; }
    .facts__row { grid-template-columns: 1fr; gap: 0.25rem; }
    .contact__row { grid-template-columns: 1fr; gap: 0.2rem; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .principles { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; }
    .hero__badge { left: 0; bottom: 14px; font-size: 0.62rem; }
    .machine__head { padding-right: 0; }
    .machine__num { position: static; display: block; margin-bottom: 0.4rem; }
}

/* ---------- Ograniczenie animacji ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .marquee__track { animation: none; width: 100%; flex-wrap: wrap; }
    .line__inner, .hero__lead, .hero__actions, .hero__media, .reveal { transform: none; opacity: 1; }
}
