/* Футер — общий элемент всех страниц */

/* ============================================
   FOOTER (новая вёрстка rf) — основная, включена для всех
   ============================================ */

.rf-footer {
    margin-top: 48px;
    background: linear-gradient(135deg, #1a3324 0%, #2d6a3e 100%); /* --rf-accent-deep → --rf-accent */
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
    line-height: 1.55;
    font-size: 15px;
}

.rf-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0 40px;
}

.rf-footer__logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 12px;
}

.rf-footer__tagline {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .75);
    margin: 0 0 16px;
}

.rf-footer__heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .55);
    margin: 0 0 14px;
    border-left: 2px solid #fff;
    padding-left: 10px;
    line-height: 1.4;
}

.rf-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rf-footer__list a {
    display: inline-block;
    padding: 4px 0;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    text-decoration: none;
    transition: color .15s;
}

.rf-footer__list a:hover,
.rf-footer__list a:focus {
    color: #fff;
    text-decoration: underline;
}

/* Контактные карточки: две в ряд */
.rf-footer__contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rf-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: background .15s, border-color .15s, transform .15s;
}

.rf-footer__contact:hover,
.rf-footer__contact:focus {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .28);
}

.rf-footer__contact--primary {
    background: #fff;
    border-color: #fff;
}

.rf-footer__contact--primary:hover,
.rf-footer__contact--primary:focus {
    background: #f6f8f6; /* --rf-surface */
    transform: translateY(-1px);
}

.rf-footer__contact-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.rf-footer__contact-icon svg {
    width: 19px;
    height: 19px;
}

.rf-footer__contact--primary .rf-footer__contact-icon {
    background: #2d6a3e; /* --rf-accent */
}

.rf-footer__contact-body {
    min-width: 0;
}

.rf-footer__contact-label {
    display: block;
    font-size: 11.5px;
    line-height: 1.3;
    color: rgba(255, 255, 255, .65);
}

.rf-footer__contact--primary .rf-footer__contact-label {
    color: #5a655a; /* --rf-text-muted */
}

.rf-footer__contact-handle {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
    word-break: break-word;
}

.rf-footer__contact--primary .rf-footer__contact-handle {
    color: #1f4a2c; /* --rf-accent-dark */
}

/* Нижняя строка */
.rf-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding: 16px 0 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
}

.rf-footer__copyright {
    margin: 0;
}

.rf-footer__copyright a {
    color: rgba(255, 255, 255, .7);
}

/* Адаптив футера */
@media (max-width: 992px) {
    .rf-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 36px 0 32px;
    }

    .rf-footer__col--contacts {
        grid-column: 1 / -1;
    }

    /* колонка контактов тянется на всю строку — ограничиваем лого,
       иначе при 3:1 он раздувается по высоте */
    .rf-footer__logo {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .rf-footer__grid {
        grid-template-columns: 1fr;
    }
}
