/* ===== ОСНОВНЫЕ СТИЛИ ФУТЕРА ===== */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    padding: 4rem 0 2rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.footer::before {
    content: '';

    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== ВЕРХНЯЯ ЧАСТЬ ФУТЕРА ===== */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Бренд блок */
.footer-brand {
    animation-delay: 0.2s;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-logo i {
    font-size: 2.5rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.brand-logo:hover i {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.logo-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.brand-description {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Форма подписки */
.newsletter h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 300px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Сетка колонок */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col {
    animation: fadeInUp 0.8s ease-out backwards;
}

.footer-col:nth-child(1) { animation-delay: 0.1s; }
.footer-col:nth-child(2) { animation-delay: 0.2s; }
.footer-col:nth-child(3) { animation-delay: 0.3s; }
.footer-col:nth-child(4) { animation-delay: 0.4s; }

.col-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.8rem;
    display: inline-block;
}

.col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-col:hover .col-title::after {
    width: 100%;
}

/* Ссылки в колонках */
.col-links {
    list-style: none;
}

.col-links li {
    margin-bottom: 0.8rem;
}

.col-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.col-links li a i {
    font-size: 0.7rem;
    color: #3b82f6;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.col-links li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.col-links li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.col-links li a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.col-links li a:hover::before {
    opacity: 1;
    left: -15px;
}

/* Контактная информация */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.contact-text p {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-sub {
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ===== СРЕДНЯЯ ЧАСТЬ - СОЦСЕТИ ===== */
.footer-middle {
    padding: 2rem 0;
    margin: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.social-section {
    text-align: center;
}

.social-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2);
}

.social-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Цвета соцсетей */
.social-link.vk {
    border: 1px solid rgba(76, 117, 163, 0.3);
    background: rgba(76, 117, 163, 0.1);
}

.social-link.vk:hover {
    background: rgba(76, 117, 163, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 117, 163, 0.3);
}

.social-link.telegram {
    border: 1px solid rgba(0, 136, 204, 0.3);
    background: rgba(0, 136, 204, 0.1);
}

.social-link.telegram:hover {
    background: rgba(0, 136, 204, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.3);
}

.social-link.youtube {
    border: 1px solid rgba(255, 0, 0, 0.3);
    background: rgba(255, 0, 0, 0.1);
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.social-link.instagram {
    border: 1px solid rgba(225, 48, 108, 0.3);
    background: rgba(225, 48, 108, 0.1);
}

.social-link.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.3);
}

.social-link.whatsapp {
    border: 1px solid rgba(37, 211, 102, 0.3);
    background: rgba(37, 211, 102, 0.1);
}

.social-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* ===== НИЖНЯЯ ЧАСТЬ ===== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

.copyright {
    color: #94a3b8;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.legal-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

.legal-links a:hover {
    color: #3b82f6;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3b82f6;
    transition: width 0.3s ease;
}

.legal-links a:hover::after {
    width: 100%;
}

.divider {
    color: #64748b;
    font-size: 0.8rem;
}

.back-to-top button {
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-to-top button:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.back-to-top button i {
    transition: transform 0.3s ease;
}

.back-to-top button:hover i {
    transform: translateY(-2px);
}

/* ===== АНИМАЦИИ И ДЕКОРАЦИИ ===== */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 10%;
    animation-delay: 5s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 20%;
    animation-delay: 10s;
}

.decoration-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: blink 3s infinite;
}

.dot-1 {
    top: 30%;
    left: 15%;
    animation-delay: 0s;
}

.dot-2 {
    bottom: 40%;
    right: 25%;
    animation-delay: 1s;
}

.dot-3 {
    top: 60%;
    left: 20%;
    animation-delay: 2s;
}

/* Анимации ключевых кадров */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(-15px, 15px) rotate(-5deg);
    }
    75% {
        transform: translate(10px, -10px) rotate(3deg);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Плавное появление элементов при скролле */
.footer {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

/* Адаптивные улучшения */
@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .divider {
        display: none;
    }
}

/* footer.css - обновленный для поддержки тем */

.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 60px 0 30px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.footer h3, .footer h4 {
    color: var(--text-primary);
}

.footer p {
    color: var(--text-secondary);
}

.footer a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: var(--text-tertiary);
}