/* Стили для секции использования с водителем (без JavaScript) */

.with-driver__usage {
    background: linear-gradient(233.77deg, hsla(0, 0%, 8%, 0.5) 4.25%, hsla(0, 0%, 8%, 0) 95.32%);
}

@media (max-width: 1900px) {
    .with-driver__usage {
        background: linear-gradient(233.77deg, hsla(0, 0%, 8%, 0.7) 4.25%, hsla(0, 0%, 8%, 0.3) 95.32%);
    }
}

@media (max-width: 1360px) {
    .with-driver__usage {
        background: linear-gradient(233.77deg, hsla(0, 0%, 8%, 0.7) 4.25%, hsla(0, 0%, 8%, 0.3) 95.32%);
    }
}

.with-driver__usage-list {
    display: flex;
    gap: 0px;
    justify-content: center;
    padding: 20px 0 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Кастомный скроллбар для Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 167, 167, 0.5) transparent;
}

/* Кастомный скроллбар для WebKit браузеров (Chrome, Safari, Edge) */
.with-driver__usage-list::-webkit-scrollbar {
    height: 8px;
}

.with-driver__usage-list::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.2);
    border-radius: 10px;
    margin: 0 20px;
}

.with-driver__usage-list::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(167, 167, 167, 0.4), rgba(167, 167, 167, 0.6));
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.with-driver__usage-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(167, 167, 167, 0.6), rgba(167, 167, 167, 0.8));
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.with-driver__usage-list::-webkit-scrollbar-thumb:active {
    background: linear-gradient(90deg, rgba(167, 167, 167, 0.8), rgba(167, 167, 167, 1));
}

@media (max-width: 1900px) {
    .with-driver__usage-list {
        gap: 0px;
        padding: 30px 0;
    }
}

@media (max-width: 1360px) {
    .with-driver__usage-list {
        padding: 15px 0;
    }
}

@media (max-width: 768px) {
    .with-driver__usage-list {
        background: #141414;
        justify-content: flex-start;
        margin: 0 -15px -302px;
        padding: 40px 0 60px !important;
        position: relative;
        width: 100dvw;
        /* Улучшенный скроллбар для мобильной версии */
        scrollbar-width: thin;
        scrollbar-color: rgba(167, 167, 167, 0.7) rgba(20, 20, 20, 0.4);
    }
    
    .with-driver__usage-list::-webkit-scrollbar {
        height: 6px;
    }
    
    .with-driver__usage-list::-webkit-scrollbar-track {
        background: rgba(20, 20, 20, 0.4);
        border-radius: 10px;
        margin: 0 15px;
    }
    
    .with-driver__usage-list::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, rgba(167, 167, 167, 0.5), rgba(167, 167, 167, 0.7));
        border-radius: 10px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .with-driver__usage-list::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, rgba(167, 167, 167, 0.7), rgba(167, 167, 167, 0.9));
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }
    
    .with-driver__usage-list::-webkit-scrollbar-thumb:active {
        background: linear-gradient(90deg, rgba(167, 167, 167, 0.8), rgba(167, 167, 167, 1));
    }
}

/* Общие стили для элементов */
.with-driver__usage-item {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    gap: 30px;
    max-width: 400px;
    position: relative;
    width: 100%;
    scroll-snap-align: start;
}

@media (max-width: 1900px) {
    .with-driver__usage-item {
        gap: 20px;
    }
}

@media (max-width: 1360px) {
    .with-driver__usage-item {
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .with-driver__usage-item {
        min-width: 100dvw;
        padding: 0 25px;
    }
}

/* Разделители между элементами */
.with-driver__usage-item:not(:last-child):after {
    background: url(/img/with-driver/usage/separator.svg);
    content: "";
    height: 100%;
    left: calc(100% + 30px);
    position: absolute;
    width: 1px;
}

@media (max-width: 1900px) {
    .with-driver__usage-item:not(:last-child):after {
        left: calc(100% + 20px);
    }
}

@media (max-width: 1360px) {
    .with-driver__usage-item:not(:last-child):after {
        display: none;
    }
}

@media (max-width: 768px) {
    .with-driver__usage-item:not(:last-child):after {
        display: none;
    }
}

/* Специфичные стили для каждого элемента */
.with-driver__usage-item.usage-airport {
    /* Стили для аэропорта */
}

.with-driver__usage-item.usage-business {
    /* Стили для бизнеса */
}

.with-driver__usage-item.usage-personal {
    /* Стили для личных дел */
}

/* Изображения */
.with-driver__usage-img {
    --size: 140px;
    border-radius: 50%;
    height: var(--size);
    width: var(--size);
    object-fit: cover;
}

@media (max-width: 1900px) {
    .with-driver__usage-img {
        --size: 100px;
    }
}

.with-driver__usage-img._alt {
    /* Дополнительные стили для альтернативных изображений */
}

/* Заголовки */
.with-driver__usage-item-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 36px;
}

@media (max-width: 1900px) {
    .with-driver__usage-item-title {
        font-size: 24px;
        line-height: 30px;
    }
}

@media (max-width: 1360px) {
    .with-driver__usage-item-title {
        font-size: 20px;
        line-height: 25px;
    }
}

/* Описания */
.with-driver__usage-item-description {
    color: #bbb;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 26px;
    margin-top: 15px;
}

@media (max-width: 1900px) {
    .with-driver__usage-item-description {
        font-size: 16px;
        line-height: 25px;
    }
}

@media (max-width: 1360px) {
    .with-driver__usage-item-description {
        font-size: 14px;
        line-height: 18px;
        margin-top: 5px;
    }
}

/* Скрытие пагинации (она больше не нужна без Swiper) */
.with-driver__usage-pagination {
    display: none !important;
}

