:root {
    --menu-h: 74px;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 12px;
    background: rgba(1, 36, 56, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.top-nav a {
    text-decoration: none;
    color: #f5fbff;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.top-nav a:hover,
.top-nav a.is-active {
    transform: translateY(-1px);
    border-color: rgba(255, 209, 102, 0.85);
    background: rgba(255, 255, 255, 0.14);
}

body.has-fixed-menu {
    padding-top: var(--menu-h);
}

@media (max-width: 768px) {
    :root {
        --menu-h: 82px;
    }

    .top-nav {
        padding: 10px 8px;
    }

    .top-nav a {
        font-size: 0.88rem;
        padding: 7px 11px;
    }
}
