/* Header */

.menu-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
:root {
    --nav-bg: #03000e;
}
body {
    --nav-height: 108px;
}
.nav--hidden {
    transform: translateY(calc(-1 * var(--nav-height)));
    box-shadow: none;
}
.header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    width: 100%;
    background: transparent;
    z-index: 30;
    top: 0;
    height: var(--nav-height);
    transition: transform .3s, height .3s, background .3s;
    border-bottom: 1px solid transparent;
}

@media screen and (min-width: 1024px) {
     .header:hover, .header.white-bg {
        background: #fff;
    }
    .header:hover #nav li a, .header.white-bg #nav li a {
        color: #222;
    }
    .header:hover .sub-menu, .header.white-bg .sub-menu {
        background-color: #fff;
    }
    .header:hover .menu-item-has-children:after, .header.white-bg .menu-item-has-children:after {
        background-color: #222;
    }
    .header:hover .header-contacts a, .header.white-bg .header-contacts a {
        color: #222;
    }
    .wpml-ls-item a:hover span {
        border: 1px solid #9ca3af!important;
    }
    .header:hover .wpml-ls-item span {
        border: 1px solid #222;
    }

}
.header .menu-wrap .header-contacts a:hover  {
    color: #13317e;
}

.nav-up {
    top: -108px;
}
.logo {
    width: 160px;
    height: 70px;
    transition: .3s ease;
    color: #fff;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
}
.logo img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
}

.white-header {
    background: #fff;
}
.white-header .menu-wrap li a {
    color: #222!important;
}
.white-header .header-contacts a {
    color: #222;
}
.white-header .wpml-ls-item span {
    border: 1px solid #222;
}

.white-header .menu-item-has-children::after {
    background-color: #222;
    transition: .3s ease;
}
.white-header .burger-menu span {
    background: #222!important;
}
.white-header .burger-menu.active span {
    background: #222;
}
.header #nav {
    --padding: 20px;
    --font-size: 16px;
    list-style: none;
    display: flex;
    align-items: center;
    font-size: var(--font-size);
}
#nav li.current-menu-ancestor:not(.sub-menu li) {
    border-bottom: 1px solid #222;
}
#nav .current-menu-ancestor a {
    z-index: 600;
}
#nav .current-menu-item:not(.sub-menu li) {
    border-bottom: 1px solid #222;
}
.sub-menu .current-menu-item {
    border-bottom: none;
}
.header #nav li {
    position: relative;
    z-index: 15;
}
.header .menu-wrap #nav li:hover > a {
    color: #13317e!important;
}
.header #nav > li:not(:last-child) {
    margin-right: 35px;
}
.header #nav li a {
    color: #fff;
    text-decoration: none;
    position: relative;
    text-transform: lowercase;
    padding: 14px 0;
}
.header .burger-menu {
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    right: 0;
    top: 20px;
}
.header .burger-menu span {
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background-color: #fff;
    transition: 0.3s ease;
    transform-origin: left;
}
.header .burger-menu span:nth-child(2) {
    width: 60%;
    max-width: 20px;
    position: absolute;
    top: 10px;
    left: 40%;
}
.header.dark #nav li a {
    color: #222;
}
.header.dark .header-contacts a {
    color: #222;
}
.dark {
    transition: .3s ease;
}
.dark .wpml-ls-item span {
    border: 1px solid #222;
}
.header.dark .menu-item-has-children::after {
    background-color: #222;
}
.white-header.dark {
    background-color: #fff;
}
.header .header-contacts.white-contacts a {
    color: #ffffff;
}
.header .burger-menu.active span {
    background-color: #fff;
}
.header .burger-menu.active span:nth-child(1) {
    transform: rotate(49deg);
    margin-top: 3px;
}
.header .burger-menu span:nth-child(3) {
    transform-origin: left;
}
.header .burger-menu.active span:nth-child(3) {
    transform: rotate(-48deg);
}
.header .burger-menu.active span:nth-child(2) {
    transform: scale(0);
}
@media screen and (min-width: 992px) {
    .white-header .sub-menu {
        background-color: #fff;
    }
}
@media (max-width: 1024px) {
    .header .burger-menu {
        display: flex;
    }
    .header {
        height: auto;
    }
    .menu-wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: relative;
    }
    .menu-wrapper {
        grid-column-start: span 2;
        order: 3;
    }
    .burger-menu.active {
        order: 2;
    }
    #nav {
        padding-bottom: 24px;
    }
    .header ul:not(.sub-menu) {
        --height: 0px;
        flex-direction: column;
        background: transparent;
        width: 100%;
        left: 0;
        top: 60px;
        height: var(--height);
        transition: 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }
    .header #nav > li:not(:last-child) {
        padding: 10px 0;
        margin-right: 0;
    }
    .header #nav.active {
        height: 100vh;
        transition: height .3s linear;
    }
    .header #nav {
        padding: 30px 0 0;
        transition: height .2s linear;
    }
    .header #nav > li:first-child {
        border-top: 1px solid #4B4B4B;
    }
    #nav > li {
        border-bottom: 1px solid #4B4B4B;
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }
    #nav > .menu-item-has-children {
        border-bottom: none;
    }
    #nav li a::after {
        content: "";
        width: 35px;
        height: 23px;
        display: block;
        margin-right: 20px;
        background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22.5 0.625H1.5C1.017 0.625 0.625 1.017 0.625 1.5C0.625 1.983 1.017 2.375 1.5 2.375H20.3873L0.881375 21.8814C0.539687 22.2231 0.539687 22.7769 0.881375 23.1186C1.05244 23.2897 1.276 23.375 1.5 23.375C1.724 23.375 1.948 23.2897 2.11862 23.1186L21.625 3.61225V22.5C21.625 22.983 22.017 23.375 22.5 23.375C22.983 23.375 23.375 22.983 23.375 22.5V1.5C23.375 1.017 22.983 0.625 22.5 0.625Z' fill='%239CA3AF'/%3E%3C/svg%3E%0A");
        background-repeat: no-repeat;
    }
    .header #nav li a {
        font-size: 18px;
        font-weight: 600;
        margin-left: 5px;
        padding: 5px 0;
        text-transform: uppercase;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        text-align: left;
    }
    .dark .burger-menu span {
        background-color: #222;
    }
    .header #nav li {
        padding-bottom: 10px;
    }
    .menu .sub-menu li {
        border-bottom: 1px solid #4B4B4B;
    }
    .menu .sub-menu li:last-child {
        padding: 10px 0 0;
    }
    .menu .menu-item-has-children {
        padding-bottom: 0!important;
        padding-top: 16px!important;
    }
    .menu-item-has-children li:not(:first-child) {
        padding-top: 12px;
    }
    .menu-wrap .menu .menu-item-has-children > a {
        display: none!important;
    }
    .menu-wrap {
        padding-top: 10px;
    }
    .header #nav {
        overflow: hidden;
    }
}
@media screen and (max-width: 450px) {
    .header-contacts {
        margin-right: 50px;
    }
}


.header-contacts {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.header-contacts a {
    width: fit-content;
    color: #ffffff;
}
@media screen and (max-width: 1024px) {
    .header-contacts a {
        font-size: 14px;
    }
}
.header-phone {
    margin-bottom: 3px;
}

.sub-menu {
    display: flex;
    flex-direction: column;
}

/* Submenu */
.sub-active {
    position: relative;
    z-index: 15;
}

.header #nav .sub-menu li a {
    font-weight: 600;
    line-height: 1.3em;
    font-family: 'Montserrat', sans-serif;
}
.sub-menu li:not(:last-child) {
    padding-bottom: 10px;
}
@media screen and (min-width: 1024px) {
    #nav .menu-item-has-children:hover .sub-menu, .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .sub-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: -20px;
        padding: 20px;
        z-index: 40;
        width: 240px;
        opacity: 0;
        visibility: hidden;
        background-color: transparent;
        transition: all .3s ease;
        transform: translateY(-6px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }
    .sub-menu:before {
        content: '';
        position: absolute;
        background-color: transparent;
        width: 100%;
        height: 26px;
        top: -16px;
        left: 0;
    }
    .header #nav .sub-menu a {
        text-transform: unset;
    }
    .header #nav .sub-menu li {
        padding-bottom: 20px;

    }
    .header #nav .sub-menu li:last-child {
        padding-bottom: 0;
    }
    .menu-item-has-children {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    .header #nav > li {
        display: flex;
    }
    .wpml-ls-item span {
        border: 1px solid #fff;
        padding: 0 5px 2px;
    }

    .menu-item-has-children:after {
        width: 8px;
        height: 8px;
        margin: 0 0 3px 5px;
        display: inline-block;
        content: "";
        -webkit-mask: url('../img/icon-plus.svg') no-repeat 100% 100%;
        mask: url('../img/icon-plus.svg') no-repeat 100% 100%;
        -webkit-mask-size: cover;
        mask-size: cover;
        background-color: #fff;
        transition: .3s ease;
    }
    .menu-item-has-children {
        margin-bottom: -3px;
        cursor: default;
    }
    .header .menu-wrap #nav li:hover:after {
        background-color: #d5ba85;
    }
}

@media screen and (max-width: 1024px){
    .logo {
        width: 114px;
        height: 52px;
    }
}
.test-text {
    margin-top: 700px;
}

/* Footer */

.consult, .single-post .footer, .page-template-contact .footer, .page-template-career .footer {
    margin-top: 150px;
}
@media screen and (max-width: 1280px) {
    .consult, .single-post .footer, .page-template-contact .footer, .page-template-career .footer {
        margin-top: 100px;
    }
}
@media screen and (max-width: 1024px) {
    .consult, .single-post .footer, .page-template-contact .footer, .page-template-career .footer {
        margin-top: 50px;
    }
}

.footer {
    background-color: #0d0d1e;
    padding: 90px 0 0;
    color: #c1c1c1;
}
.footer-logo {
    margin-right: 20px;
    width: 176px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 90px;
    gap: 40px;
}
.footer-tel, .footer-tel__wrap {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.footer-tel__wrap {
    row-gap: 2px;
    flex-wrap: wrap;
}

.footer-office {
    display: flex;
    flex-direction: column;
}
.footer-office:not(:last-child) {
    margin-right: 50px;
}
.footer-office__city {
    padding-bottom: 15px;
    color: #fff;
    font-weight: 700;
}
.footer-office__location {
    padding-bottom: 15px;
}

.footer-office__route.consultation-btn {
    padding: 4px 10px;
    max-width: fit-content;
    font-size: 14px;
    margin: 10px 0 auto;
}
.footer-office__email:hover {
    color: #d5ba85;
}
.footer-office__phone:hover {
    color: #d5ba85;
}
.footer-content {
    display: grid;
    line-height: 30px;
    gap: 15px;
    grid-template-columns: 1fr;
    width: 40%;
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
}

.footer-bottom__wrap {
    display: flex;
    justify-content: space-between;
}
.footer-social {
    display: flex;
}
.footer-social__item:not(:last-child) {
    margin-right: 40px;
}
.footer-social__link:hover {
    color: #d5ba85;
}
.copy_menu {
    display: flex;
}
.footer-copyright {
    margin-right: 30px;
}
.footer_menu #footer_nav {
    display: flex;
}
.footer_menu #footer_nav li {
    transition: .3s ease;
}
.footer_menu #footer_nav li a:hover {
    color: #d5ba85;
}
.footer_menu #footer_nav li:not(:last-child) {
    margin-right: 30px;
}
.footer-office__email, .footer_menu #footer_nav {
    color: white;
}

@media screen and (max-width: 1023px) {
    .footer-bottom__wrap {
        flex-direction: column;
        align-items: center;
    }
    .copy_menu {
        margin-bottom: 20px;
    }
    .footer-content {
        width: 100%;
    }
}
@media screen and (max-width: 767px) {
    .footer {
        padding: 60px 0 0;
    }
    .footer-top {
        flex-direction: column;
        padding-bottom: 40px;
        gap: 0;
    }
    .footer-logo {
        padding-bottom: 40px;
        margin: 0 auto;
    }
    .footer-bottom__wrap {
        flex-direction: column-reverse;
        align-items: center;
    }
    .footer-social {
        padding-bottom: 25px;
    }
    .copy_menu {
        flex-direction: column-reverse;
        align-items: center;
    }
    .footer_menu #footer_nav {
        padding-bottom: 50px;
    }
    .footer-copyright {
        padding-bottom: 10px;
        font-size: 14px;
        margin-right: 0;
    }
    .footer-content {
        font-size: 14px;
    }
    .footer-tel {
        justify-content: center;
    }
    .footer-office__route.consultation-btn {
        margin: 10px auto;
    }
    .footer-office {
        max-width: 100%;
        align-items: center;
    }
    .footer-office:not(:last-child) {
        margin-right: 30px;
    }
}