.site-footer {
    position: relative;
}

/* Top bar */
.footer-topbar {
    background: #ff6a00;
    /* брендовый оранжевый из шаблона */
    color: #fff;
    padding: 16px 0;
}

.footer-info-item {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-weight: 600;
}

.footer-info-item .label {
    opacity: .9;
    margin-right: 4px;
}

.footer-info-item a.value {
    color: #fff;
    text-decoration: none;
}

/* Map */
.footer-map {
    padding: 32px 0;
}

.map-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.map-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-actions {
    position: absolute;
    right: 16px;
    bottom: 16px;
}

/* Bottom */
.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, .06);
    padding: 18px 0;
}

.bottom-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.bottom-left .custom-text {
    margin: 0;
    color: #555;
}

.footer-legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 18px;
}

.footer-legal a {
    text-decoration: none;
    font-weight: 600;
    color: #222;
}

.bottom-right .copy {
    margin: 0;
    text-align: right;
    color: #777;
}

/* a11y hovers */
.footer-legal a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 767px) {
    .footer-topbar {
        text-align: center;
    }

    .bottom-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bottom-right .copy {
        text-align: center;
    }
}

.map-card .ratio {
    background: #f6f6f6;
    /* нейтральная подложка */
}

.footer-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.footer-map-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    padding: 16px;
    text-align: center;
    background: #f6f6f6;
}

.footer-map-ratio {
    position: relative;
}

.footer-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.footer-map-empty {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #666;
}

/* Map */
.footer-map {
    padding: 24px 0;
    /* можно чуть меньше, чем было 32 */
}

.map-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

/* 👇 Новый контейнер вместо ratio-16x9 */
.footer-map-frame {
    width: 100%;
    height: 260px;
    /* было примерно 450-500 по 16:9 — это уже ~в 2 раза ниже */
    background: #f3f3f3;
}

/* iframe всегда занимает контейнер */
.footer-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* если карты нет */
.footer-map-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #666;
    font-weight: 600;
    text-align: center;
}

/* Mobile — ещё ниже */
@media (max-width: 767px) {
    .footer-map-frame {
        height: 200px;
    }
}

/* Footer bottom colors */

.footer-bottom .bottom-left .custom-text {
    color: #ffffff;
}

.footer-bottom .bottom-right .copy {
    color: #ffffff;
}

/* центральные ссылки остаются черными */
.footer-bottom .footer-legal a {
    color: #000000;
}

/* можно добавить hover */
.footer-bottom .footer-legal a:hover {
    color: #222;
}

html {
    scroll-behavior: smooth;
}