/**
 * footer.css — Стили подвала сайта
 *
 * Подключается в /bitrix/templates/empty/header.php
 * Методология: БЭМ
 *
 * Адаптивность:
 *   Desktop (>= 1024px): 4 колонки
 *   Tablet (>= 640px):   2 колонки
 *   Mobile (< 640px):    1 колонка
 */

/* ========================================
   БЛОК: footer
   ======================================== */

.footer {
    background-color: #2d4657;
    color: #ffffff;
    padding: 40px 0;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #ffffff;
}

/* ========================================
   ЭЛЕМЕНТ: контейнер
   ======================================== */

.footer__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ЭЛЕМЕНТ: ряд колонок
   ======================================== */

.footer__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Планшет: 2 колонки */
@media (min-width: 640px) {
    .footer__row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Десктоп: 4 колонки */
@media (min-width: 1024px) {
    .footer__row {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* ========================================
   ЭЛЕМЕНТ: колонка
   ======================================== */

.footer__col {
    display: flex;
    flex-direction: column;
}

/* На десктопе колонки 2-4 имеют отступ сверху (под логотип) */
@media (min-width: 1024px) {
    .footer__col:not(:first-child) {
        padding-top: 76px;
    }
}

/* ========================================
   ЭЛЕМЕНТ: логотип
   ======================================== */

.footer__logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer__logo img {
    width: 188px;
    height: auto;
}

@media (min-width: 1024px) {
    .footer__logo {
        margin-bottom: 70px;
    }
}

/* ========================================
   ЭЛЕМЕНТ: копирайт
   ======================================== */

.footer__copyright {
    font-size: 14px;
    line-height: 1.6;
    color: #abb5be;
}

/* ========================================
   ЭЛЕМЕНТ: заголовок колонки
   ======================================== */

.footer__title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .footer__title {
        margin-bottom: 40px;
    }
}

/* ========================================
   ЭЛЕМЕНТ: навигация
   ======================================== */

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

@media (min-width: 1024px) {
    .footer__nav {
        gap: 40px;
    }
}

/* ========================================
   ЭЛЕМЕНТ: список контактов
   ======================================== */

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ========================================
   ЭЛЕМЕНТ: строка контакта (иконка + текст)
   ======================================== */

.footer__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer__icon {
    width: 12px;
    height: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer__text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: #abb5be;
}

.footer__text:hover {
    color: #ffffff;
}

/* ========================================
   ЭЛЕМЕНТ: социальные сети
   ======================================== */

.footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer__social-link {
    width: 25px;
    height: 25px;
    display: block;
    transition: filter 0.2s ease;
}

.footer__social-link:hover {
    filter: brightness(1.5);
}

.footer__social-link img {
    width: 100%;
    height: 100%;
}

/* ========================================
   ЭЛЕМЕНТ: нижняя строка
   ======================================== */

.footer__bottom {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(107, 114, 128, 0.5);
    text-align: center;
}

@media (min-width: 1024px) {
    .footer__bottom {
        text-align: left;
    }
}

.footer__bottom-links {
    font-size: 14px;
    line-height: 1.6;
    color: #abb5be;
}

.footer__bottom-links a {
    color: #abb5be;
}

.footer__bottom-links a:hover {
    color: #ffffff;
}

.footer__separator {
    margin: 0 8px;
}
