/* ----------------------------
   СТИЛИ ФУТЕРА — РОВНЫЕ КОЛОНКИ, СИММЕТРИЯ
   ---------------------------- */

.site-footer {
    background-color: #FFFFFF;
    color: #555;
    font-family: 'Open Sans', sans-serif;
    padding-top: 3rem;
    border-top: 1px solid #E8E4E0;
    margin-top: 4rem;
}

/* Сетка с равными колонками */
.footer-grid {
    display: flex;
    gap: 2.5rem; /* Единый зазор */
}

/* --- ОБНОВЛЁННЫЙ СТИЛЬ ДЛЯ ЦЕНТРИРОВАНИЯ --- */

.footer-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;        /* ← Центрирует ВСЁ по горизонтали */
    text-align: center;         /* ← Выравнивает текст по центру */
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 0.3rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 50%;               /* ← Сдвигаем позицию полоски */
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #D4C8B5;
    transform: translateX(-50%); /* ← Центрируем полоску относительно заголовка */
}

.footer-text,
.footer-contact {
    font-size: 0.95em;
    line-height: 1.7;
    color: #555;
    margin: 0;
    text-align: center;      /* ← Убедимся, что текст по центру */
}

.footer-contact {
    font-style: normal;
}

.footer-contact a {
    color: #D4C8B5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #A89A80;
}

/* Соцсети — центрированный список */
.social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.2rem;
    justify-content: center;   /* ← Центрирует иконки */
    flex-wrap: wrap;
}


.social-item {
    display: flex;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F5F1ED;
    border: 1px solid #E8E4E0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: #D4C8B5;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(212, 200, 181, 0.2);
}

.social-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-link:hover .social-icon {
    opacity: 1;
}

/* Копирайт */
.footer-bottom {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.2rem 0;
    font-size: 0.9em;
    color: #888;
    border-top: 1px solid #E8E4E0;
}

/* Адаптивность — на малых экранах колонки в стек */
@media (max-width: 900px) {
    .footer-grid {
        flex-direction: column;
        gap: 1.8rem;
        text-align: center;
    }

    .footer-section {
        min-width: 100%;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-list {
        justify-content: center;
    }

    .footer-contact,
    .footer-text {
        text-align: center;
    }
}
