.ts-slider-type {
    position: relative;
    background-position: right bottom;
    background-size: cover;
    background-repeat: no-repeat;
}

.ts-slider-type__subtitle-container {
    display: flex;
    align-items: end;
    gap: 50px;
}

.ts-slider-type .discount-slider {
    display: flex;
    background: #fff;
    gap: 16px;
    box-shadow: 0px 17px 127px -11px #e0e8e8;
    border-radius: 12px;
    align-items: center;
    padding: 12px 12px 12px 24px;
}

.ts-slider-type .discount-slider__title {
    font-weight: bold;
    font-size: clamp(1.375rem, 1.275rem + 0.5vw, 1.875rem);
}

.ts-slider-type .discount-slider__description {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 500;
}

.ts-slider-type .discount-slider__percent {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #ef4343 -0.19%, #ff6262 99.95%);
    border-radius: 12px;
    padding: 10px;
    font-size: clamp(1.375rem, 1.275rem + 0.5vw, 1.875rem);
    font-weight: 700;
    color: #fff;
    height: clamp(2.5rem, 2.1875rem + 1.5625vw, 4.0625rem);
}

.ts-slider-type .ts-subtitle {
    max-width: 60%;
}

.ts-slider-type .ts-subtitle .bold {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
}

.ts-slider-type__form {
    margin-top: 2.5rem;
}

.ts-slider-type__price,
.ts-slider-type .main-slider__price {
    font-size: 1.5rem;
}

.discount-block {
    position: absolute;
    top: -19px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.discount-block__ribbon {
    height: 87px;
    width: 165px;
    background-image: url(/img/blocks/ts-slider-type/discount-ribbon.svg);
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .ts-slider-type__subtitle-container {
        flex-direction: column;
        align-items: start;
        gap: 20px;
    }

    .ts-slider-type .ts-subtitle .bold {
        font-size: inherit;
    }

    .ts-slider-type {
        background-position: left bottom -250px;
    }
}

@media (max-width: 576px) {
    .ts-slider-type .ts-subtitle {
        max-width: max-content;
    }

    .ts-slider-type {
        background-position: left bottom;
    }

    .ts-slider-type .gold-text {
        font-size: 34px;
    }

    .ts-slider-type__form {
        margin-top: 1rem;
    }

    .ts-slider-type__price,
    .ts-slider-type .main-slider__price {
        font-size: 0.875rem;
    }
}

@media (max-width: 1024px) {
    .ts-slider-type {
        background-position: center bottom;
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .ts-slider-type__form .slider-form__name {
        border-right: 1px solid rgba(35, 31, 32, 0.1);
    }

    .ts-slider-type__form .slider-form__name .ts-form-control {
        border-radius: 10px 0 0 10px;
    }

    .ts-slider-type__form .slider-form__phone .ts-form-control {
        border-radius: 0;
    }

    .ts-slider-type__form .slider-form__button {
        padding: 0 46px;
    }
}
