header{
    position: sticky;
    top: 0px;    
    background-color: white;
    z-index: 9;    
}
header, header nav{
    height: 129px;
}
header nav{
    z-index: 1;
}

header nav{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

header nav img.logo{
    height: 95px;
    width: auto;
}

nav button.btn_gray{
    width: 78px;
    min-width: 78px;
}

nav button.btn_green{
    width: 193px;
}

.menu-header{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.menu-header ul.nav_bar > li{
    position: relative;    
    margin:10px;
}

nav ul.nav_bar{
    display: flex;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    width:100%;
}

nav ul.nav_bar li{
    margin-right: 8px;
    margin-left: 8px;
    text-decoration: none;
}
nav ul.nav_bar li:first-child{
    margin-left: 0px;
}
nav ul.nav_bar li:last-child{
    margin-right: 0px;
}
nav ul.nav_bar li a{
    font-size: 14px;
    text-decoration: none !important;    
    font-weight: 700;
    border-bottom:2px transparent solid;
    color:#000;
}

nav ul.nav_bar > li:hover > a, nav ul.nav_bar > li.current-menu-item > a, nav ul.nav_bar > li.current-page-ancestor > a{
    background-image: linear-gradient( 0deg, transparent, transparent 16%, var(--accent-color) 5%, var(--accent-color) 52%, transparent 32% );    
    border-color:#000;
}

.search-form{
    position: relative;
    border:none;
    margin-left:15px;
    display: flex;
    align-items: center;
}

.search-form img{
    background:none;
    border:none;
    padding:4.5px;  
    cursor: pointer;
}

.search-form input{
    position: absolute;
    right:31px; 
    width:0px;      
    visibility: hidden;
    transition: all .3s ease-out;
    outline: none;
    margin-top: -1px;
    height: 34px;
    border:none;
    border-bottom:1px #ababab solid;
}

.search-form.open input{        
    width:250px;    
    visibility: visible;
}

header button.menu-burger {
    width: 31px;
    height: 31px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 0px;
    background-color: transparent;
    cursor: pointer;
}

header button.menu-burger span {
    position: relative;
    width: 31px;
    height: 4px;
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.2s ease-out;
    transition: all 0.2s ease-in;
    background-color: #333;
}
header .menu-burger span:last-child {
    margin-bottom: 0px;
}

body.open header button.menu-burger span:first-child {
    transform: rotate(45deg);
    top: 11px;
}
body.open header button.menu-burger span:nth-child(2) {
    opacity: 0;
}
body.open header button.menu-burger span:last-child {
    top: -7px;
    transform: rotate(-45deg);
}

@media all and (max-width: 1023px){ 
    header nav img.logo{
        height:45px;
    }
    .menu-burger{
        width: 31px;
        height: 31px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 0;
        background-color: transparent;
        cursor: pointer;
    }

    .menu-burger span{
        position: relative;
        width: 31px;
        height: 4px;
        margin-bottom: 5px;
        border-radius: 2px;
        transition: all .2s ease-out;
        transition: all .2s ease-in;
        background-color: #000;
        display: block;
    }

    .menu-header{
        position: fixed;
        width: 350px;
        height: calc(100vh - 100px)!important;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        background: white;
        color: #000 !important;
        margin: 0px 0px 0px -15px;
        padding: 30px 30px 0px 30px;
        top: 100px;  
        right:0px;   
        transition: .5s;
        z-index: 9999!important;
        overflow-y: auto;
        box-shadow: none !important;
    }

    .menu-header .menu-header-menu-container{
        width: 100%;
    }

    .menu-header ul{
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0px;
    }

    nav ul li:first-child{
        margin-left: 15px;
    }

    nav ul li:first-child{
        margin-right: 15px;
    }
    

    nav ul li:hover a{
        background: none;       
    }

    nav ul li > a, .menu-header ul li a, .menu-header ul li ul.sub-menu li a{
        font-size: 18px !important; 
        font-weight: 500 !important;    
        display: block;        
        padding: 15px 15px;
        width: 100%;
        height: 100%;       
    }

    nav ul > li > a:hover, nav ul > li.current-menu-item > a, nav ul > li.current-page-ancestor > a{
        background: #F5F5F5;
        text-decoration: none;
        color: var(--cian-color) !important;
    }

    .menu-header .btn{
        margin-top: 15px;
    }

    body.open .menu-header {  
        display: flex;      
        box-shadow: 0px 0px 10px rgba(33,33,33,.3);
    }

    .menu-header .close{
        position: absolute;
        top: 12px;
        right: 12px;
    }
    .menu-header ul.nav_bar{
        margin-top: 30px !important;
    }
    .menu-header ul.nav_bar > li{
        margin: 0px !important;
        margin-right: 0px !important;
        margin-left: -15px !important;
        padding : 0px;
    }
    .menu-header ul.nav_bar  ul.sub-menu{
        display: block !important;
        margin: 0px;
        padding: 0px;
        position: relative !important;
        top: inherit !important;
        left: inherit !important;
        width: auto !important;
        box-shadow: none !important;
        padding: 0px !important;
    }
    .menu-header{
        display: block !!important;
        z-index : 999999 !important;
    }

    body.open .overlay-menu{
        z-index: 9999;
        display: block;
        position: fixed;
        left: 0px;
        right: 0px;
        bottom: 0px;
        top: 0px;
        background-color: rgba(0, 0, 0, .3);
    }

    .search-mob{
        border:1px var(--gray2-color) solid;
        padding:5px;
        border-radius: 8px;
        width: 100%;
    }

    .search-mob input{
        width: calc(100% - 40px);
    }

    .search-mob input, .search-mob button{
        border:none;
        background:none;
        outline: none;
    }

    .search-mob button{
        width:30px;
    }
}

@media all and (max-width: 767px){
    .menu-header{       
        width: 100vw;
    }

    header, header nav{
        height: 60px;
    }
}