@media (max-width: 1024px) {
    #header {
        gap: 30px;
    }

    #header.scrolled {
        background: #0a2450;
    }

    .logo--header {
        width: 100%;
        height: auto;
        max-width: 200px;
    }

    #header .menu_cta {
        display: none;
    }

    #close_menu {
        background-color: rgba(0, 0, 0, 0.01);
        position: fixed;
        top: 0;
        right: 0;
        z-index: 2147483647;
        width: 0;
        height: 100vh;
        display: block;
        transition: background-color 0.3s ease,
        right 0.3s ease;
        -webkit-transition: background-color 0.3s ease,
        right 0.3s ease;
    }

    body.menu_open {
        overflow: hidden;
    }

    body.menu_open #close_menu {
        display: block;
        background: rgba(0, 0, 0, 0.5);
        right: min(90vw, 430px);
        width: 100%;
    }

    body.menu_open.show_menu_close #close_menu {
        background-color: rgba(0, 0, 0, 0.01);
        width: 100%;
        right: 0;
    }

    #wrap {
        position: relative;
        width: auto;
        min-width: 320px;
        overflow: hidden;
    }

    #shifter {
        position: relative;
        width: 100%;
        left: 0;
        transition: left 0.3s ease;
        -webkit-transition: left 0.3s ease;
        background: #fff;
    }

    body {
        background: #d8d8d8;
    }

    body.menu_open #shifter {
        left: calc(-1 * min(90vw, 430px));
    }

    body.menu_open.show_menu_close #shifter {
        left: 0;
    }

    #mobile_menu_button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 30px;
        gap: 7px;
        flex-shrink: 0;
    }

    #mobile_menu_button > div {
        border: 2px solid var(--white);
        border-radius: 15px;
    }

    #mobile_menu_button > div:nth-child(2) {
        width: 80%;
    }

    #mobile_logo {
        display: block;
        margin: 0 auto;
    }

    .menu_content_container {
        display: flex;
        top: 0;
        left: 100%;
        width: min(90vw, 430px);
        z-index: 11;
        position: fixed;
        overflow-x: hidden;
        overflow-y: scroll;
        max-height: 100vh;
        -webkit-transition: left 0.3s ease;
        height: 100%;
        -ms-overflow-style: none; /* Internet Explorer 10+ */
        scrollbar-width: none; /* Firefox */
        box-sizing: border-box;
        padding: var(--gap-m);
        background: linear-gradient(0deg, #05577a 0%, #0a2450 67%, #0d013a 99%);
        flex-direction: column;
        gap: 60px;
    }

    .menu_content_container::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }

    body.menu_open .menu_content_container {
        left: calc(100% - min(90vw, 430px));
    }

    body.menu_open.show_menu_close .menu_content_container {
        left: 100%;
    }

    .main_menu,
    .main_menu ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .contact_link_container:not(.mobile) {
        flex-direction: column;
    }

    .contact_link_container.mobile {
        margin-left: auto;
        flex-shrink: 0;
        width: 30px;
        justify-content: center;
    }

    #header .contact_link_container.mobile a:before {
        width: 30px;
        height: 30px;
    }

    .contact_link_container.mobile span {
        display: none;
    }

    .main_menu li.menu-item-has-children > ul {
        max-height: 0;
        transition: max-height 0.5s ease-in-out;
        overflow: hidden;
    }

    .main_menu li.active ul {
        max-height: 500px;
        transition: max-height 0.5s ease-in-out;
    }

    .main_menu a {
        display: block;
        color: var(--white);
        padding: 20px;
        font-size: 20px;
        font-weight: 400;
        text-decoration: none;
    }

    #header ul.main_menu li {
        margin: 0;
    }

    #header ul.main_menu li a {
        padding: 15px 10px;
    }

    .header_link span {
        display: block;
        font-size: 20px;
    }

    .main_menu > li {
        position: relative;
        border-bottom: 1px solid var(--teal-light);
    }

    .main_menu li.menu-item-has-children > .expand_container {
        position: absolute;
        width: 100px;
        height: 100%;
        max-height: 60px;
        right: 0;
        top: 0;
    }

    .main_menu li.menu-item-has-children > .expand_container > .expand_btn {
        transition: transform 0.3s;
        display: block;
        width: 16px;
        height: 10px;
        position: absolute;
        top: calc(50% - 5px);
        right: 0;
        background: center / cover no-repeat url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' fill='none'%3e%3cpath stroke='%23A8C128' stroke-linecap='square' stroke-width='2' d='m14.2 2.2-6 6-6-6'/%3e%3c/svg%3e");
    }

    .main_menu
    li.menu-item-has-children.active
    > .expand_container
    > span.expand_btn {
        transform: rotate(-180deg);
    }

    .main_menu li.menu-item-has-children.clicked > a:after {
        transform: rotate(-180deg);
    }

    #header ul.main_menu li.menu-item-has-children > ul li a {
        color: var(--white);
        padding: 20px 30px;
        border-top: 1px solid var(--blue);
    }

    #header ul.main_menu li.menu-item-has-children.active a {
        /*border: none;*/
        /*padding-bottom: 0;*/
    }

    #header ul.main_menu li.menu-item-has-children.active ul li:last-child a {
    }

    #header ul.main_menu li.menu-item-has-children > ul li:last-child {
        padding-bottom: 20px;
    }
}