.manufacturers {
    overflow: hidden;
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
    margin: 120px 0;
}

.manufacturers:before, .manufacturers:after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

/* .manufacturers:before {
    left: 0;
    background: linear-gradient(to right, #dbe8fbf2, transparent);
}

.manufacturers:after {
    right: 0;
    background: linear-gradient(to left, #dbe8fbf2, transparent);
} */

.logos {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.logos img {
    height: 100px;
    margin: 0 45px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logos img:hover {
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* отзывы */
.reviews-carousel {
    width: 920px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.reviews-container {
    display: flex;
    width: 9999px;
    margin: 15px 0px 30px;
    transition: transform 0.5s ease;
}

.review {
    width: 250px;
    height: 320px;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    border-top-left-radius: 0;
    /* box-shadow: 0 6px 2px rgba(0,0,0,0.1); */
    flex-shrink: 0;
}
.review:nth-child(2) {
    margin: 0 25px;
}
.review:nth-child(5) {
    margin: 0 25px;
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4a6fa5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.user-info {
    flex-grow: 1;
}

.user-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.review-date {
    font-size: 12px;
    color: #777;
}

.stars {
    margin: 10px 0;
    font-size: 20px;
    letter-spacing: 2px;
}

.star {
    color: gold;
}

.star.empty {
    opacity: 0.3;
}

.review-text p {
    text-align: start;
    font-size: 16px;
    line-height: 1.3;
    overflow-y: auto;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.nav-btn {
    background: #4a6fa5;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 0 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Скрываем радиокнопки */
input[type="radio"] {
    display: none;
}

/* Логика переключения слайдов */
#slide1:checked ~ .reviews-container {
    transform: translateX(0);
}
#slide2:checked ~ .reviews-container {
    transform: translateX(-920px);
}
#slide3:checked ~ .reviews-container {
    transform: translateX(-1840px);
}


/* mobile */
@media screen and (max-width: 639px) {
    .reviews-carousel {
        width: auto;
    }
    .reviews-container {
        flex-direction: column;
        width: auto;
    }
    .review {
        width: auto;
        height: auto;
        margin: 0 0 20px 0;
    }
    .review:nth-child(2) {
        margin: 0 0 20px 0;
    }
    .review:nth-child(5) {
        margin: 0 0 20px 0;
    }
    .nav-buttons {
        display: none;
    }
}