@media screen and (max-width: 1440px) {
    .doctors-card__title {
        height: 96px;
    }

    .doctors-card__text {
        height: 46px;
    }


    .address-content {
        width: calc(100% - 400px);
        padding: 15px 35px;
    }

    .address__image {
        width: 400px;
        min-width: 400px;
    }
}

@media screen and (max-width: 1024px) {
    .header__button {
        display: none;
    }

    .appointment-form {
        max-width: 100%;
    }

    .appointment-form__block {
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        grid-gap: 16px;
    }

    .appointment-form__fieldset,
    .appointment-form__button {
        width: calc(33.33% - 10px);
    }

    .appointment-form__fieldset {
        margin: 0;
    }

    .appointment-form__button {
        height: 47px;
        border-radius: 24px;
        font-size: 17px;
        line-height: 23px;
    }

    .appointment__link {
        display: none;
    }


    .benefits {
        padding: 56px 0 135px;
    }

    .benefits__title {
        margin-bottom: 56px;
    }

    .benefits-card {
        width: 100%;
    }

    .benefits-card__title {
        margin: 32px 0 20px;
    }


    .services {
        padding: 0 0 90px;
    }

    .services-item__header {
        padding: 32px 0 40px;
    }

    .services-item__control {
        flex-direction: row-reverse;
    }

    .services-item__button {
        margin: 0 32px 0 0;
        width: 146px;
        height: 46px;
        font-size: 17px;
        line-height: 23px;
    }

    .services-item__arrow {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 46px;
        height: 46px;
        padding: 7px;
        border-radius: 16px;
        background-color: #533C2E;
        color: #fff;
    }

    .services-item_opened .services-item__arrow {
        background-color: #B5A59C;
    }

    .services-item__pos {
        padding: 16px 0 8px;
    }


    .promotion {
        padding: 0 0 148px;
    }

    .promotion__wrapper {
        padding: 0;
    }

    .promotion__image {
        position: static;
        width: 100%;
        max-width: 100%;
        top: 0;
        transform: translateY(0);
        border-radius: 0;
    }

    .promotion-content {
        width: 100%;
        max-width: 640px;
        margin: 40px auto 0;
        padding: 0 15px;
    }

    .promotion-content__title {
        margin-bottom: 16px;
    }

    .promotion-content__text {
        font-size: 20px;
        line-height: 27px;
    }


    .doctors__title {
        margin-bottom: 48px;
    }

    .doctors-card__title {
        height: 66px;
    }

    .doctors-card__text {
        height: auto;
    }


    .address {
        padding: 148px 0 158px;
    }

    .address__inner {
        display: block;
    }

    .address-content {
        margin: 0 0 26px;
        width: 100%;
        max-width: 100%;
        padding: 40px 64px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: row-reverse;
    }

    .address-content__block {
        margin: 0;
    }

    .address-content__block_1 {
        width: 53%;
        padding-left: 9%;
    }

    .address-content__block_2 {
        width: 47%;
        padding-right: 9%;
    }

    .address-content__block_2::after {
        display: block;
        content: '';
        width: 1px;
        height: 100%;
        position: absolute;
        top: 0;
        right: 0;
        background-color: #B5A59C;
    }

    .address__image {
        display: none;
        width: 100%;
        min-width: 0;
    }

    /*.address__image_tablet {*/
    /*    display: block;*/
    /*}*/
    .address-content__social {
        display: none;
    }


    .footer {
        border-top: none;
        padding: 0 0 75px;
    }

    .footer__inner {
        padding-top: 32px;
        border-top: 2px solid #533C2E;
    }

    .address-content__social-block_footer {
        display: flex;
    }


    .modal .appointment-form__block {
        display: block;
        max-width: 294px;
    }

    .modal .appointment-form__fieldset,
    .modal .appointment-form__button {
        width: 100%;
    }

    .modal .appointment-form__fieldset {
        margin-bottom: 32px;
    }
}

@media screen and (max-width: 992px) {
    .appointment-form__block {
        display: block;
        width: 100%;
        max-width: 294px;
        margin: 0 auto;
    }

    .appointment-form__fieldset,
    .appointment-form__button {
        width: 100%;
    }

    .appointment-form__fieldset {
        margin-bottom: 32px;
    }

    .appointment-form__button {
        margin-top: 24px;
    }
}

@media screen and (max-width: 768px) {
    .wrapper {
        padding: 0 24px;
    }


    .services__title {
        margin-bottom: 50px;
    }

    .services-item {
        margin-bottom: 10px;
    }

    .services-item__header {
        padding: 8px 0 16px;
    }

    .services-item__info {
        width: 100%;
        justify-content: space-between;
        flex-direction: row-reverse;
    }

    .services-item__control {
        display: none;
    }

    .services-item_opened .services-item__arrow {
        display: none;
    }

    .services-item__button {
        margin: 0;
        font-size: 14px;
        line-height: 120%;
        height: 32px;
        width: 120px;
    }

    .services-item__text {
        font-size: 24px;
        line-height: 32px;
        font-weight: 500;
    }

    .services-item__icon {
        margin: 0 0 0 16px;
    }

    .services-item__pos-text,
    .services-item__pos-price {
        font-size: 17px;
        line-height: 23px;
        font-weight: 500;
    }

    .services-item {
        border-width: 1px;
        position: relative;
    }

    .services-item_opened {
        padding: 8px 16px 40px;
        border-radius: 16px;
    }

    .promotion {
        padding: 0 0 88px;
    }


    .doctors-card__title {
        height: 96px;
    }

    .doctors-card__text {
        height: 46px;
    }


    .address-content {
        padding: 16px 20px;
        display: block;
    }

    .address-content__block {
        width: 100%;
        padding: 0;
    }

    .address-content__block_1 {
        margin-bottom: 16px;
    }

    .address-content__block_2::after {
        display: none;
    }

    .address-content__title {
        margin-bottom: 8px;
        font-size: 34px;
        line-height: 46px;
    }

    .address-content__text {
        font-size: 17px;
        line-height: 23px;
    }

    .address-content__social-icon {
        margin: 0;
    }


    .footer {
        padding: 0 0 72px;
    }

    .footer__link,
    .address-content__social-text {
        display: none;
    }

    .services-item_opened .services-item__control {
        position: absolute;
        bottom: 10px;
        right: 10px;
        display: block;
    }


}

@media screen and (max-width: 575px) {
    html,
    body {
        font-size: 13px;
        line-height: 17px;
    }


    .header {
        padding: 16px 0;
    }

    .header__logo {
        max-width: 102px;
    }

    .header-phone__text {
        font-size: 13px;
        line-height: 17px;
    }


    .appointment {
        padding: 338px 0 80px;
        background: url("../images/bg-appointment_mobile.png") no-repeat 50% 72px transparent;
        background-size: 327px 394px;
    }

    .appointment__content {
        max-width: 327px;
        margin: 0 auto;
        flex-direction: column-reverse;
    }

    .appointment-form__title,
    .appointment-form__subtitle {
        text-align: left;
        font-weight: 600;
    }

    .appointment-form__title {
        font-size: 28px;
        line-height: 38px;
        padding-right: 12px;
    }

    .appointment-form__subtitle {
        margin: 16px 0 0;
        font-size: 17px;
        line-height: 23px;
    }

    .appointment-form__block {
        display: none;
    }

    .appointment-form {
        padding: 0;
    }

    .appointment__link {
        margin: 0 12px 63px 0;
        bottom: 0;
    }

    .appointment__link_mobile {
        display: block;
    }


    .benefits {
        padding: 0 0 80px;
    }

    .benefits__title {
        display: none;
    }

    .benefits__inner {
        grid-gap: 16px;
    }

    .benefits-card {
        padding: 16px 20px 20px;
    }

    .benefits-card__title {
        margin: 4px 0 8px;
        font-size: 24px;
        line-height: 32px;
    }

    .benefits-card__text {
        font-size: 17px;
        line-height: 23px;
    }


    .services__title {
        margin-bottom: 24px;
        font-size: 34px;
        line-height: 46px;
        font-weight: 600;
    }


    .promotion-content {
        margin: 16px 0 0;
        padding: 0;
    }

    .promotion-content__title,
    .promotion-content__text {
        text-align: left;
    }

    .promotion-content__title {
        margin-bottom: 8px;
        font-size: 34px;
        line-height: 46px;
    }

    .promotion-content__text {
        font-size: 17px;
        line-height: 23px;
    }


    .doctors__title {
        margin-bottom: 20px;
        font-size: 34px;
        line-height: 46px;
        font-weight: 600;
    }

    .doctors-card__title {
        height: 66px;
    }

    .doctors-card__text {
        height: auto;
    }

    .doctors .swiper-button-prev,
    .doctors .swiper-button-next {
        width: 24px;
        height: 24px;
        top: 37px;
    }

    .swiper-button-prev {
        right: 32px;
    }


    .address {
        padding: 136px 0 80px;
    }

    .address-content {
        margin: 0 0 12px;
        border-radius: 16px;
    }

    .address__image {
        display: block;
    }

    /*.address__image_tablet {*/
    /*    display: none;*/
    /*}*/
    .footer__inner {
        padding-top: 16px;
    }
}

@media screen and (max-width: 375px) {
    .doctors-card__title {
        height: 96px;
    }


    .modal-content {
        padding: 20px 10px;
    }

    .modal .appointment-form__title {
        font-size: 24px;
        line-height: 30px;
        text-align: center;
    }
}
