/**
 * Стили подвала (Footer) ЧПОУ «ВСТ ТС»
 */

.site-footer {
    background-color: var(--vstts-header-bg); /* #47667b */
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 40px;
    padding-bottom: 30px;
}

/* ==========================================================================
   1. ХОВЕРЫ И АКТИВЫ ССЫЛОК
   ========================================================================== */
.site-footer a,
.footer-legal-link,
.footer-map-link,
.footer-email-link,
.footer-phone-item {
    transition: opacity 0.15s ease, text-decoration 0.15s ease, color 0.15s ease;
}

.site-footer a:hover,
.footer-legal-link:hover,
.footer-map-link:hover,
.footer-email-link:hover,
.footer-phone-item:hover {
    opacity: 0.8;
    text-decoration: none;
    color: var(--vstts-footer-link, #A8CEF1);
}

.site-footer a:active,
.footer-legal-link:active,
.footer-map-link:active,
.footer-email-link:active,
.footer-phone-item:active {
    opacity: 0.5;
    text-decoration: none;
    color: var(--vstts-footer-link, #A8CEF1);
}

/* ==========================================================================
   2. БРЕНДИНГ И ЛОГОТИП
   ========================================================================== */
.footer-brand-link {
    color: #ffffff;
    text-decoration: none;
}

.footer-brand-link:not([href]) {
    cursor: default;
}

.footer-brand-link:not([href]):hover,
.footer-brand-link:not([href]):active {
    opacity: 1;
}

.footer-brand-logo {
    max-height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 12px;
}

.footer-brand-title {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 260px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 24px;
}

/* ==========================================================================
   3. КОНТАКТЫ И ССЫЛКИ
   ========================================================================== */
.footer-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-contact-item {
    margin-bottom: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.footer-map-link,
.footer-email-link {
    color: var(--vstts-footer-link, #A8CEF1);
    text-decoration: underline;
}

.footer-map-link {
    font-weight: 500;
    margin-left: 6px;
}

/* Телефоны */
.footer-phone-group {
    margin-bottom: 14px;
}

.footer-phone-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-phone-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 14px;
}

.footer-phone-icon {
    font-size: 16px;
    color: var(--vstts-footer-link, #A8CEF1);
    flex-shrink: 0;
}

/* Режим работы */
.footer-schedule-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   4. СОЦСЕТИ
   ========================================================================== */
.footer-social-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-social-btn:hover {
    opacity: 0.8;
}

.footer-social-btn:active {
    opacity: 0.5;
}

.footer-social-btn svg,
.footer-social-btn img {
    display: block;
    width: 32px;
    height: 32px;
}

/* Юридические ссылки */
.footer-legal-group {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-legal-link {
    font-size: 13px;
    color: var(--vstts-footer-link, #A8CEF1);
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    cursor: pointer;
    line-height: 1.35;
    display: inline-block;
}

/* ==========================================================================
   5. АДАПТИВНОЕ ЦЕНТРИРОВАНИЕ ДЛЯ УЗКИХ ЭКРАНОВ (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
    .site-footer {
        text-align: center;
    }

    .footer-title {
        margin-top: 20px;
        text-align: center;
    }

    /* Логотип и название центрируются */
    .footer-brand-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand-title {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-copyright {
        text-align: center;
        margin-top: 16px;
    }

    /* Контакты */
    .footer-contact-item {
        text-align: center;
    }

    .footer-legal-group {
        align-items: center;
        text-align: center;
    }

    .footer-legal-link {
        text-align: center;
    }

    /* Телефоны с иконками встают ровно по центру */
    .footer-phone-group-title {
        text-align: center;
    }

    .footer-phone-item {
        justify-content: center;
    }

    /* Соцсети и график выравниваются по центру */
    .footer-social-list {
        justify-content: center;
        margin: 0 auto 12px auto;
    }

    .footer-schedule-text {
        text-align: center;
    }
}

/* ==========================================================================
   КОЛОНКА РЕЖИМА РАБОТЫ И СОЦСЕТЕЙ
   ========================================================================== */
.footer-schedule-box {
    display: flex;
    flex-direction: column;
}

.footer-schedule-box .footer-title {
    margin-bottom: 12px;
}

.footer-schedule-box .footer-schedule-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-schedule-box .footer-social-wrapper {
    margin-bottom: 0;
}

/* На экранах >= 992px: Заголовок и иконки стоят на верхней линии, текст под ними */
@media (min-width: 992px) {
    .footer-schedule-box {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "title social"
            "schedule schedule";
        align-items: center;
        row-gap: 16px;
    }

    .footer-schedule-box .footer-title {
        grid-area: title;
        margin-bottom: 0;
    }

    .footer-schedule-box .footer-social-wrapper {
        grid-area: social;
        margin-bottom: 0;
    }

    .footer-schedule-box .footer-schedule-text {
        grid-area: schedule;
        margin-bottom: 0;
    }
}

/* На экранах < 992px: Иконки центрируются и аккуратно стоят ПОД текстом графика */
@media (max-width: 991px) {
    .footer-schedule-box {
        text-align: center;
    }

    .footer-schedule-box .footer-title {
        margin-top: 20px;
        text-align: center;
    }

    .footer-schedule-box .footer-schedule-text {
        text-align: center;
        margin-bottom: 16px;
    }

    .footer-schedule-box .footer-social-wrapper {
        display: flex;
        justify-content: center;
    }

    .footer-schedule-box .footer-social-list {
        justify-content: center;
    }
}
