/* ============== ПОДВАЛ САЙТА ============== */
.site-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 60px;
    padding: 40px 20px 20px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.footer-logo .brand-mark {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: var(--transition);
    font-size: 18px;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-copyright {
    color: var(--gray);
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-copyright a {
    color: var(--primary);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* ============== АДАПТАЦИЯ ============== */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px 15px;
    }
    
    .footer-links {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-social {
        gap: 12px;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .footer-logo i {
        font-size: 24px;
    }
    
    .footer-logo span {
        font-size: 18px;
    }
}

body[data-theme="immersive"] .site-footer {
    position: relative;
    overflow: hidden;
    margin: 0 52px 24px;
    width: calc(100% - 104px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.98)),
        radial-gradient(circle at 18% 20%, rgba(168, 85, 247, 0.10), transparent 32%),
        radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.08), transparent 30%);
    backdrop-filter: blur(28px);
    border-top: 0;
    border-radius: 0 0 36px 36px;
    box-shadow: 0 24px 64px rgba(76, 29, 149, 0.08);
    padding: 48px 20px 24px;
}

body[data-theme="immersive"] .site-footer::before {
    display: none;
}

body[data-theme="immersive"] .footer-logo span {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #6d28d9;
    letter-spacing: -0.02em;
}

body[data-theme="immersive"] .footer-logo i {
    color: #7c3aed;
    filter: drop-shadow(0 6px 12px rgba(124, 58, 237, 0.18));
}

body[data-theme="immersive"] .footer-container {
    position: relative;
    z-index: 1;
}

body[data-theme="immersive"] .footer-links a {
    color: #344054;
    font-weight: 600;
    letter-spacing: -0.01em;
}

body[data-theme="immersive"] .footer-links a:hover {
    color: #6d28d9;
}

body[data-theme="immersive"] .footer-social a {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(124, 58, 237, 0.14);
    color: #344054;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.08);
}

body[data-theme="immersive"] .footer-social a:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
}

body[data-theme="immersive"] .footer-copyright {
    color: #475467;
    border-top-color: rgba(124, 58, 237, 0.12);
    font-size: 14px;
    line-height: 1.6;
}

body[data-theme="immersive"] .footer-copyright a {
    color: #7c3aed;
    font-weight: 600;
}

body[data-theme="immersive"] .footer-links {
    gap: 28px;
}

body[data-theme="immersive"] .footer-social {
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    body[data-theme="immersive"] .site-footer {
        width: calc(100% - 32px);
        margin: 0 16px 0;
        padding: 36px 16px 18px;
        border-radius: 0 0 28px 28px;
    }

    body[data-theme="immersive"] .footer-links a {
        font-size: 14px;
    }

    body[data-theme="immersive"] .footer-copyright {
        font-size: 13px;
    }
}
