.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    /*border-bottom: 1px solid #D9E2EC;*/
    z-index: 1000;
}

body {
    padding-top: 78px;
}

.site-header__wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.site-header__logo-link {
    display: inline-flex;
    align-items: center;
}

.site-header__logo-img {
    display: block;
    max-height: 52px;
    width: auto;
}

.site-header__center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.site-header__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav--desktop .site-nav__list,
.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav--desktop .site-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav--desktop .menu-item {
    position: relative;
}

.site-nav--desktop a {
    display: inline-flex;
    align-items: center;
    min-height: 78px;
    text-decoration: none;
    /*font-family: 'Manrope';*/
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 170%;
    color: #1A4F78;
}

.site-nav--desktop a:hover,
.site-nav--desktop .current-menu-item > a,
.site-nav--desktop .current-menu-parent > a,
.site-nav--desktop .current_page_item > a {
    color: #3C628C;
}

/* dropdown desktop */
.site-nav--desktop .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #FFFFFF;
    border: 1px solid #D9E2EC;
    box-shadow: 0 12px 32px rgba(20, 33, 61, 0.08);
    border-radius: 12px;
    padding: 10px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 20;
}

.site-nav--desktop .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav--desktop .sub-menu li {
    margin: 0;
}

.site-nav--desktop .sub-menu a {
    min-height: unset;
    display: block;
    padding: 10px 16px;
    color: #6B86A6;
}

.site-nav--desktop .sub-menu a:hover {
    color: #3C628C;
    background: #F7FAFC;
}

.site-header__phone,
.mobile-menu__phone {
    text-decoration: none;
    white-space: nowrap;
    /*font-family: 'Manrope';*/
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 170%;
    color: #1A4F78;
}

.site-header__phone:hover,
.mobile-menu__phone:hover {
    color: #3C628C;
}

.site-header__socials,
.mobile-menu__socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header__social {
    width: 30px;
    height: 30px;
    border: 1px solid #C6D3E1;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7A97B8;
    text-decoration: none;
    transition: all .25s ease;
}

.site-header__social:hover {
    color: #3C628C;
    border-color: #3C628C;
}

.site-header__burger {
    display: none;
    width: 28px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.site-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #3C628C;
    transition: all .3s ease;
}

.site-header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .3s ease;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: min(460px, calc(100% - 0px));
    height: 100dvh;
    background: #FFFFFF;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.08);
}

.mobile-menu__head {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #E6EDF5;
}

.mobile-menu__title {
    font-size: 28px;
    line-height: 1.2;
    color: #58779B;
    font-weight: 400;
}

.mobile-menu__close {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    position: relative;
    cursor: pointer;
    padding: 0;
}

.mobile-menu__close span {
    position: absolute;
    top: 11px;
    left: 2px;
    width: 20px;
    height: 2px;
    background: #7A97B8;
}

.mobile-menu__close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu__close span:last-child {
    transform: rotate(-45deg);
}

.mobile-menu__body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px 0 24px;
    overflow-y: auto;
}

.mobile-menu__list > li {
    border-bottom: 1px solid #E6EDF5;
    position: relative;
}

.mobile-menu__list > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 52px;
    padding: 0 48px 0 16px;
    color: #6B86A6;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
}

.mobile-menu__list .sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 8px;
    background: #F8FBFF;
}

.mobile-menu__list .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

.mobile-menu__list .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #6B86A6;
    text-decoration: none;
    font-size: 13px;
}

.mobile-menu__list .sub-menu a:hover {
    color: #3C628C;
}

.mobile-menu .submenu-toggle {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu .submenu-toggle::before,
.mobile-menu .submenu-toggle::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 8px;
    width: 12px;
    height: 2px;
    background: #7A97B8;
    transition: all .25s ease;
}

.mobile-menu .submenu-toggle::after {
    transform: rotate(90deg);
}

.mobile-menu .menu-item-has-children.is-open > .submenu-toggle::after {
    transform: rotate(0);
}

.mobile-menu__phone-wrap {
    margin-top: auto;
    padding: 18px 16px 12px;
    text-align: center;
}

.mobile-menu__socials {
    justify-content: center;
    padding: 0 16px;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .site-header__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open .mobile-menu {
    transform: translateX(0);
}

/* WP admin bar */
/*.admin-bar .site-header {*/
/*    top: 32px;*/
/*}*/

.admin-bar .mobile-menu {
    top: 32px;
    height: calc(100dvh - 32px);
}
@media only screen and (min-width: 991px) {
    .site-header__left {
        display: none;
    }
    .site-header__center {
        flex: initial;
    }
}
@media (max-width: 991px) {
    body {
        padding-top: 60px;
    }

    .site-header__wrap {
        min-height: 60px;
        gap: 12px;
    }

    .site-header__center,
    .site-header__phone {
        display: none;
    }

    .site-header__burger {
        display: flex;
    }

    .site-header__logo-img {
        max-height: 42px;
    }
    .site-header__wrap {
        display: flex;
        justify-content: right;
    }
    .mobile-menu__list > li > a {
        padding: 0 16px 0 16px;
    }
    .mobile-menu__body {
        height: auto;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar .mobile-menu {
        top: 46px;
        /*height: calc(100dvh - 45px);*/
    }
}