<?php
.footer-css-guard { display: none; }
.site-footer {
    margin-top: 64px;
    padding-top: 20px;
    padding-bottom: 40px;
    color: #292929;
    background: #f6f7f8;
    font-family: "Averta Cyrilic Rg", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer > .container-xxl {
    background: #f6f7f8;
}

/* ---------- Основной серый блок (как старый футер) ---------- */

.site-footer__main {
    margin: 0 20px;
    padding: 48px 32px 32px;
    background-color: #a2a2a2;
    background-image: linear-gradient(180deg, #f3f2f2 0%, #a2a2a2 100%);
    border-radius: 20px;
}

/* ---------- Главный дисклеймер ---------- */

.site-footer__notice {
    width: 100%;
    padding: 28px;
    color: #292929;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid #ef2f32;
    border-radius: 16px;
}

.site-footer .site-footer__title {
    margin: 0 0 18px;
    color: #171719;
    font-family: "Halvar Breit Rg", Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
}

.site-footer__notice p {
    margin: 0 0 12px;
    color: #333333;
    font-family: "Averta Cyrilic Rg", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
}

.site-footer__notice p:last-child {
    margin-bottom: 0;
}

/* Предупреждение — только жирный текст, без красной плашки */
.site-footer__notice .site-footer__warning {
    margin-top: 18px;
    padding: 0;
    color: #171719;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    background: none;
    border: 0;
    border-radius: 0;
}

/* ---------- Две информационные колонки ---------- */

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    margin-top: 28px;
}

.site-footer__column {
    min-width: 0;
    padding: 24px;
    color: #292929;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
}

.site-footer .site-footer__heading {
    margin: 0 0 16px;
    color: #171719;
    font-family: "Halvar Breit Rg", Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
}

/* ---------- Реквизиты ---------- */

.site-footer__address {
    margin: 0;
    color: #292929;
    font-family: "Averta Cyrilic Rg", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.site-footer__address strong {
    color: #171719;
    font-family: inherit;
    font-weight: 700;
}

.site-footer__support {
    margin: 16px 0 0;
    color: #292929;
    font-family: "Averta Cyrilic Rg", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer__small {
    margin: 16px 0 0;
    color: #4f4f4f;
    font-family: "Averta Cyrilic Rg", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

/* ---------- Ссылки ---------- */

.site-footer a {
    color: #1d64bd;
    font-family: "Averta Cyrilic Rg", Arial, Helvetica, sans-serif;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(29, 100, 189, 0.45);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-footer a:hover {
    color: #ef2f32;
    text-decoration-color: currentColor;
}

.site-footer a:focus-visible {
    color: #ef2f32;
    outline: 2px solid #ef2f32;
    outline-offset: 3px;
}

.site-footer__links {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__links li {
    display: block;
    margin: 0;
    padding: 0;
    color: #292929;
}

.site-footer__links a {
    display: inline;
    font-size: 14px;
    line-height: 1.45;
}

/* Пункт без ссылки (документ ещё не опубликован) */
.site-footer__links-text {
    display: inline;
    color: #4f4f4f;
    font-family: "Averta Cyrilic Rg", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-decoration: none;
}

/* ---------- Нижняя строка (внутри серого блока) ---------- */

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 20px;
    color: #2b2b2b;
    background: none;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.site-footer__copyright {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.site-footer__copyright img {
    display: block;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
}

.site-footer__copyright span {
    color: #2b2b2b;
    font-family: "Averta Cyrilic Rg", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.site-footer .site-footer__bottom-mail {
    flex: 0 0 auto;
    color: #1d64bd;
    font-size: 13px;
}

/* ---------- Планшет ---------- */

@media (max-width: 900px) {
    .site-footer__main {
        padding: 36px 24px 28px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

/* ---------- Телефон ---------- */

@media (max-width: 760px) {
    .site-footer {
        margin-top: 40px;
        padding-top: 10px;
        padding-bottom: 28px;
    }

    .site-footer__main {
        margin: 0 10px;
        padding: 24px 14px 20px;
        border-radius: 16px;
    }

    .site-footer__notice {
        padding: 20px;
        border-radius: 14px;
    }

    .site-footer .site-footer__title {
        font-size: 21px;
        line-height: 1.3;
        text-align: left;
    }

    .site-footer__notice p {
        font-size: 14px;
        line-height: 1.6;
    }

    .site-footer__notice .site-footer__warning {
        font-size: 15px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 18px;
    }

    .site-footer__column {
        padding: 20px;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 20px;
    }
}
