/* =========================
   Footer
========================= */

.site-footer {
    background: #f6f7f9;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #1f2937;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px 24px;
}

/* =========================
   Верхняя часть
========================= */

.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    margin-bottom: 28px;
}

/* =========================
   Бренд
========================= */

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    color: #000;
}

.footer-logo svg {
    height: 42px;
    width: auto;
    fill: currentColor;
}

.footer-divider {
    width: 1px;
    height: 32px;
    background: #d1d5db;
}

.footer-terms {
    max-width: 420px;
    font-size: 13px;
    line-height: 1.45;
    color: #4b5563;
    text-decoration: none;
}

.footer-terms:hover {
    text-decoration: underline;
}

/* =========================
   Меню
========================= */

.footer-menu-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
}

.footer-menu-list a:hover {
    text-decoration: underline;
}

/* =========================
   Контакты
========================= */

.footer-contacts {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 64px;
    margin-bottom: 28px;
}

.footer-contacts__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contacts__label {
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.footer-contacts__value {
    color: #1f2937;
    line-height: 1.5;
}

.footer-contacts__value a {
    color: inherit;
    text-decoration: none;
}

.footer-contacts__value a:hover {
    text-decoration: underline;
}

/* =========================
   Юридическая информация
========================= */

.footer-legal {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.55;
    margin-bottom: 20px;
}

/* =========================
   Низ
========================= */

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

/* =========================
   Адаптив
========================= */

@media (max-width: 1024px) {
    .footer-contacts {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* =========================
   МОБИЛКА — КРАСИВО
========================= */

@media (max-width: 768px) {

    .footer-inner {
        padding: 32px 16px 20px;
    }

    /* Верх */

    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .footer-logo svg {
        height: 48px;
    }

    .footer-divider {
        display: none;
    }

    .footer-terms {
        max-width: 100%;
        font-size: 13px;
    }

    /* Меню */

    .footer-menu-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 18px;
        margin-top: 4px;
    }

    /* Контакты — как карточки */

    .footer-contacts {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 24px;
        text-align: center;
    }

    .footer-contacts__item {
        align-items: center;
        padding: 12px 8px;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    }

    .footer-contacts__label {
        font-size: 13px;
    }

    .footer-contacts__value {
        font-size: 14px;
    }

    /* Юр */

    .footer-legal {
        text-align: center;
        font-size: 12.5px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    /* Низ */

    .footer-bottom {
        text-align: center;
        font-size: 12.5px;
    }

    /* ФИКСЫ */

    .footer-contacts__value,
    .footer-legal {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}
