header .nav_head {
    height: 100%;
}

header nav {
    margin-right: 50px;
    height: 100%;
}

header nav ul {
    display: flex;
    list-style: none;
    height: 100%;
}

header nav ul li {
    margin-left: 35px;
    height: 100%;
}

header nav ul li:last-child {
    margin-left: 0;
}

header nav ul a {
    font-size: 17px;
    color: #293142;
    height: auto;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #fff;
    position: relative;
    -webkit-transition: all 0.3s ease-in-out;
}

header nav ul a:hover {
    border-color: #FFBB00;
  	color: #3eb7eb;
}

header nav .menu-item-has-children a {
    padding-left: 16px;
}

header nav .menu-item-has-children a:before {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 9px;
    color: #000;
    position: absolute;
    left: 0;
    top: 8px;
}

header nav .menu-item-has-children .sub-menu {
    position: absolute;
    display: none;
    background: #fff;
    height: auto;
    padding: 6px 0;
}

header nav .menu-item-has-children .sub-menu a:before {
    content: none;
}

header nav .menu-item-has-children:hover .sub-menu {
    display: block;
}

header nav .sub-menu li {
    margin-left: 0;
}

header nav .sub-menu li a {
    height: auto;
    border-bottom: 0;
    padding: 11px 24px;
    background: #fff;
}

header nav .sub-menu li a:hover {
    background: #3BB7EB;
    color: #fff;
}

.button_menu {
    display: none;
}

@media (max-width: 1250px) {
    header nav ul a, .header-button-text, .header-tel i {
        font-size: 15px;
    }

    .header-tel-text {
        font-size: 18px;
    }

    header nav ul li {
        margin-left: 26px;
    }

    header .logo img {
        max-width: 88px;
    }

    header nav {
        margin-right: 30px;
    }
}

@media (max-width: 1020px) {
    .header-button, .header-tel, header .nav_head {
        display: none;
    }

    header .row {
        justify-content: space-between;
        flex-direction: row;
    }

    header {
        height: 65px;
    }

    .main_top {
        margin-top: 65px;
    }

    .button_menu {
        display: flex;
        justify-content: center;
        align-items: center;
        border: 0;
        border-radius: 50%;
        height: 42px;
        width: 42px;
        background: #FFBB00;
        cursor: pointer;
    }

    .button_menu button {
        border: 0;
        position: relative;
        min-width: 17px;
        transition: .2s;
        box-shadow: none!important;
        outline: none!important;
        z-index: 99;
        height: 2px;
        background: #fff;
        cursor: pointer;
    }

    header .btn-beetle-nav:before, header .btn-beetle-nav:after {
        content: '';
        position: absolute;
        right: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        transition: .2s;
        cursor: pointer;
    }

    header .btn-beetle-nav:before {
        top: 6px;
    }

    header .btn-beetle-nav:after {
       bottom: 6px;
    }

    .open_menu header .btn-beetle-nav:before {
        top: 0;
        transform: rotate(45deg);
    }

    .open_menu header .btn-beetle-nav:after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    .open_menu .button_menu button {
        background: transparent;
    }

    header .nav_head {
        right: -60%;
        width: 60%;
        position: fixed;
        transition: right 0.3s ease-out,opacity 0.3s ease-out;
    }

    header .nav_head:before {
        content: " ";
        width: 1px;
        height: 100%;
        top: 0;
        position: absolute;
        left: -1px;
        box-shadow: 0 0 20px #2d2d2d;
        z-index: 100;
    }

    .open_menu header .nav_head {
        display: inline-block;
        top: 0;
        right: 0;
        overflow-y: auto;
        overflow-x: hidden;
        height: 100%;
        background: #fff;
    }

    header, footer, section {
        transition: 0.3s ease-out;
    }

    .open_menu header, .open_menu footer, .open_menu section {
        right: 60%;
        position: relative;
        overflow: hidden;
    }

    .open_menu header {
        position: fixed;
    }

    .open_menu .body {
        overflow: hidden;
    }

    header nav ul {
        display: block;
    }

    header nav ul li {
        margin-left: 0;
        height: auto;
        border-bottom: 1px solid #edf3fb;
        cursor: pointer;
        position: relative;
    }

    header nav ul li a {
        padding: 19px 22px 19px 10px;
        margin-left: 54px;
    }

    header nav {
        margin-right: 0;
    }

    header nav ul a:hover {
        border-color: #fff;
    }

    header nav .menu-item-has-children a:before {
        content: none;
    }

    header nav .menu-item-has-children:before {
        content: "\f078";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        font-size: 12px;
        color: #000;
        position: absolute;
        left: 24px;
        top: 24px;
    }

    header nav .menu-item-has-children:hover .sub-menu {
        display: none;
    }

    .children_active .sub-menu {
        position: relative!important;
        display: block!important;
        padding: 0 0 18px 0!important;
    }

    .children_active .sub-menu li {
        border-bottom: 0;
    }

    .children_active .sub-menu li a {
        padding: 6px 40px 6px 16px;
        margin-left: 0;
    }
}