.site-header-wrap {
    position: relative;
    z-index: 1050;
    padding: 14px 0 0;
}
body.navbar-sticky .site-header-wrap { position: sticky; top: 0; }

.site-header-shell {
    width: min(1400px, calc(100% - 32px));
    min-height: 58px;
    margin: 0 auto;
    padding: 10px 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    background: #fff !important;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(22, 48, 52, .09);
    backdrop-filter: none;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.site-logo-image,
.site-header-shell .custom-logo {
    width: 30px;
    height: 30px;
    border-radius: 0;
    object-fit: contain;
    flex: 0 0 auto;
}
.site-logo-text {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(1rem, 1.6vw, 1.45rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;
    background: linear-gradient(90deg, #0767bf, #55c9e6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #0767bf;
    filter: drop-shadow(0 2px 3px rgba(35, 79, 105, .18));
}

.site-header-nav { min-width: 0; justify-self: end; }
.site-header-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-header-menu > li { margin: 0; padding: 0; }
.site-nav-link {
    position: relative;
    display: inline-block;
    padding: 8px 0;
    color: #667493;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.site-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 1px;
    background: transparent;
}
.site-nav-link:hover,
.site-nav-link.active,
.current-menu-item > .site-nav-link { color: #17242a; }
.site-nav-link:hover::after,
.site-nav-link.active::after,
.current-menu-item > .site-nav-link::after { background: #17242a; }

.mobile-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #17242a;
    font-size: 1.35rem;
}
.mobile-nav-backdrop { display: none; }

@media (max-width: 820px) {
    .site-header-shell { grid-template-columns: auto 1fr auto; }
    .site-header-nav {
        position: fixed;
        top: 82px;
        left: 16px;
        right: 16px;
        z-index: 1065;
        display: none;
        padding: 14px;
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 18px 45px rgba(20, 42, 46, .18);
    }
    .site-header-nav.open { display: block; }
    .site-header-menu { flex-direction: column; align-items: stretch; gap: 4px; }
    .site-nav-link { display: block; padding: 12px; border-radius: 10px; }
    .site-nav-link::after { display: none; }
    .mobile-nav-toggle { display: grid; place-items: center; justify-self: end; }
    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1060;
        display: block;
        opacity: 0;
        pointer-events: none;
        background: rgba(0,0,0,.32);
        transition: opacity .2s ease;
    }
    .mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }
}

@media (max-width: 430px) {
    .site-header-shell { width: calc(100% - 20px); padding: 9px 12px; }
    .site-logo-text { font-size: 1.05rem; }
}
