/* Подвал сайта */
.main-footer {
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(138, 92, 247, 0.2);
    margin-top: 60px;
    padding: 40px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-logo .logo-icon {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo .logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--cosmos-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 250px;
}

.footer-title {
    font-size: 1.1rem;
    color: var(--cosmos-text);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: var(--cosmos-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a:hover {
    color: var(--cosmos-text);
    transform: translateX(5px);
}

.footer-links li a::before {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-links li a:hover::before {
    opacity: 1;
}

/* Соцсети */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--cosmos-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(138, 92, 247, 0.1);
    border-color: var(--cosmos-accent);
    color: var(--cosmos-text);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 1.1rem;
}

/* Авторизация в футере */
.footer-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-links a {
    color: var(--cosmos-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.auth-links a:hover {
    color: var(--cosmos-accent);
}

/* Статистика в футере */
.footer-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cosmos-accent);
    line-height: 1;
    margin-bottom: 5px;
}

.footer-stats .stat-label {
    font-size: 0.9rem;
    color: var(--cosmos-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Нижняя часть */
.footer-bottom {
    text-align: center;
    color: var(--cosmos-text-secondary);
    font-size: 0.9rem;
    padding-top: 20px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .social-link {
        justify-content: center;
    }
    
    .footer-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer-stats {
        flex-direction: column;
        gap: 15px;
    }
}