/* ==========================================
   1. REGULACJA SIATKI I RESET MOTYWU
   ========================================== */

.row > [class*="col-"] {
    margin-bottom: 25px;
}

/* Usunięcie fabrycznych nakładek motywu wyłącznie z kafelków góry */
.advs-box-multiple::before,
.advs-box-multiple::after,
.advs-box-multiple .circle::before,
.advs-box-multiple .circle::after,
.section-empty .advs-box-multiple .circle::before,
.section-empty .advs-box-multiple .circle::after {
    content: none !important;
    display: none !important;
}


/* ==========================================
   2. TRZY KAFELKI GŁÓWNE (TECHNOLOGIA, ZASTOSOWANIA, KORZYŚCI)
   ========================================== */

.section-empty .advs-box.advs-box-multiple {
    position: relative !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    height: 100% !important;
    border-top: 3px solid #e30b1a !important;
}

.advs-box-multiple .img-box {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
}

.advs-box-multiple .img-box img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Ciemnoszary kwadrat z czerwoną kreską na styk ze zdjęciem */
.advs-box-multiple .circle,
.section-empty .advs-box-multiple .circle,
div.section-empty .advs-box-multiple .circle {
    background-color: #444444 !important;
    background: #444444 !important;
    border: none !important;
    border-top: 3px solid #e30b1a !important;
    border-radius: 0 !important;
    
    width: 65px !important;
    height: 65px !important;
    min-width: 65px !important;
    min-height: 65px !important;
    
    position: relative !important;
    z-index: 10 !important;
    
    margin-top: -33px !important;
    margin-bottom: -32px !important;
    margin-left: auto !important;
    margin-right: -5px !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
}

/* Wymuszenie bieli dla ikon SVG wewnątrz ciemnego kwadratu kafelka */
.advs-box-multiple .circle img.svg-icon,
.advs-box-multiple .circle img,
.section-empty .advs-box-multiple .circle img.svg-icon,
.section-empty .advs-box-multiple .circle img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 0 !important;
    
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
    transition: transform 0.3s ease !important;
}

.advs-box-multiple .advs-box-content {
    position: relative !important;
    z-index: 1 !important;
    padding: 25px 20px 20px 20px !important;
    background: #ffffff !important;
}

.section-empty .advs-box-multiple:hover .circle {
    background-color: #333333 !important;
    background: #333333 !important;
}

.section-empty .advs-box-multiple:hover .circle img {
    transform: scale(1.1) !important;
}


/* ==========================================
   3. BELKA REFERENCJI (DOLNY PAS CTA)
   ========================================== */

.ekozub-references-cta {
    margin-top: 10px !important;
    padding-top: 15px !important;
    padding-bottom: 0px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ekozub-references-cta__title {
    font-size: 22px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #171717 !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
}

.ekozub-references-cta__btn {
    border: 1px solid #e30b1a !important;
    color: #e30b1a !important;
    background: #ffffff !important;
    font-weight: 300 !important;
    text-transform: uppercase !important;
    font-size: 18px !important;
    padding: 12px 24px !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    border-radius: 0 !important;
}

.ekozub-references-cta__btn:hover {
    background: #e30b1a !important;
    color: #ffffff !important;
}


/* ==========================================
   4. SEKCJA "INŻYNIERIA CZYSTEJ WYDAJNOŚCI" & ZDJĘCIE W TLE
   ========================================== */

.section-two-blocks.section-bg-image {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 480px !important;
}

.counter-box-icon .icon-box-cell img.custom-counter-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    display: block !important;
}

.counter-box-icon .icon-box-cell {
    vertical-align: middle !important;
}


/* ==========================================
   5. SEKCYJNA KARUZELA LOGOTYPÓW ("ZAUFALI NAM")
   ========================================== */

.ekozub-logos-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    color: #171717 !important;
    text-transform: uppercase !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.ekozub-logos-section .title-base {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ekozub-logos-carousel {
    margin-top: 0 !important;
}

.ekozub-logos-carousel .slides > li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 60px !important;
}

.ekozub-logos-carousel .img-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.ekozub-logos-carousel .img-box img,
.png-over .ekozub-logos-carousel .img-box img {
    max-height: 38px !important;
    max-width: 80% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    filter: grayscale(100%) opacity(0.65) !important;
    -webkit-filter: grayscale(100%) opacity(0.65) !important;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease !important;
}

.ekozub-logos-carousel .img-box:hover img,
.png-over .ekozub-logos-carousel .img-box:hover img {
    filter: grayscale(0%) opacity(1) !important;
    -webkit-filter: grayscale(0%) opacity(1) !important;
    transform: scale(1.05) !important;
}


/* ==========================================
   6. WERSJA MOBILNA
   ========================================== */

@media (max-width: 992px) {
    .section-two-blocks.section-bg-image {
        background-position: center left !important;
    }
}

@media (max-width: 767px) {
    .section-two-blocks.section-bg-image {
        background-image: none !important;
        background: #f7f7f7 !important;
        min-height: auto !important;
        padding: 20px 0 !important;
        overflow: hidden !important;
    }

    .section-two-blocks.section-bg-image::before,
    .section-two-blocks.section-bg-image::after {
        display: none !important;
    }

    .section-two-blocks .content {
        padding: 25px 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background: #f7f7f7 !important;
        margin-top: 0 !important;
    }

    .section-two-blocks.blocks-right .row > .col-md-6:first-child {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .section-two-blocks .grid-table {
        display: table !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .section-two-blocks .grid-table tr {
        display: table-row !important;
    }

    .section-two-blocks .grid-table td {
        display: table-cell !important;
        width: 50% !important;
        padding: 10px 5px !important;
        vertical-align: middle !important;
        border: none !important;
    }

    .counter-box-icon .icon-box-cell img.custom-counter-icon {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        margin-right: 8px !important;
    }

    .counter-box-icon label.counter {
        font-size: 20px !important;
        line-height: 1 !important;
    }

    .counter-box-icon .icon-box-cell p {
        font-size: 11px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        margin: 0 !important;
    }
}


/* ==========================================
   7. SEKCJA KONTAKTOWA NA DOLE (RESET OTOCZKI / CZERWONA IKONA CZCIONKOWA)
   ========================================== */

/* 1. Usunięcie pseudoelementów motywu rysujących kółko wokół ikony */
.advs-box-top-icon i.icon::before,
.advs-box-top-icon i.icon::after,
.advs-box-top-icon i.circle::before,
.advs-box-top-icon i.circle::after {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Reset tła i obramowania z samego znacznika i.circle */
.advs-box-top-icon i.icon.circle,
.advs-box-top-icon i.icon.circle.text-color {
    background-color: transparent !important;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    
    color: #e30b1a !important;              /* Czerwona ikona */
    font-size: 38px !important;              /* Rozmiar ikony */
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    display: inline-block !important;
}

/* 3. Tytuły w sekcji kontaktowej */
.advs-box-top-icon h3 {
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: #171717 !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: 0.5px !important;
}

/* 4. Opisy w sekcji kontaktowej */
.advs-box-top-icon p {
    font-size: 14px !important;
    color: #585858 !important;
    margin: 0 !important;
}

/* Wyśrodkowanie na urządzeniach mobilnych */
@media (max-width: 767px) {
    .advs-box-top-icon {
        text-align: center !important;
        margin-bottom: 25px !important;
    }
}

/* ==========================================
   EKOZUB CARD ITEM - CSS (BEZ RADIUSÓW, POPRAWIONY UKŁAD)
   ========================================== */

/* Główny kontener karty - brak zaokrągleń */
.ekozub-card-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0 !important; /* Ścisły brak radiusa */
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Elastyczny wiersz w pionie */
.ekozub-card-item .vertical-row {
    display: flex;
    align-items: center;
}

/* Badge - data uruchomienia (ostre krawędzie) */
.ekozub-badge {
    display: inline-block;
    background-color: #fff1f2;
    color: #c00000;
    border: 1px solid #fecdd3;
    border-radius: 0 !important; /* Brak radiusa */
    font-size: 0.82rem;
    font-weight: 700;
    padding: 5px 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nazwa klienta - lekko zmniejszona, by nie łamała się na małej szerokości col-md-3 */
.ekozub-client-title {
    font-size: 1.8rem !important; 
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-transform: uppercase;
}

/* Adres - wyrównany ściśle do lewej */
.ekozub-location {
    font-size: 0.95rem; /* Lekko powiększony */
    color: #475569;
    margin: 0;
    text-align: left !important; /* Do lewej */
    line-height: 1.4;
}

.ekozub-location i {
    color: #c00000;
    margin-right: 6px;
    float: left; /* Zapewnia właściwe ułożenie ikony przy wieloliniowym adresie */
    margin-top: 3px;
}

/* Kolumna ze specyfikacją obiektu */
.ekozub-border-col {
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding-left: 24px;
    padding-right: 24px;
}

/* Sekcja Obiekt - zdecydowanie powiększona */
.ekozub-specs {
    font-size: 1.15rem; /* Zdecydowanie większy tekst obiektu */
    color: #1e293b;
    line-height: 1.5;
}

.ekozub-specs strong {
    color: #0f172a;
    font-weight: 800;
}

/* Licznik generatorów */
.ekozub-counter-val {
    display: block;
    font-size: 2.5rem; /* Większa cyfra */
    font-weight: 900;
    color: #c00000;
    line-height: 1;
}

.ekozub-counter-unit {
    font-size: 1.2rem;
    font-weight: 700;
    color: #c00000;
}

.ekozub-counter-label {
    display: block;
    font-size: 0.85rem; /* Lekko powiększony */
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Opis instalacji z lewej strony - ostre krawędzie */
.ekozub-desc-box {
    font-size: 1.02rem; /* Powiększony opis */
    color: #334155;
    line-height: 1.55;
    background-color: #f8fafc;
    padding: 16px 18px;
    border-radius: 0 !important; /* Brak radiusa */
    border-left: 4px solid #c00000; /* Gruby czerwony pasek */
}

/* RWD - Urządzenia mobilne */
@media (max-width: 767px) {
    .ekozub-card-item .vertical-row {
        display: block;
    }
    
    .ekozub-border-col {
        border-left: none;
        border-right: none;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: 18px 0;
        margin: 18px 0;
    }

    .ekozub-desc-box {
        margin-top: 18px;
    }

    .text-center-xs {
        text-align: center !important;
        margin: 18px 0;
    }
}

/* Zapewnia pełną widoczność opisu obiektu i zapobiega jego ukrywaniu */
.ekozub-specs {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Zwiększa szerokość środkowej kolumny na ekranach komputera */
@media (min-width: 992px) {
    .ekozub-card-item .col-md-3:first-child {
        width: 28%; /* Kolumna z nazwą i adresem */
    }
    .ekozub-border-col {
        width: 36%; /* Szersza kolumna na pełny opis Obiektu */
    }
    .ekozub-card-item .col-md-2 {
        width: 14%; /* Kolumna z licznikiem */
    }
    .ekozub-card-item .col-md-3:last-child {
        width: 22%; /* Opis po prawej */
    }
}
/* ==========================================
   EKOZUB - BAZA WIEDZY (KAFELKI ARTYKUŁÓW)
   ========================================== */

.ekozub-knowledge-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid #e30b1a !important;
    border-radius: 0 !important; /* Ścisły brak radiusa */
    padding: 32px 28px !important; /* Zwiększony wewnętrzny odstęp */
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.ekozub-knowledge-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Górny pasek: ikona + kategoria */
.ekozub-knowledge-card__header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.ekozub-knowledge-card__icon {
    color: #e30b1a !important;
    font-size: 26px !important; /* Powiększona ikona */
    line-height: 1 !important;
}

.ekozub-knowledge-card__tag {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}

/* Główny tytuł artykułu */
.ekozub-knowledge-card__title {
    font-size: 1.8rem !important; /* Wyraźnie powiększony tytuł */
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin: 0 0 14px 0 !important;
    text-transform: uppercase !important;
}

/* Opis artykułu */
.ekozub-knowledge-card__desc {
    font-size: 1.2rem !important; /* Powiększony tekst opisu */
    color: #475569 !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
    text-align: left !important;
}

/* Link / Przycisk czytaj więcej */
.ekozub-knowledge-card__link {
    color: #e30b1a !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: color 0.2s ease !important;
}

.ekozub-knowledge-card__link:hover {
    color: #a00000 !important;
    text-decoration: underline !important;
}