.header{
    position: relative;
    width: 100%;
    min-height: em(60);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    background: url('../img/header/header-bg.jpg') no-repeat;
    background-position: center;
    background-size: cover;
    padding-top: em(10);
    padding-bottom: em(10);
    z-index: 10;
    .container{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin: auto;
        gap: em(20);
    }
    &__menu{
        position: relative;
        max-width: em(600);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        ul{
            position: relative;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            flex-wrap: wrap;
            gap: em(23);
            list-style: none;
            margin-bottom: 0;
            flex: 0 0 auto;
            li{
                position: relative;
                margin-left: 0;
                padding-top: em(10);
                padding-bottom: em(10);
                &:has(ul){
                    a{
                        img{
                            &.arrow{
                                display: block;
                            }
                        }
                    }
                }
                a{
                    position: relative;
                    display: flex;
                    align-items: center;
                    justify-content: flex-start;
                    gap: em(9,18);
                    font-size: em(18);
                    font-weight: 900;
                    color: $text-menu;
                    line-height: 1;
                    transition: color .2s ease-in-out;
                    img{
                        display: none;
                        width: em(14);
                        height: em(7);
                        object-fit: contain;
                        pointer-events: none;
                        user-select: none;
                    }
                    &:hover{
                         color: $main-color;
                    }
                } 
                ul{
                    position: absolute;
                    display: flex;
                    flex-direction: column;
                    align-items: flex-start;
                    justify-content: flex-start;
                    width: auto;
                    min-width: 100%;
                    top: 90%;
                    left: em(0); 
                    opacity: 0;
                    pointer-events: none;
                    user-select: none;
                    transition: opacity .2s ease-in-out;
                    gap: em(10);
                    background: #EFE6D3;
                    border-radius: em(12);
                    border: em(1) solid #FFC692;
                    padding: em(10) em(8);
                    z-index: 2;
                    li{
                        width: 100%;
                        border-radius: em(8);
                        display: block;
                        padding-top: em(0);
                        padding-bottom: em(0);
                        a{
                            display: flex;
                            align-items: center;
                            color: $text-bonus;
                            font-size: em(18,16);
                            line-height: 1.2;
                            font-weight: bold;  
                            white-space: nowrap;
                            transition: color .2s ease-in-out;
                            flex: 0 0 auto;
                            &:hover{
                                color: $main-color;
                            }
                        }
                    }
                }
                &:hover{
                    ul{
                        opacity: 1;
                        pointer-events: unset;
                        user-select: unset;
                    }
                }
            }
        }
    }
    &__logo{
        position: relative;
        width: em(220);
        height: em(68);
        z-index: 1;
        cursor: pointer;
        flex: 0 0 auto;
        img{
            width: em(220);
            height: em(68);
            object-fit: contain;
            object-position: center;
        }
    }
    &__rightside{
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        max-width: em(600);
        flex: 0 0 auto;
    }
    &__btn_block{
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: em(18);
    }
    &__lang_block{
        position: relative;
        margin-left: em(45);
        width: em(45);
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        flex: 0 0 auto;
    }
    &__lang_item{
        position: relative;
        width: em(45);
        height: em(45);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: em(12);
        filter: drop-shadow(em(0) em(6) em(3) rgba(0,0,0, 0));
        border: em(1) solid transparent;
        transition: border .3s ease-in-out, filter .3s ease-in-out;
        &--active{
            width: em(70);
            border: em(1) solid #8B351C;
            filter: drop-shadow(em(0) em(6) em(3) rgba(0,0,0, 0.45));
            pointer-events: unset;
            user-select: unset;
            cursor: pointer;
        }
        img{
            width: em(45);
            height: em(45);
            object-fit: contain;
            pointer-events: none;
            user-select: none;
        }
        &:hover{
           border: em(1) solid #8B351C;
           filter: drop-shadow(em(0) em(6) em(3) rgba(0,0,0, 0.45));
        }
    }

    &__lang_hidden{
        position: absolute;
        opacity: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        background: #EFE6D3;
        border: em(1) solid #FFC692;
        border-radius: em(12);
        padding: em(10);
        left: 50%;
        transform: translateX(-50%) translateY(15%);
        top: em(70);
        gap: em(10);
        opacity: 0;
        transition: transform .3s ease-in-out, opacity .3s ease-in-out;
        transform-origin: 50% 0%;
        pointer-events: none;
        user-select: none;
        &.active{
            opacity: 1;
            transform: translateX(-50%) translateY(0%); 
            pointer-events: unset;
            user-select: unset;
        }
    }


    &__mob_menu{
        display: none;
    }
}

@media(max-width:1024px) and (orientation:portrait){
    .header{
        &__menu{
            display: none;
        }
        &__lang{
            display: none;
        }
        &__mob_menu{
            display: flex;
            margin-left: em(24);
        }
        &__btn_block{
            display: none;
        }
    }
}



@media(max-width:500px) and (orientation:portrait){
    .header{
        &__logo{
            font-size: .6rem;
        }
    }
}