.slider__wrapper {
    overflow: hidden;
    margin-bottom: 20px;
}

.slider__item {
    position: relative;
    aspect-ratio: 20/6;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right center;
    padding: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider__item:before {
    content: '';
    background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .5));
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
}

.slider__item-wrapper {
    color: var(--white);
    position: relative;
    z-index: 2;
}

.slider__item-title {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
}

.slider__item-desc {
    margin-bottom: 24px;
}

.slider_type_2 .slider__item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider_type_2 .slider__item {
    background-position: center center;
}

.slider_type_2 .slider__item:before {
    background: rgba(0, 0, 0, .2);
}

@media screen and (max-width: 992px) {
    .slider__item {
        aspect-ratio: 16/6;
    }
}

@media screen and (max-width: 768px) {
    .slider__item {
        aspect-ratio: 16/8;
    }
}

@media screen and (max-width: 576px) {
    .slider__item {
        aspect-ratio: 1/1;
        text-align: center;
    }

    .slider__item:before {
        background: rgba(0, 0, 0, .6);
    }
}
