/* ============================================
   Header в стиле TenChat.ru
   ============================================ */

.header-tenchat {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    border-bottom: 2px solid #e5e7eb;
    transition: transform 0.5s ease;
}

.header-tenchat__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-tenchat__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}

.header-tenchat__brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-tenchat__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    transition: var(--transition);
}

.header-tenchat__logo:hover {
    opacity: 0.8;
}

.header-tenchat__logo i {
    color: #6366f1;
    font-size: 1.75rem;
}

.header-tenchat__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    height: 100%;
    align-items: center;
}

.header-tenchat__link {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    padding: 0 0.5rem;
}

.header-tenchat__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #6366f1;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header-tenchat__link:hover {
    color: #1f2937;
}

.header-tenchat__link:hover::after {
    transform: scaleX(1);
}

.header-tenchat__link.active {
    color: #1f2937;
}

.header-tenchat__link.active::after {
    transform: scaleX(1);
}

.header-tenchat__actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.header-tenchat__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.header-tenchat__btn--primary {
    background: #ef4444;
    color: white;
    height: 36px;
}

.header-tenchat__btn--primary:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.header-tenchat__btn--secondary {
    background: #1f2937;
    color: white;
    height: 36px;
}

.header-tenchat__btn--secondary:hover {
    background: #111827;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-tenchat__menu {
        gap: 1rem;
    }

    .header-tenchat__link {
        font-size: 0.8125rem;
    }
}

@media (max-width: 768px) {
    .header-tenchat__nav {
        height: 48px;
    }

    .header-tenchat__container {
        padding: 0 16px;
    }

    .header-tenchat__logo {
        font-size: 1.25rem;
    }

    .header-tenchat__logo i {
        font-size: 1.5rem;
    }

    .header-tenchat__menu {
        gap: 0.75rem;
    }

    .header-tenchat__link {
        font-size: 0.75rem;
        padding: 0 0.25rem;
    }

    .header-tenchat__btn {
        padding: 0.375rem 1rem;
        font-size: 0.8125rem;
        height: 32px;
    }
}

@media (max-width: 640px) {
    .header-tenchat__menu {
        display: none;
    }

    .header-tenchat__logo span {
        display: none;
    }
}

