body.menu-open {
    overflow: hidden;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 32px;
    background: rgba(0, 0, 0, 0.20);
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    backdrop-filter: blur(2px);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.218);
    opacity: 0;
    pointer-events: none;
    z-index: 30;
}

.menu-overlay.show {
    opacity: 1;
    pointer-events: none;
}

.nav-links a,
.nav-links .nav-trigger {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    padding: 8px 12px;
    display: inline-block;
    min-width: 90px;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    position: relative;
    z-index: 1;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.nav-links a:focus,
.nav-links a:focus-visible,
.nav-links a:active,
.nav-links .nav-trigger:focus,
.nav-links .nav-trigger:focus-visible,
.nav-links .nav-trigger:active {
    outline: none;
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover:not(.active),
    .nav-links .nav-trigger:hover:not(.active) {
        background: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 768px) {
    .nav-links a:hover:not(.active),
    .nav-links .nav-trigger:hover:not(.active) {
        background: transparent;
    }

    .nav-links.open a:hover:not(.active),
    .nav-links.open .nav-trigger:hover:not(.active) {
        background: rgba(255, 255, 255, 0.08);
    }
}

.nav-item {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    white-space: nowrap;
    overflow: hidden;
    z-index: 30;
}

.submenu a {
    display: block;
    text-align: left;
    padding: 8px 10px;
}

.submenu a:hover {
    background: rgba(255, 255, 255, 0.189);
}

.nav-item.open .submenu {
    display: block;
}

.submenu-indicator {
    margin-left: 4px;
    font-size: 0.8rem;
    vertical-align: middle;
}

.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .menu {
        padding: 14px 20px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(80vw, 280px);
        height: 100vh;
        flex-direction: column;
        gap: 8px;
        padding: 80px 16px 20px;
        background: #0f172a;
        transform: translateX(-100%);
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.25);
        z-index: 45;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .nav-links, .nav-links * {
        max-width: 100%;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a,
    .nav-links .nav-trigger {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        text-align: left;
        padding: 10px 12px;
        background: transparent;
        box-sizing: border-box;
        border-radius: 8px;
        display: block;
        overflow: hidden;
        color: #fff;
    }

    .nav-links a.active {
        background: rgba(255, 255, 255, 0.18);
    }

    .nav-item {
        position: static;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .submenu {
        position: static;
        margin-top: 6px;
        background: rgba(255, 255, 255, 0.08);
        border: 0;
        box-shadow: none;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .banner {
        padding: 90px 20px 48px;
    }

    .banner h1 {
        font-size: clamp(1.6rem, 5vw, 2.1rem);
    }

    .banner p {
        font-size: 0.95rem;
    }

    .content {
        padding: 24px 20px;
    }

    .content-pane {
        padding: 24px;
    }
}
