/* Десктоп */
.carousels-section {
    background: #222;
    padding: 100px 0;
    min-height: 2060px;
    width: 100%;
    overflow: hidden;
}

.carousel-block {
    position: relative;
}

.carousel-block:last-child {
    margin-bottom: 0;
}

.carousel-title {
    color: #E2E2E2;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 120%;
    margin: 60px 0 50px;
    text-align: left;
    padding-left: 20%;
}

.carousel-container {
    width: 1956px;
    height: 386px;
    position: relative;
    overflow: visible;
    margin: 40px auto 0;
    padding: 40px 0;
}

.carousel-track {
    display: flex;
    gap: 24px;
    height: 306px;
    position: absolute;
    left: 0;
    top: 40px;
    will-change: transform;
}

.carousel-image {
    width: 306px;
    height: 306px;
    border-radius: 10px;
    background: #D9D9D9;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.carousel-image:hover {
    transform: scale(1.08);
    z-index: 100;
}

.carousel-image:hover img {
    transform: scale(1.1);
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    .carousels-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .carousel-block {
        margin-bottom: 94px;
    }
    
    .carousel-title {
        width: 351px;
        font-size: 20px;
        letter-spacing: 1px;
        margin: 0 0 39px;
        padding-left: 0;
        white-space: normal;
    }
    
    .carousel-container {
        width: 100%;
        height: 306px;
        margin: 0;
        padding: 0;
        overflow: hidden;
        touch-action: pan-y;
    }
    
    .carousel-track {
        position: relative;
        top: 0;
        transition: transform 0.3s ease;
    }
    
    .carousel-image {
        width: 306px !important;
        min-width: 306px;
        height: 306px !important;
    }
    
    .carousel-image:hover {
        transform: scale(1.03);
        z-index: 10;
    }
}

@media (max-width: 330px) {
    .carousel-container {
        margin: 0 -15px;
        padding: 0 15px;
    }
}

@media (min-width: 331px) and (max-width: 375px) {
    .carousel-title {
        width: 100%;
        max-width: 330px;
    }
}

@media (min-width: 376px) and (max-width: 414px) {
    .carousel-title {
        width: 351px;
    }
}

@media (min-width: 415px) and (max-width: 767px) {
    .carousel-title {
        width: 100%;
        max-width: 400px;
    }
}