.mff-site-footer {
    margin-bottom: 0;
    background: #102f3b;
    color: #fff;
    direction: rtl
}

.mff-site-footer__main {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
    padding: 70px 0 55px;
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) repeat(2, minmax(160px, 1fr));
    gap: 55px
}

.mff-site-footer__brand {
    max-width: 430px
}

.mff-site-footer__mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #389E87, #1A6788);
    font-size: 23px;
    font-weight: 900;
    margin-bottom: 18px
}

.mff-site-footer h2 {
    margin: 0 0 10px;
    font-size: 25px
}

.mff-site-footer__brand p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    line-height: 1.9
}

.mff-site-footer__column h3 {
    margin: 5px 0 18px;
    font-size: 16px
}

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

.mff-site-footer__column a {
    color: rgba(255, 255, 255, .68);
    text-decoration: none;
    transition: .2s
}

.mff-site-footer__column a:hover {
    color: #fff
}

.mff-site-footer__social {
    display: flex;
    gap: 8px;
    margin-top: 22px
}

.mff-site-footer__social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-weight: 800
}

.mff-site-footer__bottom {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, .58);
    font-size: 13px
}

.mff-site-footer__bottom a {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px
}

@media(max-width:800px) {
    .mff-site-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
        padding: 50px 0 35px
    }

    .mff-site-footer__brand {
        grid-column: 1/-1;
        max-width: none
    }

    .mff-site-footer__bottom {
        align-items: flex-start
    }

    .mff-site-footer__bottom span {
        max-width: 80%
    }
}

@media(max-width:520px) {
    .mff-site-footer__main {
        grid-template-columns: 1fr;
        width: calc(100% - 36px);
        padding: 42px 0 28px
    }

    .mff-site-footer__bottom {
        width: calc(100% - 36px)
    }
}

@media(max-width:520px) {
    .mff-site-footer__main {
        gap: 28px
    }

    .mff-site-footer h2 {
        font-size: 22px
    }

    .mff-site-footer__column h3 {
        margin-bottom: 12px
    }

    .mff-site-footer__column ul {
        gap: 9px
    }

    .mff-site-footer__bottom {
        font-size: 12px
    }
}

/* V5 independent footer styling */
.mff-site-footer {
    background: var(--mff-footer-bg, #102f3b);
    color: var(--mff-footer-text, #fff)
}

.mff-site-footer__logo {
    height: auto;
    max-height: var(--mff-footer-logo-desktop, 64px);
    max-width: var(--mff-footer-logo-max, 220px);
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 18px
}

.mff-site-footer__brand p,
.mff-site-footer__bottom {
    color: var(--mff-footer-muted, rgba(255, 255, 255, .68))
}

.mff-site-footer__column a {
    color: var(--mff-footer-link, rgba(255, 255, 255, .68))
}

.mff-site-footer__column a:hover {
    color: var(--mff-footer-link-hover, #fff) !important
}

.mff-site-footer__social a {
    background: var(--mff-social-bg, rgba(255, 255, 255, .08));
    transition: background .2s, color .2s, transform .2s
}

.mff-site-footer__social a:hover {
    background: var(--mff-social-hover, #389E87) !important;
    color: #fff !important;
    transform: translateY(-2px)
}

.mff-site-footer__bottom a {
    background: var(--mff-back-bg, rgba(255, 255, 255, .08))
}

.mff-site-footer__bottom a:hover {
    background: var(--mff-back-hover, #389E87) !important
}

@media(max-width:520px) {
    .mff-site-footer__logo {
        max-height: var(--mff-footer-logo-mobile, 50px)
    }
}

.mff-site-footer__social a svg {
    width: 18px;
    height: 18px;
    display: block
}

.mff-site-footer__social a:hover {
    border-color: transparent !important
}

.mff-site-footer__social a,
.mff-site-footer__social a svg {
    color: #fff
}

/* Full-width footer with equal side padding for all inner elements */
.mff-site-footer {
    --mff-footer-side: var(--mff-side, clamp(20px, 5vw, 80px));
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box
}

.mff-site-footer .mff-site-footer__main,
.mff-site-footer .mff-site-footer__bottom {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    padding-left: var(--mff-footer-side) !important;
    padding-right: var(--mff-footer-side) !important
}

.mff-site-footer .mff-site-footer__bottom {
    border-top: 0;
    position: relative
}

.mff-site-footer .mff-site-footer__bottom::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--mff-footer-side);
    right: var(--mff-footer-side);
    border-top: 1px solid rgba(255, 255, 255, .12)
}