/* ============================================================================
   RPM LOGISTICS — WSPÓLNY DESIGN SYSTEM (styles.css)
   
   Filozofia: editorial + industrial. NIE generic startup AI.
   Trzy rodziny fontów grające trzy role, paleta wprost z logo CMYK,
   asymetryczne układy, ostre wizualne sygnatury (numery sekcji, linie poziome).
   ============================================================================ */

/* ─── 1. ZMIENNE PROJEKTOWE ────────────────────────────────────────────────── */
:root {
    color-scheme: only light;  /* strona ZAWSZE jasna — ignoruje ciemny motyw systemu/przeglądarki */
    /* Kolory wyciągnięte BEZPOŚREDNIO z logo CMYK
       Charcoal — to nie czarny. To ciepły, ciężki węgiel z lekką nutą brązu.
       Ten konkretny odcień pojawia się w literach R i P logo. */
    --ink:           #1a1714;  /* główny tekst — głębszy niż logo charcoal, dla lepszej czytelności */
    --ink-soft:      #2a2926;  /* charcoal z logo — dla mniejszych tekstów */
    --ink-2:         #5a544e;  /* drugorzędny tekst, opisy */
    --ink-3:         #8a8278;  /* etykiety, captions, metadata */
    
    /* Tła — biel z ciepłą nutą + krem do alternacji sekcji */
    --bg:            #ffffff;  /* main background — czysto białe */
    --bg-cream:      #f3efe6;  /* krem do alternowania sekcji */
    --bg-elevated:   #ffffff;  /* białe karty na kremowym tle */
    --bg-warm:       #ebe3d3;  /* ciepły beż — następnik dawnego dark, bez czerni */
    --bg-dark:       #ebe3d3;  /* legacy alias — wskazuje na warm */
    
    /* Akcenty — czerwony i zielony z logo */
    --red:           #a82020;  /* dokładnie kolor z logo RPM (87% pikseli czerwieni) */
    --red-deep:      #821818;  /* ciemniejszy wariant logo red dla hover */
    --green:         #1d5e3d;  /* litera M + górne segmenty logo */
    --green-bright:  #2a8252;  /* dla hover na zielonym */
    
    /* Linie i obrysy */
    --rule:          rgba(26, 23, 20, 0.1);
    --rule-strong:   rgba(26, 23, 20, 0.22);
    --rule-dark:     rgba(250, 250, 247, 0.15);  /* na ciemnym tle */
    
    /* Typografia — trzy role */
    --font-display:  'Manrope', system-ui, sans-serif;     /* zwykły sans-serif, mocny w wagach 700-800 */
    --font-industrial: 'Bebas Neue', Impact, sans-serif;  /* condensed, transport */
    --font-body:     'Manrope', system-ui, sans-serif;    /* czytelność + polskie diakrytyki */
    --font-mono:     'JetBrains Mono', ui-monospace, monospace;
    
    /* Spacing scale — bazuje na 8px, z dodatkami dla większych odstępów */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;
    --space-9: 128px;
    --space-10: 160px;
    
    /* Layout */
    --maxw: 1320px;
    --maxw-narrow: 880px;  /* dla treści tekstowej (lepsza czytelność niż pełna szerokość) */
    --gutter: 24px;
    
    /* Cienie — subtelne, dla jasnego motywu używamy ich jako głębi */
    --shadow-sm: 0 1px 2px rgba(26, 23, 20, 0.05);
    --shadow-md: 0 4px 16px -4px rgba(26, 23, 20, 0.08),
                 0 1px 2px rgba(26, 23, 20, 0.04);
    --shadow-lg: 0 20px 48px -16px rgba(26, 23, 20, 0.12),
                 0 4px 12px -4px rgba(26, 23, 20, 0.06);
    
    /* Easing — wszystkie animacje używają TEJ SAMEJ krzywej, dla spójności */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── 2. RESET I BAZA ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─── 3. TYPOGRAFIA — TRZY GŁOSY MARKI ────────────────────────────────────── */

/* Display: Manrope w wagach 700-800. Czytelny sans-serif, bez fajerwerków. */
.display {
    font-family: var(--font-display);
    font-weight: 500;
    font-style: normal;
    letter-spacing: -0.02em;
    line-height: 0.95;
    }
.display-italic {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.015em;
}

/* Industrial sans condensed: Bebas Neue. Dla nav, numerów sekcji, etykiet. */
.industrial {
    font-family: var(--font-industrial);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Mono: JetBrains Mono. Dla małych etykiet typu "01 — usługi", numerów telefonów. */
.mono {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
}

/* ─── 4. KONTAINER + GRID ──────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

/* ─── 5. NAWIGACJA ─────────────────────────────────────────────────────────── */
/* Białe sticky menu — uppercase bold pozycje, aktywna w czerwonej ramce, hover→red. 
   Czysty B2B look, bez fajerwerków. */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid var(--rule);
    transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.nav__logo {
    display: flex;
    align-items: center;
    transition: opacity 0.2s var(--ease);
    flex-shrink: 0;
}
.nav__logo:hover { opacity: 0.75; }
.nav__logo img { height: 42px; width: auto; }

.nav__menu {
    display: flex;
    gap: 8px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.nav__menu a:hover {
    color: var(--red);
}
/* Animowany underline dla aktywnej pozycji + hover */
.nav__menu a {
    position: relative;
    display: inline-block;
    padding: 10px 18px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    border: none;
    white-space: nowrap;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__menu a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__menu a:hover {
    color: var(--red);
}

.nav__menu a:hover::before {
    width: 65%;
    left: 17.5%;
}

.nav__menu a.active {
    color: var(--red);
}

.nav__menu a.active::before {
    width: calc(100% - 24px);
    left: 12px;
    box-shadow: 0 0 8px rgba(168, 32, 32, 0.5);
    animation: navActivePulse 2.4s ease-in-out infinite;
}

@keyframes navActivePulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(168, 32, 32, 0.5);
        transform: scaleY(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(168, 32, 32, 0.8);
        transform: scaleY(1.4);
    }
}

/* CTA "ZAPYTANIE" z ikoną maila */
.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--red);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
    flex-shrink: 0;
}
.nav__cta:hover {
    background: var(--red-deep);
    transform: translateY(-1px);
}
.nav__cta svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── 6. HERO (HOMEPAGE) ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding-bottom: 5vh;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('scania-hero.jpg');
    background-size: cover;
    background-position: center;
}
/* Brak ::after — żadnego przyciemnienia ani gradientu na zdjęciu */
.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    color: white;
}
/* Bloki wewnątrz hero__content siedzą po lewej w kontenerze */
.hero__content > * {
    max-width: 580px;
}
.hero__rule {
    width: 56px;
    height: 3px;
    background: var(--red);
    margin-bottom: 36px;
}
.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-style: normal;
    font-size: clamp(44px, 7vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin-bottom: 32px;
    max-width: 840px;
    text-shadow:
        0 1px 2px rgba(40, 20, 5, 0.85),
        0 4px 20px rgba(40, 20, 5, 0.6),
        0 0 60px rgba(40, 20, 5, 0.35);
}

.hero__sub {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    max-width: 480px;
    margin-bottom: 36px;
}
.hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── 7. HEADER PODSTRON (Hero light) ─────────────────────────────────────── */
/* Mniejszy hero dla podstron — nie ma tła obrazkowego, tylko mocna typografia */
.page-header {
    padding: 180px 0 80px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    min-height: 100vh;
}
.page-header__label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 24px;
}
.page-header__label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--green);
}
.page-header__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(48px, 8vw, 112px);
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin-bottom: 32px;
    max-width: 900px;
}
.page-header__title em {
    font-style: italic;
}
.page-header__lead {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.5;
    color: var(--ink-2);
    max-width: 680px;
}

/* ─── 8. PRZYCISKI ────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.25s var(--ease);
    border: 1px solid transparent;
}
.btn--primary {
    background: var(--red);
    color: white;
}
.btn--primary:hover {
    background: var(--red-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(168, 32, 32, 0.5);
}
.btn--ghost {
    border-color: var(--rule-strong);
    color: var(--ink);
}
.btn--ghost:hover {
    border-color: var(--ink);
    background: rgba(26, 23, 20, 0.04);
}
.btn--dark {
    background: var(--green);
    color: white;
}
.btn--dark:hover {
    background: var(--green-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(29, 94, 61, 0.4);
}
.btn__arrow {
    transition: transform 0.25s var(--ease);
    display: inline-block;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ─── 9. SEKCJE — WSPÓLNY WZORZEC ──────────────────────────────────────────── */
.section {
    padding: var(--space-9) 0;
    position: relative;
}
.section--cream { background-color: #ffffff; }
.section--dark {
    background: var(--bg-warm);
    color: var(--ink);
}

/* Pasek tytułu sekcji — numer + label + duży tytuł */
.section__head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
    max-width: 1100px;
}
.section__num {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
}
.section__num::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--red);
}
.section--dark .section__num { color: var(--ink-2); }
.section__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(44px, 6vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.02em;
    max-width: 900px;
}
.section__title em {
    font-style: italic;
    color: var(--red);
}
.section__lead {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 620px;
    margin-top: 32px;
}
.section--dark .section__lead { color: var(--ink-2); }

/* ─── 10. DUŻY CYTAT — KEY EDITORIAL ELEMENT ──────────────────────────────── */
/* To jest jedyny element, który najmocniej sygnalizuje "magazine, nie startup".
   Ogromny serif italic z czerwonym akcentem cudzysłowów. */
.pull-quote {
    position: relative;
    padding: var(--space-8) 0;
    max-width: 1000px;
}
.pull-quote::before {
    content: '"';
    position: absolute;
    top: 0;
    left: -30px;
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 800;
    font-size: 180px;
    line-height: 0.7;
    color: var(--red);
    opacity: 0.2;
}
.pull-quote__text {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 700;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.pull-quote__author {
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ─── 11. ASYMETRYCZNA SIATKA USŁUG (homepage) ───────────────────────────── */
/* NIE 3 karty z ikonkami. To jest "anti-AI" — duże numery + editorial layout. */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--rule);
}
.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 1.5fr 80px;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--rule);
    align-items: baseline;
    cursor: pointer;
    transition: background 0.3s var(--ease);
}
.service-row:hover {
    background: rgba(168, 32, 32, 0.03);  /* delikatne czerwone tło na hover */
}
.service-row__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 48px;
    line-height: 1;
    color: var(--red);
}
.service-row__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.015em;
}
.service-row__desc {
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-2);
}
.service-row__arrow {
    font-family: var(--font-industrial);
    font-size: 24px;
    color: var(--ink-3);
    text-align: right;
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.service-row:hover .service-row__arrow {
    color: var(--red);
    transform: translateX(8px);
}

/* ─── 12. STATY — LICZBOWE PUNKTY ─────────────────────────────────────────── */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}
.stat {
    background: var(--bg);
    padding: 40px 32px;
}
.stat--cream { background: var(--bg-cream); }
.stat__num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1;
    color: var(--ink);
    margin-bottom: 16px;
}
.stat__num .unit {
    font-size: 0.4em;
    color: var(--green);
    margin-left: 6px;
    font-weight: 600;
}
.stat__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
    line-height: 1.4;
}

/* ─── 13. ZESPÓŁ — KARTY OSOBOWE ───────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.team-card {
    background: var(--bg-elevated);
    padding: 32px;
    border-radius: 2px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    border-top: 3px solid var(--red);
}
.team-card:nth-child(2n) { border-top-color: var(--green); }
.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.team-card__nick {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    line-height: 1.1;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.team-card:nth-child(2n) .team-card__nick { color: var(--green); }
.team-card__name {
    font-family: var(--font-industrial);
    font-size: 14px;
    color: var(--ink);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.team-card__role {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 20px;
}
.team-card__desc {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-2);
}

/* ─── 14. DOKUMENTY — TABELA Z DANYMI ─────────────────────────────────────── */
.docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}
.doc-row {
    display: grid;
    grid-template-columns: 1fr 2fr 200px;
    gap: 32px;
    padding: 28px 32px;
    background: var(--bg-elevated);
    align-items: baseline;
    transition: background 0.2s var(--ease);
}
.doc-row:hover { background: rgba(168, 32, 32, 0.03); }
.doc-row__label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.doc-row__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.2;
}
.doc-row__title small {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--ink-2);
    margin-top: 4px;
    font-weight: 400;
}
.doc-row__num {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink);
    text-align: right;
    letter-spacing: 0.05em;
}

/* ─── 15. GALERIA FLOTY / MAGAZYNU ────────────────────────────────────────── */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 16px;
}
.gallery__item {
    position: relative;
    overflow: hidden;
    background: var(--bg-cream);
}
.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Bez animacji hover */
.gallery__caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 10px 14px;
    background: rgba(168, 32, 32, 0.92);
    color: white;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

/* ─── 16. FORMULARZ KONTAKTOWY ────────────────────────────────────────────── */
.form {
    background: var(--bg-elevated);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.form__input,
.form__textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule-strong);
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    transition: border-color 0.2s var(--ease);
    outline: none;
}
.form__input:focus,
.form__textarea:focus { border-bottom-color: var(--red); }
.form__textarea { resize: vertical; min-height: 100px; }

/* ─── 17. STOPKA ──────────────────────────────────────────────────────────── */
.footer {
    background: var(--bg-cream);
    color: var(--ink);
    padding: 80px 0 32px;
    border-top: 4px solid var(--red);
}
.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 64px;
}
.footer__brand img {
    height: 60px;
    width: auto;
    margin-bottom: 24px;
}
.footer__motto {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 17px;
    line-height: 1.3;
    color: var(--ink);
    max-width: 320px;
}
.footer__col-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 20px;
}

.footer__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__list a {
    color: var(--ink);
    font-size: 14px;
    transition: color 0.2s var(--ease);
}
.footer__list a:hover { color: var(--red); transition: color 0.2s ease; }
.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
}

/* ─── 18. ANIMACJE — MINIMALIST REVEAL ON SCROLL ──────────────────────────── */
/* Elementy z klasą .reveal startują niewidoczne, otrzymują klasę .is-visible
   gdy wejdą w viewport (IntersectionObserver w scripts.js). */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
/* Staggered delays — gdy reveal jest w grupie, kolejne mają opóźnienie */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* Page-load hero animation — staggered fade up */
@keyframes heroRise {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero__tag { animation: heroRise 0.9s 0.2s var(--ease) backwards; }
.hero__title { animation: heroRise 1s 0.4s var(--ease) backwards; }
.hero__sub { animation: heroRise 0.9s 0.7s var(--ease) backwards; }
.hero__ctas { animation: heroRise 0.9s 0.9s var(--ease) backwards; }

/* ─── 19. CTA BANNER (między sekcjami) ────────────────────────────────────── */
.cta-banner {
    background: var(--red);
    color: white;
    padding: 100px 0;
    text-align: center;
}
.cta-banner__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 32px;
}
.cta-banner__lead {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 540px;
    margin: 0 auto 40px;
}

/* ─── 21. COVER IMAGE — pełnoszerokościowy banner między sekcjami ──────────── */
/* "Strona ma żyć" — duże zdjęcia full-bleed między sekcjami tekstowymi
   dają wizualny oddech i utrzymują uwagę. */
.cover-image {
    width: 100%;
    height: 60vh;
    min-height: 380px;
    max-height: 560px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cover-image--short { height: 40vh; min-height: 280px; }
.cover-image--tall { height: 75vh; min-height: 480px; }

/* ─── 22. SPLIT FEATURE — sekcja "tekst + zdjęcie" 50/50 ──────────────────── */
.split-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 500px;
}
.split-feature--reversed { direction: rtl; }
.split-feature--reversed > * { direction: ltr; }

.split-feature__media {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
}

.split-feature__content {
    background: #ffffff;
    padding: 80px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-feature__num {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 24px;
}
.split-feature__num span:first-child {
    font-family: var(--font-industrial);
    font-size: 36px;
    color: var(--red);
}
.split-feature__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    max-width: 480px;
    color: var(--ink);
}
.split-feature__title em {
    font-style: normal;
    color: var(--red);
}
.split-feature__body {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 460px;
}
.split-feature__body p { margin-bottom: 14px; }
.split-feature__body p:last-child { margin-bottom: 0; }

@media (max-width: 880px) {
    .split-feature { grid-template-columns: 1fr; min-height: auto; }
    .split-feature__media { min-height: 280px; }
    .split-feature__content { padding: 60px 24px; }
    .cover-image { height: 40vh; min-height: 240px; }
}

/* ─── 23. SERVICES FEATURE — DWA CIEMNE PANELE NA ZDJĘCIU HALI ──────────── */
/* Tło: zdjęcie hali z flotą RPM (logo widoczne na ścianie w środku).
   Dwa ciemne kontenery siedzą po lewej (35-40%) i po prawej (40-45%),
   środek zostaje wolny — tam widać logo z hali. */
.services-feature {
    position: relative;
    min-height: 720px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0;
}
.services-feature__inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    gap: 32px;
}
.services-feature__panel {
    width: 420px;
    max-width: 30vw;  /* na małych ekranach: max 30% viewportu */
    background: rgba(20, 18, 16, 0.82);  /* ciemny ciepły węgiel, nie czarny */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    padding: 52px 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Lewy panel — tytuł + opis + CTA link */
.services-feature__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.15;
    color: white;
    letter-spacing: -0.015em;
    margin-bottom: 22px;
}
.services-feature__desc {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 28px;
}
.services-feature__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.services-feature__cta:hover {
    gap: 18px;
    color: white;
}

/* Prawy panel — lista 6 usług z numerami i strzałkami */
.services-feature__list {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.services-feature__list a {
    display: grid;
    grid-template-columns: 28px 1fr 24px;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: white;
    transition: color 0.2s var(--ease);
}
.services-feature__list a:hover { color: var(--red); }
.services-feature__list li:first-child a { padding-top: 0; }
.services-feature__list li:last-child a {
    padding-bottom: 0;
    border-bottom: none;
}
.services-feature__num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}
.services-feature__name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
}
.services-feature__arrow {
    text-align: right;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}
.services-feature__list a:hover .services-feature__arrow {
    transform: translateX(4px);
    color: var(--red);
}

@media (max-width: 980px) {
    .services-feature { padding: 60px 0; min-height: auto; }
    .services-feature__inner {
        flex-direction: column;
        gap: 24px;
        padding: 0 20px;
    }
    .services-feature__panel {
        width: 100%;
        max-width: 100%;
        padding: 40px 28px;
    }
}

/* ─── 24. SERVICE CARD — KARTA USŁUGI ZE ZDJĘCIEM I LISTĄ BENEFITÓW ──────── */
/* Layout: zdjęcie po lewej (45%) + treść po prawej (55%) z 2-kol benefitami */
.service-card {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 64px;
    align-items: center;
    margin-bottom: 96px;
}
.service-card:last-of-type {
    margin-bottom: 0;
}

/* Odwrócona kolejność — tekst po lewej, zdjęcie po prawej */
.service-card--reversed {
    grid-template-columns: 55% 45%;
}

/* Zdjęcie — rounded card z subtelnym cieniem */
.service-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-warm);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px -16px rgba(26, 23, 20, 0.22);
}

/* Placeholder dla zdjęć których jeszcze nie ma */
.service-card__media--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: 
        repeating-linear-gradient(
            45deg,
            var(--bg-warm),
            var(--bg-warm) 12px,
            var(--bg-cream) 12px,
            var(--bg-cream) 24px
        );
    border: 1.5px dashed rgba(26, 23, 20, 0.15);
    color: var(--ink-3);
}
.service-card__placeholder-icon {
    width: 48px;
    height: 48px;
    opacity: 1;.4;
}
.service-card__placeholder-text {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-3);
}

/* Treść po prawej */
.service-card__content {
    padding: 16px 0;
}
.service-card__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 2.4vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 22px;
}
.service-card__title em {
    font-style: normal;
    color: var(--red);
}
.service-card__desc {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-2);
    margin-bottom: 32px;
    max-width: 560px;
}

/* Lista benefitów — 2 kolumny z zielonymi ptaszkami */
.service-card__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 36px;
    max-width: 560px;
}
.service-card__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ink);
}
.service-card__feature::before {
    content: '';
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(29, 94, 61, 0.3);
    background-color: white;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%231d5e3d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8l3 3 6-6'/></svg>");
    background-size: 13px 13px;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 880px) {
    .service-card {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 64px;
    }
    .service-card__media {
        aspect-ratio: 16 / 10;
    }
    .service-card__features {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ─── 20. RESPONSYWNOŚĆ ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .nav__menu, .nav__cta { display: none; }
    .nav__burger { display: flex; }
    
    .hero { padding-top: 90px; padding-bottom: 60px; min-height: 80vh; }
    .hero__title { font-size: clamp(36px, 8vw, 52px); }
    .hero__content > * { max-width: none; }
    
    .page-header { padding: 140px 0 60px; }
    .page-header__title { font-size: clamp(40px, 9vw, 64px); }
    
    .section { padding: 80px 0; }
    .section__title { font-size: clamp(36px, 6vw, 56px); }
    
    .service-row {
        grid-template-columns: 60px 1fr 30px;
        gap: 20px;
        padding: 32px 0;
    }
    .service-row__desc {
        grid-column: 2 / 4;
        margin-top: 12px;
    }
    
    .stats { grid-template-columns: repeat(2, 1fr); }
    
    .gallery { 
        grid-template-columns: 1fr; 
        grid-auto-rows: 220px;
    }
    
    .footer__top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer__bottom { flex-direction: column; text-align: center; gap: 8px; }
    
    .doc-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 20px;
    }
    .doc-row__num { text-align: left; }
    
    .form { padding: 28px; }
    .form__row { grid-template-columns: 1fr; }
    
    .pull-quote::before { left: -10px; font-size: 140px; }
}
@media (max-width: 540px) {
    .container { padding: 0 18px; }
    .stats { grid-template-columns: 1fr; }
}

/* === ZASTĄPIENIE ITALIC SERIFEM: <em> w nagłówkach jako bold + kolorowy accent === */
.hero__title em,
.page-header__title em,
.section__title em,
.pull-quote__text em,
.cta-banner__title em,
.team-card__nick em,
.service-block__title em,
.contact-info__value em,
.rule__text em,
.owpis-card__title em {
    font-style: normal;
    font-weight: 800;
    color: var(--red);
}
.section__title em em,
.cta-banner__title em em { color: inherit; }

/* Druga warstwa: zielony akcent dla wybranych elementów (jak w logo M) */
.team-card:nth-child(2n) .team-card__nick { color: var(--green); }

/* ═══ ANIMACJE MINIMALISTYCZNE ════════════════════════════════════════ */

/* Fade-in + scale dla reveal elementów */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle glow na hover */
@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(168, 32, 32, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(168, 32, 32, 0.4));
    }
}

/* Scale in dla pojedynczych elementów */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide in z lewej */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in z prawej */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service cards — transitions zamiast animation (zawsze widoczne) */
.service-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Bez animacji hover na zdjęciach */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section nagłówki — zawsze widoczne, brak animacji blokującej */

/* Nawigacja fade-in */
/* Smooth transitions */
a, button, input, textarea {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Hero section — fade-in na load (forwards = trzyma końcowy stan) */
.hero__content {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.hero__title {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero__cta {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
    opacity: 0;
}

/* ═══ PAGE TRANSITION — wygaszacz z licznikiem RPM ═══════════════════════════════ */

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at center, #1a1714 0%, #0a0a0a 70%, #050505 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.page-transition.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Logo + tarcza */
.page-transition__logo {
    width: min(480px, 65vw);
    height: auto;
    margin-bottom: 56px;
    filter: drop-shadow(0 0 20px rgba(168, 32, 32, 0.4));
    animation: rpmPulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes rpmPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(168, 32, 32, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(168, 32, 32, 0.7))
                drop-shadow(0 0 60px rgba(168, 32, 32, 0.3));
        transform: scale(1.02);
    }
}

/* Motto — pojawia się staggered */
.page-transition__motto {
    font-family: 'Manrope', sans-serif;
    color: #fff;
    text-align: center;
    margin-bottom: 0;
    opacity: 1;
}

.page-transition__motto-line1 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.page-transition__motto-line2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1;
}

.page-transition__motto-accent {
    color: #a82020;
    display: inline-block;
    animation: redPulse 2s ease-in-out infinite;
}

@keyframes redPulse {
    0%, 100% { color: #a82020; }
    50% { color: #d84545; text-shadow: 0 0 20px rgba(168, 32, 32, 0.5); }
}

@keyframes mottoFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── DOC ROW DOWNLOAD ───────────────────────────────────────────── */
.doc-row--with-download {
    grid-template-columns: 1fr 2fr 1fr 56px;
}
.doc-row__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-3);
    border: 1px solid var(--rule);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    flex-shrink: 0;
}
.doc-row__download:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 32, 32, 0.35);
}
.doc-row__download svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.doc-row__downloads {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}
.doc-row__downloads-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-right: 4px;
}
@media (max-width: 768px) {
    .doc-row--with-download {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .doc-row__download {
        justify-self: start;
    }
}



/* ═══ FAQ FRAMER STYLE ═══════════════════════════════════════════════════════ */
.faq-framer-section {
    background: var(--bg);
}

/* Header sekcji - asymetryczny układ */
.faq-framer-head {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}
.faq-framer-head__label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 20px;
    font-weight: 500;
}
.faq-framer-head__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 52px;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: -0.025em;
    margin: 0 0 24px;
}
.faq-framer-head__title em {
    font-style: italic;
    color: var(--red);
}
.faq-framer-head__lead {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0;
}

/* Akordeon container */
.faq-framer {
    max-width: 880px;
    margin: 0 auto;
}

/* Każdy item — czyste tło, tylko border-bottom */
.faq-framer__item {
    border-bottom: 1px solid var(--rule);
}
.faq-framer__item:first-child {
    border-top: 1px solid var(--rule);
}

/* Trigger - klikalna całość */
.faq-framer__trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 28px 8px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-family: inherit;
    color: var(--ink);
    transition: color 0.3s var(--ease);
}
.faq-framer__trigger:hover {
    color: var(--red);
}

.faq-framer__question {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.35;
    color: inherit;
    flex: 1;
    letter-spacing: -0.01em;
}

/* Ikona plus / minus — animowana */
.faq-framer__icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.faq-framer__icon::before,
.faq-framer__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s var(--ease);
}
.faq-framer__icon::before {
    /* linia pozioma — zawsze widoczna */
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}
.faq-framer__icon::after {
    /* linia pionowa — znika po rozwinięciu */
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%) scaleY(1);
}

/* Stan otwarty - "+" → "−" */
.faq-framer__trigger[aria-expanded="true"] {
    color: var(--red);
}
.faq-framer__trigger[aria-expanded="true"] .faq-framer__icon::after {
    transform: translateX(-50%) scaleY(0);
}

/* Content - smooth height animation via JS */
.faq-framer__content {
    overflow: hidden;
    height: 0;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-framer__answer {
    padding: 0 8px 32px 8px;
}
.faq-framer__answer p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-2);
    margin: 0;
    max-width: 720px;
}
.faq-framer__answer p strong {
    color: var(--ink);
    font-weight: 600;
}
.faq-framer__answer p em {
    color: var(--red);
    font-style: normal;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    .faq-framer-head {
        margin-bottom: 48px;
    }
    .faq-framer-head__title {
        font-size: 36px;
    }
    .faq-framer-head__lead {
        font-size: 15px;
    }
    .faq-framer__trigger {
        padding: 22px 4px;
        gap: 16px;
    }
    .faq-framer__question {
        font-size: 16px;
    }
    .faq-framer__icon {
        width: 20px;
        height: 20px;
    }
    .faq-framer__answer {
        padding: 0 4px 26px 4px;
    }
    .faq-framer__answer p {
        font-size: 14.5px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   POLITYKA PRYWATNOŚCI — pasek zgody (cookies) + modal
   Wstrzykiwane przez scripts.js, więc działa na każdej podstronie.
   Zgodne z design systemem: Manrope/mono, akcenty logo, krzywa --ease.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Pasek zgody (dolny, pływająca karta) ─────────────────────────────────── */
.privacy-bar {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--rule);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 24px;
    /* stan ukryty — wjeżdża od dołu */
    transform: translateY(140%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.55s var(--ease), opacity 0.45s var(--ease), visibility 0s linear 0.55s;
}
.privacy-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.55s var(--ease), opacity 0.45s var(--ease);
}
.privacy-bar__text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 0;
    flex: 1;
}
.privacy-bar__text strong { color: var(--ink); font-weight: 700; }
.privacy-bar__link {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
}
.privacy-bar__link:hover { color: var(--red-deep); }
.privacy-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.privacy-bar__btn {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    border: none;
    border-radius: 10px;
    padding: 14px 26px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s var(--ease);
}
.privacy-bar__btn--accept {
    background: var(--red);
    color: #fff;
}
.privacy-bar__btn--accept:hover { background: var(--red-deep); transform: translateY(-1px); }

/* ─── Modal z treścią polityki ─────────────────────────────────────────────── */
.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(26, 23, 20, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.privacy-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s var(--ease);
}
.privacy-modal__dialog {
    background: var(--bg-elevated);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 760px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.4s var(--ease);
}
.privacy-modal.is-open .privacy-modal__dialog { transform: translateY(0) scale(1); }

.privacy-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 30px 34px 20px;
    border-bottom: 1px solid var(--rule);
    flex-shrink: 0;
}
.privacy-modal__eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 6px;
}
.privacy-modal__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 3.4vw, 30px);
    line-height: 1.1;
    color: var(--ink);
    margin: 0;
}
.privacy-modal__close {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    background: var(--bg);
    color: var(--ink-2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.privacy-modal__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }
.privacy-modal__close:hover { background: var(--red); color: #fff; border-color: var(--red); }

.privacy-modal__body {
    padding: 26px 34px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.privacy-modal__body h3 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    color: var(--ink);
    margin: 26px 0 8px;
}
.privacy-modal__body h3:first-child { margin-top: 0; }
.privacy-modal__body p,
.privacy-modal__body li {
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0 0 10px;
}
.privacy-modal__body ul { margin: 0 0 10px; padding-left: 20px; }
.privacy-modal__body li { margin-bottom: 6px; }
.privacy-modal__body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.privacy-modal__body a:hover { color: var(--red-deep); }
.privacy-modal__body strong { color: var(--ink); font-weight: 700; }
.privacy-modal__updated {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

/* ─── Link w stopce ────────────────────────────────────────────────────────── */
.footer__privacy {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}
.footer__privacy:hover { color: var(--red); }

/* ─── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .privacy-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }
    .privacy-bar__actions { flex-direction: column-reverse; align-items: stretch; }
    .privacy-bar__btn--accept { width: 100%; }
    .privacy-bar__link { text-align: center; }
    .privacy-modal { padding: 0; }
    .privacy-modal__dialog { max-height: 100vh; height: 100%; border-radius: 0; }
    .privacy-modal__head { padding: 22px 20px 16px; }
    .privacy-modal__body { padding: 20px; }
}

/* ─── Redukcja ruchu ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .privacy-bar,
    .privacy-modal,
    .privacy-modal__dialog { transition-duration: 0.01ms; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRZEŁĄCZNIK JĘZYKA (wstrzykiwany przez i18n.js do nawigacji)
   ═══════════════════════════════════════════════════════════════════════════ */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--rule-strong);
    border-radius: 9px;
    padding: 9px 12px;
    cursor: pointer;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lang-switch__btn:hover { border-color: var(--red); color: var(--red); }
.lang-switch__btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.lang-switch__caret { width: 12px !important; height: 12px !important; transition: transform 0.25s var(--ease); }
.lang-switch.is-open .lang-switch__caret { transform: rotate(180deg); }

.lang-switch__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 156px;
    background: var(--bg-elevated);
    border: 1px solid var(--rule);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s;
    z-index: 120;
}
.lang-switch.is-open .lang-switch__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.lang-switch__menu li { margin: 0; }
.lang-switch__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.lang-switch__opt:hover { background: var(--bg-cream); color: var(--red); }
.lang-switch__opt[aria-selected="true"] { color: var(--red); }
.lang-switch__opt[aria-selected="true"]::after {
    content: "✓";
    margin-left: auto;
    font-weight: 700;
}
.lang-switch__flag {
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    color: var(--ink-3);
    min-width: 22px;
}

@media (max-width: 980px) {
    .lang-switch { margin-left: auto; }
    .lang-switch__menu { right: 0; }
}
