/* Prostsze menu w stylu stron operatorów. */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.navbar {
    padding: 0.75rem 0;
}

.navbar .container,
.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.15rem;
}

.navbar-brand {
    gap: 0.8rem;
    min-width: max-content;
}

.brand-name {
    font-size: 1.28rem;
    line-height: 1;
    letter-spacing: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links {
    gap: 0.1rem;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.nav-actions {
    gap: 0.5rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.78rem;
    border-radius: 8px;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.34rem;
    height: 2px;
    border-radius: 999px;
    background: #2563eb;
    opacity: 0;
    transform: translateY(4px);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #0f172a;
    background: rgba(37, 99, 235, 0.08);
    box-shadow: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    opacity: 1;
    transform: translateY(0);
}

.titansmc-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 44px;
    padding: 0.25rem 0.55rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.titansmc-logo {
    display: block;
    width: auto;
    max-width: 74px;
    max-height: 42px;
}

.nav-check-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.72rem 1.05rem;
    border-radius: 10px;
    background: #f59e0b;
    border: 1px solid rgba(217, 119, 6, 0.28);
    color: #111827 !important;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.24);
}

.nav-check-link:hover {
    background: #d97706;
    color: #111827 !important;
    transform: translateY(-1px);
}

.nav-actions .cta-button {
    min-height: 44px;
    padding: 0.72rem 1rem;
    border-radius: 10px;
    background: #2563eb;
    border-color: rgba(37, 99, 235, 0.22);
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
}

.nav-actions .cta-button:hover {
    background: #1d4ed8;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.26);
}

.mobile-menu-toggle {
    border-radius: 10px;
}

body.dark-mode .site-header {
    background: rgba(15, 20, 25, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-links {
    background: transparent;
    border: 0;
}

body.dark-mode .nav-links a {
    color: #cbd5e1;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: #ffffff;
    background: rgba(96, 165, 250, 0.16);
}

body.dark-mode .nav-links a::after {
    background: #60a5fa;
}

body.dark-mode .titansmc-link {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .nav-check-link {
    background: #f59e0b;
    color: #111827 !important;
}

@media (max-width: 1160px) {
    .nav-links a {
        padding-inline: 0.62rem;
        font-size: 0.9rem;
    }

    .nav-check-link span,
    .nav-actions .cta-button span {
        display: none;
    }

    .nav-check-link,
    .nav-actions .cta-button {
        width: 44px;
        padding-inline: 0;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        top: 74px;
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 0.85rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(15, 23, 42, 0.1);
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
        z-index: 120000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .nav-links {
        padding: 0.35rem;
        border-radius: 14px;
        background: rgba(248, 250, 252, 0.92);
    }

    .nav-links li,
    .header-auth-item {
        width: 100%;
    }

    .nav-links a,
    .titansmc-link,
    .nav-check-link,
    .nav-actions .cta-button {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: 0.85rem 1rem;
    }

    .nav-check-link span,
    .nav-actions .cta-button span {
        display: inline;
    }

    .titansmc-logo {
        max-width: 82px;
    }

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

    body.dark-mode .nav-menu {
        background: rgba(15, 20, 25, 0.98) !important;
        border-color: rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .nav-links {
        background: rgba(26, 31, 46, 0.82);
    }
}
