/* Советы ортопеда */

.soveti-ortopeda {
    max-width: 1280px;
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
}

.button-wrp {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 20px;
    bottom: 25px;
}

.one_button {
    margin-bottom: 5px;
}

.text-doctor {
    width: 49%;
    height: 488px;
    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='633' height='488' viewBox='0 0 633 488' fill='none'>\
<path d='M0.5 448C0.5 470.091 18.4086 488 40.5 488H179.326C192.598 488 205.006 481.417 212.448 470.427L221.102 457.645C228.543 446.656 240.949 440.072 254.221 440.071L592.548 440.041C614.64 440.04 632.547 422.129 632.544 400.037L632.504 39.9955C632.502 17.9059 614.594 0 592.504 0L40.5 -6.10352e-05C18.4086 -6.10352e-05 0.5 17.9085 0.5 39.9999V448Z' fill='%23FFFF7B'/>\
</svg>");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    padding: 32px;
    position: relative;
}

.sovets {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: self-start;
}

.one-soverts {
    padding: 32px;
    border-radius: 40px;
    background: #D3B7F8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #8347AD;
    width: 584px;
    height: 320px;
}

.one-sovets-title {
    color: #8347AD;
    font-family: "Nunito Sans";
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    margin: 0;
}

.one-sovets-text {
    font-family: "Nunito Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    /* 27px */
    margin: 0;
}

.read-more__wrp {
    display: flex;
    justify-content: end;
}

.read-more-text {
    color: #fff;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    /* 18px */
    padding: 0;
    margin: 0;
    text-decoration: none;
    cursor: pointer;
}

.two-soverts {
    background: #E7E7E7;
    margin-top: 25px;
    border-radius: 40px;
    width: 584px;
    height: 128px;
    padding: 17px 32px 0 32px;
}

.two-sovets__title {
    color: #454545;
}

.two-sovets__text {
    margin-top: 20px;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    /* 27px */
}

.text-doctor-title {
    color: #000;
    /* Desktop/Text Large */
    font-family: "Nunito Sans";
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    max-width: 385px;
    /* 42px */
}

.speaker {
    margin-top: 75px;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    /* 27px */
}

.lukash {
    font-family: "Nunito Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
}

.who {
    margin-top: 40px;
    font-family: "Nunito Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    /* 27px */
}

.doctor-photo {
    position: absolute;
    border-radius: 50%;
    right: 32px;
    top: 86px;
}


/* Фокусы */
/* контейнер слайдов */
.sovets-slider {
    position: relative;
    overflow: hidden;
    height: 476px;
    width: 49%;
}

.sovets-slider-track {
    display: flex;
    flex-direction: column;
    /* gap между слайдами в 15px */
    gap: 15px;
    transition: transform 0.4s ease;
}

.sovets-slide {
    /* убираем любые margin-bottom, gap теперь отвечает за отступ */
    box-sizing: border-box;
    padding: 32px;
    width: 100%;
    height: 320px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* активный слайд */
.sovets-slide.active {
    background: #D3B7F8;
    color: #8347AD;
}

/* все остальные слайды */
.sovets-slide:not(.active) {
    background: #E7E7E7;
    /*background: linear-gradient(180deg, rgba(122, 122, 122, 0.5) 0%, #FFF 100%);*/
    color: #454545;
}

/* заголовок и текст */
.sovets-slide-title {
    font-family: "Nunito Sans", sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.sovets-slide-text {
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.sovets-read-more {
    align-self: flex-end;
    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    color: #fff;
}

/* кнопки наверх/вниз */
.sovets-btn-up,
.sovets-btn-down {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.sovets-button-wrp {
    position: absolute;
    right: 20px;
    bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Мобилка */
.mb-soveti-ortopeda {
    display: none;
}

.mb-text-doctor {
    display: none;
}

@media (min-width: 360px) and (max-width: 576px) {

    /* .soveti-ortopeda {
        display: none;
    } */
    .mb-text-doctor {
        display: block;
        margin-bottom: 50px;
    }
    .mb-up-button {
        width: 30px;
        height: 30px;
    }
    .sovets-button-wrp {
        bottom: 27px;
    }

    .text-doctor {
        display: none;
    }

    .soveti-ortopeda {
        display: flex;
        flex-direction: column;
        margin-top: 0;
        padding: 35px 18px 0 18px;
    }

    .sovets-slider {
        width: 100%;
    }
    .sovets-slide:not(.active) {
    background: #E7E7E7;
    /*background: linear-gradient(180deg, rgba(122, 122, 122, 0.5) 0%, #FFF 100%);*/
    color: #454545;
}

    .sovets-slide-title {
        font-family: "Nunito Sans";
        font-size: 22px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
        /* 30.8px */
    }


    .mb-text-doctor-title {
        margin-bottom: 86px;
        color: #454545;
        font-family: "Nunito Sans";
        font-size: 22px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
    }

    .sovets-slide-text {
        font-family: "Nunito Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
        /* 24px */
    }

    .sovets-read-more {
        color: var(--White, #FFF);
        font-family: "Nunito Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 100%;
        /* 16px */
    }


    .mb-speak-text {
        padding: 84px 18px 18px 18px;
        background-color: #FFFF7B;
        border-radius: 24px 24px 24px 0;
        position: relative;
    }

    .mb-speak-text::after {
        content: "";
        position: absolute;
        background: url('../img/mb-text-down.png') no-repeat;
        width: 240px;
        height: 36px;
        bottom: -36px;
        left: 0px;
    }

    .mb-doctor-photo {
        width: 132px;
        height: 132px;
        position: absolute;
        border-radius: 50%;
        top: -66px;
    }

    .mb-speaker {
        color: #454545;
        font-family: "Nunito Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
        /* 24px */
    }

    .mb-lukash {
        margin-bottom: 36px;
        color: #454545;
        font-family: "Nunito Sans";
        font-size: 18px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
    }

    .mb-who {
        color: #454545;
        font-family: "Nunito Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
    }

    .mb-sovets-slider {
        margin-top: 50px;
    }

    /* типа слайды */
}