/*TOP*/

header .maxwidth{
    background:transparent;
}
.top-header{
    border-bottom:1px solid #e0e0e0; 
    padding-top:16px;
    padding-bottom:16px;
    padding-left:40px;
    padding-right:40px;
}
.top_header_item{
    display:inline-block;   
    text-transform: uppercase; 
    font-size: 13px;
    position:relative;
    padding:0 15px;
}
.top_header_item_img{
    width:11px;
    height:14px;
    position:absolute;
    top: 1px;
    left: 0;
}
.new_order>.top_header_item_img{
    background: url('../img/3_4d.png');
}
.new_order:hover>.top_header_item_img{
    background: url('../img/3_4h.png');
}
.add_my_work>.top_header_item_img{
    background: url('../img/3_5d.png');
}
.add_my_work:hover>.top_header_item_img{
    background: url('../img/3_5h.png');
}
.log_in_btn>.top_header_item_img{
    background: url('../img/3_6d.png');
}
.log_in_btn:hover>.top_header_item_img{
    background: url('../img/3_6h.png');
}
.sign_up_btn>.top_header_item_img{
    background: url('../img/3_7d.png');
}
.sign_up_btn:hover>.top_header_item_img{
    background: url('../img/3_7h.png');
}
.sign_up_btn,
.log_in_btn{
    padding-left:18px;

}
.sign_up_btn>.top_header_item_img,
.log_in_btn>.top_header_item_img{
    width:14px;
}
.top_header_item_text{
    border-bottom:1px dashed #93999e;
    color: #93999e;
    cursor: pointer;
}
.log_col{
    text-align: end;
}
.top_header_item:hover>.top_header_item_text{
    border-bottom:1px dashed #31c4a0;
    color: #31c4a0;
}
.sign_up_btn{
    padding-right:0;
}

/*MID*/
.mid-header{
    padding-top:30px;
    padding-bottom:30px;
    padding-left:40px;
    padding-right:40px;
}
.phone_div{
    position:relative;
    text-align:end;
    margin-top: 15px;
}
.tel_link{
    color:#fa9725;
    font-size:25px;
    position:relative;
    text-decoration: underline dashed;
}
.tel_link:hover{
    color:#31c4a0;
    font-size:25px;
}
.tel_link::before{
    content:"";
    display:block;
    position:absolute;
    background:url('../img/phone.png');
    width:18px;
    height:18px;
    top: 8px;
    left: -25px;
}

/*MAIN_MENU*/

.main_menu>table{
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    max-width: 100%;
}
.main_menu{
    background: linear-gradient(90deg, rgba(49,196,160,1) 0%, rgba(42,195,209,1) 100%);
    border-radius:5px 5px 0 0;
}
.main_menu_item{
    text-align: center;
    height:43px;

    font-size: 13px;
}
.main_menu_item a{
    text-transform:uppercase;
    width:100%;
    height:100%;
    padding: 16px 37px 14px;
    display:block;
    color:#fff;
}
.main_menu_item a div{
    color:#fff;
}
.main_menu_item a:visited{
    color:#fff;
}
.main_menu_item:hover{
    background:#2ea48e;
}
.main_menu_item:first-child{
    border-radius:5px 0 0 0;
}
.main_menu_item:last-child{
    border-radius:0 5px 0 0;
    position: relative;
}
.main_menu_item:hover a{
    color:#fff;
}
.main_menu_item:hover a{
    color:#fff;
}
.dropdown_main_menu{
    position:absolute;
    display:none;
    text-align: center;
    width: 100%;
    padding-top: 16px;
    padding-bottom: 14px;
    text-transform: uppercase;
    background:#2ac3d1;
    margin:0;
    z-index:-1;
}
.dropdown_main_menu li a{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
}
.dropdown_main_menu li span{
    color:#fff;
}
.main_menu_item:hover .dropdown_main_menu{
    display:block;
    z-index:1000;
}

/*AUTH*/

.logout{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
}
.logout-div span{
    color:#fa4925 !important;
}
.top-header.auth{
    padding-right:0;
    padding-top:0;
    padding-bottom:0px;
}
.top-header.auth .row>.col-5:first-child{
    padding-top:16px;
    padding-bottom:16px;
}
.top-header.auth .auth_items .item{
    display:inline-block;
    position:relative;
}
.top-header.auth .auth_items .item.lk_dropdown .mperson_img{
    width:30px;
    height:30px;
    background:url('../img/mperson.jpg');
    border-radius:50%;
    background-size: contain;
    position: relative;
    left: -6px;
}
.top-header.auth .auth_items .item.lk_dropdown{
    max-width:150px;
    padding:13px 20px;
    float: right;
}
.top-header.auth .auth_items .item.lk_dropdown:hover{
    background:#e6e6e6;
}
.top-header.auth .auth_items .item.lk_dropdown .name{
    color: #93999e;
    border-bottom: 1px dashed;
    font-size: 13px;
    font-weight: 700;
    margin-right: 17px;
    position: relative;
}
.top-header.auth .auth_items .item.lk_dropdown .name::after{
    content: '';
    display: block;
    position: absolute;
    right: -16px;
    top: 8px;
    background: url('../img/arrow_cabinet.png');
    width: 7px;
    height: 4px;
}
.cab_notifications{
    color: #fff;
    width: 16px;
    height: 16px;
    border: 1px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 31px;
    background: #fa2525;
    font-size: 10px;
    text-align: center;
    padding-top: 1px;
}
.top-header.auth .auth_items .item.balance{
    padding:16px 20px;
    float: right;
}
.top-header.auth .auth_items .item.balance .item{
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    padding: 0 15px;
}
.top-header.auth .auth_items .item.balance .item:not(.current_balance):hover .balance_item_text{
    color:#31c4a0;
    border-color:#31c4a0;
}
.top-header.auth .auth_items .item.balance .balance_item_text{
    border-bottom: 1px dashed #93999e;
    color: #93999e;
    cursor: pointer;
}
.top-header.auth .auth_items .item.balance .balance_item_img{
    width: 14px;
    height: 14px;
    position: absolute;
    top: 1px;
    left: -3px;
}
.top-header.auth .auth_items .item.balance .current_balance .balance_item_img{
    background:url('../img/coins.png');
}
.top-header.auth .auth_items .item.balance .current_balance .balance_item_text{
    font-weight: 700;
    cursor:text;
}
.top-header.auth .auth_items .item.balance .add_balance .balance_item_img{
    background:url('../img/3_8d.png');
}
.top-header.auth .auth_items .item.balance .add_balance:hover .balance_item_img{
    background:url('../img/3_8h.png');
}
.top-header.auth .auth_items .item.balance .withdrawal_balance .balance_item_img{
    background:url('../img/3_9d.png');
}
.top-header.auth .auth_items .item.balance .withdrawal_balance:hover .balance_item_img{
    background:url('../img/3_9h.png');
}
.cabinet_dropdown{
    width:155px;
    right: 0;
    display:none;
}
.top-header.auth .auth_items .item.lk_dropdown:hover .cabinet_dropdown{
    display:block;
}
.top-header.auth .auth_items .item.raiting{
    max-width:150px;
    padding:16px 20px;
    float: right;
}
.top-header.auth .auth_items .item.raiting span{
    padding-left:20px;
    font-weight:700;
    color:#93999e;
}
.top-header.auth .auth_items .item.raiting .star{
    position: absolute;
    top: 20px;
    width:13px;
    height:12px;
    background:url('../img/star1.png'); /* ИСПРАВЛЕНО: было /img/star1.png */
}
.top-header.auth .auth_items .item.raiting:hover span{
    color:#31c4a0;
}

@media (max-width: 1230px) {
    .menu-header .main_menu_item a{
        padding: 16px 5px 14px;
    }
}
@media (max-width: 1070px) {
    .top-header:not(.auth){
        padding-left:10px;
        padding-right:10px;
    }
    .top-header:not(.auth) .log_col {
        margin-left:32%;
    }
    .top-header:not(.auth)>.row>.col-5{
        width:423px;
    }
    .top-header.auth{
        padding-left:10px;
    }
    .top-header.auth>.row>.col-5{
        padding-right:0px;
        width:423px;
    }
    .top-header.auth .auth_items{
        width:57%;
    }
    .top-header.auth .auth_items>.item{
        padding-right:10px !important;
        padding-left:10px !important;
    }
    .mid-header .search_input_div{
        max-width:400px;
    }
}

/*mobile-header*/

#mobileheader{
    display:none;
}
.burger-item{
    float:left;
    padding:18px 10px 14px 30px;
}
.mheader_item{
    display:inline-block;
    position:relative;
    padding: 11px 10px 15px 35px;
    float:right;
}
.mheader_item .svg{
    position:absolute;
    top: 16px;
    left: 13px;
}
.mheader_item .top_header_item_text{
    text-transform: uppercase;
    font-size:13px;
}
.mobileheader_top{
    height:50px;
    border-bottom:1px solid #e0e0e0;
}
.mobileheader_bottom .logo{
    padding:30px;
    display:inline-block;
}
.mobileheader_bottom .default_search{
    display:inline-block;
    width: 450px;
}
.mobileheader_bottom .phone_div{
    float:right;
    padding: 30px;
}
.mobileheader_top-auth{
    float:right;
}
.mobileheader.auth .add_my_work .top_header_item_text{
    display:none;
}
.mobileheader.auth .new_order .top_header_item_text{
    display:none;
}
.mobileheader_top-auth{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
}
.mobileheader_top-auth .auth-item{
    flex:auto;
    border-left:1px solid #e0e0e0;
    padding:11px 10px 7px;
}
.mobileheader_top-auth .auth-item>div{
    display:inline-block;
}
.mobileheader_top-auth .auth-item .svg{
    display:inline-block;
    top:2px;
}
.mobileheader_top-auth .auth-item .title{
    text-transform:uppercase;
    font-weight: 700;
    font-size:10px;
}
.mobileheader_top-auth .auth-item .value{
    position:relative;
    font-weight:700;
    bottom:5px;
}
.mobileheader_top-auth .auth-item.money{
    padding-top:18px;
}
.mobileheader_top-auth .auth-item.money .svg{
    margin-left:5px;
    margin-right:5px;
}
.mobileheader_top-auth .auth-item.person .svg.arrow-arc{
    top: -11px;
}
.mobileheader_top-auth .auth-item.person{
    padding-top: 10px;
    padding-bottom: 3px;
    cursor:pointer;
}
.mobileheader_top-auth .auth-item.person .name{
    text-decoration:underline;
    font-size:13px;
    padding-left: 5px;
    position: relative;
    bottom: 11px;
    font-weight:700;
}
.auth-item .image{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
}
.auth-item .cab_notifications{
    color: #fff;
    width: 16px;
    height: 16px;
    border: 1px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: -4px;
    left: 16px;
    background: #fa2525;
    font-size: 10px;
    text-align: center;
    padding-top: 1px;
}
.mobileheader.auth .mheader_item {
    width: 18px;
    height: 18px;
    padding-left:0;
    padding-right:0;
    margin-right:10px;
    margin-top: 16px;
}
.mobileheader.auth .mheader_item .svg {
    top: 0;
    left: 0;
}
.msearch{
    display:none;
    float:right;
    margin-top: 54px;
    margin-right: 15px;
}
#header .maxwidth{
    overflow: visible;
}

@media (max-width: 991px){
    header{
        display:none;
    }
    #mobileheader{
        display:block;
    }
}

@media (max-width: 980px) { 
    #mobileheader #header_search{
        display:none;
    }
    .msearch{
        display:inline-block;
    }
    .mobileheader .add_my_work .top_header_item_text{
        display:none;
    }
    .mobileheader .new_order .top_header_item_text{
        display:none;
    }
}

@media (max-width: 640px) {
    /* Скрываем рейтинг, если он есть */
    .mobileheader_top-auth .auth-item:has(.title) {
        display: none;
    }
    /* Скрываем кнопки пополнения/вывода, оставляя только баланс и аватар */
    .auth-item.money .svg.coins_add,
    .auth-item.money .svg.coins_out {
        display: none;
    }
    /* При необходимости можно уменьшить отступы */
    .auth-item.money .value:first-child {
        margin-right: 0;
    }
}
@media (max-width: 485px) { 
    .mobileheader_bottom .phone_div{
        margin:0px;
        padding:18px;
    }
    .mobileheader_bottom .logo img{
        width:100px;
    }
    .msearch {
        margin-top: 21px;
    }
    .mobileheader_bottom .phone_div a::before{
        top:3px;
    }
    .mobileheader_bottom .tel_link{
        font-size:16px;
    }
}
@media (max-width: 400px) { 
    .mobileheader.auth .mheader_item{
        display:none;
    }
    .mheader_item .top_header_item_text{
        display:none;
    }
    .mobileheader_bottom .phone_div{
        padding-right: 5px;
        padding-left: 5px;
    }
    .msearch {
        margin-right: 32px;
    }
}



/* Стили для ссылки "Выйти" */
.logout-div a {
    position: static !important;  /* отменяем абсолютное позиционирование */
    display: block;
    color: #fa4925 !important;    /* красный цвет, как было */
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.logout-div a:hover {
    color: #31c4a0 !important;    /* цвет при наведении, как у других пунктов */
}