@media screen and (orientation: Portrait ) {

    .desktop {
        display: none;
    }

    .modal-container {
        width: 95%;
    }

    .header-content {
        display: none;
    }


    .container, .container-sm {
        max-width: 100%;
        padding: 0 3vw;
    }
    .error-block p.code {
        font-size: 5rem;
    }
    .error-block h1 {
        text-align: center;
    }
    .header-actions .row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    .gridbox {
        display: flex;
        flex-direction: column;
    }

    .footer-content .row {
        display: flex;
        -ms-flex-wrap: wrap;
        flex-direction: column;
    }

    .footer-content .col-lg-6 {
        flex-direction: column;
    }

    .footer-content .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .left-menu__price {
        position: static;
    }

    .row {
        flex-direction: column;
    }

    .col-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .main-services .procedure {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .offset-xl-1 {
        max-width: 100%;
    }

    .header-content {
        display: none;
    }

    .main-menu__mobile  {
        display: block;
        max-width: 25%;
        flex: 0 0 25%;

    }


    .header-actions .row {
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    .col-sm-6, .top_menu_header {
        -ms-flex: 0 0 70%;
        flex: 0 0 70%;
        max-width: 70%;

    }

    .header-logo .logo img {
        height: auto;
        width: 18rem;
    }

    .main-menu {
        display: none;
    }

    .navbar.navbar-light.bg-light {
        top: -5px;
        position: absolute;
    }

    .menu-mobile__block {
        background: #fff;
        top: 0;
        position: fixed;
        right: 0;
        left: 0;
        bottom: 0;
        padding: 1rem;
    }

    .main-menu__scroll {
        overflow: auto;
        width: auto;
        position: fixed;
        top: 4rem;
        left: 2rem;
        right: 1rem;
        bottom: 1rem;
        z-index: 100;
    }

    .header-actions .btn, .header-actions #medflexMedtochkaWidgetButton {
        min-width: 100% !important;
        max-width: 100 !important;
    }

    .header-actions .col-lg-3 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    [data-role="toggle-data"] {
        display: none;
    }

    .medflex-medtochka-widget {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .menu-mobile-cont {
        width: 5.5vw;
        background: white !important;
        display: inline-block;
        vertical-align: middle;
        -webkit-transition: all .3s;
        transition: all .3s;
        margin: 0 0 0 2vw;
        top: 0;
        position: relative;
    }

    .menu-mobile-cont .menu-toggle {
        width: 5.5vw;
        display: inline-block;
        vertical-align: middle;
        -webkit-transition: all .3s;
        transition: all .3s;
        border-radius: 0.3vw;
        height: 0.1rem;
    }

    .menu-mobile-cont .menu-toggle:before {
        content: "";
        -webkit-transition: all .3s;
        transition: all .3s;
        position: absolute;
        left: 0;
        top: 0.9vw;
        width: 5.5vw;
        border-radius: 0.3vw;
        height: 0.1rem;
    }

    .menu-mobile-cont .menu-toggle:after {
        content: "";
        -webkit-transition: all .3s;
        transition: all .3s;
        position: absolute;
        left: 0;
        width: 5.5vw;
        top: -0.9vw;
        border-radius: 0.3vw;
        height: 0.1rem;
    }

    .menu-mobile-cont .menu-toggle, .menu-mobile-cont .menu-toggle:before, .menu-mobile-cont .menu-toggle:after {
        background: var(--grey-dark);
    }

    [data-role="toggle-btn"] {
        position: relative;
        z-index: 60;
        margin: 0;
        font-size: 4vw;
        font-family: 'OpenSans-Bold';
        display: flex;
        justify-content: flex-end;
        align-items: center;

    }

    .menu-link .name_menu {
        padding-bottom: 1rem;
        color: var(--grey-dark);
    }

    .sticky {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        opacity: 1;
        z-index: 1000;
        box-shadow: var(--box-shadow);
        margin-top: 0;
    }

    .header-logo {
        flex: 0 100%;
    }

    .mobile_name {
        position: relative;
    }

   /* .header-logo:after {
        content: "DE-Clinic";
        position: absolute;
        top: 4%;
        left: 17.5%;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--purple);
    }

    .header-logo:before {
        content: "Клиника доктора В.В.Ерцкина";
        position: absolute;
        top: 20%;
        left: 17.5%;
        font-size: .7rem;
        font-weight: 600;
        color: var(--purple);
    }*/

    .expanded#services-text__table_wrap {
        display: block;
    }

    .top_menu_header {
        display: flex;
        width: 100%;
        padding-bottom: .5rem;
    }

    section {
        padding: 2rem 0;
    }

    .mobile {
        display: block;
    }

    .col-xl-6 {
        width: 100%;
        max-width: 100%;
    }

    .footer-content span {
        font-size: 1em;
        padding: 2em 0 0 0;
    }

    .slider__item {
        height: 43vh;
    }

    .main-company .text {
        margin-top: 2rem;
    }

    .procedure .flexbox {
        flex-direction: column;
    }

    .reviews__info_wrap {
        display: block;
    }

    .reviews__component_wrap {
        display: block;
    }

    .reviews_wrap {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .reviews_title_wrap {
        align-items: flex-start !important;
        flex-direction: column-reverse;
    }
    .back_reviews {
        margin: 0;
    }
    .reviews_select_wrap {
        margin: 1rem 0;
    }
    .back_reviews .btn {
        height: 4rem;
    }
    .reviews_select_wrap,  .back_reviews {
        align-items: center;
        gap: 2em;
        flex-direction: row;
        width: 100%;
    }
    .popup_doctor_form_btn img {
        width: 3.5em;
    }
    .button-widget img, .button-messengers img {
        width: 3.5rem;
    }

    .button-widget {
        left: 5%;
    }
    .button-messengers {
        right: 5%;
    }
    .popup_doctor_form_btn::before,
    .popup_doctor_form_btn::after {
        border-radius: 50%;
        transform-origin: center;
    }

    .popup_doctor_form_btn::before {
        top: -0.5rem;
        left: -0.5rem;
        right: -0.5rem;
        bottom: -0.5rem;
    }

    .popup_doctor_form_btn::after {
        top: -1rem;
        left: -1rem;
        right: -1rem;
        bottom: -1rem;
    }
    .mfp-content > div {
        max-width: 25rem;
    }

    .doctor_card_wrap {
        flex-direction: column;
    }

    .doctor_card_info_wrap {
        flex-direction: column;
    }

    .doctor_record {
        width: 100%;
    }

    #record-doctor-form {
        width: 22rem;
        flex-direction: column;
        gap: 1rem;
        height: 39rem;
        overflow-y: scroll;
        padding: 1rem 1rem;
    }

    .main-menu__item {
        border-bottom: 1px solid #EBEBEB;
        padding: 1rem 1rem 1rem 0;
        margin: 0;
        background: #fff;
        overflow: hidden;
    }

    .main-menu__item a.link {
        display: block;
        font-size: 1em;
        color: #363636;
        font-family: 'OpenSans-Bold';
        position: relative;
        cursor: pointer;
        transition: all 400ms ease;
        text-decoration: none;
    }

    .second-level {
        background: #fff;
        width: auto;
        position: fixed;
        top: 4rem;
        left: 1.6rem;
        right: 1rem;
        bottom: 0;
        z-index: 15;
        padding: 0 2rem 6rem;
        overflow: auto;
        display: none;
    }

    .menu-mobile__search input {
        width: 100%;
        color: #1d1d1d;
        padding: 2px 1.5rem 2px 0;
        border: 0;
        border-bottom: 1px solid #707070;
        border-radius: 0;
        height: 3rem;
        outline: none;
    }
    .fa-search:before {
        content: "\f002";
    }

    .menu-mobile__search button {
        outline: none;
        color: #363636;
        background: transparent;
        font-family: 'FuturaPT-Medium';
        cursor: pointer;
        position: absolute;
        border: none;
        right: 2px;
        top: 2px;
        bottom: 2px;
        width: 1.4rem;
        padding: 0;
        font-size: 1.25rem;
        text-align: center;
        border-radius: 5px;
        -moz-transition: 0.4s 0.05s ease;
        -o-transition: 0.4s 0.05s ease;
        -webkit-transition: 0.4s 0.05s ease;
        transition: 0.4s 0.05s ease;
    }
    .menu-mobile__search {
        width: 100%;
        margin: 2rem 0;
        position: relative;
    }

    .main-menu__level {
        background: #fff;
        padding: 1rem 0;
        margin: 0 -1.25rem;
        position: relative;
        text-align: left;
    }

    .main-menu__level a.link {
        font-size: 1.6em;
        font-family: 'OpenSans-Bold';
        position: relative;
        padding: 0 0 0 0;
    }

    .fa-arrow-left:before {
        content: "\f060";
    }

    .main-menu__level a.link .fas {
        margin: 0 0.6rem 0 0;
    }

    .second-level__item {
        border-bottom: 1px solid #EBEBEB;
        padding: 1rem 1rem 1rem 0;
        margin: 0 -1.25rem;
        background: #fff;
        overflow: hidden;
    }
    .second-level__item a.link:after {
        position: absolute;
        content: '';
        top: 0.3rem;
        right: -0.6rem;
        width: 0.5rem;
        height: 0.5rem;
        border-top: 2px solid #363636;
        border-right: 2px solid #363636;
        transition: all 400ms ease;
        transform: rotate(45deg);
    }

    .third-level {
        background: #fff;
        width: auto;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 15;
        padding: 0 2rem 4rem;
        overflow: auto;
        display: none;
    }


    .menu-mobile-cont {
        width: 5rem;
        background: white !important;
        display: inline-block;
        vertical-align: middle;
        -webkit-transition: all .3s;
        transition: all .3s;
        margin: 0 0 0 2rem;
        top: 0;
    }

    .main-menu__item a.name-cat:after {
        position: absolute;
        content: '';
        top: 0.4rem;
        right: -0.6rem;
        width: 0.5rem;
        height: 0.5rem;
        border-top: 2px solid #363636;
        border-right: 2px solid #363636;
        transition: all 400ms ease;
        transform: rotate(45deg);
    }
    ul.filter-catalog__list li {
        display: block;
        padding: 0.7rem 0;
        border-bottom: 1px solid #EBEBEB;
    }

    ul.filter-catalog__list li a {
        color: #363636;
        font-family: 'OpenSans-Bold';
        text-decoration: none;
    }

    .third-level a.button-green {
        z-index: 50;
        margin: 0 -1.25rem;
        position: relative;
        text-align: left;
        display: block;
        font-size: 1.6rem;
        font-family: 'OpenSans-Bold';
        position: relative;
        color: #5c817f;
    }
    .close-menu{
        width: 1.5rem;
        height: 1.5rem;
    }
    .top-mobile-menu{
        display: flex;
        justify-content: space-between;
        align-items: center;

    }
    .third-level a.button-green{
        background: none;
        padding: 1rem 0;
        color:#3b5957;
    }

    .menu-mobile__block a.version-visually {
        color: #363636;
        font-size: 1.8em;
    }

    .menu-mobile__contacts .item-block {
        margin: 0 0 1.25rem 0;
        display: flex
    ;
    }
    .menu-mobile__contacts .item-block .image {
        margin: 0 0.6rem 0 0;
        font-size: 1.2em;
        width: 1.25rem;
        text-align: center;
        color: #C4C4C4;
    }

    .menu-mobile__block ul.social-block {
        display: flex;
        margin: 0.6rem 0;
        justify-content: space-between;
    }
    .services__section_title h2 {
        font-size: var(--s18);
        margin: 0;
        font-family: 'OpenSans', Arial, sans-serif;
    }
    .page-mews .col-3 {
        display: flex;
    }
    .bx-breadcrumb {
        padding: 3vw;
    }
    .section_news_more {
        padding: 1rem 3vw;
    }
    .news_more__wrap {
        gap: 1.5em;
    }
    .doctor_price_wrap {
        box-sizing: border-box;
        border: none;
        padding: 1.5rem 0;
        margin-bottom: .5rem;
        position: relative;
    }
    .doctor_sale {
        top: 1.5rem;
        left: 20rem;
    }
    .doctor_card ul {
        padding: 0;
        background: none;
    }
    .doctor_calendar_full{
        left: 1rem;
    }

    #record-doctor-form{
        width: 23rem;
        padding: 1.25rem;
        gap: 1.5rem;
        height: 41rem;
    }
    .container .container {
        padding: 0;
    }
    .popup-body {
        padding: 1rem;
    }


}
@media screen and (max-width: 413px){
    .slider__item {
        height: 53vh;
    }
}