#site-header {
    background-color: rgb(13 15 20 / 0.95);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.shared-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    transition: transform 300ms ease;
}

.shared-header-inner {
    max-width: 1720px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
}

.brand-link {
    font-family: "Rajdhani", "Barlow", sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #ffffff;
    text-decoration: none;
}

.site-logo-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.322);
}

.site-logo-badge img {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-item {
    position: relative;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.95rem;
    border-radius: 0.35rem;
    border: 1px solid transparent;
    color: #ffffff;
    line-height: 1;
    transition: all 180ms ease;
    text-decoration: none;
}

.nav-btn:hover,
.menu-item:focus-within>.nav-btn {
    color: #ffffff;
    background: rgba(8, 42, 89, 0.78);
    border-color: rgba(255, 255, 255, 0.45);
}

.nav-btn.is-active {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(216, 13, 34, 0.4);
}

.menu-toggle {
    display: inline-block;
    width: 1em;
    margin-left: 0.28rem;
    text-align: center;
    line-height: 1;
    font-size: 0.82rem;
    opacity: 0.8;
    transform-origin: 50% 50%;
    will-change: transform;
    transform: translate3d(0, -1px, 0) rotate(0deg);
    transition: transform 180ms ease;
}

.menu-item:hover>.nav-btn .menu-toggle,
.menu-item:focus-within>.nav-btn .menu-toggle {
    transform: translate3d(0, -1px, 0) rotate(180deg);
}

.submenu {
    position: absolute;
    left: 0;
    top: calc(100% + 0.45rem);
    min-width: 15.5rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.6rem;
    background: rgb(4 14 30 / 0.94);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(9px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    z-index: 60;
}

.submenu a {
    display: block;
    width: 100%;
    border-radius: 0.45rem;
    padding: 0.62rem 0.78rem;
    color: #e6ecf3;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.96rem;
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease;
    text-decoration: none;
}

.submenu a:hover,
.submenu a:focus {
    color: #ffffff;
    background: rgba(216, 13, 34, 0.28);
}

.menu-item:hover>.submenu,
.menu-item:focus-within>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu .submenu {
    left: calc(100% + 0.45rem);
    top: -0.3rem;
}

.menu-item--third>.nav-btn .menu-toggle {
    transform: translate3d(0, 0, 0) rotate(-90deg);
}

.menu-item--third:hover>.nav-btn .menu-toggle,
.menu-item--third:focus-within>.nav-btn .menu-toggle {
    transform: translate3d(0, 0, 0) rotate(90deg);
}

@media (max-width: 1200px) {
    .shared-header-inner {
        padding: 1rem 1.25rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.35rem;
    }

    .nav-btn {
        padding: 0.56rem 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 860px) {
    .main-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.3rem;
    }
}