/* ESP Project — адаптивная версия
   Подключается после style_2020.css и style_all_2024.css. */

@media (max-width: 1100px) {
    html,
    body {
        overflow-x: hidden !important;
    }

    .sidebar {
        position: relative;
        float: none;
        width: 100%;
        height: auto;
        padding: 18px 20px 24px;
        box-sizing: border-box;
    }

    .logo {
        display: block;
        max-width: 160px;
        height: auto;
        margin: 0 auto 10px !important;
    }

    .logo_txt {
        width: auto;
        max-width: 560px;
        margin: 0 auto 18px;
        text-align: center;
        font-size: 11px;
    }

    .menu_2019 {
        margin: 18px 0 0;
    }

    .menu_2019 .link_div {
        margin-bottom: 12px;
    }

    .menu_2019 .main_link {
        display: inline-block;
        padding-bottom: 4px;
        font-size: 17px;
    }

    .tel_icon {
        margin-bottom: 0;
    }

    .tel_number {
        font-size: 16px;
    }

    .fix_bot {
        position: static;
        margin-top: 22px;
    }

    .fix_bot .btn_to_index {
        margin-bottom: 16px !important;
    }

    .copyr {
        margin-bottom: 0;
    }

    .content {
        position: relative !important;
        top: auto !important;
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin-left: 0 !important;
        background-attachment: scroll !important;
        background-size: cover !important;
    }

    .content_inner {
        max-width: 100%;
        padding: 28px 22px 60px !important;
        box-sizing: border-box;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .content,
    .sidebar {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .content_inner iframe,
    .content_inner video {
        max-width: 100%;
    }

    .content_inner img {
        max-width: 100%;
        height: auto;
    }

    h1,
    .main_h2,
    .main_h3 {
        font-size: 34px !important;
        line-height: 1.15;
    }

    h1 span,
    .main_h2 span,
    .main_h3 span {
        font-size: 26px !important;
    }

    h2 {
        font-size: 26px;
    }

    h3 {
        font-size: 20px;
    }

    p,
    li {
        font-size: 15px;
        line-height: 1.55;
    }

    .section,
    .slide {
        margin-bottom: 36px;
    }

    .main_tel {
        margin-top: 18px;
    }

    .main_tel .tel_icon {
        float: none;
        vertical-align: middle;
    }

    .main_tel .tel_number {
        display: inline-block;
        float: none;
    }

    .object,
    .record-item {
        margin-bottom: 28px;
    }

    .objectImage,
    .record-pimage {
        display: block;
        float: none !important;
        width: 100% !important;
        max-width: 520px;
        height: auto !important;
        margin: 0 0 12px !important;
    }

    .objectNote,
    .record-note {
        padding-left: 0 !important;
    }

    .content_inner table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .block_2_list {
        display: block !important;
        width: 100% !important;
    }

    .block_2_list .block_2_list_50,
    .block_2_list .block_2_list_33 {
        float: none !important;
        width: 100% !important;
        box-sizing: border-box;
        border-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .tabs {
        width: auto !important;
        max-width: 100%;
    }

    .tabs__content {
        padding: 10px !important;
    }

    .form_div_left,
    .form_div_right {
        float: none !important;
        width: 100% !important;
    }

    .form_lizo input,
    .form_lizo textarea,
    .form_lizo .btn_yellow {
        width: 100% !important;
        box-sizing: border-box;
    }

    .form_lizo textarea {
        width: 100% !important;
    }

    .input_call_big_form_div,
    .textarea_call_big_form_div {
        width: 100% !important;
    }

    #popup_toggle {
        transform: scale(.65);
        transform-origin: bottom right;
        bottom: 8px;
        right: 0 !important;
    }
}

@media (max-width: 700px) {
    .sidebar {
        padding: 14px 16px 20px;
    }

    .logo {
        max-width: 130px;
    }

    .logo_txt {
        font-size: 10px;
    }

    .content_inner {
        padding: 22px 14px 50px !important;
    }

    h1,
    .main_h2,
    .main_h3 {
        font-size: 27px !important;
    }

    h1 span,
    .main_h2 span,
    .main_h3 span {
        font-size: 21px !important;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    p,
    li {
        font-size: 14px;
    }

    .content_inner ul,
    .content_inner ol {
        padding-left: 22px;
    }

    .copyr {
        font-size: 11px;
    }

    .main_tel .tel_number {
        font-size: 18px;
    }
}

/* Мобильное меню: включается только если JS загрузился. */
.esp-menu-toggle {
    display: none;
}

@media (max-width: 1100px) {
    body.esp-js .sidebar {
        padding-top: 62px;
    }

    body.esp-js .esp-menu-toggle {
        display: block;
        position: absolute;
        top: 12px;
        right: 14px;
        z-index: 10;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        border-radius: 6px;
        background: #ffef03;
        color: #000044;
        font-size: 22px;
        line-height: 42px;
        text-align: center;
        cursor: pointer;
    }

    body.esp-js .esp-menu-toggle span::before {
        content: '☰';
    }

    body.esp-js .sidebar.esp-menu-open .esp-menu-toggle span::before {
        content: '✕';
    }

    body.esp-js .menu_2019 {
        display: none;
    }

    body.esp-js .sidebar.esp-menu-open .menu_2019 {
        display: block;
    }
}
