/* Стили для футера */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f8f9fa;
    margin-top: auto;
    width: 100%;
    border-top: 2px solid #e84118;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 1.5vw, 20px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 0 2rem;
}

.footer-section {
    padding: 0 1rem;
}

.footer-title {
    color: #e84118;
    font-size: 1.3rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e84118;
    font-weight: 600;
}

/* Контактная информация */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(232, 65, 24, 0.1);
    border-color: #e84118;
    transform: translateY(-2px);
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    color: #bdc3c7;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.contact-link {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #e84118;
}

/* Юридические ссылки */
.legal-links-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.legal-link {
    color: #f8f9fa;
    text-decoration: none;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
    border: 1px solid #333;
}

.legal-link:hover {
    background: rgba(232, 65, 24, 0.1);
    border-left-color: #e84118;
    border-color: #e84118;
    transform: translateX(5px);
}

/* Информация о компании */
.company-description {
    line-height: 1.6;
    color: #bdc3c7;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #f8f9fa;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-link:hover {
    background: #e84118;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 65, 24, 0.4);
    border-color: #e84118;
}

/* Нижняя часть футера */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    text-align: center;
}

.copyright {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
    font-weight: 500;
}

/* АДАПТИВНОСТЬ */

/* Планшеты */
@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 2.5rem 0 1.5rem;
    }
}

/* Большие мобильные */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0 1rem;
    }

    .footer-section {
        padding: 0;
        text-align: center;
    }

    .legal-links-container {
        align-items: center;
    }

    .legal-link {
        text-align: center;
        min-width: 200px;
    }

    .social-links {
        justify-content: center;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 480px) {
    .footer-container {
        padding: 0 10px;
    }

    .footer-content {
        gap: 1.5rem;
        padding: 1.5rem 0 1rem;
    }

    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .contact-item {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .legal-link {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }

    .company-description {
        font-size: 0.9rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .footer-bottom {
        padding: 1rem 0;
    }

    .copyright {
        font-size: 0.85rem;
    }
}

/* Очень маленькие мобильные */
@media screen and (max-width: 360px) {
    .footer-content {
        gap: 1.2rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .contact-label {
        font-size: 0.8rem;
    }

    .contact-link {
        font-size: 0.9rem;
    }

    .legal-link {
        min-width: 180px;
        font-size: 0.85rem;
    }
}

/* Улучшенная поддержка касаний */
@media (hover: none) and (pointer: coarse) {
    .legal-link:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
        box-shadow: none;
    }

    .contact-item:hover {
        transform: none;
    }

    .legal-link:active,
    .social-link:active,
    .contact-item:active {
        transform: scale(0.98);
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}

/* Специальные стили для активного состояния */
.legal-link:focus,
.social-link:focus,
.contact-link:focus {
    outline: 2px solid #e84118;
    outline-offset: 2px;
}