#poducts-slider {
    background: var(--green_dark);
    padding: 100px 0;
}

.success {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 100px 0 0px;
}

.slider {
    display: flex;
    transition: transform 0.5s;
    gap: 100px;
}

.success-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 300px;
    padding: 0px;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s;
    position: relative;

}

.success-item.active {
    opacity: 1;
}

.success-list-link--absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.2s ease-out;
    z-index: 1;
}

.success-list-link--absolute:hover~.content .title h4 {
    color: var(--green_light);
}

.success-item .photo {
    display: flex;
    /*background: url("/images/preview-bg.png");*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /*border-radius: 170px 0px;*/
    overflow: hidden;
    max-width: 300px;
    max-height: 300px;
    justify-content: center;
}

.success-item .photo img {
    transition: transform 0.2s ease-out;
    transform: scale(0.9);
}

.success-item .success-list-link--absolute:hover~.photo img {
    transform: scale(1.0);
}

.success-item .content {
    padding: 0px;
    width: 100%;
}

.success-item .content .title h4 {
    color: var(--yellow);
    margin: 32px 0;
}

.success-item .success-list-inner__detail-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Дополнительные стили для прокрутки и видимости */
.controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.controls .prev,
.controls .next {
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 20px;
    background: var(--white);
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.controls .prev:hover,
.controls .next:hover {
    opacity: 1;
}

.controls .prev {
    left: 32px;
}

.controls .next {
    right: 32px;
}

.controls .prev.inactive,
.controls .next.inactive {
    display: none;
}

@media (max-width: 768px) {
    #poducts-slider {
        padding: 60px 0;
    }

    .success-item {
        flex: 0 0 calc(100vw - 32px);
    }

    .success-item .content {
        max-width: 300px;
    }

    .controls .prev {
        left: 0px;
    }

    .controls .next {
        right: 0px;
    }

    .success-item .photo img {
        transform: unset;
    }

    .success-item .success-list-link--absolute:hover~.photo img {
        transform: unset;
    }

}