.menu{
    width: 100%;
    height: 115px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: #fff;
    position: fixed;
    display: flex;
    flex-direction: row;
    z-index: 5;
    overflow: hidden;
    transition: 0.3s ease-in-out;
}

.logo{
    width: 186px;
    height: 69px;
    background-image: url('/images/logo_header.webp');
}

.menu_wraper{
    width: 1300px;
    height: 69px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    overflow: hidden;
    margin-top: 20px;
}

.menu_wraper nav{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.menu_wraper nav a{
    font-weight: 500;
    font-size: 22px;
    font-variant: small-caps;
    color: #000;
    transition: 0.3s ease-in-out;
}

.menu_wraper nav a:hover{
    color: #ffb700;
}

.buttons_block{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.buttons_menu{
    border-radius: 5px;
    background-color: #fff;
    border: 2px solid #000;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    width: 53px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease-in-out;
}

.buttons_menu:hover{
    background-color: #000;
}

.buttons_menu:hover svg{
    fill: #fff;
}

.burger_menu{
    display: none;
}

.mobile_menu{
    width: 100%;
    margin-top: 150px;
    display: none;
}

.mobile_nav{
    display: flex;
    flex-direction: column;
}

.active{
    height: 100vh;
    align-items: start;
}

.menu.active>.wraper>.mobile_menu{
    display: flex;
}

.menu.active>.wraper>.mobile_menu>nav{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.menu.active>.wraper>.mobile_menu>nav>a{
    font-size: 22px;
    text-transform: uppercase;
}

.menu.active>.wraper>.menu_wraper{
    margin-top: 20px;
}

.menu.active>.burger_menu>svg:nth-child(1) {
    transform: rotate(45deg);
    transition: transform 0.3s;
}
.menu.active>.wraper>.menu_wraper>.buttons_block>.buttons_menu{
    display: none;
}

.burger_menu .line {
    display: block;
    height: 2px;
    width: 28px;
    background: #000;
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
    position: relative;
}
.menu.active .burger_menu .line2 {
    opacity: 0;
}
.menu.active .burger_menu .line1 {
    transform: rotate(45deg) translate(6px, 5px);
}
.menu.active .burger_menu .line3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu.active .buttons_mobile_menu{
    display: flex;
}

@media screen and (max-width: 1349px) {
    .menu_wraper {
        width: 1150px;
    }
    
}
@media screen and (max-width: 1199px) {
    .menu_wraper {
        width: 1050px;
    }
}

@media screen and (max-width: 1099px) {
    .menu_wraper{
        max-width: 950px;
    }
    .menu_wraper nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 40px;
        display: none;
    }
    .menu_wraper .buttons_menu {
        display: none;
    }
    .burger_menu{
        border-radius: 5px;
        background-color: #fff;
        border: 2px solid #000;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        width: 53px;
        height: 53px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-in-out;
        flex-direction: column;
    }
    .buttons_mobile_menu{
        display: none;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        position: absolute;
        bottom: 0;
        margin-bottom: 30px;
        width: 100%;
    }
    .menu.active .wraper{
        position: relative;
        height: 100vh;
    }
}

@media screen and (max-width: 999px) {
    .menu_wraper{
        max-width: 850px;
    }
}

.buttons_mobile_menu{
    display: none;
}

@media screen and (max-width: 899px) {
    .menu_wraper{
        max-width: 750px;
    }
}

@media screen and (max-width: 799px) {
    .menu_wraper{
        max-width: 650px;
    }
}

@media screen and (max-width: 699px) {
    .menu_wraper{
        max-width: 550px;
    }
}

@media screen and (max-width: 599px) {
    .menu_wraper{
        max-width: 450px;
    }
    .line_header {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        margin-top: 20px;
        background-color: #fff;
    }
}

@media screen and (max-width: 499px) {
    .menu_wraper{
        max-width: 375px;
    }
}

@media screen and (max-width: 400px){
    .menu_wraper {
        max-width: 350px;
    }

}