.site-footer {
    background: linear-gradient(135deg, #2E5E7E, #4A6FA5);
    color: white;
    padding: 70px 5% 30px;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    max-width: 1500px;
    margin: 0 auto;
}

/* Секция с логотипом и текстом */
.footer-brand-section {
    display: flex;
    flex-direction: column;
}

.footer-logo-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo-image {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFB87C;
    flex-shrink: 0;
}

.footer-logo-text {
    flex: 1;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #FFB87C;
}

.footer-description {
    opacity: 0.9;
    line-height: 1.6;
    max-width: 360px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column ul {
    padding-left: 0.5rem;
}

.footer-links,
.footer-contacts {
    list-style: none;
}

.footer-links li,
.footer-contacts li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-links a,
.footer-contacts a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-contacts a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contacts i {
    margin-right: 10px;
    color: #FFB87C;
}

/* Нижняя строка */
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-bottom a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== Адаптив ===== */
@media (max-width: 992px) {
    .site-footer {
        padding: 55px 5% 26px;
    }

    /* Бренд занимает всю строку, две колонки ссылок — под ним */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 38px;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
    }

    .footer-logo-image {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 44px 6% 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 18px;
    }

    .footer-logo-image {
        width: 130px;
        height: 130px;
    }

    .footer-description {
        max-width: none;
    }

    .footer-column h4 {
        margin-bottom: 14px;
    }

    .footer-bottom {
        margin-top: 32px;
        font-size: 0.9rem;
    }
}
/* ---- Небольшие телефоны (≤400px) ---- */
@media (max-width: 400px) {
    .site-footer {
        padding: 36px 5% 20px;
    }

    .footer-container {
        gap: 24px;
    }

    .footer-logo-image {
        width: 112px;
        height: 112px;
        border-width: 2px;
    }

    .footer-logo-container {
        gap: 14px;
    }

    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .footer-column ul {
        padding-left: 0;
    }

    .footer-links li,
    .footer-contacts li {
        margin-bottom: 10px;
        /* Адрес в две строки — иконка должна остаться у первой */
        align-items: flex-start;
        overflow-wrap: anywhere;
    }

    .footer-contacts i {
        margin-top: 0.3em;
        flex-shrink: 0;
    }

    .footer-bottom {
        margin-top: 26px;
        font-size: 0.88rem;
    }
}
