/*
    Created on : 13.08.2019, 12:48:42
    Author     : nikolay
*/


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

    .notification_informer.need_read .icon {
        margin-right: 8px;
    }

    .user_welcome__name {
        max-width: 200px;
    }

    a.logout {
        margin-left: 40px;
    }

}

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


    a.logout,
    .lang_choose_wrapper {
        margin-left: 30px;
    }
}


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

    .user_invite {
        margin-right: 37px;
    }

    .search_open + .search_form {
        width: 45%;
    }

    a.logout,
    .lang_choose_wrapper {
        margin-left: 20px;
    }


    .lang_current_code {
        font-weight: normal;
    }

    a.logout .icon {
        margin-right: 0;
    }
}

@media screen and (max-width: 1260px) {
    .menu_open #steps.col_6 .step {
        width: 33%;
    }
}


@media screen and (max-width: 1200px) {
    .block {
        min-width: 100%;
    }

    .user_invite, a.balance-link {
        margin-right: 27px;
    }

    .user_invite .mob_hidden,
    .balance-link .mob_hidden {
        display: none;
    }

    .user_welcome {
        font-size: 15px;
    }

    a.logout,
    .lang_choose_wrapper {
        margin-left: 15px;
    }

    .warning {
        min-width: 100% !important;
        max-width: 100%;
    }

    .svg_wrapper {
        overflow-x: auto;
    }

    .footer_center {
        margin-left: 118px;
        margin-right: 50px;
    }
}

@media screen and (max-width: 1100px) {

    #steps.col_6 .step {
        width: 33.33%;
    }

    #steps.col_5 .step {
        width: 33.33%;
    }
}


@media screen and (max-width: 1020px) {
    html body {
        background-color: #fff;
    }

    .hide_1020 {
        display: none;
    }

    html #lang, html #lang a {
        color: #929292;
    }


    header {
        height: 70px;
    }

    .search_wrapper {
        margin-left: 30px;
    }


    .user_welcome {
        font-weight: 600;
        font-size: 16px;
    }

    .p_133 .page {
        flex-direction: column;
    }

    /* Перенесено в 133 css */
    /* #right_boxes,
    #left_boxes {
        width: 100%;
    }

    #right_boxes {
        margin: 50px 0 60px;
    } */
    .invite_registr, #mobile_apps {
        justify-content: flex-start;
    }

    #state table.structure_tree_result {
        width: auto;
    }

    .google {
        margin-right: 20px;
    }

    #system_popup .popup_form_inner {
        max-width: 90%;
        width: 50%;
    }

    #system_popup.kit_popup_banner .popup_form_inner {
        height: 500px;
        width: 500px;
        padding: 24px 24px 28px;
    }

    #system_popup.kit_popup_banner .popup_close {
        right: 15px;
        top: 12px;
        padding: 6px 6px;
    }

    #system_popup.kit_popup_banner .popup_close:before {
        width: 16px;
        height: 16px;
    }

    #system_popup.kit_popup_banner .system_popup_text {
        font-size: 22px;
        line-height: 1.3;
    }

    #system_popup.kit_popup_banner button {
        font-size: 14px;
        padding: 4px 100px;
    }

    #system_popup.kit_popup_banner .popup_form_body {
        bottom: 36px;
    }

    div.callback {
        max-width: 100%;
    }


    .uinfo_avatar_bg {
        height: 150px;
        width: 150px;
        margin-bottom: 15px;
    }
}


/*Mobile view*/
@media screen and (max-width: 1000px) {

    html.popup_open {
        margin-right: 0;
    }

    .mob_hidden {
        display: none;
    }

    .mob_show {
        display: block;
    }

    .mob_show_in {
        display: inline;
    }

    .upper .period_warning {
        margin-left: 20px;
        margin-right: 15px;
    }


    .menu_link_wrapper {
        display: none;
    }

    .wrapper .inner {
        display: flex;
        flex-direction: column;
    }

    header {
        order: -1;
    }

    .upper,
    header,
    .content,
    footer,
        /* #left_boxes div.box, // Перенесено в 133
        #right_boxes div.box,
        #left_boxes .box.eight_magic_block.ver_default, */
    #uinfo_popup {
        padding-left: 3%;
        padding-right: 3%;
    }

    .menu_open .menu_section {
        margin-left: 3%;
        margin-right: 3%;
    }

    .menu_open .warning.ooo {
        display: none;
    }

    .user_invite, a.balance-link {
        margin-right: 20px;
    }

    .user_invite svg {
        margin-right: 0;
    }

    .user_welcome {
        font-size: 15px;
    }

    .user_info_avatar {
        margin-right: 10px;
    }

    .content {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
    }

    /* Перенесено в 133 */
    /* #left_boxes #warnings {
        margin-top: 0;
    } */
    .page {
        padding: 25px 3%;
    }

    header {
        padding-left: 80px;
    }

    .vdp-datepicker header {
        padding-left: 3%;
    }

    .guest header {
        padding-left: 3%;
        justify-content: space-between;
    }

    .content_right {
        width: 100%;
    }

    .manager {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .manager .content_right {
        width: 100% !important;
    }

    /*menu mobility*/
    .newmenu {
        position: absolute;
        left: 3%;
        height: 72px;
        top: 0;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        transition: width .05s ease;
    }

    html.menu_open {
        overflow-y: hidden;
    }

    .guest_logo:before {
        left: 100%;
    }

    .menu_open .newmenu {
        position: fixed;
        left: 0;
        width: 100vw;
        top: 0;
        z-index: 10000;
        overflow-y: scroll;
        height: 100%;
        overflow-x: hidden;
        padding-bottom: 30px;
        background-color: #F6F6FA;
        transition: none;
    }

    .menu_open .menu_link_wrapper {
        display: block;
    }

    .menu_open .logo {
        position: relative;
        z-index: 99999;
    }

    .page_pid_151 a.new_messages:after, .page_pid_457 a.new_messages:after {
        left: 35px;
    }


    .humburger {
        display: block;
        width: 60px;
        cursor: pointer;
        position: relative;
        height: 72px;
        margin-left: -20px;
        padding: 18px 20px 0;
    }

    .menu_open .humburger {
        left: 3%;
    }


    .humburger-bar1, .humburger-bar2, .humburger-bar3 {
        position: relative;
        left: 0;
        top: 0;
        width: 20px;
        height: 2px;
        margin: 8px 0;
        background-color: #000;
        transition: 0.05s;
    }

    a.notification_informer,
    .lang_current,
    header a.wiki,
    a.logout,
    .user_invite {
        padding: 0;
    }

    .search_wrapper {
        margin-left: 0;
    }

    .menu_open .humburger-bar1 {
        transform: rotate(-45deg) translate(-8px, 6px);
        background-color: #909090;
    }

    .menu_open .humburger-bar2 {
        opacity: 0;
    }

    .menu_open .humburger-bar3 {
        transform: rotate(45deg) translate(-9px, -6px);
        background-color: #909090;
    }

    .menu_link_wrapper {
        margin-top: 10px;
    }

    .menu_section {
        padding-left: 3%;
    }

    .hassubmenu div.menu_section:after, .menu_open .menu_collapce {
        right: 3%;
    }

    .footer_inner {
        margin-left: 0;
    }

    p.agreement_documents {
        margin-top: 0;
    }

    footer {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .footer_center {
        margin-left: 30px;
        margin-right: 30px;
    }

}


/*was 980px before*/
@media screen and (max-width: 1000px) {

    #show_success_modal, #show_fail_modal {
        max-width: 90%;
        width: auto;
    }

    div.news {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0 !important;
    }

    .checkbox input[type=checkbox] + label, .radio input[type=radio] + label {
        min-height: 33px;
    }

    #news h2:first-of-type {
        margin-top: 15px;
    }

    table.dataTable thead th div.DataTables_sort_wrapper span {
        right: -14px;
    }

    table.border tr td, table.border tr th {
        font-size: 12px;
    }

    table.dataTable thead th, table.dataTable tbody td {
        padding: 10px 10px;
        font-size: 11px;
    }
}

@media screen and (max-width: 920px) {

    .hide_920 {
        display: none;
    }


    .user_welcome__name {
        max-width: 180px;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .item_progress_bar {
        width: 48%;
    }

    .tree_wrap {
        overflow-x: auto;
    }


    #steps {
        flex-wrap: wrap;
    }

    #steps a.step {
        width: 33.33%;
    }


    #system_popup .popup_form_inner {
        width: 60%;
    }

    div.callback {
        padding: 0;
        border: none;
    }

    .callback table, .callback thead, .callback tr, .callback td, .callback tbody {
        display: block;
    }

    div.callback table tr td:nth-child(1) {
        width: auto;
        font-weight: 600;
    }

    div.callback table tr td:nth-child(2) {
        margin-top: 3px;
        margin-bottom: 20px;
    }

    div.callback table tr {
        border-top: none !important;
    }

    div.callback input[type="text"], div.callback textarea {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        border: 1px solid #bdbdbd;
    }

    div.callback textarea {
        padding: 10px;
    }

    div.callback select {
        padding: 0 10px;
        width: 100%;
    }

    div.callback input:focus, div.callback textarea:focus {
        outline: none;
        border-color: #98Cb4a;
    }
}


@media screen and (max-width: 820px) {

    .hide_820 {
        display: none;
    }

    .inner {
        width: 100%;
    }


    .search_open .search_form {
        right: 3%;
    }

    body:not(.p_133) .page, .volumetric {
        padding-left: 3%;
        padding-right: 3%;
    }

    .user_invite svg {
        width: 15px;
        height: 16px;
    }

    header:after {
        left: 0;
        width: calc(100%);
        z-index: 1;
    }

    .header_user {
        display: none;
    }

    .header_user_mobile {
        display: block;
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        margin-right: 15px;
        border-radius: 50%;
        background-color: #e1e1e1;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    a.logout,
    a.notification_informer {
        margin-left: 10px;
    }

    a.notification_informer.need_read .notification_circle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 15px;
        height: 15px;
        right: -7px;
    }

    .notification_circle_counter {
        display: inline;
        color: #fff;
        font-size: 8px;
        font-weight: bold;
    }

    .notification_circle_counter.infinity {
        font-size: 14px;
    }

    .search_open .search_form,
    #multi-search__results {
        width: 330px;
    }

    span.not_read_msg_qty,
    span.not_read_note {
        right: 15px;
    }


    #login_form_wrapper {
        align-items: flex-start;
        padding: 20px 0;
    }

    .footer_inner {
        flex-direction: column;
    }

    .footer_center {
        margin: 25px 0;
    }

}

@media screen and (max-width: 740px) {
    .universal_callback {
        width: 100%;
    }

}

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

    .user_main {
        margin-right: 0;
    }
}

@media screen and (max-width: 640px) {
    .logo, .footer_logo {
        width: 120px;

    }

    .hide_640 {
        display: none;
    }

    .upper {
        height: auto;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .user_invite, a.balance-link,
    .user_info_about_balance,
    a.notification_informer {
        margin-right: 20px;
    }

    a.logout,
    .lang_choose_wrapper,
    a.notification_informer {
        margin-left: 0;
    }


    .search_open .search_form {
        right: 3%;
    }

    .lang_current_flag svg {
        margin-left: 0;
    }

    a.logout,
    .upper .lang_current,
    .upper ul.lang_list {
        margin-right: -10px;
    }

    ul.lang_list {
        width: auto;
        right: 0;
    }

    .hamburger {
        margin-left: -19px;
        padding: 18px 10px 0 19px;
    }

    header {
        padding-left: 65px;
    }

    .vdp-datepicker header {
        padding-left: 3%;
    }

    .about_user {
        margin-left: 15px;
    }

    .user_name {
        display: none;
    }

    .user_control_item {
        margin-left: 0;
    }

    .about_user {
        width: auto;
        padding-right: 22px;
    }


    .user_main {
        position: static;
    }

    .popup_acc {
        right: 1px;
        left: auto;
        top: 65px;
        width: 100%;
        max-width: 400px;
    }

    .user_control {
        margin-left: 10px;
    }

    .user_control_item {
        padding-left: 12px;
        padding-right: 12px;
    }

    a.icon_logout {
        margin-right: -12px;
    }

    .input_container.row {
        margin-left: -20px;
    }

    .row .input_wrap {
        margin-left: 20px;
    }

    textarea {
        min-width: 100% !important;
    }

    .form_binar_info button {
        margin-top: 10px;
        width: 100%;
    }

    /*    .p_138 .sign_name{
            flex-direction: column;
                align-items: flex-start;
        }*/

    #system_popup .popup_form_inner {
        width: 70%;
    }

    div.sponsor_brunch_activity_info_box {
        border: none;
    }

    #steps.col_4 .step {
        width: 50%;
    }

    .popup_form_inner,
    .news_image,
    .page,
    .volumetric {
        border-radius: 0;
    }

    .checkbox input[type=checkbox] + label:before, .radio input[type=radio] + label:before {
        top: 9px;
    }
}

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

    .upper .lang_current {
        margin-right: 0;
    }

    #system_popup.kit_popup_banner .popup_form_inner {
        height: 320px;
        width: 320px;
        padding: 16px 14px 18px;
    }

    #system_popup.kit_popup_banner .popup_close {
        right: 9px;
        top: 9px;
        padding: 6px 6px;
    }

    #system_popup.kit_popup_banner .system_popup_text {
        font-size: 14px;
        line-height: 1.3;
    }

    #system_popup.kit_popup_banner button {
        font-size: 10px;
        padding: 4px 70px;
        min-height: 22px;
        margin-top: 4px;
    }

    #system_popup.kit_popup_banner .popup_form_body {
        bottom: 24px;
    }
}

@media screen and (max-width: 480px) {
    header {
        height: 50px;
        padding-left: 40px;
    }

    .vdp-datepicker header {
        padding-left: 3%;
    }

    .logo,
    .footer_logo {
        width: 101px;
        height: 32px;
    }

    a.logout .icon {
        height: 16px;
    }

    a.logout .icon svg {
        width: 17px !important;
        height: 18px !important;
    }

    .header_left {
        justify-content: space-between;
        /*width: calc(100% - 122px);*/
    }

    .search_wrapper {
        margin-right: 3%;
    }

    .search_wrapper.search_open {
        position: absolute;
        right: 0;
        left: 68px;
        margin-left: 0;
        height: 40px;
    }

    .search_form input,
    .search_form input:hover,
    .search_form input:focus {
        border: 2px solid #FFA800;
    }

    .search_form input {
        background-color: #fff;
        padding-left: 10px;
    }

    .search_open .search_form button {
        display: none;
    }


    .search_open .search_form,
    #multi-search__results {
        transition: none;
        width: 100%;
    }

    .header_user_mobile {
        display: block;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;

        margin-right: 5px;
    }


    #periodcountdown {
        display: block;
        min-height: 21px;
    }

    table {
        font-size: 12px;
    }

    h1 {
        font-size: 22px;
    }

    .menu_open .menu_collapce {
        top: 6px;
    }

    .humburger {
        height: 50px;
        padding: 7px 20px 0;
    }

    .humburger-bar1, .humburger-bar2, .humburger-bar3 {
        background-color: #929292;
    }


    .menu_link_wrapper {
        margin-top: 20px;
    }


    .user_main > img {
        width: 26px;
        height: auto;
    }

    .popup_acc {
        top: 55px;
    }

    .user_main .arrow_bottom {
        margin-left: 5px;
    }

    .about_user {
        padding-right: 0;
        border-right: 0;
    }

    .user_control {
        margin-left: 0;
    }

    .user_main {
        padding: 11px 8px 10px;
        margin-right: 10px;
    }

    /*	.user_main img{
                    width: 20px !important;
                    height: auto !important;
}*/
    .user_control_item {
        padding-left: 8px;
        padding-right: 8px;
    }

    a.icon_logout {
        margin-right: -8px;
    }

    .icon_msg_qty {
        left: 16px;
    }

    .icon_note_qty {
        left: 14px;
        top: 7px;
    }

    .item_progress_bar {
        width: 100%;
    }

    .newstitle {
        margin-left: 0 !important;
    }

    #system_popup .popup_form_inner {
        width: 80%;
        margin-left: -4px;
    }

    .chat_list_sponsor h3 span {
        font-size: 13px;
    }

    .chat_list_sponsor {
        margin-bottom: 40px;
    }

    #show_success_modal, #show_fail_modal {
        width: 90%;
    }


    .wrapper div#steps .step {
        width: 100%;
    }

    .step {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        padding: 10px 0;
        text-align: left;
        border: none;
        font-size: 14px;
    }

    .step.current:after {
        display: none;
    }

    .step_num {
        display: inline-block;
        width: 23px;
        height: 23px;
        color: #fff;
        background-color: #C9C9C9;
        line-height: 21px;
        border: 1px solid #C9C9C9;
        text-align: center;
        border-radius: 50%;
        margin-right: 10px;
    }

    .step_num i {
        display: none;
    }

    .current .step_num {
        background-color: #fff;
        color: #70A925;
        border-color: #70A925;
    }

    .success .step_num {
        background-color: #70A925;
        color: #fff;
        border-color: #70A925;
        font-size: 0;
        position: relative;
    }

    .success .step_num:after {
        content: '';
        width: 11px;
        height: 8px;
        background: url(/i/svg/check.svg) center no-repeat;
        position: absolute;
        left: 5px;
        top: 7px;
    }

    .upper .period_warning {
        display: none;
    }

    #steps {
        flex-wrap: nowrap;
    }
}

@media screen and (max-width: 445px) {

    .search_wrapper.search_open {
        left: 60px;
    }

    .vdp-datepicker header {
        padding-left: 3%;
    }
}

@media screen and (max-width: 425px) {

    .logo, .footer_logo {
        width: 90px;

    }

    a.logout {
        margin-right: 0;
    }

    .header_user_mobile {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
    }

    .newmenu {
        position: fixed;
        z-index: 11;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        background: #fff;
        width: 100vw;
        z-index: 10;
        border-bottom: 1px solid #D9D9D9;
    }

    .vdp-datepicker header {
        position: relative;
        top: unset;
        left: unset;
        width: 100%;
        z-index: auto;
        border-bottom: transparent;
    }


    .wrapper {
        padding-top: 50px;
    }

    .warning.ooo {
        padding-top: 60px;
        margin-bottom: -50px !important;
    }

    select, input[type="text"], input[type="number"], input[type="email"], input[type="phone"], input[type="password"], textarea, button {
        min-height: 36px;
    }

    .universal_callback textarea {
        height: 140px;
    }

    .column_425.input_container.row {
        margin-left: 0;
    }

    .column_425 .input_wrap {
        margin-left: 0;
        margin-bottom: 25px;
        width: 100%;
    }

    .column_425 input, .column_425 select {
        width: 100%;
    }

    .column_425 button {
        width: 100%;
        min-height: 50px;
    }

    .column_425 .input_multy_item {
        width: 100%;
    }

    .mob_lang a, .mob_lang b {
        font-size: 13px;
    }


    .input_wrap:last-child, .input_wrap:last-child button {
        width: 100%;
    }

    .reserv_sum {
        justify-content: space-between;
    }

    .form_binar_info {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .form_binar_info input {
        margin-top: 10px;
        width: 100%;
    }

    .form_binar_info select {
        width: 48%;
    }

    #steps a.step {
        width: 50%;
    }


    .input_container.invite_registr {
        margin-left: 0;
        justify-content: space-between;
    }

    .invite_registr .input_wrap {
        width: 58%;
        margin-left: 0;
        margin-bottom: 0;
    }

    .invite_registr .input_wrap:last-child {
        width: 40%;
    }

    .invite_registr button {
        padding-left: 7px;
        padding-right: 7px;
    }

    .invite_registr input {
        max-width: 100%;
    }

    #mobile_apps {
        display: flex;
        justify-content: space-between;
        margin-right: 0;
    }

    #mobile_apps a {
        width: 48%;
    }

    button#pay_preconfirm {
        width: 100%;
    }

    #summa_additional_info_select {
        font-size: 12px;
    }

    .popup_form_bg::before {
        display: none;
    }

    #system_popup .popup_form_inner {
        width: 100%;
        max-width: 100%;
        padding: 25px 3%;
        border: none;
        margin-left: 0;
        border-radius: 0;
    }

    .system_popup_text img {
        display: block;
        width: 100vw;
        max-width: 100vw;
        margin-left: -3%;
    }

    .system_popup_text img.square {
        margin-left: 0;
    }

    .system_popup_title {
        padding-right: 42px;
    }

    .popup_close {
        position: fixed;
        /*top: 0;*/
        /*right: 0;*/
        background-color: #fff;
        opacity: 0;
        animation: .1s linear 0.2s both fadeIn;
    }

    .card_box_us_bank_schet {
        width: 100%;
    }

    .card_box_add_card {
        width: 100%;
        margin-bottom: 25px;
    }

    .popup_note_go {
        width: 30px;
        height: 30px;
        line-height: 30px;
        margin-bottom: 30px;
    }

    .upper .period_warning {
        margin-left: 12px;
        margin-right: 5px;
    }

    a.notification_informer {
        margin-right: 10px;
    }
}


/* .cat_inner уже задаёт gap:10px — ширина карточки считается через calc(), без доп. margin */
@media screen and (max-width: 1000px) {
    div.mobproduct {
        width: calc(50% - 5px);
    }
}

@media screen and (max-width: 400px) {

    div.mobproduct {
        width: 100%;
    }

    #getemailcode {
        font-size: 11px;
    }

    .header_left {
        width: auto;
    }


    .user_invite, a.balance-link {
        margin-right: 5px;
    }

    .loupe {
        width: auto;
        margin-left: 5px;
    }

}

@media screen and (max-width: 375px) {
    .user_avatar_wrap {
        width: 300px;
        max-width: 100%;
    }

    .user_avatar_label {
        height: 300px;
    }

    .menu_open .user_info_about {
        overflow: hidden;
    }

    .user_info_about_name {
        max-width: 106px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media screen and (max-width: 360px) {
    header {
        padding-left: 60px;
    }
}


@media screen and (max-width: 340px) {

    a.notification_informer,
    .lang_current,
    a.logout {
        padding: 0 6px;
    }

    .user_invite,
    a.notification_informer {
        margin-right: 0;
    }

    .remove_user_avatar {
        right: 0;
    }

}

@media screen and (max-width: 326px) {
    .header_user_mobile {
        width: 32px;
        height: 32px;
        min-height: 32px;
        min-width: 32px;
    }

}

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

@media screen and (max-width: 340px) {
    a.logo {
        display: none;
    }
}