.mg-footer {
    margin-top: 44px;
    background: #3b0505;
    color: #fff;
}

.mg-footer,
.mg-footer * {
    box-sizing: border-box;
}

.mg-footer__container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
}

.mg-footer__main {
    display: grid;
    grid-template-columns: 1.25fr repeat(4, 1fr);
    gap: 22px;
    padding: 34px 24px;
}

.mg-footer__brand {
    display: grid;
    gap: 12px;
}

.mg-footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.mg-footer__logo img {
    display: block;
}

.mg-footer .mg-footer__logo-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
}

.mg-footer .mg-footer__logo-wordmark {
    width: 168px;
    max-width: 100%;
    height: auto;
    flex: 0 1 168px;
    object-fit: contain;
}

.mg-footer__text {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.45;
}

.mg-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mg-footer__badges span {
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .86);
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
}

.mg-footer__col {
    min-width: 0;
    font-style: normal;
}

.mg-footer__col h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
}

.mg-footer__col a,
.mg-footer__col span {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 8px 0;
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}

.mg-footer__col a:hover {
    color: #fff;
}

.mg-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: rgba(255, 255, 255, .58);
    font-size: 12px;
    line-height: 1.4;
}

.ml-mobile-bottom-nav {
    display: none;
}

@media (max-width: 1320px) {
    .mg-footer__main {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .mg-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1040px) {
    .mg-footer__main {
        grid-template-columns: 1fr 1fr;
    }

    .mg-footer__bottom {
        display: grid;
    }
}

@media (max-width: 620px) {
    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .ml-mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 210;
        height: 64px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
        padding: 6px;
        border: 1px solid rgba(24, 20, 18, .08);
        border-radius: 22px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 18px 54px rgba(15, 23, 42, .18);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .ml-mobile-bottom-nav a {
        min-width: 0;
        display: grid;
        grid-template-rows: 22px auto;
        place-items: center;
        align-content: center;
        gap: 2px;
        border-radius: 16px;
        color: #667085;
        font-size: 10px;
        font-weight: 850;
        line-height: 1;
    }

    .ml-mobile-bottom-nav a svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .ml-mobile-bottom-nav a.is-active {
        background: var(--accent);
        color: #fff;
    }

    .ml-mobile-bottom-nav .ml-mobile-bottom-nav__whatsapp {
        background: #ecfdf3;
        color: #15803d;
    }

    .mg-footer {
        padding-bottom: 118px;
        margin-top: 56px;
    }

    .mg-footer__container {
        padding: 0 28px;
    }

    .mg-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 30px 22px;
        padding: 72px 28px 34px;
    }

    .mg-footer__brand {
        grid-column: 1 / -1;
        gap: 18px;
        padding-bottom: 18px;
    }

    .mg-footer .mg-footer__logo-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .mg-footer .mg-footer__logo-wordmark {
        width: 136px;
        flex-basis: 136px;
    }

    .mg-footer__text {
        max-width: none;
        font-size: 15px;
        line-height: 1.48;
    }

    .mg-footer__col {
        border-top: 1px solid rgba(255, 255, 255, .1);
        padding-top: 24px;
    }

    .mg-footer__col h3 {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .mg-footer__col a,
    .mg-footer__col span {
        font-size: 14px;
        margin: 10px 0;
        color: rgba(255, 255, 255, .72);
    }

    .mg-footer__bottom {
        padding: 26px 28px 32px;
        display: grid;
        gap: 10px;
        line-height: 1.45;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
}

@media (max-width: 460px) {
    .mg-footer__main {
        grid-template-columns: 1fr;
    }

    .mg-footer__brand {
        grid-column: auto;
    }
}
