.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-nav h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.footer-nav a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Стили для иконок в подвале */
.footer-icon {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    vertical-align: middle;
    filter: brightness(0) invert(0.6);
    transition: all 0.3s;
}

.footer-nav a:hover .footer-icon {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.footer-middle {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transition: all 0.3s;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: all 0.3s;
}

.social-icon:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.social-icon:hover img {
    transform: scale(1.1);
    filter: brightness(1) invert(0);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    color: #999;
    font-size: 14px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    transition: transform 0.3s;
}

.contact-info p:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(0.6);
    transition: all 0.3s;
}

.contact-info p:hover .contact-icon {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.contact-info a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #fff;
}

.copyright {
    text-align: right;
}

.copyright p {
    margin: 5px 0;
}

.copyright a {
    color: #999;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.copyright a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-nav h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav a {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
    
    .copyright a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .social-icons {
        gap: 15px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon img {
        width: 25px;
        height: 25px;
    }
}

/* Анимация появления элементов футера */
.footer-nav,
.social-icon,
.contact-info p {
    animation: fadeInUp 0.5s ease backwards;
}

.footer-nav:nth-child(1) { animation-delay: 0.1s; }
.footer-nav:nth-child(2) { animation-delay: 0.2s; }
.footer-nav:nth-child(3) { animation-delay: 0.3s; }
.social-icon:nth-child(1) { animation-delay: 0.4s; }
.social-icon:nth-child(2) { animation-delay: 0.5s; }
.social-icon:nth-child(3) { animation-delay: 0.6s; }
.social-icon:nth-child(4) { animation-delay: 0.7s; }
.social-icon:nth-child(5) { animation-delay: 0.8s; }
.contact-info p:nth-child(1) { animation-delay: 0.9s; }
.contact-info p:nth-child(2) { animation-delay: 1.0s; }
.contact-info p:nth-child(3) { animation-delay: 1.1s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}