/**
 * Единая шапка на всех landing-страницах (эталон: /ai-seo).
 * Подключается после page_css.
 */
#navbar.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.875rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    box-sizing: border-box;
}

#navbar.navbar.scrolled {
    padding: 0.625rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#navbar > .max-w-7xl > .flex {
    min-height: 44px;
    align-items: center;
}

#navbar .brand-word {
    line-height: 1;
}

#navbar .nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    color: #374151;
    text-decoration: none;
    padding: 0.375rem 0;
    transition: color 0.2s ease;
}

#navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0078d4;
    transition: width 0.3s ease;
}

#navbar .nav-link:hover,
#navbar .nav-link.active {
    color: #0078d4;
    font-weight: 600;
}

#navbar .nav-link:hover::after,
#navbar .nav-link.active::after {
    width: 100%;
}

#navbar .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: #0078d4;
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.25rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

#navbar .btn-cta:hover {
    background: #005a9e;
    box-shadow: 0 8px 24px rgba(0, 120, 212, 0.35);
    transform: translateY(-2px);
}

#navbar .mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #374151;
    flex-shrink: 0;
}

#navbar .mobile-menu-btn:hover {
    color: #0078d4;
}

#navbar .brand-divider {
    background: #0078d4;
    opacity: 0.4;
}

#navbar .nav-accent-link {
    font-weight: 700;
    color: #0078d4;
}

@media (min-width: 1024px) {
    #navbar .dropdown {
        position: static;
    }

    #navbar .dropdown-content.mega-menu {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        top: 100% !important;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        border-top: none;
    }

    #navbar .dropdown-content.mega-menu.mega-open {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto;
    }

    /* Стили ссылок мегаменю — в megamenu.css, здесь не переопределяем */
}

#navbar .dropdown-content:not(.mega-menu) {
    border-top: 3px solid #0078d4;
}

#navbar .dropdown-content:not(.mega-menu) a:hover {
    background: #f0f7ff;
    color: #0078d4;
    border-left-color: #0078d4;
}

#navbar #mobileMenu .mobile-accordion-content a.active {
    color: #0078d4;
    font-weight: 600;
}

#navbar #smartSearchOpenDesktop {
    border-color: rgba(0, 120, 212, 0.2);
    background: rgba(0, 120, 212, 0.05);
}
