.brands_body {
    background: #FFFFFF;
}

.brands_page {
    background: #FFFFFF;
    overflow: hidden;
}

.brands_page h1,
.brands_page h2,
.brands_page h3,
.brands_page p {
    text-wrap: pretty;
}


/* Hero */

.brands_hero_block {
    padding: 42px 0 44px;
    background: #FFFFFF;
}

.brands_hero h1 {
    max-width: 985px;
}


/* Catalog groups */

.brands_catalog_block {
    padding: 80px 0 72px;
    background: #F4F4F4;
}

.brands_catalog_block+.brands_catalog_block {
    margin-top: 50px;
}

.brands_catalog h2 {
    margin-bottom: 48px;
}

.brands_grid {
    display: grid;
    grid-template-columns: repeat(6, 203px);
    justify-content: space-between;
    gap: 49px 20px;
}

.brand_card {
    display: block;
    color: #000000;
}

.brand_card_logo {
    width: 203px;
    height: 203px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 20px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.brand_card_logo img {
    width: auto;
    max-width: 168px;
    max-height: 66px;
    display: block;
    object-fit: contain;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.brand_card h3 {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
    line-height: 130%;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.25s ease, text-underline-offset 0.25s ease;
}

.brand_card p {
    max-width: 199px;
    color: #000000;
}

.brand_card:hover .brand_card_logo {
    box-shadow: 0 16px 40px rgba(5, 9, 22, 0.08);
}

.brand_card:hover .brand_card_logo img {
    transform: scale(1.035);
}

.brand_card:hover h3 {
    color: #60534B;
    text-underline-offset: 6px;
}


/* Footer spacing on this page */

.brands_body footer {
    padding-top: 80px;
}


/* Responsive */

@media (max-width: 1360px) {
    .brands_page .container {
        width: calc(100% - 40px);
    }
    .brands_grid {
        grid-template-columns: repeat(4, 203px);
        justify-content: start;
    }
}

@media (max-width: 1200px) {
    .brands_grid {
        grid-template-columns: repeat(3, 203px);
    }
}

@media (max-width: 768px) {
    .brands_page .container {
        width: calc(100% - 40px);
    }
    .brands_hero_block {
        padding: 28px 0 30px;
    }
    .brands_page .service_breadcrumbs {
        display: none;
    }
    .brands_hero h1 {
        max-width: 348px;
        font-size: 30px;
        line-height: 130%;
    }
    .brands_catalog_block {
        padding: 23px 0 64px;
    }
    .brands_catalog_block+.brands_catalog_block {
        margin-top: 30px;
    }
    .brands_catalog h2 {
        margin-bottom: 30px;
        font-size: 28px;
        line-height: 130%;
    }
    .brands_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 28px 18px;
    }
    .brand_card_optional {
        display: none;
    }
    .brand_card_logo {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        margin-bottom: 18px;
        border-radius: 20px;
    }
    .brand_card_logo img {
        max-width: 83%;
        max-height: 54px;
    }
    .brand_card h3 {
        min-height: 21px;
        margin-bottom: 12px;
        font-size: 16px;
        line-height: 130%;
    }
    .brand_card p {
        max-width: none;
        font-size: 14px;
        line-height: 130%;
    }
    .brands_body footer {
        padding-top: 78px;
    }
}

@media (max-width: 420px) {
    .brands_page .container {
        width: calc(100% - 40px);
    }
    .brands_grid {
        column-gap: 18px;
    }
}

@media (max-width: 360px) {
    .brands_page .container {
        width: calc(100% - 28px);
    }
    .brands_grid {
        column-gap: 14px;
    }
}


/* ========================================================================== */


/* Mobile final correction */


/* ========================================================================== */

@media (max-width: 768px) {
    .brands_body {
        overflow-x: hidden;
    }
    .brands_page {
        overflow: hidden;
    }
    .brands_hero_block {
        padding: 28px 0 28px;
    }
    .brands_page .service_breadcrumbs {
        display: none;
    }
    .brands_hero h1 {
        max-width: 348px;
        font-size: 30px;
        line-height: 130%;
        letter-spacing: -0.05em;
    }
    .brands_catalog_block {
        padding: 34px 0 54px;
    }
    .brands_catalog_block+.brands_catalog_block {
        margin-top: 0;
    }
    .brands_catalog h2 {
        margin-bottom: 28px;
        font-size: 28px;
        line-height: 130%;
        letter-spacing: -0.05em;
    }
    .brands_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }
    .brand_card_logo {
        aspect-ratio: 1 / 1;
        border-radius: 20px;
    }
    .brand_card h3 {
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 130%;
    }
    .brand_card p {
        font-size: 14px;
        line-height: 130%;
    }
}
/* Elementor bridge: keep static brands layout 1:1 inside Elementor wrappers */
.brands_body .elementor-section,
.brands_body .elementor-container,
.brands_body .elementor-column,
.brands_body .elementor-widget-wrap,
.brands_body .elementor-widget,
.brands_body .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
}

.brands_body .elementor-section,
.brands_body .elementor-container,
.brands_body .elementor-column,
.brands_body .elementor-widget-wrap,
.brands_body .elementor-widget,
.brands_body .elementor-widget-container,
.brands_body .elementor-widget-container > section {
    width: 100% !important;
    max-width: none !important;
}

.brands_body .elementor-widget-container > section {
    min-height: 0 !important;
}
