/* =====================================================================
   WOOJIN PLAIMM – Przedstawicielstwo w Polsce
   Globalny arkusz stylów (wszystkie podstrony).
   Style specyficzne: css/configurator.css (konfigurator), css/te3d.css
   (model 3D TE-A5 na stronie głównej).
===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENY
--------------------------------------------------------------------- */
:root {
    --c-ink: #0a0e13;
    --c-ink-2: #10161e;
    --c-ink-3: #18212c;
    --c-ink-4: #243040;
    --c-text: #111a24;
    --c-text-2: #3a4654;
    --c-muted: #5f6b7a;
    --c-subtle: #939eab;
    --c-line: #e4e9ee;
    --c-line-2: #d2dae1;
    --c-bg: #ffffff;
    --c-bg-soft: #f4f6f8;
    --c-bg-tint: #eaf7f6;

    --c-teal: #0abeb5;
    --c-teal-300: #6be6de;
    --c-teal-400: #2fd6cc;
    --c-teal-600: #089e97;
    --c-teal-700: #06807a;
    --c-teal-900: #0b3f3c;
    --c-cyan: #00fff2;
    --c-red: #e52c34;
    --c-red-600: #c81f28;
    --c-magenta: #ff2dd2;

    --c-on-dark: #eef3f6;
    --c-on-dark-2: #aab5c1;
    --c-on-dark-3: #6f7c8b;
    --line-dark: rgba(255, 255, 255, 0.1);

    --grad-teal: linear-gradient(135deg, #1fe0d5 0%, #0abeb5 45%, #07958f 100%);
    --grad-text: linear-gradient(100deg, #6be6de 0%, #00fff2 45%, #0abeb5 100%);

    --font-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;
    --wide: 112%;

    --container: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
    --header-h: 76px;
    --section-y: clamp(80px, 10vw, 140px);

    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 6px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 10px -2px rgba(16, 24, 40, 0.07), 0 14px 30px -8px rgba(16, 24, 40, 0.12);
    --shadow-lg: 0 30px 60px -18px rgba(16, 24, 40, 0.25);
    --shadow-teal: 0 14px 32px -12px rgba(10, 190, 181, 0.65);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 860px) {
    :root { --header-h: 64px; }
}

/* ---------------------------------------------------------------------
   2. RESET / BAZA
--------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    /* Ciemne tło dokumentu (jak góra i stopka każdej podstrony): widoczne
       zamiast bieli przy przejściach między stronami i przy "odbiciu"
       przewijania na telefonach */
    background-color: var(--c-ink);
    /* Stałe miejsce na pasek przewijania - blokada przewijania przy otwartym
       menu nie przesuwa wtedy strony w bok */
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* "clip" zamiast "hidden" - nie tworzy kontenera przewijania, więc
       position: sticky (np. panel boczny w Karierze) działa poprawnie. */
    overflow-x: clip;
}

body.is-locked {
    overflow: hidden;
}

img,
svg,
video,
canvas,
iframe {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: rgba(10, 190, 181, 0.28);
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--c-teal);
    outline-offset: 3px;
    border-radius: 4px;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--c-ink);
    color: #fff;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
    transform: none;
}

/* Przejścia między podstronami (View Transitions API - Chrome/Edge/Safari,
   w pozostałych przeglądarkach zwykłe przeładowanie strony). */
@view-transition {
    navigation: auto;
}

/* Nowa strona pojawia się płynnie NA starej, która do końca przejścia zostaje
   w pełni widoczna pod spodem (zwykłe mieszanie kolorów zamiast domyślnego
   "plus-lighter"). Wcześniej stara strona gasła szybciej, niż pojawiała się
   nowa - przez chwilę obie były półprzezroczyste i prześwitywało białe tło. */
::view-transition-old(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-new(root) {
    animation: vtIn 0.4s var(--ease-out) both;
    mix-blend-mode: normal;
}

@keyframes vtIn {
    from { opacity: 0; transform: translateY(12px); }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-new(root) {
        animation: none;
    }
}

/* ---------------------------------------------------------------------
   3. TYPOGRAFIA I DROBNE KOMPONENTY
--------------------------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-teal-700);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.eyebrow--light {
    color: var(--c-teal-300);
}

.eyebrow--dot::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-red);
    box-shadow: 0 0 0 0 rgba(229, 44, 52, 0.6);
    animation: dotPulse 2.2s ease-out infinite;
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 44, 52, 0.55); }
    70%, 100% { box-shadow: 0 0 0 10px rgba(229, 44, 52, 0); }
}

.section {
    position: relative;
    padding-block: var(--section-y);
}

.section-head {
    max-width: 780px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow {
    justify-content: center;
}

.section-title {
    font-size: clamp(32px, 4.4vw, 60px);
    line-height: 1.04;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.03em;
    color: var(--c-text);
}

.section-title em,
.text-accent {
    font-style: normal;
    color: var(--c-teal);
}

.section-lead {
    margin-top: 20px;
    max-width: 640px;
    font-size: clamp(16px, 1.35vw, 18.5px);
    line-height: 1.7;
    color: var(--c-muted);
}

.section-head--center .section-lead {
    margin-inline: auto;
}

.text-gradient {
    font-style: normal;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.link-underline {
    position: relative;
    font-weight: 600;
    color: var(--c-teal-700);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
    transition: background-size 0.4s var(--ease-out), color 0.2s ease;
}

.link-underline:hover {
    background-size: 100% 1.5px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--c-line);
    background: var(--c-bg-soft);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-text-2);
}

/* ---------------------------------------------------------------------
   4. PRZYCISKI
--------------------------------------------------------------------- */
.btn {
    --btn-h: 50px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--btn-h);
    padding: 0 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-size: 15px;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.35s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

/* Połysk przesuwający się po przycisku po najechaniu */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 0.8s var(--ease-out);
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(110%);
}

.btn:active {
    transform: scale(0.97);
}

.btn-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: transform 0.4s var(--ease-out);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn:hover .btn-icon--up {
    transform: translate(3px, -3px);
}

.btn:hover .btn-icon--down {
    transform: translateY(3px);
}

.btn--primary {
    background: var(--grad-teal);
    color: #032321;
    box-shadow: var(--shadow-teal), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
    box-shadow: 0 18px 40px -12px rgba(10, 190, 181, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--dark {
    background: var(--c-ink);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(10, 14, 19, 0.6);
}

.btn--dark:hover {
    background: var(--c-ink-3);
}

.btn--outline {
    border-color: var(--c-line-2);
    color: var(--c-text);
    background: #fff;
}

.btn--outline:hover {
    border-color: var(--c-teal);
    color: var(--c-teal-700);
}

.btn--glass {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn--glass:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn--red {
    background: linear-gradient(135deg, #f0444b, var(--c-red) 50%, var(--c-red-600));
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(229, 44, 52, 0.6);
}

.btn--lg {
    --btn-h: 58px;
    padding: 0 30px;
    font-size: 16px;
}

.btn--sm {
    --btn-h: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.btn--block {
    width: 100%;
}

.btn[disabled],
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Przycisk okrągły z ikoną (strzałki karuzel itp.) */
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--c-line-2);
    background: #fff;
    color: var(--c-text);
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease-out), box-shadow 0.3s ease;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.icon-btn:hover {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: #fff;
    transform: scale(1.06);
    box-shadow: var(--shadow-md);
}

.icon-btn:active {
    transform: scale(0.94);
}

.icon-btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ---------------------------------------------------------------------
   5. PASEK POSTĘPU PRZEWIJANIA + NAGŁÓWEK
--------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1100;
    height: 2px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--c-teal), var(--c-cyan));
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.55);
    transform: scaleX(var(--p, 0));
    transform-origin: 0 50%;
    will-change: transform;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    color: #fff;
    /* Chowanie nagłówka przez "top", nie "transform": transform na nagłówku
       sprawiałby, że menu mobilne (position: fixed w środku nagłówka) na czas
       animacji mieściłoby się tylko w pasku nagłówka - widoczne jako błysk */
    transition: top 0.5s var(--ease-out), color 0.35s ease, height 0.35s var(--ease-out);
}

/* Tło nagłówka na pseudo-elemencie - backdrop-filter bezpośrednio na
   <header> sprawiłby, że menu mobilne (position: fixed) byłoby przycięte
   do wysokości nagłówka. */
.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
    --header-h: 66px;
    color: var(--c-text);
}

.site-header.is-scrolled::before {
    background: rgba(255, 255, 255, 0.82);
    border-bottom-color: rgba(17, 26, 36, 0.07);
    box-shadow: 0 8px 30px -18px rgba(16, 24, 40, 0.35);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
}

.site-header.is-scrolled.is-on-dark {
    color: #fff;
}

.site-header.is-scrolled.is-on-dark::before {
    background: rgba(10, 14, 19, 0.72);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.site-header.is-hidden:not(.is-menu-open) {
    top: calc(var(--header-h) * -1.1);
}

@media (max-width: 860px) {
    .site-header.is-scrolled { --header-h: 60px; }
}

.header-inner {
    width: min(1400px, 100% - 2 * var(--gutter));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    position: relative;
    z-index: 2;
    display: block;
    flex-shrink: 0;
    width: 116px;
    aspect-ratio: 500 / 224;
    transition: width 0.35s var(--ease-out);
}

.is-scrolled .logo {
    width: 100px;
}

.logo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.35s ease;
}

.logo-img--dark { opacity: 0; }

.site-header.is-scrolled:not(.is-on-dark):not(.is-menu-open) .logo-img--dark { opacity: 1; }
.site-header.is-scrolled:not(.is-on-dark):not(.is-menu-open) .logo-img--light { opacity: 0; }

.main-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.86;
    transition: opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 7px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-teal);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s var(--ease-out);
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.nav-link[aria-current="page"] {
    opacity: 1;
}

.nav-link[aria-current="page"]::after {
    transform: scaleX(1);
    background: var(--c-teal);
}

.nav-global {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid currentColor;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.nav-global svg {
    width: 14px;
    height: 14px;
    transition: transform 0.35s var(--ease-out);
}

.nav-global:hover {
    opacity: 1;
    background: var(--c-teal);
    border-color: var(--c-teal);
    color: #032321;
}

.nav-global:hover svg {
    transform: translate(2px, -2px);
}

.nav-mobile-footer {
    display: none;
}

/* Przycisk menu (hamburger) */
.nav-toggle {
    position: relative;
    z-index: 2;
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    margin-right: -8px;
    border-radius: 50%;
    color: inherit;
}

.nav-toggle-bar {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.45s var(--ease-out), opacity 0.25s ease, width 0.35s var(--ease-out);
}

.nav-toggle-bar:nth-child(1) { top: 15px; }
.nav-toggle-bar:nth-child(2) { top: 21px; width: 14px; }
.nav-toggle-bar:nth-child(3) { top: 27px; }

.nav-toggle:hover .nav-toggle-bar:nth-child(2) { width: 20px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; transform: translateX(8px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
    .nav-link { padding: 0 10px; font-size: 14px; }
    .nav-link::after { left: 10px; right: 10px; }
    .main-nav { gap: 12px; }
}

/* Menu mobilne - pełnoekranowa nakładka */
@media (max-width: 960px) {
    .nav-toggle {
        display: block;
    }

    /* Nagłówek przy menu: przycisk i logo robią się białe, gdy ciemne tło menu
       jest już pod nimi. Tło rozwija się spod przycisku i na początku rośnie
       najszybciej, więc przycisk zmienia kolor od razu, a logo chwilę później.
       Przy zamykaniu menu gaśnie w 0,3 s, a kolory wracają w tym samym tempie. */
    .site-header.is-menu-open {
        color: #fff;
        transition: top 0.5s var(--ease-out), color 0.12s ease, height 0.35s var(--ease-out);
    }

    .site-header.is-menu-open .logo-img {
        transition: opacity 0.15s ease 0.06s;
    }

    .site-header.is-menu-closing {
        transition: top 0.5s var(--ease-out), color 0.3s ease, height 0.35s var(--ease-out);
    }

    .site-header.is-menu-closing .logo-img {
        transition: opacity 0.3s ease;
    }

    /* Natychmiastowe zamknięcie menu bez animacji (np. powrót przyciskiem
       "wstecz" do strony zapamiętanej z otwartym menu) */
    .site-header.is-menu-instant,
    .site-header.is-menu-instant *,
    .site-header.is-menu-instant *::before,
    .site-header.is-menu-instant *::after {
        transition: none !important;
    }

    /* Menu animowane wyłącznie przez opacity i transform - te animacje
       wykonuje karta graficzna, bez przerysowywania ekranu w każdej klatce
       (wcześniejsze przycinanie okręgiem przez clip-path mogło na telefonach
       migotać, zwłaszcza przy zamykaniu) */
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        isolation: isolate;
        margin: 0;
        padding: calc(var(--header-h) + 28px) var(--gutter) 32px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 28px;
        color: #fff;
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    /* Ciemne tło menu: koło o środku pod przyciskiem, powiększane od zera
       (transform: scale); po zgaszeniu menu wraca do zera niewidocznie */
    .main-nav::before {
        content: '';
        position: fixed;
        z-index: -2;
        top: calc(var(--header-h) / 2 - 150vmax);
        right: calc(34px - 150vmax);
        width: 300vmax;
        height: 300vmax;
        border-radius: 50%;
        background: var(--c-ink);
        transform: scale(0);
        transition: transform 0s linear 0.3s;
        pointer-events: none;
    }

    /* Poświata w kolorach marki - pojawia się, gdy tło wypełnia już ekran */
    .main-nav::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: -1;
        background:
            radial-gradient(90% 60% at 100% 0%, rgba(10, 190, 181, 0.22), transparent 60%),
            radial-gradient(70% 50% at 0% 100%, rgba(0, 255, 242, 0.08), transparent 60%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transition: opacity 0s, visibility 0s;
    }

    .main-nav.is-open::before {
        transform: scale(1);
        transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    }

    .main-nav.is-open::after {
        opacity: 1;
        transition: opacity 0.4s ease 0.3s;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--line-dark);
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
    }

    .main-nav.is-open .nav-list li {
        opacity: 1;
        transform: none;
        transition-delay: calc(0.18s + var(--i, 0) * 0.06s);
    }

    .nav-link {
        width: 100%;
        height: auto;
        padding: 18px 0;
        gap: 16px;
        border-radius: 0;
        font-size: clamp(26px, 7vw, 40px);
        font-weight: 700;
        font-stretch: var(--wide);
        letter-spacing: -0.02em;
        opacity: 1;
    }

    .nav-link::after {
        left: 0;
        right: auto;
        width: 100%;
        bottom: 12px;
        display: none;
    }

    .nav-link[aria-current="page"] .nav-text {
        color: var(--c-teal-300);
    }

    .nav-global {
        align-self: flex-start;
        height: 48px;
        color: var(--c-teal-300);
        opacity: 0;
        transition: opacity 0.5s ease 0.5s, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .main-nav.is-open .nav-global {
        opacity: 1;
    }

    .nav-mobile-footer {
        display: grid;
        gap: 6px;
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid var(--line-dark);
        font-size: 15px;
        color: var(--c-on-dark-2);
        opacity: 0;
        transition: opacity 0.5s ease 0.55s;
    }

    .nav-mobile-footer a {
        color: #fff;
        font-weight: 600;
    }

    .main-nav.is-open .nav-mobile-footer {
        opacity: 1;
    }
}

/* ---------------------------------------------------------------------
   6. HERO – STRONA GŁÓWNA
--------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(640px, 100svh, 940px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--header-h) + 40px);
    overflow: hidden;
    background: var(--c-ink);
    color: #fff;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: var(--c-ink);
}

/* Rozmyte tło wypełniające obszar nad i pod zdjęciem (miniatura ~2 KB) */
.hero-media::before {
    content: '';
    position: absolute;
    inset: -80px;
    background: url('img/opt/hero-blur.jpg') center / cover no-repeat;
    filter: blur(36px) saturate(1.15);
    opacity: 0.5;
}

/* Zdjęcie pokazane w całości (proporcje 1920×650), wyśrodkowane w pionie
   i płynnie wtapiające się w rozmyte tło na górnej i dolnej krawędzi */
.hero-img {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 650;
    object-fit: cover;
    translate: 0 -50%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    animation: heroZoom 2.4s var(--ease-expo) both;
    will-change: transform;
}

@keyframes heroZoom {
    from { transform: scale(1.08); filter: brightness(0.4); }
    to { transform: scale(1); filter: brightness(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(10, 14, 19, 0.82) 0%, rgba(10, 14, 19, 0.5) 34%, rgba(10, 14, 19, 0.08) 62%, rgba(10, 14, 19, 0.12) 100%),
        linear-gradient(180deg, rgba(10, 14, 19, 0.5) 0%, rgba(10, 14, 19, 0) 22%, rgba(10, 14, 19, 0) 62%, rgba(10, 14, 19, 0.9) 100%);
}

.hero-title,
.hero-lead {
    text-shadow: 0 2px 24px rgba(10, 14, 19, 0.55);
}

/* Delikatna "architektoniczna" siatka linii w tle hero */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: calc(100% / 4) 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 70%, transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    padding-bottom: clamp(36px, 6vh, 72px);
}

.hero-title {
    max-width: 14ch;
    font-size: clamp(42px, 6.2vw, 92px);
    line-height: 0.98;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.035em;
}

.line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
    margin-bottom: -0.06em;
}

.line-inner {
    display: inline-block;
    animation: lineUp 1.1s var(--ease-expo) both;
    animation-delay: calc(0.25s + var(--i, 0) * 0.09s);
}

@keyframes lineUp {
    from { transform: translateY(110%) rotate(2deg); }
    to { transform: none; }
}

.hero-lead {
    max-width: 620px;
    margin-top: 28px;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.7;
    color: rgba(238, 243, 246, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.fade-up {
    animation: fadeUp 1s var(--ease-expo) both;
    animation-delay: var(--delay, 0.6s);
}

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

.hero-bottom {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding-block: 26px clamp(28px, 4vh, 44px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 64px);
}

.hero-facts div {
    display: grid;
    gap: 2px;
}

.hero-facts dt {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-facts dd {
    font-size: 13.5px;
    color: var(--c-on-dark-2);
}

.scroll-cue {
    flex-shrink: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-on-dark-2);
    transition: color 0.3s ease;
}

.scroll-cue:hover {
    color: #fff;
}

.scroll-cue-mouse {
    position: relative;
    width: 26px;
    height: 40px;
    border: 1.5px solid currentColor;
    border-radius: 14px;
}

.scroll-cue-mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 3px;
    height: 8px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--c-teal-300);
    animation: wheel 1.8s var(--ease-in-out) infinite;
}

@keyframes wheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 700px) {
    /* Na telefonie zdjęcie (w całości) jest pasem pod nagłówkiem, a treść pod nim */
    .hero {
        min-height: 100svh;
        padding-top: calc(var(--header-h) + 33.85vw + 28px);
    }

    .hero-img {
        top: var(--header-h);
        translate: none;
        -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
        mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(10, 14, 19, 0.35) 0%, rgba(10, 14, 19, 0.1) 20%, rgba(10, 14, 19, 0.6) 45%, rgba(10, 14, 19, 0.92) 100%);
    }

    .hero-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-facts {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .hero-facts dt { font-size: 18px; }
    .hero-facts dd { font-size: 12px; line-height: 1.35; }

    .scroll-cue { display: none; }

    .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------------
   7. HERO – PODSTRONY
--------------------------------------------------------------------- */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-h) + clamp(44px, 6vw, 90px)) 0 clamp(48px, 6vw, 84px);
    background: var(--c-ink);
    color: #fff;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.page-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 10%, #000 10%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 90% at 70% 10%, #000 10%, transparent 75%);
    animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
    to { background-position: 56px 56px, 56px 56px; }
}

.orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.orb--1 {
    width: 720px;
    height: 720px;
    top: -340px;
    right: -160px;
    background: radial-gradient(circle, rgba(10, 190, 181, 0.55) 0%, rgba(10, 190, 181, 0.12) 40%, transparent 68%);
    animation: orbFloat 16s ease-in-out infinite alternate;
}

.orb--2 {
    width: 520px;
    height: 520px;
    bottom: -320px;
    left: 18%;
    background: radial-gradient(circle, rgba(0, 255, 242, 0.18) 0%, transparent 65%);
    animation: orbFloat 20s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-60px, 40px, 0) scale(1.12); }
}

.page-hero-inner {
    position: relative;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 13px;
    color: var(--c-on-dark-3);
}

.breadcrumbs a {
    color: var(--c-on-dark-2);
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumbs [aria-current] {
    color: #fff;
}

.page-title {
    max-width: 18ch;
    font-size: clamp(38px, 5.6vw, 80px);
    line-height: 1.02;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.035em;
}

.page-lead {
    max-width: 680px;
    margin-top: 24px;
    font-size: clamp(16px, 1.35vw, 18.5px);
    line-height: 1.7;
    color: var(--c-on-dark-2);
}

.page-hero .disclaimer {
    max-width: 860px;
    margin-top: 22px;
    padding: 12px 16px;
    border-left: 2px solid var(--c-red);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--c-on-dark-3);
}

/* ---------------------------------------------------------------------
   8. ANIMACJE POJAWIANIA SIĘ PRZY PRZEWIJANIU
   Klasa .js dodawana w <head> (przed pierwszym renderem). Bez JS lub
   gdy skrypt się nie wczyta - treść jest po prostu widoczna.
--------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.9s var(--ease-out),
        transform 1.1s var(--ease-expo);
    transition-delay: var(--d, 0s);
}

.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="scale"] { transform: scale(0.94); }

/* Na wąskich ekranach elementy w jednej kolumnie zajmują całą szerokość -
   przesunięcie w bok przed pojawieniem się wypychałoby je poza ekran, a telefon
   poszerzałby wtedy całą stronę (przesunięty nagłówek z przyciskiem menu) */
@media (max-width: 960px) {
    .js [data-reveal="left"],
    .js [data-reveal="right"] {
        transform: translateY(32px);
    }
}

.js [data-reveal="clip"] {
    opacity: 1;
    transform: none;
    clip-path: inset(12% 0 12% 0 round var(--r-lg));
    transition: clip-path 1.3s var(--ease-expo);
    transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

.js [data-reveal="clip"].is-in {
    clip-path: inset(0 0 0 0 round var(--r-lg));
}

.no-anim [data-reveal],
.no-anim [data-reveal="clip"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
}

/* ---------------------------------------------------------------------
   9. STRONA GŁÓWNA – O NAS / STATYSTYKI
--------------------------------------------------------------------- */
.about {
    background: var(--c-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.about-lead {
    margin-top: 28px;
    font-size: clamp(18px, 1.7vw, 23px);
    line-height: 1.6;
    font-weight: 500;
    color: var(--c-text);
    letter-spacing: -0.005em;
}

/* Słowa rozjaśniane w trakcie przewijania (patrz js/home.js) */
.scrub-word {
    opacity: 0.16;
}

.about-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--c-line);
}

.about-point {
    display: grid;
    gap: 10px;
    align-content: start;
}

.about-point-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--c-bg-tint);
    color: var(--c-teal-700);
    transition: transform 0.4s var(--ease-spring), background-color 0.3s ease, color 0.3s ease;
}

.about-point:hover .about-point-icon {
    transform: rotate(-8deg) scale(1.08);
    background: var(--c-teal);
    color: #fff;
}

.about-point-icon svg {
    width: 22px;
    height: 22px;
}

.about-point h3 {
    font-size: 16px;
    font-weight: 700;
}

.about-point p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 2.6vw, 34px);
    border-radius: var(--r-lg);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-line);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    background: var(--grad-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s var(--ease-expo) 0.2s;
}

.stat-card.is-in::before,
.no-anim .stat-card::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(10, 190, 181, 0.35);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: clamp(38px, 4.4vw, 60px);
    line-height: 1;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--c-muted);
}

.pulse-plus {
    display: inline-block;
    margin-left: 2px;
    color: var(--c-teal);
    animation: pulseGlow 1.8s ease-in-out infinite;
}

/* "+" przy liczbach: w kroju Archivo środek znaku "+" leży o 0,075 em
   niżej niż środek cyfr - podniesienie o tę wartość centruje go idealnie */
.stat-number .pulse-plus {
    position: relative;
    top: -0.075em;
    margin-left: 0.04em;
    transform-origin: 50% 55%;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.22); opacity: 0.7; }
}

@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .about-points {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-point {
        grid-template-columns: 44px 1fr;
        column-gap: 16px;
    }

    .about-point-icon {
        grid-row: span 2;
    }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        border-radius: var(--r-md);
    }
}

/* ---------------------------------------------------------------------
   10. STRONA GŁÓWNA – SERIE MASZYN (przewijanie w poziomie)
--------------------------------------------------------------------- */
.series {
    background: var(--c-bg-soft);
    overflow: hidden;
}

.series-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(36px, 4vw, 56px);
}

.series-head .section-head {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .series-head {
        align-items: flex-end;
    }

    .series-head .section-head {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        grid-template-areas: "eyebrow ." "title lead";
        column-gap: clamp(32px, 4vw, 64px);
        align-items: end;
        max-width: none;
        flex: 1;
    }

    .series-head .eyebrow { grid-area: eyebrow; justify-self: start; }
    .series-head .section-title { grid-area: title; }
    .series-head .section-lead { grid-area: lead; margin-top: 0; }
}

.series-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.series-counter {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-muted);
    min-width: 64px;
    text-align: right;
}

.series-counter b {
    color: var(--c-text);
    font-weight: 600;
}

.series-viewport {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
    scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
    padding-block: 10px 30px;
}

.series-viewport::-webkit-scrollbar {
    display: none;
}

.series-track {
    display: flex;
    gap: clamp(16px, 2vw, 28px);
    width: max-content;
    list-style: none;
}

.series-card {
    position: relative;
    flex: 0 0 clamp(280px, 30vw, 420px);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--c-line);
    overflow: hidden;
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.3s ease;
}

.series-card:hover,
.series-card:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 190, 181, 0.45);
}

/* Link rozciągnięty na całą kartę */
.series-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
}

.series-link:focus-visible {
    outline-offset: -3px;
}

/* Zdjęcia kart (img/opt/series-*.jpg, 960×600) mają maszynę wyśrodkowaną
   i cień wpisany pod jej podstawą - pole tylko je wyświetla */
.series-media {
    position: relative;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background:
        radial-gradient(80% 70% at 50% 55%, #ffffff 0%, #eef2f5 70%, #e4eaef 100%);
    overflow: hidden;
}

.series-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.9s var(--ease-out);
}

.series-card:hover .series-media img {
    transform: scale(1.06);
}

/* VHA-RS: oryginalna klatka 360° z szerokim, miękkim cieniem "podłogi" w CSS */
.series-media--floor {
    padding: 18px;
}

.series-media--floor::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 16%;
    height: 12%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 24, 40, 0.16), transparent);
    z-index: 0;
}

.series-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--c-line);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--c-teal-700);
}

.series-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.series-type {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-teal-700);
}

.series-body h3 {
    margin-top: 6px;
    font-size: 30px;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.03em;
}

.series-body p {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--c-muted);
}

/* Krótszy opis serii - tylko na telefonach (patrz @media max-width: 760px) */
.series-desc-short {
    display: none;
}

.series-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 22px;
}

.series-range {
    font-size: 14px;
    font-weight: 700;
    color: var(--c-text);
}

.series-range span {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-subtle);
}

.series-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--c-line-2);
    color: var(--c-text);
    transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.5s var(--ease-out);
}

.series-arrow svg {
    width: 18px;
    height: 18px;
}

.series-card:hover .series-arrow {
    background: var(--c-teal);
    border-color: var(--c-teal);
    color: #032321;
    transform: rotate(-45deg);
}

.series-progress {
    width: min(var(--container), 100% - 2 * var(--gutter));
    height: 2px;
    margin: 10px auto 0;
    background: var(--c-line);
    border-radius: 2px;
    overflow: hidden;
}

.series-progress span {
    display: block;
    height: 100%;
    background: var(--c-teal);
    transform: scaleX(var(--p, 0.14));
    transform-origin: left;
    transition: transform 0.15s linear;
}

/* Tryb "przypięty" (GSAP ScrollTrigger, komputery) */
.series.is-pinned {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: calc(var(--header-h) + 12px) 32px;
}

.series.is-pinned > * {
    flex-shrink: 0;
}

.series.is-pinned .series-viewport {
    overflow: visible;
    scroll-snap-type: none;
}

.series.is-pinned .series-card {
    flex-basis: clamp(280px, min(26vw, 42vh), 400px);
}

.series .section-title {
    font-size: clamp(32px, 3.6vw, 52px);
}

.series.is-pinned .series-head {
    margin-bottom: clamp(24px, 3.5vh, 44px);
}

@media (max-height: 820px) {
    .series.is-pinned .series-body p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .series.is-pinned .series-media {
        aspect-ratio: 16 / 9;
    }
}

.series.is-pinned .series-controls .icon-btn {
    display: none;
}

@media (max-width: 760px) {
    .series-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .series-card {
        flex-basis: 82vw;
    }

    .series-desc-full {
        display: none;
    }

    .series-desc-short {
        display: inline;
    }
}

/* ---------------------------------------------------------------------
   12. STRONA GŁÓWNA – SEKCJA TECHNOLOGII (ciemna)
--------------------------------------------------------------------- */
.cyber-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(96px, 11vw, 160px) 0 calc(clamp(90px, 10vw, 140px) + clamp(32px, 4vw, 56px));
    background:
        radial-gradient(ellipse 80% 55% at 50% 0%, #142033 0%, rgba(10, 14, 19, 0) 70%),
        var(--c-ink);
    color: #fff;
}

.cyber-grid-bg {
    position: absolute;
    inset: -2px;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 255, 242, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 242, 0.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 15%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 15%, #000 0%, transparent 75%);
    animation: cyberGridDrift 24s linear infinite;
}

@keyframes cyberGridDrift {
    to { background-position: 48px 96px, 48px 96px; }
}

.cyber-cta-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: clamp(72px, 9vw, 120px);
}

.cyber-cta {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.cyber-kr-neon {
    position: absolute;
    top: 10px;
    right: 2%;
    z-index: 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-weight: 900;
    font-size: clamp(60px, 8vw, 128px);
    letter-spacing: 18px;
    line-height: 1;
    color: rgba(0, 255, 242, 0.12);
    text-shadow:
        0 0 18px rgba(0, 255, 242, 0.5),
        0 0 46px rgba(0, 255, 242, 0.3),
        0 0 100px rgba(255, 45, 210, 0.28);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    animation: neonFlicker 2.4s linear infinite;
}

/* Miganie neonu 사출성형기 (słowo "wtryskarkę" w tytule świeci, ale nie miga) */
@keyframes neonFlicker {
    0%, 62%, 100% { opacity: 1; }
    64% { opacity: 0.35; }
    66% { opacity: 1; }
    70% { opacity: 0.55; }
    72% { opacity: 1; }
    86% { opacity: 1; }
    88% { opacity: 0.45; }
    90% { opacity: 1; }
}

.cyber-cta-tag {
    display: inline-block;
    margin-bottom: 22px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--c-cyan);
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(0, 255, 242, 0.55);
}

.cyber-cta-title {
    font-size: clamp(32px, 4.4vw, 60px);
    line-height: 1.05;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.035em;
    margin-bottom: 26px;
}

.cyber-glow-text {
    color: var(--c-cyan);
    text-shadow:
        0 0 10px rgba(0, 255, 242, 0.8),
        0 0 30px rgba(0, 255, 242, 0.4),
        2px 0 rgba(255, 45, 210, 0.5),
        -2px 0 rgba(10, 190, 181, 0.5);
}

.cyber-cta-text {
    max-width: 640px;
    margin: 0 auto 38px;
    font-size: clamp(16px, 1.35vw, 18px);
    line-height: 1.75;
    color: var(--c-on-dark-2);
}

@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes runBorderLight {
    to { --border-angle: 360deg; }
}

.cyber-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 60px;
    padding: 0 34px;
    border-radius: 999px;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--c-ink), var(--c-ink)) padding-box,
        conic-gradient(from var(--border-angle), #0abeb5 0%, #00fff2 25%, #ff2dd2 50%, #0abeb5 75%, #0abeb5 100%) border-box;
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 34px rgba(0, 255, 242, 0.2);
    animation: runBorderLight 3.2s linear infinite;
    transition: box-shadow 0.35s ease, transform 0.35s var(--ease-out);
}

.cyber-cta-btn svg {
    transition: transform 0.35s var(--ease-out);
}

.cyber-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 255, 242, 0.42), 0 6px 28px rgba(255, 45, 210, 0.25);
}

.cyber-cta-btn:hover svg {
    transform: translateX(5px);
}

/* Nagłówek zamyka sekcję - bez dolnego marginesu (dolny odstęp daje padding sekcji) */
.cyber-heading {
    margin-bottom: 0;
}

.cyber-heading .section-title {
    color: #fff;
}

.cyber-heading .section-lead {
    color: var(--c-on-dark-2);
}

/* Zespoły TE-A5: zdjęcie maszyny bez tła (oryginalne kolory, bez ramek)
   + opis; wokół sylwetki maszyny biegnie promień (warstwy z js/home.js) */
.tech-showcase {
    display: grid;
    gap: clamp(72px, 9vw, 136px);
    margin-top: clamp(24px, 4vw, 56px);
}

.tech-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(36px, 5vw, 88px);
}

.tech-row--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.tech-row--reverse .tech-visual {
    order: 2;
}

.tech-visual {
    position: relative;
    margin: 0;
}

.tech-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Warstwa promienia - ten sam kadr co zdjęcie, nałożona na nie */
.tech-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

/* Obrys służy tylko jako wzorzec dla warstw promienia */
.tech-beam-path {
    fill: none;
    stroke: none;
}

.tech-beam {
    pointer-events: none;
}

.tech-beam path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tech-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-cyan);
    text-shadow: 0 0 12px rgba(0, 255, 242, 0.45);
}

.tech-kicker span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 242, 0.45);
    color: #fff;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 12px rgba(0, 255, 242, 0.18), 0 0 14px rgba(0, 255, 242, 0.18);
}

.tech-title {
    margin-bottom: 20px;
    font-size: clamp(26px, 2.7vw, 40px);
    line-height: 1.1;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.03em;
    color: #fff;
}

.tech-accent {
    background: linear-gradient(90deg, #00fff2, #0abeb5 45%, #ff2dd2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tech-text {
    margin-bottom: 26px;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.75;
    color: var(--c-on-dark-2);
}

.tech-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tech-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    font-size: 13px;
    font-weight: 600;
    color: var(--c-on-dark);
}

.tech-points li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-cyan);
    box-shadow: 0 0 8px var(--c-cyan);
}

.tech-points li:nth-child(even)::before {
    background: var(--c-magenta);
    box-shadow: 0 0 8px var(--c-magenta);
}

@media (max-width: 960px) {
    .tech-row,
    .tech-row--reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .tech-row--reverse .tech-visual {
        order: 0;
    }

    .tech-visual,
    .tech-copy {
        max-width: 720px;
        width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .cyber-kr-neon {
        right: -4px;
        font-size: clamp(38px, 14vw, 60px);
        letter-spacing: 8px;
        opacity: 0.6;
    }

    .cyber-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0 20px;
        font-size: 13px;
    }

    .tech-points li {
        font-size: 12.5px;
        padding: 7px 12px;
    }
}

/* ---------------------------------------------------------------------
   12b. STRONA GŁÓWNA – ZASTOSOWANIA (kafle ze zdjęciami branż)
--------------------------------------------------------------------- */
/* Sekcja stoi pod "O nas" (białe tło) i nad "Seriami maszyn" (szare tło) -
   białe tło i brak górnego odstępu: odstęp daje już dolny padding sekcji "O nas" */
.applications {
    background: var(--c-bg);
}

.about + .applications {
    padding-top: 0;
}

.applications-head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "eyebrow ." "title lead";
    column-gap: clamp(32px, 4vw, 64px);
    align-items: end;
    max-width: none;
}

.applications-head .eyebrow { grid-area: eyebrow; justify-self: start; }
.applications-head .section-title { grid-area: title; }
.applications-head .section-lead { grid-area: lead; margin-top: 0; }

/* Siatka "bento": wnętrze auta, elektronika i kosmetyki jako wysokie kafle */
.applications-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
    grid-template-rows: repeat(2, clamp(210px, 19vw, 280px));
    grid-template-areas:
        "interior exterior   electronics cosmetics"
        "interior appliances electronics cosmetics";
    gap: clamp(12px, 1.4vw, 20px);
    list-style: none;
}

.app-tile--interior { grid-area: interior; }
.app-tile--exterior { grid-area: exterior; }
.app-tile--electronics { grid-area: electronics; }
.app-tile--appliances { grid-area: appliances; }
.app-tile--cosmetics { grid-area: cosmetics; }

/* li.app-tile = miejsce w siatce + animacja pojawienia (data-reveal);
   .app-card = właściwy kafel (efekty po najechaniu nie kolidują z animacją) */
.app-tile {
    min-height: 0;
}

.app-card {
    position: relative;
    isolation: isolate;
    height: 100%;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--c-ink-2);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.app-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease-out), filter 0.6s ease;
}

/* Delikatny gradient pod nazwą branży + mocniejszy, pojawiający się po najechaniu */
.app-card::before,
.app-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.app-card::before {
    background: linear-gradient(to top, rgba(10, 14, 19, 0.78) 0%, rgba(10, 14, 19, 0.28) 34%, rgba(10, 14, 19, 0) 58%);
}

.app-card::after {
    background:
        linear-gradient(to top, rgba(10, 14, 19, 0.92) 0%, rgba(10, 14, 19, 0.55) 45%, rgba(10, 14, 19, 0.1) 100%),
        radial-gradient(120% 70% at 0% 100%, rgba(10, 190, 181, 0.35), transparent 60%);
    opacity: 0;
}

.app-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(18px, 2vw, 26px);
    color: #fff;
}

/* Turkusowa linia u dołu kafla, wysuwa się po najechaniu */
.app-caption::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--c-cyan), var(--c-teal) 60%, rgba(10, 190, 181, 0));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--ease-out);
}

.app-brand {
    display: block;
    margin-bottom: 6px;
    font-size: 11.5px;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: 0.22em;
    color: var(--c-teal-300);
    text-shadow: 0 0 14px rgba(0, 255, 242, 0.45);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.5s var(--ease-out);
}

.app-caption h3 {
    font-size: clamp(18px, 1.55vw, 22px);
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.app-caption p {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.55;
    color: var(--c-on-dark);
    opacity: 0;
    transform: translateY(8px);
    transition: max-height 0.55s var(--ease-out), margin-top 0.55s var(--ease-out), opacity 0.4s ease, transform 0.55s var(--ease-out);
}

/* Odsłonięty opis: po najechaniu (mysz) albo na stałe (ekrany dotykowe) */
@media (hover: hover) and (pointer: fine) {
    .app-tile:hover .app-card {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .app-tile:hover .app-card img {
        transform: scale(1.07);
    }

    .app-tile:hover .app-card::after,
    .app-tile:hover .app-brand,
    .app-tile:hover .app-caption p {
        opacity: 1;
    }

    .app-tile:hover .app-brand,
    .app-tile:hover .app-caption p {
        transform: none;
    }

    .app-tile:hover .app-caption p {
        max-height: 8em;
        margin-top: 8px;
    }

    .app-tile:hover .app-caption::after {
        transform: scaleX(1);
    }
}

@media (hover: none), (pointer: coarse) {
    .app-card::before {
        background: linear-gradient(to top, rgba(10, 14, 19, 0.9) 0%, rgba(10, 14, 19, 0.5) 45%, rgba(10, 14, 19, 0) 75%);
    }

    .app-brand,
    .app-caption p {
        opacity: 1;
        transform: none;
    }

    .app-caption p {
        max-height: none;
        margin-top: 6px;
    }
}

@media (max-width: 960px) {
    .applications-head {
        display: block;
    }

    .applications-head .section-lead {
        margin-top: 20px;
    }

    .applications-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 320px 230px 230px;
        grid-template-areas:
            "interior   cosmetics"
            "exterior   electronics"
            "appliances electronics";
    }
}

/* Telefon: zwarta mozaika 2 kolumny (wnętrze auta na całą szerokość) zamiast
   pięciu wysokich kafli jeden pod drugim - cała sekcja mieści się na ok.
   jednym ekranie. Na kaflach tylko WOOJIN PLAIMM i nazwa branży; opis (p)
   zostaje na tablecie i komputerze. */
@media (max-width: 560px) {
    .applications-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 46vw 40vw 40vw;
        grid-template-areas:
            "interior   interior"
            "exterior   electronics"
            "appliances cosmetics";
        gap: 10px;
    }

    .app-card {
        border-radius: var(--r-md);
    }

    .app-caption {
        padding: 12px 13px;
    }

    .app-brand {
        margin-bottom: 3px;
        font-size: 9.5px;
        letter-spacing: 0.18em;
        white-space: nowrap;
    }

    .app-caption h3 {
        font-size: 15px;
        line-height: 1.2;
    }

    .app-caption p {
        display: none;
    }
}

/* Najwęższe telefony (np. 320 px) - napis WOOJIN PLAIMM mieści się w połówce kafla */
@media (max-width: 360px) {
    .app-caption {
        padding: 11px 10px;
    }

    .app-brand {
        letter-spacing: 0.12em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-card,
    .app-card img,
    .app-brand,
    .app-caption p,
    .app-caption::after {
        transition: none;
    }

    .app-tile:hover .app-card,
    .app-tile:hover .app-card img {
        transform: none;
    }
}

/* ---------------------------------------------------------------------
   13. PASEK CTA (przed stopką)
--------------------------------------------------------------------- */
.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(80px, 9vw, 130px);
    background: var(--c-ink-2);
    color: #fff;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 90% at 90% 110%, rgba(10, 190, 181, 0.35), transparent 60%),
        radial-gradient(40% 60% at 5% -10%, rgba(0, 255, 242, 0.12), transparent 60%);
}

.cta-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    gap: 40px;
    align-items: end;
}

.cta-band h2 {
    font-size: clamp(34px, 5vw, 72px);
    line-height: 1.02;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.035em;
}

.cta-band p {
    max-width: 560px;
    margin-top: 20px;
    color: var(--c-on-dark-2);
    font-size: 17px;
}

.cta-band-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 260px;
}

@media (max-width: 860px) {
    .cta-band-inner {
        grid-template-columns: 1fr;
    }

    .cta-band-actions {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cta-band-actions .btn {
        flex: 1 1 220px;
    }
}

/* ---------------------------------------------------------------------
   14. STOPKA
--------------------------------------------------------------------- */
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--c-ink);
    color: var(--c-on-dark-2);
    font-size: 14.5px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(900px, 90%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(0, 255, 242, 0.5), transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 64px);
    padding-block: clamp(64px, 7vw, 96px) 48px;
}

.footer-logo-image {
    width: 130px;
    height: auto;
    margin-bottom: 20px;
}

.footer-about {
    max-width: 340px;
    line-height: 1.7;
}

.footer-column h4 {
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
}

.footer-column ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.footer-column a {
    position: relative;
    display: inline-block;
    color: var(--c-on-dark-2);
    transition: color 0.25s ease, transform 0.35s var(--ease-out);
}

.footer-column a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-contact li {
    line-height: 1.55;
}

.footer-contact strong {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-on-dark-3);
}

/* Informacja prawna o statusie przedstawicielstwa (stopka każdej strony) */
.legal-notice {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 36px;
    padding: 22px 24px;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        radial-gradient(60% 120% at 0% 0%, rgba(10, 190, 181, 0.12), transparent 60%),
        rgba(255, 255, 255, 0.03);
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--c-on-dark-2);
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.legal-notice-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(10, 190, 181, 0.14);
    color: var(--c-teal-300);
}

.legal-notice-icon svg {
    width: 22px;
    height: 22px;
}

.legal-notice-title {
    margin-bottom: 4px;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
}

.legal-notice strong {
    color: var(--c-on-dark);
    font-weight: 600;
}

@media (max-width: 560px) {
    .legal-notice {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }
}

/* Pasek ze statusem prawnym tuż pod hero strony głównej */
.legal-ribbon {
    background: var(--c-bg-tint);
    border-bottom: 1px solid rgba(10, 190, 181, 0.25);
}

.legal-ribbon-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-block: 18px;
}

.legal-ribbon-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(10, 190, 181, 0.35);
    color: var(--c-teal-700);
}

.legal-ribbon-icon svg {
    width: 20px;
    height: 20px;
}

.legal-ribbon p {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-teal-900);
}

.legal-ribbon .link-underline {
    flex-shrink: 0;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .legal-ribbon-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .legal-ribbon p {
        flex-basis: calc(100% - 56px);
        font-size: 13.5px;
    }

    .legal-ribbon .link-underline {
        margin-left: 56px;
    }
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-block: 24px;
    border-top: 1px solid var(--line-dark);
    font-size: 13px;
    color: var(--c-on-dark-3);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-watermark {
    display: block;
    margin-bottom: -0.2em;
    font-size: clamp(80px, 19vw, 300px);
    line-height: 0.9;
    font-weight: 900;
    font-stretch: 125%;
    letter-spacing: -0.04em;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(10, 190, 181, 0.12), transparent 70%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 960px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 540px) {
    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------------------------------------------------------------------
   15. PRZYCISK "DO GÓRY", TOAST, BANER COOKIE
--------------------------------------------------------------------- */
.to-top {
    --p: 0;
    position: fixed;
    right: clamp(14px, 2vw, 28px);
    bottom: clamp(14px, 2vw, 28px);
    z-index: 900;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background:
        radial-gradient(closest-side, var(--c-ink) 86%, transparent 87% 100%),
        conic-gradient(var(--c-teal) calc(var(--p) * 1turn), rgba(255, 255, 255, 0.16) 0);
    color: #fff;
    box-shadow: 0 12px 30px -10px rgba(10, 14, 19, 0.5);
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.to-top svg {
    width: 18px;
    height: 18px;
    transition: transform 0.35s var(--ease-out);
}

.to-top:hover svg {
    transform: translateY(-3px);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 3000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--c-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, 30px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.5s var(--ease-spring);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast svg {
    width: 18px;
    height: 18px;
    color: var(--c-teal-300);
}

.cookie-consent-banner {
    position: fixed;
    left: clamp(12px, 2vw, 28px);
    bottom: clamp(12px, 2vw, 28px);
    z-index: 2500;
    width: min(520px, calc(100% - 24px));
    padding: 24px;
    border-radius: var(--r-lg);
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(10, 190, 181, 0.22), transparent 60%),
        var(--c-ink-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--c-on-dark-2);
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.6s var(--ease-out);
}

.cookie-consent-banner.is-visible {
    opacity: 1;
    transform: none;
}

.cookie-consent-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.cookie-consent-title svg {
    width: 22px;
    height: 22px;
    color: var(--c-teal-300);
}

.cookie-consent-text {
    font-size: 13.5px;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: var(--c-teal-300);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.cookie-consent-actions .btn {
    flex: 1 1 0;
    padding: 0 14px;
}

@media (max-width: 480px) {
    .cookie-consent-actions {
        flex-direction: column;
    }
}

/* ---------------------------------------------------------------------
   16. FORMULARZE (wspólne)
--------------------------------------------------------------------- */
.form-group {
    margin-bottom: 18px;
}

.form-group > label,
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-2);
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1.5px solid var(--c-line-2);
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    line-height: 1.4;
    color: var(--c-text);
    transition: border-color 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6b7a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--c-subtle);
}

.form-group input:hover:not(:focus):not([readonly]),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
    border-color: #b6c2cc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-teal);
    box-shadow: 0 0 0 4px rgba(10, 190, 181, 0.16);
}

.form-group input[readonly] {
    background: var(--c-bg-soft);
}

.form-group [aria-invalid="true"] {
    border-color: var(--c-red) !important;
    box-shadow: 0 0 0 4px rgba(229, 44, 52, 0.12) !important;
    animation: shake 0.4s var(--ease-out);
}

@keyframes shake {
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--c-teal);
}

.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0 18px;
}

.required-star {
    color: var(--c-red);
}

.opt-label {
    font-weight: 400;
    color: var(--c-subtle);
    font-size: 0.85em;
}

.send-status {
    min-height: 1.3em;
    margin-top: 14px;
    font-size: 14.5px;
    font-weight: 600;
}

.send-status:empty {
    margin-top: 0;
}

.send-status.success {
    color: var(--c-teal-700);
}

.send-status.error {
    color: var(--c-red-600);
}

.action-calc-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 22px 0;
}

/* Przycisk "Nie jestem robotem" */
.human-check-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 340px;
    padding: 14px 18px;
    border: 1.5px solid var(--c-line-2);
    border-radius: 14px;
    background: var(--c-bg-soft);
    text-align: left;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.human-check-btn:hover {
    border-color: #b6c2cc;
}

.human-check-box {
    position: relative;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #c3ccd5;
    border-radius: 7px;
    background: #fff;
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.4s var(--ease-spring);
}

.human-check-box::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.35s var(--ease-spring);
}

.human-check-btn[aria-pressed="true"] {
    border-color: var(--c-teal);
    background: var(--c-bg-tint);
    box-shadow: 0 0 0 4px rgba(10, 190, 181, 0.12);
}

.human-check-btn[aria-pressed="true"] .human-check-box {
    border-color: var(--c-teal);
    background: var(--c-teal);
    transform: scale(1.06);
}

.human-check-btn[aria-pressed="true"] .human-check-box::after {
    transform: rotate(45deg) scale(1);
}

.human-check-label {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--c-text-2);
}

.human-check-btn[aria-pressed="true"] .human-check-label {
    color: var(--c-teal-900);
}

/* Honeypot - poza ekranem (nie display:none, aby był widoczny dla botów) */
.hp-field-wrap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------------------
   17. MASZYNY – WIDOK 360° (wspólne także dla Kroku 1 konfiguratora)
--------------------------------------------------------------------- */
.viewer360-section {
    padding-block: clamp(56px, 6vw, 96px) clamp(48px, 5vw, 80px);
    background:
        radial-gradient(60% 55% at 50% 48%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
        var(--c-bg-soft);
}

.viewer360-wrapper {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

/* Lista typów - "segmented control" z przesuwanym wskaźnikiem */
.type-tabs-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.machine-type-list {
    position: relative;
    display: inline-flex;
    gap: 4px;
    max-width: 100%;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    scrollbar-width: none;
}

.machine-type-list::-webkit-scrollbar {
    display: none;
}

.type-indicator {
    position: absolute;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    width: 0;
    border-radius: 999px;
    background: var(--c-ink);
    box-shadow: 0 6px 16px -6px rgba(10, 14, 19, 0.5);
    transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out);
    pointer-events: none;
}

.machine-type-item {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--c-muted);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.machine-type-item:hover {
    color: var(--c-text);
}

.machine-type-item.active {
    color: #fff;
}

.machine-meta {
    text-align: center;
    margin-bottom: 8px;
}

.machine-meta-model {
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.035em;
    color: var(--c-text);
}

.machine-meta-desc {
    max-width: 620px;
    margin: 12px auto 0;
    font-size: 16px;
    color: var(--c-muted);
}

.machine-meta.is-switching .machine-meta-model,
.machine-meta.is-switching .machine-meta-desc {
    animation: metaIn 0.6s var(--ease-expo) both;
}

.machine-meta.is-switching .machine-meta-desc {
    animation-delay: 0.06s;
}

@keyframes metaIn {
    from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}

.viewer360-carousel {
    position: relative;
}

.viewer360-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
}

.viewer360-arrow:hover {
    transform: translateY(-50%) scale(1.06);
}

.viewer360-arrow:active {
    transform: translateY(-50%) scale(0.94);
}

.viewer360-arrow--left { left: 0; }
.viewer360-arrow--right { right: 0; }

.viewer360-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 932 / 351;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* Cień na podłodze tylko dla serii, których zdjęcia nie mają własnego cienia
   (TL-A5, VHA-RS) - położenie i szerokość ustawia JS (--shadow-y, --shadow-w) */
.viewer360-stage.has-floor-shadow::after {
    content: '';
    position: absolute;
    top: var(--shadow-y, 90%);
    left: calc(50% - var(--shadow-w, 70%) / 2);
    width: var(--shadow-w, 70%);
    height: 12%;
    translate: 0 -50%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 24, 40, 0.14), transparent);
    z-index: 0;
    pointer-events: none;
}

.viewer360-stage.is-dragging {
    cursor: grabbing;
}

.viewer360-stage img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    mix-blend-mode: multiply;
    /* Wypoziomowanie: maszyna każdej serii na środku pola (--level-y z JS) */
    translate: 0 var(--level-y, 0%);
    transform-origin: center;
    transition: transform 0.6s var(--ease-expo), opacity 0.4s ease;
}

.viewer360-magnifier {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    display: none;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0 12px 32px rgba(10, 14, 19, 0.28), 0 0 0 1px rgba(10, 190, 181, 0.6), 0 0 0 6px rgba(10, 190, 181, 0.12);
    pointer-events: none;
}

.viewer360-magnifier.is-active {
    display: block;
}

@media (max-width: 768px), (hover: none), (pointer: coarse) {
    .viewer360-magnifier {
        display: none !important;
    }
}

.viewer360-unavailable {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 30px;
    border: 1.5px dashed var(--c-line-2);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--c-muted);
}

.viewer360-stage.is-unavailable .viewer360-unavailable {
    display: flex;
}

.viewer360-stage.is-unavailable img {
    visibility: hidden;
}

/* Seria bez klatek 360°, ale ze zdjęciem poglądowym (TL-A5): zdjęcie widoczne,
   informacja "wkrótce" jako plakietka u góry */
.viewer360-stage.is-unavailable.has-still {
    cursor: default;
}

.viewer360-stage.is-unavailable.has-still img {
    visibility: visible;
}

.viewer360-stage.has-still .viewer360-unavailable {
    inset: 3% auto auto 50%;
    translate: -50% 0;
    flex-direction: row;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    white-space: nowrap;
    animation: metaIn 0.6s var(--ease-expo) both;
}

.viewer360-stage.has-still .viewer360-unavailable svg {
    width: 18px;
    height: 18px;
    color: var(--c-teal-700);
}

@media (max-width: 560px) {
    .viewer360-stage.has-still .viewer360-unavailable {
        top: -6px;
        padding: 6px 12px;
        font-size: 11.5px;
    }
}

.viewer360-slider-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 420px;
    margin: 18px auto 0;
}

.viewer360-slider {
    --fill: 0%;
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--c-teal) var(--fill), var(--c-line-2) var(--fill));
    cursor: pointer;
    outline: none;
}

.viewer360-slider:focus-visible {
    box-shadow: 0 0 0 4px rgba(10, 190, 181, 0.2);
}

.viewer360-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--c-teal);
    box-shadow: 0 4px 12px rgba(10, 190, 181, 0.45);
    cursor: grab;
    transition: transform 0.25s var(--ease-spring);
}

.viewer360-slider::-webkit-slider-thumb:hover,
.viewer360-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

.viewer360-slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: transparent;
}

.viewer360-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid var(--c-teal);
    box-shadow: 0 4px 12px rgba(10, 190, 181, 0.45);
    cursor: grab;
}

.viewer360-slider:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.viewer360-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-subtle);
}

.viewer360-hint img {
    width: 34px;
    height: auto;
    opacity: 0.75;
}


@media (max-width: 768px) {
    .viewer360-arrow {
        width: 40px;
        height: 40px;
    }

    .viewer360-arrow--left { left: -6px; }
    .viewer360-arrow--right { right: -6px; }

    .viewer360-stage {
        width: calc(100% - 64px);
    }

    .type-tabs-wrap {
        justify-content: flex-start;
        margin-inline: calc(-1 * var(--gutter));
        padding-inline: var(--gutter);
        overflow: hidden;
    }
}

/* ---------------------------------------------------------------------
   18. MASZYNY – OPIS SERII + PODZESPOŁY
--------------------------------------------------------------------- */
.components-section {
    padding-block: clamp(40px, 5vw, 72px) var(--section-y);
    background: #fff;
}

.machine-description {
    margin-bottom: clamp(64px, 8vw, 110px);
}

.machine-description-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px 48px;
    align-items: center;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--r-xl);
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(10, 190, 181, 0.18), transparent 55%),
        var(--c-ink);
    color: #fff;
}

.machine-description-panel.is-hidden-type {
    display: none;
}

.machine-description-panel h3 {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.machine-description-panel p {
    max-width: 820px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--c-on-dark-2);
    text-align: justify;
    /* dzielenie wyrazów (lang="pl") - bez dużych przerw w wąskich kolumnach */
    -webkit-hyphens: auto;
    hyphens: auto;
}

.machine-description-panel p + p {
    margin-top: 12px;
}

.catalog-dl-btn .btn-icon {
    width: 20px;
    height: 20px;
}

/* Panel serii z filmem producenta (TE-A5): opis + katalog | film 16:9 bez ramki */
.machine-description-panel--video {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(28px, 4vw, 56px);
}

.machine-description-panel--video .catalog-dl-btn {
    margin-top: 28px;
}

/* Okno filmu: jasne tło jak w sekcji 360°, zdjęcie maszyny wtopione w nie
   (multiply) i pulsujący przycisk; po kliknięciu w jego miejscu odtwarzacz YouTube */
.machine-description-video {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-lg);
    overflow: hidden;
    background:
        radial-gradient(60% 60% at 50% 50%, #ffffff 0%, rgba(255, 255, 255, 0) 75%),
        var(--c-bg-soft);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.video-facade-poster {
    position: absolute;
    left: 5%;
    top: 6%;
    width: 90%;
    height: 88%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.9s var(--ease-out);
}

.machine-description-video:hover .video-facade-poster {
    transform: scale(1.03);
}

.video-facade-play {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-text);
    cursor: pointer;
}

.video-facade-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-teal), var(--c-teal-700));
    color: #fff;
    box-shadow: 0 16px 36px -12px rgba(10, 190, 181, 0.75);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.video-facade-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(10, 190, 181, 0.45);
    animation: videoPulse 2.2s ease-out infinite;
}

@keyframes videoPulse {
    from { transform: scale(0.86); opacity: 1; }
    to { transform: scale(1.35); opacity: 0; }
}

/* Trójkąt w ikonie ma środek ciężkości w środku pola 24×24, więc stoi
   na środku koła bez dodatkowego przesuwania */
.video-facade-icon svg {
    width: 34px;
    height: 34px;
}

.video-facade-label {
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.video-facade-play:hover .video-facade-icon {
    transform: scale(1.08);
    box-shadow: 0 20px 44px -12px rgba(10, 190, 181, 0.85);
}

.video-facade-play:focus-visible {
    outline: none;
}

.video-facade-play:focus-visible .video-facade-icon {
    outline: 3px solid var(--c-teal);
    outline-offset: 8px;
}

.machine-description-video.is-playing .video-facade-poster,
.machine-description-video.is-playing .video-facade-play {
    display: none;
}

.machine-description-video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Strona otwarta z dysku (file://): YouTube blokuje wtedy osadzone filmy */
.video-facade-msg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-muted);
}

.video-facade-msg a {
    font-weight: 700;
    color: var(--c-teal-700);
}

@media (max-width: 560px) {
    .video-facade-icon {
        width: 66px;
        height: 66px;
    }

    .video-facade-icon svg {
        width: 27px;
        height: 27px;
    }

    .video-facade-label {
        font-size: 11.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-facade-icon::before {
        animation: none;
        opacity: 0;
    }
}

.components-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.components-list {
    display: flex;
    flex-direction: column;
    gap: clamp(64px, 8vw, 120px);
}

.component-item {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    opacity: 0;
    transform: translateY(46px);
    transition: opacity 1s var(--ease-expo), transform 1.1s var(--ease-expo);
}

.component-item.is-visible,
.no-anim .component-item {
    opacity: 1;
    transform: none;
}

.component-item:nth-child(even of :not(.is-hidden-type)) .component-photo {
    order: 2;
}

.component-item.is-hidden-type {
    display: none;
}

@media (min-width: 861px) {
    .component-item {
        align-items: start;
    }

    /* Zdjęcie "przykleja się" przy przewijaniu długiej listy cech */
    .component-photo {
        position: sticky;
        top: calc(var(--header-h) + 32px);
    }
}

.component-photo {
    border-radius: var(--r-xl);
    background: #fff;
    border: 1px solid var(--c-line);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.component-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1400 / 825;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}

.component-item:hover .component-photo img {
    transform: scale(1.04);
}

.component-text h3 {
    margin-bottom: 22px;
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.03em;
}

.component-feature-list {
    display: grid;
    gap: 4px;
    counter-reset: feat;
}

.component-feature {
    padding: 14px 0;
    border-top: 1px solid var(--c-line);
}

.component-feature:last-child {
    border-bottom: 1px solid var(--c-line);
}

.component-feature-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--c-text);
}

.component-feature-title .feat-num {
    display: inline-block;
    min-width: 34px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--c-teal-700);
}

.component-feature-points {
    list-style: none;
    margin-top: 6px;
    padding-left: 34px;
}

.component-feature-points li {
    position: relative;
    padding-left: 14px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--c-muted);
}

.component-feature-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-teal);
}

@media (max-width: 860px) {
    .machine-description-panel {
        grid-template-columns: 1fr;
    }

    .catalog-dl-btn {
        justify-self: start;
    }

    .component-item {
        grid-template-columns: 1fr;
    }

    .component-item:nth-child(even of :not(.is-hidden-type)) .component-photo {
        order: 0;
    }
}

/* Telefony: przycisk katalogu na całą szerokość - tak samo szeroki jak okno filmu */
@media (max-width: 600px) {
    .catalog-dl-btn {
        justify-self: stretch;
        width: 100%;
    }
}

/* ---------------------------------------------------------------------
   19. KARIERA
--------------------------------------------------------------------- */
.career-section {
    padding-block: clamp(56px, 7vw, 100px) var(--section-y);
    background: var(--c-bg-soft);
}

.job-container {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.job-details {
    padding: clamp(26px, 4vw, 52px);
    border-radius: var(--r-xl);
    background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-sm);
}

.job-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.job-badges .chip--live {
    background: var(--c-bg-tint);
    border-color: rgba(10, 190, 181, 0.35);
    color: var(--c-teal-700);
}

.chip--live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-teal);
    animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(10, 190, 181, 0.55); }
    80%, 100% { box-shadow: 0 0 0 8px rgba(10, 190, 181, 0); }
}

.job-title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.job-quick-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.quick-info-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: var(--r-md);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-line);
    transition: border-color 0.3s ease, transform 0.4s var(--ease-out);
}

.quick-info-item:hover {
    border-color: rgba(10, 190, 181, 0.4);
    transform: translateY(-3px);
}

.quick-info-item svg {
    width: 20px;
    height: 20px;
    color: var(--c-teal-700);
}

.quick-info-item span {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-subtle);
}

.quick-info-item strong {
    font-size: 15px;
    line-height: 1.3;
    color: var(--c-text);
}

.job-block {
    padding-block: 26px;
    border-top: 1px solid var(--c-line);
}

.job-block h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 19px;
    font-weight: 750;
}

.job-block h3 span {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--c-teal-700);
}

.job-block ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.job-block li {
    position: relative;
    padding-left: 32px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--c-text-2);
}

.job-block > ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c-bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2306807a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.job-block .sub-list {
    margin-top: 10px;
    gap: 6px;
}

.job-block .sub-list li {
    padding-left: 18px;
    font-size: 14.5px;
    color: var(--c-muted);
}

.job-block .sub-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid var(--c-teal);
}

.job-summary-text {
    margin-top: 12px;
    padding: 22px 24px;
    border-radius: var(--r-md);
    background: var(--c-bg-tint);
    border-left: 4px solid var(--c-teal);
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--c-teal-900);
}

.job-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 28px);
}

.job-image-card {
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--c-ink);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.job-image {
    position: relative;
    overflow: hidden;
}

.job-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 45% 30%;
    transition: transform 1.2s var(--ease-out);
}

.job-image-card:hover .job-image img {
    transform: scale(1.05);
}

.job-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--c-ink));
}

.apply-box {
    padding: 8px 28px 30px;
}

.apply-box h3 {
    font-size: 22px;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.02em;
}

.apply-box p {
    margin: 10px 0 22px;
    font-size: 14.5px;
    color: var(--c-on-dark-2);
}

.apply-box .apply-mail {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 13.5px;
    color: var(--c-on-dark-3);
}

.apply-box .apply-mail a {
    color: var(--c-teal-300);
}

@media (max-width: 1080px) {
    .job-quick-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .job-container {
        grid-template-columns: 1fr;
    }

    .job-sidebar {
        position: static;
    }
}

/* ---------------------------------------------------------------------
   20. KONTAKT
--------------------------------------------------------------------- */
.contact-section {
    padding-block: clamp(56px, 7vw, 100px) clamp(56px, 6vw, 88px);
    background: var(--c-bg-soft);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.contact-info-list {
    display: grid;
    gap: 14px;
}

.contact-card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 6px 18px;
    padding: 24px;
    border-radius: var(--r-lg);
    background: #fff;
    border: 1px solid var(--c-line);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mx) var(--my), rgba(10, 190, 181, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.contact-card:hover {
    border-color: rgba(10, 190, 181, 0.35);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card-icon {
    grid-row: span 3;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--c-ink);
    color: var(--c-teal-300);
    transition: transform 0.5s var(--ease-spring);
}

.contact-card:hover .contact-card-icon {
    transform: rotate(-6deg) scale(1.06);
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-role {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-teal-700);
}

.contact-details {
    display: grid;
    gap: 4px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-weight: 600;
    color: var(--c-text-2);
    transition: color 0.2s ease;
    word-break: break-word;
}

.contact-link:hover {
    color: var(--c-teal-700);
}

.contact-link.phone {
    font-size: 21px;
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.01em;
    color: var(--c-text);
}

.contact-link.email {
    font-size: 15px;
}

.copy-btn {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: var(--c-subtle);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
    background: var(--c-bg-soft);
    color: var(--c-teal-700);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

.contact-email-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-form-wrapper {
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--r-xl);
    background: #fff;
    border: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
}

.contact-form-title {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 800;
    font-stretch: var(--wide);
    letter-spacing: -0.03em;
}

.contact-form-subtitle {
    margin: 8px 0 28px;
    color: var(--c-muted);
}

.contact-form fieldset {
    border: 0;
    margin-bottom: 22px;
}

.contact-form legend {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-2);
}

.contact-topic-choice {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-option {
    position: relative;
    cursor: pointer;
}

.topic-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.topic-option span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid var(--c-line-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-2);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-spring);
}

.topic-option span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    transition: background-color 0.25s ease, transform 0.35s var(--ease-spring);
}

.topic-option:hover span {
    border-color: #b6c2cc;
}

.topic-option input:checked + span {
    background: var(--c-ink);
    border-color: var(--c-ink);
    color: #fff;
    transform: translateY(-1px);
}

.topic-option input:checked + span::before {
    background: var(--c-teal-300);
    border-color: var(--c-teal-300);
    transform: scale(1.2);
}

.topic-option input:focus-visible + span {
    outline: 2px solid var(--c-teal);
    outline-offset: 3px;
}

.contact-form .action-calc-bar {
    justify-content: flex-start;
}

.form-note {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--c-subtle);
}

.form-note a {
    color: var(--c-teal-700);
    text-decoration: underline;
}

/* Mapa z ładowaniem po zgodzie / kliknięciu */
.location {
    padding-bottom: var(--section-y);
    background: var(--c-bg-soft);
}

.map-card {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    border-radius: var(--r-xl);
    border: 1px solid var(--c-line);
    background: var(--c-ink-2);
}

.map-card iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.4) contrast(1.05);
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    padding: 30px;
    text-align: center;
    color: var(--c-on-dark-2);
    background:
        radial-gradient(circle at 58% 52%, rgba(10, 190, 181, 0.25), transparent 38%),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
        var(--c-ink-2);
}

.map-pin {
    position: relative;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--c-teal);
    color: #032321;
}

.map-pin::before,
.map-pin::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--c-teal);
    animation: pinRing 2.4s ease-out infinite;
}

.map-pin::after {
    animation-delay: 1.2s;
}

@keyframes pinRing {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(2.4); opacity: 0; }
}

.map-pin svg {
    width: 28px;
    height: 28px;
}

.map-placeholder p {
    max-width: 420px;
    font-size: 13.5px;
}

.location-card {
    position: absolute;
    left: 24px;
    bottom: 24px;
    z-index: 2;
    max-width: 340px;
    padding: 22px 24px;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.location-card h2 {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-teal-700);
}

.location-card p {
    color: var(--c-text-2);
}

.location-card strong {
    display: block;
    font-size: 17px;
    color: var(--c-text);
}

.location-card .link-underline {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
}

@media (max-width: 960px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .map-card {
        min-height: 520px;
    }

    .location-card {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .map-placeholder {
        align-content: start;
        padding-top: 60px;
    }
}

/* ---------------------------------------------------------------------
   21. STRONY PRAWNE (polityka prywatności / cookie)
--------------------------------------------------------------------- */
.legal-section {
    padding-block: clamp(56px, 7vw, 100px) var(--section-y);
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    padding: 20px;
    border-radius: var(--r-lg);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-line);
}

.legal-toc-title {
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-subtle);
}

.legal-toc ol {
    display: grid;
    gap: 2px;
    list-style: none;
}

.legal-toc a {
    position: relative;
    display: block;
    padding: 7px 10px 7px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--c-muted);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.legal-toc a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: var(--c-teal);
    transform: scaleY(0);
    transition: transform 0.35s var(--ease-out);
}

.legal-toc a:hover {
    color: var(--c-text);
    background: #fff;
}

.legal-toc a.is-active {
    color: var(--c-text);
    font-weight: 600;
}

.legal-toc a.is-active::before {
    transform: scaleY(1);
}

.legal-content {
    max-width: 820px;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
}

.legal-block {
    padding-block: 28px;
    border-top: 1px solid var(--c-line);
}

.legal-block:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.legal-block h2 {
    margin-bottom: 14px;
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.legal-block p,
.legal-block ul {
    margin-bottom: 12px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--c-text-2);
}

.legal-block ul {
    display: grid;
    gap: 8px;
    padding-left: 0;
    list-style: none;
}

.legal-block li {
    position: relative;
    padding-left: 22px;
}

.legal-block li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.78em;
    width: 8px;
    height: 2px;
    background: var(--c-teal);
}

.legal-block a {
    color: var(--c-teal-700);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-contact-box {
    padding: 24px 26px;
    border-radius: var(--r-lg);
    background: var(--c-bg-soft);
    border: 1px solid var(--c-line);
}

.legal-contact-box p {
    margin-bottom: 4px;
}

@media (max-width: 960px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }
}

/* ---------------------------------------------------------------------
   22. OGRANICZENIE RUCHU (prefers-reduced-motion)
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
    }

    .js [data-reveal],
    .component-item {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}
