/* ========================================
   PORTAL HEADER - Compact Professional
   ======================================== */

.site-header-portal {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    gap: 3rem;
}

/* COMPACT LOGO */
.header-logo {}

.logo-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-compact {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.logo-text-compact {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header-logo a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.header-logo a:hover {
    opacity: 0.8;
}

/* NAVIGATION */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.mobile-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-toggle:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}


/* RESPONSIVE */
@media (max-width: 968px) {
    .header-container {
        padding: 0 1rem;
        height: 60px;
    }

    .header-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        justify-content: flex-start;
        align-items: stretch;
    }

    .header-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-toggle {
        display: flex;
    }

    .logo-text-compact {
        font-size: 1.25rem;
    }

    .logo-icon-compact {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .header-container {
        height: 55px;
    }

    .logo-text-compact {
        font-size: 1.1rem;
    }

    .search-input {
        font-size: 1.2rem;
        padding: 1.25rem 4.5rem 1.25rem 1.5rem;
    }
}

/* JavaScript для работы поиска и мобильного меню */
