:root {
    --bg: #0b0c0d;
    --panel: #141618;
    --panel-2: #1a1d20;
    --text: #e9eef2;
    --muted: #bac3c9;
    --accent: #b32025;
    --link: #f0f2f4;
    --max: 1200px;
    --radius: 10px;
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5
}

a {
    color: var(--link);
    text-decoration: none
}

a:hover {
    opacity: .9
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 12, 13, .9);
    border-bottom: 1px solid #1f2327
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 800
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .9rem
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid #991b1f
}

.btn-outline {
    border: 1px solid #2a2f34;
    padding: 10px 16px;
    border-radius: 8px
}

.hero {
    position: relative;
    min-height: 72vh;
    display: grid;
    align-items: center;
    background: url('images/hero-bg.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 40%)
}

.hero-content {
    position: relative;
    padding: 80px 0
}

.hero h1 {
    font-size: clamp(2rem, 3.8vw + .5rem, 4rem);
    line-height: 1.1;
    margin: 0 0 10px 0
}

.hero .lead {
    color: var(--muted);
    max-width: 720px;
    margin: 10px 0 22px
}

.section {
    padding: 70px 0;
    background: var(--panel)
}

.section.dark {
    background: var(--panel-2)
}
.section.oem {
    background-color: #e2d9d0;
    /* kawa z mlekiem, nieco jaśniejszy */
    color: #000;
    /* czarny tekst */
}

.two-col {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center
}

h2 {
    font-size: clamp(1.6rem, 2.2vw + .6rem, 2.2rem);
    margin: 0 0 10px 0
}

p {
    margin: 0 0 12px 0;
    color: #d8dee4
}

.caption {
    color: #9aa3aa;
    font-size: .85rem;
    margin-top: 8px
}

.factory-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #2a2f33;
    display: block;
}

.hands-photo {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: none;
    display: block;
}
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px
}

.card {
    background: #111418;
    border: 1px solid #242a31;
    border-radius: 10px;
    padding: 22px
}

.card h3 {
    margin: 8px 0 6px
}

.card-icon img {
    width: 64px;
    /* zmniejsza szerokość ikony */
    height: auto;
    /* zachowuje proporcje */
    display: block;
    margin: 0 auto 10px;
    /* centrowanie + odstęp pod ikoną */
}
.subnote {
    margin-top: 18px;
    color: #94a0a8
}

.contact-form {
    display: grid;
    gap: 12px
}

.contact-form label {
    display: grid;
    gap: 6px;
    font-size: .95rem
}

.contact-form input,
.contact-form textarea {
    background: #0b0d10;
    color: var(--text);
    border: 1px solid #2a2f33;
    border-radius: 8px;
    padding: 10px 12px
}

.site-footer {
    background: #0b0c0d;
    border-top: 1px solid #1f2327
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px
}

.back-to-top {
    border: 1px solid #2a2f33;
    border-radius: 8px;
    padding: 6px 10px
}

@media (max-width: 960px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .main-nav {
        display: none
    }
}
/* --- OEM FINAL FIX --- */
.oem-section {
    background-color: #e5dfd5;
    color: #000;
    padding: 80px 0;
}

.oem-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0;
}

.oem-image {
    flex: 1;
}

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

.oem-text {
    flex: 1;
    max-width: 100%;
    padding: 80px 60px;
    /* ten padding reguluje wizualną szerokość „paska” */
    box-sizing: border-box;
}

.oem-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.oem-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.oem-text .btn-primary {
    background-color: #b10f1f;
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}

.oem-text .btn-primary:hover {
    background-color: #8a0c1a;
}

@media (max-width: 960px) {
    .oem-container {
        flex-direction: column;
    }

    .oem-text {
        padding: 40px 20px;
    }
}
/* === OEM TEXT COLOR FIX === */
.oem-section,
.oem-section h2,
.oem-section p,
.oem-section a,
.oem-section strong {
    color: #000 !important;
}

.oem-section .btn-primary {
    background-color: #b10f1f !important;
    color: #fff !important;
}

.oem-section .btn-primary:hover {
    background-color: #8a0c1a !important;
}
/* === OEM SPLIT LAYOUT - REFINED === */
.oem-split {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 600px;
}

.oem-left {
    flex: 0 0 70%;
    /* więcej miejsca na zdjęcie */
    min-height: 600px;
}

.oem-right {
    flex: 0 0 30%;
    /* węższy blok tekstowy */
    background-color: #e8e1d7;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oem-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.oem-text {
    max-width: 420px;
    padding: 60px 40px;
    color: #000;
    /* czarny tekst */
}

.oem-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #000;
    /* czarny nagłówek */
}

.oem-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #000;
    /* czarny tekst */
}

.oem-text strong {
    color: #000;
}

.btn-primary {
    background-color: #b10f1f;
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #8a0c1a;
}

/* Wersja mobilna */
@media (max-width: 960px) {
    .oem-split {
        flex-direction: column;
    }

    .oem-left,
    .oem-right {
        flex: 1 1 100%;
        min-height: auto;
    }

    .oem-text {
        padding: 40px 20px;
        text-align: center;
    }
}
.card-icon img {
    width: 48px;
    height: auto;
    display: block;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
    /* żeby ikona była biała na czarnym tle */
}
.cards img {
    max-width: 64px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    filter: brightness(0) invert(1);
    /* odwraca kolory — biała ikona na ciemnym tle */
}
.dh-logo {
    height: 42px;
    /* dopasuj wysokość logo */
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}
.capabilities img,
.capability img {
    filter: none !important;
    /* usuwa ewentualne efekty rozjaśnienia */
    opacity: 1 !important;
    /* przywraca pełną widoczność */
    mix-blend-mode: normal !important;
    /* zapobiega mieszaniu kolorów z tłem */
    display: block;
    margin: 0 auto 15px;
    max-width: 80px;
    /* możesz zmienić rozmiar np. 100px */
    height: auto;
}
.capability img {
    filter: brightness(0) invert(1);
    /* zmienia białe elementy na jasne, ciemne tło zachowane */
    opacity: 0.95;
    display: block;
    margin: 0 auto 15px;
    max-width: 80px;
    height: auto;
    transition: all 0.3s ease-in-out;
}

.capability:hover img {
    transform: scale(1.05);
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(31%) sepia(89%) saturate(5200%) hue-rotate(353deg) brightness(95%) contrast(97%);
    /* powyższy efekt dodaje czerwony akcent po najechaniu */
}
/* --- FIX ICON VISIBILITY --- */
.card-icon img {
    display: block;
    margin: 0 auto 15px;
    width: 80px;
    height: auto;
    filter: brightness(0) invert(1) contrast(120%) saturate(120%);
    opacity: 0.9;
    transition: all 0.3s ease-in-out;
}

/* --- RED ACCENT ON HOVER --- */
.card:hover .card-icon img {
    filter: invert(22%) sepia(96%) saturate(7481%) hue-rotate(355deg) brightness(93%) contrast(100%);
    opacity: 1;
    transform: scale(1.05);
}

.card-icon img {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 6px;
    filter: brightness(1.1) contrast(1.3);
    transition: all 0.3s ease-in-out;
}

.card:hover .card-icon img {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 45, 45, 0.6);
}
.capabilities-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 40px;
}

.capability-item {
    text-align: center;
    max-width: 280px;
}

.capability-item img {
    width: 70px;
    height: auto;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.capability-item h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.capability-item p {
    font-size: 0.95rem;
    color: #ccc;
}

.capability-item:hover img {
    filter: invert(25%) sepia(98%) saturate(3567%) hue-rotate(353deg) brightness(92%) contrast(100%);
    transform: scale(1.08);
}

.subnote {
    text-align: center;
    margin-top: 40px;
    color: #aaa;
    font-size: 0.9rem;
}
.capability-item img {
    mix-blend-mode: lighten;
    /* rozjaśnia i usuwa tło */
    filter: grayscale(100%) brightness(2) contrast(2) invert(1);
    border-radius: 0;
    background: none !important;
    transition: all 0.3s ease;
}

.capability-item:hover img {
    filter: invert(25%) sepia(98%) saturate(3567%) hue-rotate(353deg) brightness(92%) contrast(100%);
    transform: scale(1.05);
}
.capability-item img,
.card-icon img,
.capability img {
    background: transparent !important;
    /* całkowicie usuwa tło */
    mix-blend-mode: normal !important;
    box-shadow: none !important;
    border: none !important;
    filter: none !important;
    opacity: 1 !important;
}
.capability-item img {
    background: transparent !important;
    /* usuwa tło */
    box-shadow: none !important;
    mix-blend-mode: normal !important;
    filter: brightness(0) invert(1) !important;
    transition: all 0.3s ease;
}

/* wyłączenie czerwonego efektu tła przy hover */
.capability-item:hover img {
    background: transparent !important;
    box-shadow: none !important;
    filter: brightness(0) invert(1) !important;
    transform: scale(1.05);
}
.capability-item img {
    filter: brightness(0) invert(1);
    /* ikony zawsze widoczne na biało */
    opacity: 1;
    transition: all 0.3s ease;
    background: transparent !important;
    box-shadow: none !important;
    mix-blend-mode: normal !important;
}

/* po najechaniu: zmiana koloru na Deep Heritage Red */
.capability-item:hover img {
    filter: invert(21%) sepia(97%) saturate(2942%) hue-rotate(352deg) brightness(95%) contrast(102%);
    transform: scale(1.05);
    opacity: 1;
}
.capability-item img {
    width: 90px;
    /* było 70px — zwiększamy o ~30% */
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    background: transparent !important;
    box-shadow: none !important;
    mix-blend-mode: normal !important;
}

/* kolor i delikatne powiększenie przy hover */
.capability-item:hover img {
    filter: invert(21%) sepia(97%) saturate(2942%) hue-rotate(352deg) brightness(95%) contrast(102%);
    transform: scale(1.08);
    opacity: 1;
}

/* zachowanie proporcji układu przy większych ikonach */
.capabilities-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 40px;
}

.capability-item {
    text-align: center;
    max-width: 280px;
}
<style>.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* mniejsze kolumny */
    gap: 10px;
    justify-items: center;
}

.gallery-grid img {
    width: 180px;
    /* szerokość każdego zdjęcia */
    height: 120px;
    /* wysokość każdego zdjęcia */
    object-fit: cover;
    /* przycinanie do proporcji */
    border-radius: 5px;
    transition: transform 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

</style>