/* footer.css - Подвал с улучшенной читаемостью */

/* ===== БАЗОВЫЕ ПЕРЕМЕННЫЕ ДЛЯ ФУТЕРА ===== */
:root {
    --footer-bg: #0d1b2a;
    --footer-text-primary: #ffffff;
    --footer-text-secondary: #c8d0dc;
    --footer-text-tertiary: #8fa0b5;
    --footer-border: rgba(255, 255, 255, 0.08);
    --footer-link-hover: #F9C100;
    --footer-social-bg: rgba(255, 255, 255, 0.08);
    --footer-social-hover: #F9C100;
}

.footer {
    background: var(--footer-bg, #0d1b2a);
    padding: 48px 0 24px;
    margin-top: 60px;
    font-size: 14px;
    color: var(--footer-text-secondary, #c8d0dc);
    border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.08));
}

.footer-container {
    max-width: var(--container-max-width, 1280px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 20px);
}

/* ===== СЕТКА ФУТЕРА ===== */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

/* ===== ЗАГОЛОВКИ КОЛОНОК ===== */
.footer-col h3,
.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--footer-text-primary, #ffffff);
    letter-spacing: 0.3px;
}

/* ===== ССЫЛКИ В ФУТЕРЕ ===== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text-secondary, #c8d0dc);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
    opacity: 0.85;
}

.footer-links a:hover {
    color: var(--footer-link-hover, #F9C100);
    opacity: 1;
    padding-left: 4px;
}

/* ===== ЛОГОТИП И ОПИСАНИЕ ===== */
.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-description {
    color: var(--footer-text-secondary, #c8d0dc);
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-size: 14px;
    opacity: 0.8;
}

/* ===== КОНТАКТЫ ===== */
.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--footer-text-secondary, #c8d0dc);
    font-size: 14px;
}

.footer-contacts li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--footer-link-hover, #F9C100);
    stroke-width: 1.5;
    opacity: 0.8;
}

.footer-contacts a {
    color: var(--footer-text-secondary, #c8d0dc);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contacts a:hover {
    color: var(--footer-link-hover, #F9C100);
}

/* ===== СОЦИАЛЬНЫЕ ИКОНКИ ===== */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--footer-social-bg, rgba(255, 255, 255, 0.08));
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-social a:hover {
    background: var(--footer-social-hover, #F9C100);
    border-color: var(--footer-social-hover, #F9C100);
    transform: translateY(-2px);
}

.footer-social a:hover svg {
    stroke: #0d1b2a;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--footer-text-secondary, #c8d0dc);
    stroke-width: 1.8;
    transition: stroke 0.2s ease;
}

/* ===== ПАРТНЕРЫ ===== */
.footer-partners {
    grid-column: 1 / -1;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.08));
}

.footer-partners-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--footer-text-primary, #ffffff);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}


.footer-partners-list img {
    max-height: 48px;
    width: auto;
    display: block;
    background: transparent;
    border-radius: 0;
    transition: all 0.3s ease;
}


/* ===== НИЖНЯЯ ЧАСТЬ ФУТЕРА ===== */
.footer-bottom {
    border-top: 1px solid var(--footer-border, rgba(255, 255, 255, 0.08));
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    color: var(--footer-text-tertiary, #8fa0b5);
    font-size: 13px;
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--footer-text-tertiary, #8fa0b5);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    opacity: 0.7;
}

.footer-bottom-links a:hover {
    color: var(--footer-link-hover, #F9C100);
    opacity: 1;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 0 16px;
        margin-top: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-partners-list {
        gap: 20px;
    }

    .footer-partners-list img {
        max-height: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-partners-list {
        gap: 15px;
        flex-wrap: wrap;
    }

    .footer-partners-list li {
        flex: 0 0 auto;
    }

    .footer-partners-list img {
        max-height: 28px;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links a {
        font-size: 13px;
    }
}