/* ===== Логотипы ===== */
.imgfb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 8px;
    box-sizing: border-box;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
    will-change: filter;          /* подсказка GPU для transition */
}

#flexiselBrands li:hover .imgfb {
    filter: grayscale(0);
    opacity: 1;
}

/* Задаем размер самого слота */
#flexiselBrands .nbs-flexisel-item {
    height: 160px;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Жестко фиксируем картинку внутри слота */
#flexiselBrands .nbs-flexisel-item .imgfb {
    width: 100%;
    height: 100%;             /* Заполняет всю высоту карточки (160px) */
    object-fit: contain;      /* Вписывает картинку ЦЕЛИКОМ, сохраняя пропорции */
    object-position: center;
    display: block;
    margin: 0 !important;     /* ВАЖНО: убираем старые отступы flexisel */
    padding: 12px;            /* Добавляем воздух по краям */
    box-sizing: border-box;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* ===== Обёртки ===== */
.flexiselbrandsCarouselContaner {
    max-width: 1270px;
    min-height: 300px;
    margin: 0 auto;
}

.FlexbrandsCarouselCont {
    margin: 70px 0 70px 0;
}

.h2fb {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    padding: 15px 0 25px 15px;
    color: #04395e;
}

/* ===== Скрытие стрелок навигации у карусели брендов =====
   Рабочий селектор: nav-элементы — соседи ul#flexiselBrands,
   а не .nbs-flexisel-container. */
#flexiselBrands ~ .nbs-flexisel-nav-left,
#flexiselBrands ~ .nbs-flexisel-nav-right,
.nbs-flexisel-container:has(#flexiselBrands) .nbs-flexisel-nav-left,
.nbs-flexisel-container:has(#flexiselBrands) .nbs-flexisel-nav-right {
    display: none !important;
}