/* Карусель марок на главной — в стиле Ducatibox */

.rcar-brands-section {
    padding: 50px 0 60px;
}

/* Шапка блока */
.rcar-brands-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
    flex-wrap: wrap;
}

.rcar-brands-title {
    margin: 0 !important;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--secondary-color);
}

.rcar-brands-all {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s ease;
}
.rcar-brands-all:hover,
.rcar-brands-all:focus {
    color: #000000;        /* пользователь: при наведении — чёрный, не красный */
    opacity: 1;
}

/* Сам слайдер */
.rcar-brands-swiper {
    position: relative;
    padding: 0 55px;        /* поля по краям; стрелок нет, листаем перетаскиванием */
    overflow: hidden;
}

/* Слайд: фиксированная ширина для slidesPerView: auto */
.rcar-brands-slide {
    width: 180px;
    height: auto;
    box-sizing: border-box;
}

.rcar-brands-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    padding: 18px;
    background: var(--bglight-color);
    border: 1px solid var(--gridlight-color);
    border-radius: 0;                    /* у темы прямые углы */
    transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
    box-sizing: border-box;
}

.rcar-brands-card:hover {
    border-color: var(--gridlight-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.rcar-brands-card img {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .55;
    transition: filter .25s ease, opacity .25s ease;
}

.rcar-brands-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Swiper 5: гасим дефолтные цвета */
.rcar-brands-swiper .swiper-button-disabled { opacity: .35; cursor: default; }

/* Мобильные */
@media (max-width: 767px) {
    .rcar-brands-section { padding: 35px 0 45px; }
    .rcar-brands-title { font-size: 24px; }
    .rcar-brands-swiper { padding: 0; }
    .rcar-brands-slide { width: 140px; }
    .rcar-brands-card { height: 90px; padding: 12px; }
}

/* Кнопка «Все марки» в виде карточки — того же размера, что логотипы */
.rcar-brands-card--all {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.35;
    padding: 14px;
}
.rcar-brands-card--all:hover {
    color: var(--primary-color);
}
