.footer {
    background: #1F2121 !important; /* Темный фон как в Figma */
    color: #FFFFFF !important;
    padding: 60px 0 20px !important; /* Увеличил верхний отступ */
    margin-top: 60px !important;
    width: 100% !important;
    border: none !important;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Основной контент футера */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 40px !important;
    padding-bottom: 40px !important;
    border-bottom: 1px solid #333333;
}

/* Колонки футера */
.footer-column {
    display: flex;
    flex-direction: column;
    padding-top: 20px !important; /* Добавил отступ сверху для всех колонок */
}

/* Заголовки разделов */
.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF !important;
    margin: 0 0 30px 0 !important; /* Большой отступ под заголовком */
    text-transform: uppercase;
    letter-spacing: -0.01em;
    padding-top: 0 !important;
}

/* Навигация */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px !important; /* Отступ между ссылками */
    margin: 0 !important;
    padding: 0 !important;
}

.footer-link {
    color: #A7A9A9 !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    line-height: 1.5;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

.footer-link:hover {
    color: #21808D !important;
}

/* Контакты */
.footer-contact-section {
    margin-bottom: 35px !important; /* Отступ между контактами и соцсетями */
    padding-top: 0 !important;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px !important; /* Отступ между контактами */
    margin: 0 !important;
    padding: 0 !important;
}

.footer-contact-link {
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0 !important;
    margin: 0 !important;
    display: block;
}

.footer-contact-link:hover {
    color: #21808D !important;
}

.footer-address {
    color: #A7A9A9 !important;
    font-size: 14px;
    margin: 8px 0 0 0 !important;
    line-height: 1.5;
    padding: 0 !important;
}

/* Соцсети */
.footer-social-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.footer-social {
    display: flex;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #A7A9A9 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none !important;
}

.social-link:hover {
    color: #FFFFFF !important;
    background: #21808D !important;
    transform: translateY(-2px);
}

/* Логотип и юридическая информация */
.footer-logo {
    margin-bottom: 30px !important; /* Отступ под логотипом */
    padding-top: 0 !important;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 600;
    color: #21808D !important;
    line-height: 1.2;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-legal-info {
    color: #A7A9A9 !important;
    font-size: 12px;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-legal-info p {
    margin: 0 0 12px 0 !important;
}

.footer-legal-info p:last-child {
    margin-bottom: 0 !important;
}

/* Нижняя часть футера */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px !important;
    background: transparent !important;
    padding-top: 20px !important;
    margin: 0 !important;
}

.footer-copyright {
    color: #A7A9A9 !important;
    font-size: 12px;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-policy {
    display: flex;
    gap: 24px !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.policy-link {
    color: #A7A9A9 !important;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    white-space: nowrap;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.policy-link:hover {
    color: #21808D !important;
}

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

/* Планшеты (768px - 1023px) */
@media (max-width: 1023px) {
    .footer {
        padding: 50px 0 15px !important;
    }
    
    .footer-container {
        padding: 0 16px;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px !important;
        margin-bottom: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .footer-column:last-child {
        grid-column: 1 / -1;
        text-align: center;
        border-top: 1px solid #333333;
        padding-top: 30px !important;
    }
    
    .footer-column {
        padding-top: 15px !important;
    }
    
    .footer-title {
        margin-bottom: 25px !important;
    }
    
    .footer-nav {
        gap: 12px !important;
    }
    
    .footer-contacts {
        gap: 12px !important;
    }
    
    .footer-logo {
        margin-bottom: 25px !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px !important;
        text-align: center;
    }
    
    .footer-policy {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px !important;
    }
}

/* Мобильные устройства (до 767px) */
@media (max-width: 767px) {
    .footer {
        padding: 40px 0 10px !important;
        margin-top: 40px !important;
    }
    
    .footer-container {
        padding: 0 12px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px !important;
        margin-bottom: 20px !important;
        padding-bottom: 20px !important;
    }
    
    .footer-column {
        text-align: center;
        padding-top: 10px !important;
    }
    
    .footer-column:last-child {
        border-top: 1px solid #333333;
        padding-top: 25px !important;
        grid-column: auto;
    }
    
    .footer-logo-text {
        font-size: 20px;
    }
    
    .footer-title {
        font-size: 14px;
        margin-bottom: 20px !important;
    }
    
    .footer-nav {
        gap: 10px !important;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .footer-contact-link {
        font-size: 12px;
    }
    
    .footer-address {
        font-size: 12px;
    }
    
    .footer-social {
        justify-content: center;
        gap: 12px !important;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .footer-bottom {
        gap: 12px !important;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
    
    .footer-policy {
        flex-direction: column;
        gap: 8px !important;
    }
    
    .policy-link {
        font-size: 11px;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    .footer {
        padding: 30px 0 8px !important;
    }
    
    .footer-container {
        padding: 0 8px;
    }
    
    .footer-main {
        gap: 25px !important;
        margin-bottom: 16px !important;
        padding-bottom: 16px !important;
    }
    
    .footer-logo-text {
        font-size: 18px;
    }
    
    .footer-legal-info {
        font-size: 11px;
    }
    
    .footer-social {
        gap: 8px !important;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
}

/* Поддержка touch устройств */
@media (hover: none) and (pointer: coarse) {
    .footer-link:hover,
    .footer-contact-link:hover,
    .social-link:hover,
    .policy-link:hover {
        color: inherit !important;
        background: inherit !important;
        transform: none;
    }
}

/* Улучшенная доступность */
@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .footer-contact-link,
    .social-link,
    .policy-link {
        transition: none;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* Фокус для доступности */
.footer-link:focus-visible,
.footer-contact-link:focus-visible,
.social-link:focus-visible,
.policy-link:focus-visible {
    outline: 2px solid #21808D !important;
    outline-offset: 2px;
    border-radius: 4px;
}

/* СИЛЬНЫЕ СТИЛИ ДЛЯ ПЕРЕОПРЕДЕЛЕНИЯ ЛЮБЫХ ДРУГИХ СТИЛЕЙ */
body .footer,
html .footer,
* .footer {
    background: #1F2121 !important;
    color: #FFFFFF !important;
}

body .footer *,
html .footer * {
    background: transparent !important;
}

body .footer-container,
html .footer-container {
    background: transparent !important;
}





/* Мобильные устройства */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-column {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .footer-nav {
        align-items: center;
    }
    
    .footer-contacts {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Центрируем логотип в мобильной версии */
    .footer-logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    /* Важное изменение: делаем логотип по центру */
    .footer-column:nth-child(3) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .logo-image {
        margin: 0 auto; /* Центрирование по горизонтали */
    }
    
    .footer-legal-info {
        text-align: center;
        width: 100%;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    /* Уменьшаем отступ у заголовков в мобильной версии */
    .footer-title {
        margin-bottom: 5px; /* Еще немного меньше для мобильных */
    }
}

