/* ============================================= */
/* header.css — СТИЛИ ТОЛЬКО ДЛЯ ХЕДЕРА */
/* ============================================= */

.header {
    background: var(--bg-header);
    box-shadow: 0 1px 3px var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-weight: 700;
    font-size: 22px;
    font-family: 'Gilroy', sans-serif;
}
.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Gilroy', sans-serif;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}
.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-family: 'Gilroy', sans-serif;
}
.nav-menu a:hover { color: var(--primary); }
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-btn {
    background: var(--calc-button-bg);
    color: var(--text-inverse);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    -webkit-appearance: none;
    font-family: 'Gilroy', sans-serif;
}
.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-lg);
}
.header-btn:active { transform: translateY(0); }
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    -webkit-appearance: none;
}
.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s ease;
}

/* === АДАПТИВНОСТЬ ХЕДЕРА === */
@media (max-width: 920px) {
    .header-container { padding: 0 20px; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 4px 15px var(--shadow-md);
        z-index: 999;
    }
    .nav-menu.active { display: flex !important; }
    .mobile-menu-btn { display: flex !important; }
    .header-btn { display: none !important; }
}
@media (min-width: 921px) {
    .nav-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
        background: transparent;
    }
    .mobile-menu-btn { display: none !important; }
    .header-btn { display: block !important; }
}