:root {
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --color-primary: #334d42;        /* Brand Forest Green */
    --color-primary-dark: #22342c;   /* Darker Green */
    --color-primary-light: #446557;  /* Lighter Green */
    --color-accent: #fac832;         /* Brand Warm Gold */
    --color-accent-dark: #e1b221;    /* Hover Gold */
    
    --bg-main: #ffffff;
    --bg-sec: #f8fafc;
    --bg-dark: #121824;
    
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    
    --border-color: #e2e8f0;
    --border-color-dark: #cbd5e1;
    
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px -5px rgba(51, 77, 70, 0.1);
    --shadow-hard: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 114px;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 122px; /* Dławik powierzchni na stały pasek telefoniczny (32px) i header (90px) */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Stabilizacja wymiarów ikon Lucide zapobiegająca przeskokom paska nawigacji */
i[data-lucide], svg.lucide {
    width: 1.2em;
    height: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

/* Zsynchronizowana wysokość Paska Chlebka (Breadcrumbs) na wszystkich stronach */
.product-breadcrumb-bar,
.breadcrumb-bar {
    background-color: var(--bg-sec);
    padding: 0.9rem 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid var(--border-color);
}

/* Stałe wymiary ramki obrazka w kafelkach karuzeli (brak skakania przed/po załadowaniu Swipera) */
.bestsellers-card-img-box {
    height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.bestsellers-card {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Kafelek produktu jako prawdziwy link — bez zmiany wyglądu karty */
.bestsellers-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.bestsellers-card-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.bestsellers-card-img-box img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* Reusable Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: 4px; /* Standard corporate look */
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 12px rgba(250, 200, 50, 0.2);
}
.btn-primary:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(250, 200, 50, 0.3);
}
/* Napis ma zostac w jednej linii takze na waskim ekranie: zlamany na dwie
   rozpychalby przycisk w pionie i rozjezdzal uklad naglowka. */
.btn-oferta {
    white-space: nowrap;
}
.btn-oferta:hover {
    background-color: #334d42 !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(51, 77, 66, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

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

/* Top Phone Bar - Przyklejony na stałe na samej górze */
.phone-bar {
    background-color: #254536;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0.28rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 300;
    box-sizing: border-box !important;
}
.phone-bar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}
.phone-bar-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}
.phone-bar-link:hover {
    color: rgba(255,255,255,0.8);
}
.phone-bar-icon {
    width: 14px;
    height: 14px;
    color: #fff;
    stroke: #fff;
}

/* Header & Navigation - Przyklejone na stałe tuż pod paskiem kontaktowym (top: 32px) */
.header {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    height: 90px !important;
    min-height: 90px !important;
    z-index: 290;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition-fast);
    box-sizing: border-box !important;
}

.header-container {
    height: 90px !important;
    min-height: 90px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-lang-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}
.logo-img {
    height: 75px !important;
    max-width: 260px;
    object-fit: contain;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
}
.lang-btn {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
    padding: 0.15rem 0.1rem;
}
.lang-btn.active {
    color: var(--color-primary);
}
.lang-btn:hover {
    color: var(--color-primary);
}
.lang-sep {
    color: var(--border-color);
    font-size: 0.75rem;
    user-select: none;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0.25rem;
    letter-spacing: 0.03em;
    transition: var(--transition-fast);
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #fac832;
    transition: var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Navigation */
.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    border-radius: 4px;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
/* Menu Strefy Wiedzy ma dłuższe pozycje niż reszta paska — to pełne tytuły
   artykułów, a nie jednowyrazowe kategorie. Pozostałe menu są wyśrodkowane
   względem swojej pozycji w pasku, ale "STREFA WIEDZY" stoi blisko prawego
   końca, więc szerokie menu wychodziłoby poza okno na mniejszych ekranach.
   To jedno równa się więc do prawej krawędzi i rozrasta w lewo, w stronę
   wolnego miejsca. */
.dropdown-menu-wiedza {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px);
    min-width: 260px;
}
.nav-item.dropdown:hover .dropdown-menu-wiedza {
    transform: translateX(0) translateY(0);
}
.dropdown-item {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    white-space: nowrap;
    text-align: left;
    transition: var(--transition-fast);
}
.dropdown-item:hover {
    background-color: var(--bg-sec);
    color: var(--color-primary);
}
.nav-item.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-quote {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: none;
}
.btn-quote:hover {
    background-color: var(--color-primary-light);
    box-shadow: 0 4px 10px rgba(51, 77, 66, 0.2);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 114px; /* Below phone bar (32px) and header (82px) */
    left: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
    transform: translateY(-120%);
    transition: var(--transition-smooth);
}
.mobile-nav.open {
    transform: translateY(0);
}
.mobile-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.mobile-link:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}
/* Mobile Navigation Dropdown */
.mobile-nav-group {
    display: flex;
    flex-direction: column;
}
.mobile-dropdown {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    border-left: 2px solid var(--border-color);
    margin-top: 0.25rem;
    gap: 0.25rem;
}
.mobile-sublink {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    color: var(--text-muted);
    border-bottom: none;
    transition: var(--transition-fast);
}
.mobile-sublink:hover {
    color: var(--color-primary);
    padding-left: 0.25rem;
}

/* Hero Section / Main Banner */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-container {
    position: relative;
    z-index: 2;
}
.hero-content {
    max-width: 750px;
}
.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 2px;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    color: #fff;
    margin-bottom: 0.35rem;
    font-weight: 800;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.hero-text-block {
    width: fit-content;
}
/* Recznie ustawione lamanie akapitu w naglowku: "przemyslu" zaczyna drugi
   wiersz, "i szybka" trzeci. Na waskich ekranach akapit jest za waski, zeby ten
   podzial mial sens — lamania sa wtedy wylaczone i tekst uklada sie sam. */
.hero-desc .lamanie {
    display: none;
}
@media (min-width: 1200px) {
    .hero-desc .lamanie {
        display: inline;
    }
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.6rem;
    line-height: 1.6;
    max-width: 100%;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Stats Bar */
.stats-bar {
    background-color: var(--bg-main);
    /* Bez kreski u dolu: oddzielala "O firmie" od "Dla Klienta", a te dwie
       sekcje maja przechodzic jedna w druga bez widocznej granicy. */
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 5;
    margin-top: -30px; /* Overlap hero */
}
/* Odwrocone barwy: prostokat w firmowej zieleni, napisy biale. Prostokat
   nachodzi na zdjecie w naglowku, wiec ciemne tlo lepiej go od niego oddziela
   niz biale — a same liczby czytaja sie mocniej. */
.stats-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    background: var(--color-primary);
    border-radius: 4px;
    border: 1px solid var(--color-primary-dark);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-medium);
}
.stat-item {
    text-align: center;
    padding: 0.5rem;
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-lbl {
    font-size: 0.8rem;
    /* Podpis ma ustepowac liczbie, wiec zamiast czystej bieli lekko przygaszona —
       na zieleni to nadal czytelny tekst, a liczba zostaje pierwsza w kolejnosci. */
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    text-transform: uppercase;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.28);
}

/* Pas z rysunkami technicznymi: "Dla Klienta" i Strefa Wiedzy razem.

   Jeden kafelek rozpiety na obu sekcjach naraz — stad wspolne opakowanie
   w kodzie strony. Rysunki sa w osobnej warstwie pod trescia, a nie tlem samego
   opakowania, bo musza siegac daleko poza nie: i w gore, pod biala sekcje
   "O firmie", i w dol, pod szara "Skontaktuj sie z nami". Obie sekcje maja
   nieprzezroczyste tla, wiec zakrywaja warstwe — pas nie konczy sie widoczna
   krawedzia, tylko wsuwa sie pod sasiadow.

   Warstwa sklada sie z dwoch elementow, bo kazdy robi co innego:
   .rysunki-warstwa wyznacza obszar i przycina to, co z niego wyjdzie,
   a .rysunki-plotno — wieksze od niej o zapas z gory i z dolu — jest tym, co
   wedruje przy przewijaniu. Gdyby wedrowal sam obszar, przesuwalyby sie razem
   z nim jego krawedzie.

   Plotno przesuwa skrypt na dole strony, zmieniajac transform. To jedyna
   wlasciwosc, ktora przegladarka potrafi animowac bez przerysowywania ukladu —
   zmiana background-position wymagalaby odmalowania calego pasa w kazdej klatce.

   Krycie zeruje sie do czasu, az czytelnik dojedzie do pasa — klase "widoczny"
   doklada ten sam skrypt. */
.pas-rysunkow {
    position: relative;
}
.rysunki-warstwa {
    position: absolute;
    left: 0;
    right: 0;
    top: -620px;
    bottom: -620px;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.9s ease;
}
.pas-rysunkow.widoczny .rysunki-warstwa {
    opacity: 1;
}
.rysunki-plotno {
    position: absolute;
    left: 0;
    right: 0;
    /* Zapas na wedrowke. Plotno nie musi byc dluzsze od calej drogi, ktora
       pokonuje: tlo powtarza sie co 1150 px, wiec przesuniecie o 1150 px wyglada
       dokladnie tak samo jak zadne. Skrypt dzieli droge przez ten okres
       i przesuwa tylko o reszte, a wtedy wystarczy jeden okres zapasu u dolu
       — i tyle, ile trzeba, zeby gorna krawedz nie wyjrzala. */
    top: -200px;
    bottom: -1400px;
    background-image: url('assets/rysunki-techniczne-tlo.svg');
    /* Plik jest kafelkiem, nie jednym obrazem na cala sekcje: powtarza sie
       w obu kierunkach, wiec rysunki maja stala wielkosc niezaleznie od tego, jak
       wysoki jest pas, a jest ich tyle, ile sie zmiesci. Bok kafelka wyznacza
       wielkosc samych rysunkow — wiekszy bok to wieksze rysunki i szersze
       odstepy miedzy nimi. */
    background-repeat: repeat;
    background-position: center top;
    background-size: 1150px 1150px;
    will-change: transform;
}
/* Tresc obu sekcji lezy nad rysunkami. */
.pas-rysunkow > section > .container {
    position: relative;
    z-index: 1;
}
/* "O firmie" zaslania rysunki od gory. Biel jest ta sama co tlo strony, wiec
   granicy miedzy sekcjami nadal nie widac — chodzi tylko o to, zeby sekcja miala
   wlasne, nieprzezroczyste tlo i rysunki chowaly sie pod nia. */
.about {
    background-color: var(--bg-main);
}

/* Section Common Styling */
section {
    padding: 80px 0;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}
.section-subtitle {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--color-accent-dark);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.section-header h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}
.section-header p {
    color: var(--text-muted);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.about-text {
    display: flex;
    flex-direction: column;
}
.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.value-bullets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.bullet-item {
    display: flex;
    gap: 1rem;
}
.bullet-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(51, 77, 66, 0.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bullet-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.bullet-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.about-graphics {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}
.visual-badge {
    background-color: var(--color-primary);
    color: #fff;
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.visual-badge i {
    width: 44px;
    height: 44px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.visual-badge h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.visual-badge p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}
.about-iso-box {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.iso-logo {
    flex: 1;
    border: 1px solid var(--border-color);
    padding: 1rem;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-radius: 4px;
    background-color: var(--bg-sec);
}
/* Kafelek ISO 9001 prowadzi do skanu certyfikatu, wiec musi wygladac na klikalny. */
a.iso-logo {
    display: block;
    text-decoration: none;
    transition: var(--transition-smooth);
}
a.iso-logo:hover,
a.iso-logo:focus-visible {
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
    background-color: rgba(51, 77, 66, 0.07);
    box-shadow: var(--shadow-soft);
}

/* Products Section */
.products {
    background-color: var(--bg-sec);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.product-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}
.product-card.simple-card {
    text-align: center;
}
.product-info.simple-info {
    padding: 1.5rem 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.product-info.simple-info h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--color-primary);
    text-align: center;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary-light);
}
.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.4;
    overflow: hidden;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}
.product-card.contain-img .product-img-wrapper {
    aspect-ratio: 1;
}
.product-card.contain-img .product-img {
    object-fit: contain;
    padding: 0.25rem;
}
.product-card:hover .product-img {
    transform: scale(1.05);
}
.product-card.contain-img .product-img.scale-up {
    transform: scale(1.08);
}
.product-card.contain-img:hover .product-img.scale-up {
    transform: scale(1.13);
}
.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.product-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}
.product-specs {
    list-style: none;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.product-specs li {
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.product-btn {
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
}
.product-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Customer Zone (Dla Klienta) */
.tabs-wrapper {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
}
.tabs-nav {
    display: flex;
    background-color: var(--bg-sec);
    border-bottom: 1px solid var(--border-color);
}
.tab-btn {
    flex: 1;
    padding: 1.2rem;
    border: none;
    background: transparent;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}
.tab-btn.active {
    color: var(--color-primary);
    background-color: #fff;
    border-bottom: 3px solid var(--color-accent);
}
.tab-btn:hover:not(.active) {
    background-color: rgba(0,0,0,0.02);
    color: var(--text-dark);
}
.tabs-content {
    padding: 3rem;
}
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}
.tab-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}
.pane-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.pane-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.specs-list, .logistics-list {
    list-style: none;
}
/* Obie listy w sekcji "Dla klienta" mają ten sam żółty punktator. */
.specs-list li,
.logistics-list li {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}
.specs-list li::before,
.logistics-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.quality-badge-box, .delivery-card {
    background-color: var(--bg-sec);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
}
.quality-badge-box i, .delivery-card i {
    width: 44px;
    height: 44px;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.quality-badge-box h4, .delivery-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.quality-badge-box p, .delivery-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Zakładka z plikami nie ma kolumny z grafiką — tekst zajmuje całą szerokość. */
#tab-downloads .pane-grid {
    grid-template-columns: 1fr;
}
.download-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.download-item {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 1rem;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-fast);
}
.download-item:hover {
    border-color: var(--color-primary);
    background-color: rgba(51, 77, 66, 0.02);
}
.download-item i {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    flex-shrink: 0;
}
.download-item div {
    min-width: 0;
}
.download-item span {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.download-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Career Section (Kariera) */
.career {
    background-color: var(--bg-sec);
}
.career-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}
.benefit-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.benefit-card i {
    width: 40px;
    height: 40px;
    color: var(--color-accent-dark);
    margin-bottom: 1rem;
}
.benefit-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.benefit-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.open-positions h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.position-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}
.position-item {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.position-title h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.position-title span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.apply-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* Knowledge Zone (Strefa Wiedzy) */
/* W tle Strefy Wiedzy leza dwa rysunki techniczne: kolnierz po lewej i przekroj
   kolana hamburskiego po prawej. Oba sa wpuszczone za krawedzie i przyciete, wiec
   czytaja sie jak znak wodny, a nie ilustracja. To tez najwlasciwsze miejsce dla
   nich w calym serwisie — artykuly obok mowia wlasnie o promieniu giecia kolan
   i o kolnierzach. Krycie i barwy siedza w samych plikach SVG, bo tla nie da sie
   przyciemnic z CSS bez dodatkowej warstwy. */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.article-card {
    /* Karty leza nad rysunkami — tekst artykulow ma pelna biel pod spodem. */
    position: relative;
    z-index: 1;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}
.article-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}
.article-card-img {
    margin: -2.5rem -2rem 1.5rem;
    height: 190px;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    background-color: var(--bg-sec);
}
.article-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}
.category-tag {
    color: var(--color-primary-light);
}
.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    color: var(--text-dark);
}
.article-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.read-more {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-fast);
}
.read-more:hover {
    color: var(--color-accent-dark);
}
.read-more i {
    width: 14px;
    height: 14px;
}

/* Contact Section */
.contact {
    background-color: var(--bg-sec) !important;
}
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-details-box {
    background-color: var(--color-primary);
    color: #fff;
    padding: 3rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-medium);
}
.contact-card-header h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}
.contact-card-header p {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.contact-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.item-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-list-item h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.contact-list-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}
.phone-highlight {
    font-family: var(--font-display);
    font-size: 1.2rem !important;
    font-weight: 700;
    color: var(--color-accent) !important;
}

.departments-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: auto;
}
.departments-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.dept-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.dept-row span {
    color: rgba(255, 255, 255, 0.7);
}
.dept-row strong {
    color: var(--color-accent);
}

/* Contact B2B Form */
.contact-form-box {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    padding: 3rem 3.5rem;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
    max-width: 860px;
    margin: 0 auto;
}
.contact-form-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem auto;
    text-align: center;
}

.rfq-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}
.two-cols .form-group {
    width: calc(50% - 0.5rem);
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}
.form-group input, .form-group textarea, .form-group select {
    border: 1px solid var(--border-color-dark);
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    outline: none;
    border-radius: 4px;
    background-color: #fff;
    transition: var(--transition-fast);
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: #94a3b8;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(51, 77, 66, 0.15);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1em;
}

/* File Drop Area */
.file-drop-area {
    border: 2px dashed var(--border-color-dark);
    padding: 1.5rem;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}
.file-drop-area:hover {
    border-color: var(--color-primary);
    background-color: rgba(51, 77, 66, 0.02);
}
.file-drop-area i {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.file-drop-area span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-list {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.file-list-item {
    font-size: 0.8rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.file-list-item i {
    width: 14px;
    height: 14px;
}

/* Validation Style */
.form-group.invalid input, .form-group.invalid textarea {
    border-color: #ef4444;
}
.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    display: none;
}
.form-group.invalid .error-msg {
    display: block;
}

/* Success Overlay */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: var(--transition-smooth);
    z-index: 10;
}
.form-success-overlay.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}
.success-content {
    max-width: 450px;
}
.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}
.success-icon i {
    width: 72px;
    height: 72px;
}
.success-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.success-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Footer Styling */
.footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    border-top: 4px solid var(--color-accent);
}
.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 4rem;
    padding-bottom: 60px;
}
.footer-brand p {
    font-size: 0.88rem;
    margin-top: 1.5rem;
    line-height: 1.6;
}
.footer-logo {
    height: 70px;
    max-width: 260px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.iso-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 1.5rem;
}
.iso-labels span {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    font-size: 0.7rem;
    color: var(--color-accent);
    font-weight: 700;
}

.footer-links, .footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.footer-links h4, .footer-contacts h4 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(3px);
}
.footer-contacts p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    font-size: 0.8rem;
    text-align: center;
}
.footer-bottom p {
    margin: 0;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--color-primary-dark);
    color: #fff;
    border-left: 4px solid var(--color-accent);
    border-radius: 4px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideIn {
    0% { transform: translateX(120%); }
    100% { transform: translateX(0); }
}
.toast i {
    color: var(--color-accent);
    width: 20px;
    height: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .stat-divider {
        display: none;
    }
    .about-container, .pane-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .download-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .products-grid, .career-benefits, .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .products-grid, .career-benefits, .articles-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .two-cols {
        flex-direction: column;
    }
    .two-cols .form-group {
        width: 100%;
    }
    .contact-form-box, .contact-details-box, .tabs-content {
        padding: 2rem;
    }
    .tabs-nav {
        flex-direction: column;
    }
}

/* Map Section */
.map-section {
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.map-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Product Subpage Layout */
.breadcrumbs-bar {
    background-color: var(--bg-sec);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumbs-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-family: var(--font-display);
    font-weight: 600;
}
.breadcrumbs-content a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}
.breadcrumbs-content a:hover {
    color: var(--color-primary);
}
.breadcrumbs-content i {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
}
.breadcrumbs-content .current {
    color: var(--color-primary);
}

.product-page-section {
    padding: 60px 0 80px 0;
}
/* Kolumna z menu typow. Bylo 280 px, co dawalo 232 px na sam napis — "TYP 13 |
   Kolnierze tulejowe gwintowane" nie miescil sie o kilkanascie pikseli i lamal
   sie na dwie linie. Ponizej 1024 px to samo menu ma juz max-width: 320 px
   i tam napis mieścił się w jednej linii; teraz na komputerze jest tak samo.

   Szerokosc, a nie zwezenie odstepow czy mniejsze pismo: te dwa sposoby
   dzialaja tylko przy trafionym oszacowaniu szerokosci napisu, a szersza
   kolumna w najgorszym razie nic nie zmienia — nigdy nic nie przytnie. */
.product-page-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Sidebar Styling */
.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.sidebar-title {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.sidebar-menu li {
    border-bottom: 1px solid var(--border-color);
}
.sidebar-menu li:last-child {
    border-bottom: none;
}
.sidebar-menu a {
    display: block;
    padding: 0.9rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}
.sidebar-menu a:hover {
    color: var(--color-primary);
    background-color: var(--bg-sec);
}
.sidebar-menu a.active {
    color: #fff;
    background-color: var(--color-primary);
}

.sidebar-downloads {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.25rem;
    background-color: var(--bg-sec);
}
.sidebar-downloads h4 {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sidebar-download-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-fast);
    padding: 0.5rem 0;
}
.sidebar-download-item:hover {
    color: var(--color-primary);
}
.sidebar-download-item i {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}
.sidebar-download-text {
    display: flex;
    flex-direction: column;
}
.sidebar-download-text strong {
    font-size: 0.85rem;
}
.sidebar-download-text small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Main Content Styling */
.product-main-content {
    display: flex;
    flex-direction: column;
    align-self: start;
}
.main-product-img-wrapper {
    width: 100%;
    height: 380px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}
.main-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-main-content h1 {
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}
.lead-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.product-main-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.product-main-content h3 {
    font-size: 1.35rem;
    color: var(--color-primary);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.product-main-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.product-main-content li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Responsive Product Page */
@media (max-width: 1024px) {
    .product-page-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .product-sidebar {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
    .sidebar-menu {
        flex-grow: 1;
        max-width: 320px;
    }
    .sidebar-downloads {
        min-width: 250px;
    }
}
@media (max-width: 768px) {
    .product-sidebar {
        flex-direction: column;
        align-items: stretch;
    }
    .sidebar-menu {
        max-width: 100%;
    }
    .main-product-img-wrapper {
        height: 250px;
    }
    .product-main-content h1 {
        font-size: 1.8rem;
    }
}

/* Stalmetal Offer Page Style Layout */
.stalmetal-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
}
.stalmetal-left {
    display: flex;
    flex-direction: column;
}
.stalmetal-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1.5rem;
}
.stalmetal-subtitle {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-transform: none;
}
.stalmetal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.stalmetal-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 1rem;
    color: #4b5563;
    font-weight: 500;
}
.stalmetal-list li::before {
    content: '•';
    color: #dc2626; /* Czerwony punkt */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}
.stalmetal-downloads {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.stalmetal-downloads a {
    color: #dc2626; /* Czerwony, podkreślony link */
    font-weight: 700;
    text-decoration: underline;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}
.stalmetal-downloads a:hover {
    color: #b91c1c;
}
.stalmetal-img-wrapper {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    width: 100%;
    aspect-ratio: 1.25;
}
.stalmetal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stalmetal Responsive Grid */
@media (max-width: 1024px) {
    .stalmetal-container {
        gap: 3rem;
    }
}
@media (max-width: 768px) {
    .stalmetal-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .stalmetal-right {
        order: -1;
    }
    .stalmetal-title {
        font-size: 2.1rem;
    }
}

/* Sidebar Dropdown Menu */
.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #ffffff;
    transition: max-height 0.35s ease-in-out;
}
.sidebar-submenu.open {
    max-height: 500px;
    border-top: 1px solid var(--border-color);
}
.sidebar-submenu li {
    border-bottom: 1px solid var(--border-color);
}
.sidebar-submenu li:last-child {
    border-bottom: none;
}
.sidebar-submenu a {
    display: block;
    padding: 0.7rem 1.5rem !important;
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
    background-color: transparent !important;
    position: relative;
}
/* Dawne zachowanie: po najechaniu nazwa odsuwa sie od lewej krawedzi o 0,25 rem,
   dochodzi zlota kreska, kolor i tlo.

   Zeby nazwa nie przeskakiwala miedzy linijkami, o tyle samo zmniejsza sie
   odstep z prawej strony. Suma odstepow zostaje ta sama, wiec wiersz ma
   dokladnie te sama szerokosc na tekst i lamie sie w tych samych miejscach —
   przesuwa sie sam napis. Bez tej rekompensaty wiersz zwezal sie o 4 px
   i dluzsze nazwy, jak "TYP 13 | Kolnierze tulejowe gwintowane", spadaly
   do drugiej linijki, a caly spis podskakiwal pod kursorem. */
.sidebar-submenu a:hover {
    color: var(--color-primary) !important;
    background-color: rgba(51, 77, 66, 0.02) !important;
    padding-left: 1.75rem !important;
    padding-right: 1.25rem !important;
    box-shadow: inset 3px 0 0 var(--color-accent);
}

/* =========================================================
   NEWSLETTER MODAL
   ========================================================= */
.newsletter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 14, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.newsletter-overlay.visible {
    opacity: 1;
    pointer-events: all;
}
.newsletter-modal {
    background: #fff;
    border-radius: 12px;
    padding: 2.75rem 2.5rem 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    transform: translateY(32px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}
.newsletter-overlay.visible .newsletter-modal {
    transform: translateY(0) scale(1);
}
.newsletter-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.newsletter-close:hover {
    background: #f1f5f9;
    color: var(--color-dark);
}
.newsletter-close i { width: 20px; height: 20px; }
.newsletter-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #e6b800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 20px rgba(250, 200, 50, 0.35);
}
.newsletter-icon i { width: 28px; height: 28px; color: #fff; }
.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
}
.newsletter-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.newsletter-input-group {
    display: flex;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.newsletter-input-group:focus-within {
    border-color: var(--color-primary);
}
.newsletter-input-group input[type="email"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--color-dark);
    background: #fff;
}
.newsletter-btn {
    border-radius: 0 !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.newsletter-error {
    display: none;
    font-size: 0.8rem;
    color: #e53e3e;
    text-align: left;
    padding-left: 0.25rem;
}
.newsletter-error.visible { display: block; }
.newsletter-privacy {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1rem;
}
.newsletter-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    /* Potwierdzenie staje w miejscu pola e-mail, wiec ma jego wysokosc. */
    padding: 0.75rem 1rem;
    border-radius: 6px;
    /* Zloto z SIW na bialym tle jest slabo czytelne, dlatego napis dostaje
       ciemniejszy odcien zlota, a pod spodem lezy jasna zlota plama. */
    color: var(--color-accent-dark);
    background-color: rgba(250, 200, 50, 0.14);
    font-weight: 600;
    font-size: 1rem;
}
.newsletter-success i { width: 24px; height: 24px; color: var(--color-accent-dark); }
@media (max-width: 480px) {
    .newsletter-modal { padding: 2rem 1.5rem 1.5rem; }
    .newsletter-input-group { flex-direction: column; }
    .newsletter-btn { border-radius: 0 0 4px 4px !important; }
}

/* Sidebar submenu active item styling */
/* Pozycja biezaca wyglada jak najechana, tylko mocniej: pelne szare tlo.
   Odstepy rekompensuja sie tak samo jak przy najechaniu. Pogrubienie z dawnej
   wersji nie wraca — grubsze pismo jest szersze, wiec przy przewijaniu strony,
   kiedy znacznik przeskakuje na kolejna pozycje, nazwy lamalyby sie inaczej
   i spis drgalby sam z siebie. Tu roznicy pilnuja kolor, tlo i zlota kreska. */
.sidebar-submenu a.active-item {
    background-color: var(--bg-sec) !important;
    color: var(--color-primary) !important;
    padding-left: 1.75rem !important;
    padding-right: 1.25rem !important;
    box-shadow: inset 3px 0 0 var(--color-accent);
}

/* Product Carousel Styling */
.product-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 1rem;
    overflow: hidden;
}
.product-carousel-track-container {
    width: 100%;
    overflow: hidden;
}
.product-carousel-track {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 20px;
}
.product-carousel-card {
    flex: 0 0 calc((100% - 20px) / 2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    user-select: none;
}
@media (max-width: 600px) {
    .product-carousel-card {
        flex: 0 0 100% !important;
    }
}
.carousel-card-img-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product-carousel-card:hover .carousel-card-img-box {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-color-dark);
}
.carousel-card-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.carousel-card-info {
    margin-top: 1rem;
    text-align: left;
    padding: 0 5px;
}
.carousel-card-info h4 {
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}
.product-carousel-card:hover .carousel-card-info h4 {
    color: var(--color-primary);
}
.product-carousel-controls {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
    justify-content: flex-start;
}
.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #ffffff !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}
.carousel-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background-color: var(--bg-sec) !important;
    border-color: var(--border-color-dark) !important;
    box-shadow: var(--shadow-medium);
    color: var(--color-primary) !important;
}
.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.carousel-btn i {
    width: 18px;
    height: 18px;
}

/* Unifikacja linii rozdzielających (Separator) */
.contact-divider, hr.contact-divider {
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-top: 1px solid #e2e8f0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    clear: both !important;
    opacity: 1 !important;
}

.map-section {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    background-color: transparent !important;
}

.map-section iframe {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    vertical-align: top !important;
}

/* Floating Social Bar Side Widget */
.floating-social-bar {
    position: fixed !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: var(--color-accent) !important; /* #fac832 */
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22) !important;
    padding: 8px 5px !important;
    gap: 6px !important;
}

.floating-social-bar .social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
}

.floating-social-bar .social-link svg {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2.2px !important;
    display: block !important;
    transition: transform 0.2s ease !important;
}

/* Po najechaniu rosnie sama ikona, bez zielonego pola pod spodem.
   Powiekszenie dotyczy svg, a nie odnosnika — pole 42 px zostaje na miejscu,
   wiec sasiednie ikony sie nie przesuwaja. */
.floating-social-bar .social-link:hover svg,
.floating-social-bar .social-link:focus-visible svg {
    transform: scale(1.18) !important;
}

/* Poniżej 700 px dwie kolumny byłyby węższe niż najdłuższa nazwa pliku. */
@media (max-width: 700px) {
    .download-links-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Na telefonie kafelek zwęża odstępy i ikonę, żeby nazwa pliku została w jednej linii. */
@media (max-width: 480px) {
    .tabs-content {
        padding: 1.25rem;
    }
    .download-item {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    .download-item i {
        width: 24px;
        height: 24px;
    }
    .download-item span {
        font-size: 0.8rem;
    }
}

/* Zapis do newslettera na tle zdjęcia kołnierzy.

   Nad zdjęciem leży warstwa ciemnej zieleni. Samo zdjęcie ma jaśniejsze
   miejsca — połyskliwe kołnierze w lewym górnym rogu — i biały napis trafiałby
   przy części szerokości okna wprost na nie. Warstwa jest zapisana w tej samej
   właściwości co obraz, bo gradient i url w background-image układają się
   jeden nad drugim, więc nie trzeba dokładać pustego elementu nad sekcją.

   Zdjęcie jest skalowane, a nie powtarzane: ma proporcje szerokiego pasa, więc
   przy każdej szerokości okna przycina się od brzegów, a środek — tam gdzie
   stoi tekst — zostaje w kadrze.

   Zdjęcie zastąpiło białe tło, które wcześniej oddzielało tę sekcję od szarego
   formularza kontaktowego nad nią. Teraz oddziela je jeszcze wyraźniej. */
.newsletter-section {
    background-image:
        linear-gradient(rgba(34, 52, 44, 0.58), rgba(34, 52, 44, 0.58)),
        url('assets/newsletter-tlo.webp?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Na białym tle wystarczały 44 px. Zdjęcie potrzebuje więcej powietrza —
       przy ciasnym kadrze treść wyglądała jak naklejona na obrazek. */
    padding: 72px 0;
    /* Przerwa przed mapą. Nad sekcją taka przerwa powstaje sama: formularz
       kontaktowy ma 80 px własnego odstępu u dołu, więc nad ciemnym pasem leży
       jasny pas. Pod spodem nic takiego nie ma — mapa zaczyna się od razu
       i ciemne tło wpadało wprost w zdjęcie satelitarne. Margines, a nie
       odstęp wewnętrzny: odstęp wewnętrzny byłby ciemny, bo należałby jeszcze
       do sekcji i miał jej tło, a chodzi o jasną przerwę. */
    margin-bottom: 80px;
}

/* Pismo na ciemnym tle. Złota kreska pod nagłówkiem zostaje złota: na zieleni
   jest czytelna i to jedyny mocny akcent koloru w całej sekcji. */
.newsletter-section .section-header h2 {
    color: #ffffff;
}
.newsletter-section .section-header p {
    color: rgba(255, 255, 255, 0.88);
}
.newsletter-section .newsletter-privacy {
    color: rgba(255, 255, 255, 0.72);
}
/* Czerwień komunikatu o błędzie dobrana była do białego tła; na ciemnej zieleni
   gaśnie, więc tutaj jest jaśniejsza. */
.newsletter-section .newsletter-error {
    color: #ffb4a8;
}
/* Potwierdzenie zapisu miało ciemne złoto na jasnej złotej plamie — dobór pod
   białe tło. Na ciemnym jest odwrotnie: jasne złoto na ciemnej plamie. */
.newsletter-section .newsletter-success {
    color: var(--color-accent);
    background-color: rgba(0, 0, 0, 0.32);
}
.newsletter-section .newsletter-success i {
    color: var(--color-accent);
}
/* Obramowanie pola e-mail w kolorze ramek z reszty strony na ciemnym tle
   znika. Bez niego pole miałoby na styku z tłem twardą, nieobrobioną krawędź. */
.newsletter-section .newsletter-input-group {
    border-color: rgba(255, 255, 255, 0.45);
}
.newsletter-section .newsletter-input-group:focus-within {
    border-color: var(--color-accent);
}
.newsletter-section .section-header {
    max-width: 560px;
    margin-bottom: 1.5rem;
}
.newsletter-section-form {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}
.newsletter-section .newsletter-error,
.newsletter-section .newsletter-privacy,
.newsletter-section .newsletter-success {
    text-align: center;
}
@media (max-width: 600px) {
    .newsletter-section .newsletter-input-group {
        flex-direction: column;
    }
    .newsletter-section .newsletter-btn {
        width: 100%;
    }
}

/* Przycisk siedzi w ramce pola e-mail, wiec wlasny cien jest tu zbedny —
   a rosnacy cien z klasy .btn-primary wygladal, jakby przycisk sie unosil. */
.newsletter-btn {
    box-shadow: none;
}
/* Przycisk jest zrosniety z polem e-mail w jedna ramke, ktora obcina zawartosc.
   Uniesienie dziedziczone po .btn-primary bylo przez to niewidoczne, a zostawialo
   dwupikselowy przeswit pod przyciskiem. Po najechaniu zmienia sie sam kolor. */
.newsletter-btn:hover {
    transform: none;
    box-shadow: none;
}

/* Atrybut hidden znaczy "ukryj", ale przegladarka realizuje go zwykla regula
   display: none o najnizszej wadze — wlasne display: flex powyzej ja przebijalo
   i potwierdzenie zapisu bylo widoczne od razu po wejsciu na strone.
   Selektor z atrybutem ma wyzsza wage, wiec hidden znowu dziala. */
.newsletter-input-group[hidden],
.newsletter-success[hidden] {
    display: none !important;
}

/* Na weższych ekranach rysunki wchodzilyby wprost pod naglowek Strefy Wiedzy
   i pod tekst kart, wiec tam ich nie pokazujemy. */

/* ==========================================================================
   Strefa Wiedzy — podstrona z filtrem kategorii (strefa-wiedzy.html)
   Kafelki same w sobie to .article-card z sekcji na stronie glownej, wiec
   siatka, zdjecia i zachowanie responsywne sa wspolne. Tutaj dochodzi tylko
   pasek kategorii i komunikat o pustym wyniku.
   ========================================================================== */

.kz-section {
    padding: 3.5rem 0 5rem;
}

.kz-title {
    /* Wyrownany do lewej, tej samej wielkosci i w tym samym kolorze co
       tytuly dzialow produktowych (.sidebar-title) i "Centrala". */
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin: 0 0 2.5rem;
}

.kz-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    margin: 0 0 3rem;
}

.kz-filter {
    /* Kategoria nieaktywna to sam tekst, aktywna to zielony prostokat.
       Promien 4 px jest ten sam co w przyciskach i kafelkach serwisu. */
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.65rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast),
                background var(--transition-fast),
                border-color var(--transition-fast);
}

.kz-filter:hover {
    color: var(--color-primary);
    border-color: var(--border-color-dark);
}

.kz-filter.active,
.kz-filter.active:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--text-light);
}

.kz-filter:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Karta ma wlasny display, wiec samo [hidden] by nie wystarczylo. */
.article-card.kz-hidden {
    display: none !important;
}

.kz-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0 1rem;
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    .kz-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    .kz-filter {
        padding: 0.55rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Kafelek artykulu: zdjecie, kategoria, tytul, data, odnosnik — bez opisu.
   Wczesniej wolne miejsce wypelnial rosnacy tytul, zeby "Czytaj wiecej"
   stalo rowno na dole wszystkich kafelkow. Po usunieciu opisu tytul
   rozpychalby sie i data odjechalaby od niego, wiec dol trzyma teraz
   sam odnosnik przez margin-top: auto. */
.article-card-img {
    height: 240px;
}

.article-card h3 {
    flex-grow: 0;
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.article-date {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.read-more {
    margin-top: auto;
}

/* ==========================================================================
   Zgoda na pliki cookie
   Baner buduje app.js, wiec jest na kazdej stronie bez kopiowania znacznikow.
   Uklad wzorowany na hexonic.com: biala kartka przy dolnej krawedzi, przypieta
   do lewej, z zaokragleniem tylko u gory. Wybor zapisuje sie w localStorage.
   ========================================================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    padding: 0 1.5rem;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(100%);
    transition: transform var(--transition-smooth), visibility var(--transition-smooth);
}
.cookie-banner.pokaz {
    visibility: visible;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
}
.cookie-banner .cookie-box {
    pointer-events: auto;
}
.cookie-box {
    max-width: 680px;
    margin-right: auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 -6px 28px rgba(15, 23, 42, 0.16);
    padding: 1.5rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-dark);
}
.cookie-box p {
    margin: 0 0 1.15rem;
}
.cookie-box a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}
.cookie-actions .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.82rem;
    border: 1px solid transparent;
}
.cookie-btn-odmow {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--border-color-dark);
}
.cookie-btn-odmow:hover {
    background: var(--bg-sec);
    border-color: var(--color-primary);
}
.cookie-link {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.cookie-link:hover {
    color: var(--color-primary);
}

/* Panel z kategoriami — rozwijany spod przyciskow */
.cookie-opcje {
    margin-top: 1.35rem;
    padding-top: 1.35rem;
    border-top: 1px solid var(--border-color);
}
.cookie-opcje[hidden] {
    display: none;
}
.cookie-opcja {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
}
.cookie-opcja input {
    margin-top: 0.35rem;
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}
.cookie-opcja input:disabled {
    opacity: 0.55;
}
.cookie-opcja-tekst strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}
.cookie-opcja-tekst span {
    display: block;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.cookie-opcje .btn {
    margin-top: 0.85rem;
}

@media (max-width: 640px) {
    .cookie-banner {
        padding: 0;
    }
    .cookie-box {
        max-width: none;
        border-left: none;
        border-right: none;
        border-radius: 0;
        padding: 1.25rem 1.25rem 1.5rem;
    }
    .cookie-actions .btn {
        flex: 1 1 100%;
    }
}

/* Zastepnik mapy Google, dopoki nie ma zgody na tresci zewnetrzne */
.mapa-zastepnik {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    height: 450px;
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--bg-sec);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.mapa-zastepnik p {
    max-width: 440px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Odnosnik w stopce, ktorym wraca sie do wyboru */
.footer-bottom .cookie-link {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    opacity: 0.85;
}
.footer-bottom .cookie-link:hover {
    color: var(--color-accent);
    opacity: 1;
}
