﻿/* ============ Футер ============ */
.site-footer {
    background: black;
    color: rgba(255, 255, 255, .7);
    border-top: 3px solid var(--brand-gold);
    padding: 3rem 0 0;
    width: 100%;
}

.site-footer .container {
    width: 100%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}


.site-footer__brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: 1rem;
    flex-wrap: wrap; /* ← перенос если не влезает */
}

.site-footer__brand img {
    height: 44px;
    width: auto;
}

.site-footer__brand span {
    color: var(--brand-gold);
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 1.1rem;
}

.site-footer__text {
    font-size: .9rem;
    line-height: 1.7;
    /* Убрано max-width — теперь адаптивно */
}

.site-footer__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.1rem;
}

.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__list li {
    margin-bottom: .6rem;
}

.site-footer__list a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: .92rem;
    transition: color .2s ease;
}

.site-footer__list a:hover {
    color: var(--brand-gold);
}

.site-footer__contact {
    font-size: .92rem;
    margin-bottom: .6rem;
    display: flex;
    align-items: flex-start; /* ← иконка сверху, текст переносится */
    gap: .6rem;
}

.site-footer__contact i {
    color: var(--brand-gold);
    font-size: 1.05rem;
    flex-shrink: 0; /* ← иконка не сжимается */
    margin-top: .15rem; /* ← выравнивание с первой строкой текста */
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2.5rem;
    padding: 1.2rem 0;
    text-align: center;
    font-size: .85rem;
    color: rgba(255, 255, 255, .45);
}

/* ============ Мобильная адаптация ============ */
@media (max-width: 767.98px) {
    .site-footer {
        padding: 2rem 0 0;
    }

    .site-footer .col-md-4 {
        margin-bottom: 2rem; /* ← отступ между колонками на мобиле */
    }

    .site-footer__brand {
        gap: .5rem;
    }

    .site-footer__brand img {
        height: 36px;
    }

    .site-footer__brand span {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .site-footer__text {
        font-size: .85rem;
        line-height: 1.6;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding: 1.5rem 0 0;
    }

    .site-footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-footer__brand img {
        height: 32px;
    }

    .site-footer__brand span {
        font-size: .95rem;
        letter-spacing: 1px;
    }

    .site-footer__text {
        font-size: .82rem;
    }

    .site-footer__title {
        font-size: .95rem;
        margin-bottom: .9rem;
    }

    .site-footer__list a {
        font-size: .88rem;
    }

    .site-footer__contact {
        font-size: .88rem;
    }

    .site-footer__bottom {
        margin-top: 1.5rem;
        padding: 1rem 0;
        font-size: .8rem;
    }
}

/* Специально для очень узких экранов (360px и меньше) */
@media (max-width: 380px) {
    .site-footer__brand {
        flex-direction: column;
        align-items: flex-start;
        gap: .4rem;
    }

    .site-footer__brand span {
        font-size: .9rem;
    }
}

/* Компактный горизонтальный подвал */
.site-footer.site-footer--compact {
    padding: 0;
    background: #000;
    border-top: 2px solid #d4af37;
}

/* Ссылки и контакты */
.site-footer--compact .footer-compact__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 30px 0;
}

/* Общие настройки списков */
.site-footer--compact .footer-compact__links,
.site-footer--compact .footer-compact__contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Ссылки навигации */
.site-footer--compact .footer-compact__links {
    column-gap: 24px;
    row-gap: 12px;
}

    .site-footer--compact .footer-compact__links a {
        display: inline-block;
        padding: 4px 0;
        color: #e0e0e0;
        font-size: .95rem;
        line-height: 1.5;
        text-decoration: none;
        transition: color .2s;
    }

        .site-footer--compact .footer-compact__links a:hover {
            color: #d4af37;
        }

        .site-footer--compact .footer-compact__links a:focus-visible {
            outline: 2px solid #d4af37;
            outline-offset: 5px;
        }

/* Контакты */
.site-footer--compact .footer-compact__contacts {
    column-gap: 28px;
    row-gap: 12px;
}

    .site-footer--compact .footer-compact__contacts li {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        max-width: 100%;
        color: #bcbcbc;
        font-size: .9rem;
        line-height: 1.5;
    }

    .site-footer--compact .footer-compact__contacts i {
        flex-shrink: 0;
        color: #d4af37;
    }

    .site-footer--compact .footer-compact__contacts span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

/* Нижняя строка */
.site-footer--compact .site-footer__bottom {
    margin: 0;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #999;
    font-size: .8rem;
    line-height: 1.6;
    text-align: center;
}

/* Телефон: контакты друг под другом */
@media (max-width: 575.98px) {
    .site-footer--compact .footer-compact__content {
        padding: 24px 0;
        gap: 16px;
    }

    .site-footer--compact .footer-compact__links {
        column-gap: 20px;
    }

    .site-footer--compact .footer-compact__contacts {
        flex-direction: column;
        gap: 10px;
    }
}

