/* header.css - стили шапки */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: #64748b;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    cursor: pointer;
}

.nav-links a:hover {
    color: #2563eb;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1e293b;
}

/* Плавающая кнопка в шапке (десктоп) */
.header-cta {
    display: flex;
    align-items: center;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 48px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* ============================================
   ПЛАВАЮЩАЯ КНОПКА ДЛЯ МОБИЛЬНЫХ
   ============================================ */
.mobile-quiz-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 999;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: white;
    border: none;
    border-radius: 48px;
    padding: 1rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(56, 189, 248, 0.5);
}

.mobile-quiz-btn:active {
    transform: scale(0.97);
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-cta {
        display: none;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Показываем плавающую кнопку на мобилках */
    .mobile-quiz-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .mobile-quiz-btn {
        padding: 0.85rem;
        font-size: 0.9rem;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}
/* ============================================
   ВЫПАДАЮЩИЙ СПИСОК "ВОЙТИ"
   ============================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.btn-login {
    background: transparent;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-login:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: none;
    box-shadow: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 180px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0;
    z-index: 1001;
    animation: dropdownFade 0.2s ease;
}

.dropdown-menu.active {
    display: block;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.dropdown-menu a:first-child {
    border-radius: 16px 16px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 16px 16px;
}

@media (max-width: 768px) {
    .dropdown {
        display: none;
    }
    
    .btn-login {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}