/**
 * FOOTER STYLES
 * Футер по макету: логотип / меню / контакты / соцсети
 */

/* ========== ФУТЕР ========== */
.site-footer {
    background: var(--color-secondary);
    color: var(--color-text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0 24px;
    margin-top: 0;
}

/* Верхняя часть */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Логотип */
.footer-logo-block {
    flex-shrink: 0;
}

.footer-logo-block img {
    max-width: 200px;
    height: auto;
}

/* Логотип с текстом рядом */
.footer-logo-block .site-logo .logo-img {
    max-height: 56px;
    max-width: 200px;
}

/* Меню футера */
.footer-nav .footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav .footer-menu li {
    margin: 0;
}

.footer-nav .footer-menu a {
    font-size: 13px;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav .footer-menu a:hover,
.footer-nav .footer-menu .current-menu-item > a {
    color: var(--color-white);
}

/* Контакты */
.footer-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-phone {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-phone:hover {
    color: var(--color-primary);
}

.footer-phone-block small {
    display: block;
    font-size: 11px;
    color: var(--color-text-dim);
}

.footer-email {
    font-size: 14px;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--color-primary);
}

/* Соцсети */
.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials .social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-socials .social-link svg {
    width: 16px;
    height: 16px;
    fill: var(--color-white);
    transition: fill 0.3s ease;
}

.footer-socials .social-link .social-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-socials .social-link:hover {
    /* Фон hover управляется настройкой «Цвет фона кружка» в Customizer */
    transform: translateY(-2px);
}

/* Нижняя строка */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 12px;
    color: var(--color-text-dim);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 12px;
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav .footer-menu {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 36px 0 20px;
    }

    .footer-top {
        align-items: center;
        text-align: center;
    }

    .footer-nav .footer-menu {
        justify-content: center;
    }

    .footer-contact,
    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Экраны ≤400px */
@media (max-width: 400px) {
    .site-footer {
        padding: 30px 0 16px;
    }

    .footer-nav .footer-menu {
        flex-direction: column;
        gap: 8px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }

    .footer-copy {
        font-size: 11px;
    }
}
