body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#page {
    width: 100%;
    flex: 1 0 auto;
}

.site-footer {
    flex: 0 0 auto;
}

.mc-site-footer {
    position: relative;
    color: #263c2c;
    background: #eadfbd;
    border-top: 0;
}

.mc-site-footer::before {
    position: absolute;
    inset: 0 0 auto;
    height: 12px;
    content: "";
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 8px, transparent 8px 16px),
        linear-gradient(180deg, #8ed45f 0 45%, #5da442 46% 66%, #765438 67% 100%);
    border-bottom: 2px solid #513922;
}

.mc-footer-main {
    padding: 66px 0 44px;
    background:
        linear-gradient(90deg, rgba(118, 84, 56, 0.06) 1px, transparent 1px),
        #eadfbd;
    background-size: 24px 24px, auto;
    border-bottom: 3px solid #765438;
}

.mc-footer-inner,
.mc-footer-bottom-inner {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.mc-footer-inner {
    display: grid;
    grid-template-columns: minmax(300px, 1.45fr) repeat(3, minmax(130px, 0.55fr));
    gap: clamp(34px, 5vw, 78px);
    align-items: start;
}

.mc-footer-brand-block {
    max-width: 490px;
}

.mc-footer-brand {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #214a30;
    font: 400 clamp(13px, 1.25vw, 17px)/1.35 "Press Start 2P", monospace;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.mc-footer-brand:hover,
.mc-footer-brand:focus-visible {
    color: #173c27;
}

.mc-footer-brand-mark {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    background: #69b84a;
    border: 2px solid #173c27;
    border-radius: 3px;
    box-shadow: 3px 3px 0 #765438;
}

.mc-footer-brand-mark::before,
.mc-footer-brand-mark::after {
    position: absolute;
    content: "";
    background: #173c27;
}

.mc-footer-brand-mark::before {
    top: 4px;
    left: 3px;
    width: 3px;
    height: 3px;
    box-shadow: 7px 0 #173c27;
}

.mc-footer-brand-mark::after {
    right: 4px;
    bottom: 3px;
    left: 4px;
    height: 3px;
}

.mc-footer-brand-block > p {
    max-width: 50ch;
    margin: 22px 0 0;
    color: #52634f;
    font: 600 15px/1.7 "Manrope", sans-serif;
}

.mc-footer-trust {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.mc-footer-trust span {
    padding: 8px 10px;
    color: #263c2c;
    background: #fff8df;
    border: 2px solid #765438;
    border-radius: 4px;
    box-shadow: 0 3px 0 #8a633e;
    font: 800 10px/1 "Manrope", sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mc-footer-column h2 {
    margin: 0 0 18px;
    color: #214a30;
    font: 400 12px/1.4 "Press Start 2P", monospace;
    text-transform: uppercase;
}

.mc-footer-column h2::after {
    width: 34px;
    height: 4px;
    margin-top: 10px;
    display: block;
    content: "";
    background: #f4c451;
    border: 1px solid #9a6f1e;
}

.mc-footer-column ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
    list-style: none;
}

.mc-footer-column li {
    margin: 0;
}

.mc-footer-column a {
    position: relative;
    display: inline-block;
    padding: 2px 0 2px 14px;
    color: #40543f;
    font: 700 14px/1.35 "Manrope", sans-serif;
    text-decoration: none;
}

.mc-footer-column a::before {
    position: absolute;
    top: 0.65em;
    left: 0;
    width: 6px;
    height: 6px;
    content: "";
    background: #69b84a;
    border: 1px solid #315c36;
}

.mc-footer-column a:hover,
.mc-footer-column a:focus-visible {
    color: #173c27;
    text-decoration: underline;
    text-decoration-color: #f4c451;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.mc-footer-brand:focus-visible,
.mc-footer-column a:focus-visible {
    outline: 2px solid #214a30;
    outline-offset: 4px;
}

.mc-footer-bottom {
    color: #fffdf3;
    background: #2f6b3f;
    border-bottom: 5px solid #173c27;
}

.mc-footer-bottom-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    font: 700 12px/1.5 "Manrope", sans-serif;
    letter-spacing: 0.025em;
}

@media (max-width: 980px) {
    .mc-footer-inner {
        grid-template-columns: 1.5fr repeat(2, 1fr);
    }

    .mc-footer-brand-block {
        grid-column: 1 / -1;
        max-width: none;
        padding-bottom: 30px;
        border-bottom: 2px solid #765438;
    }
}

@media (max-width: 620px) {
    .mc-footer-main { padding: 54px 0 36px; }

    .mc-footer-inner,
    .mc-footer-bottom-inner {
        width: calc(100% - 32px);
    }

    .mc-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 22px;
    }

    .mc-footer-brand-block { padding-bottom: 26px; }
    .mc-footer-column:last-child { grid-column: 1 / -1; }
    .mc-footer-column:last-child ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
    }

    .mc-footer-bottom-inner {
        min-height: 82px;
        padding: 14px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
    }
}

@media (max-width: 390px) {
    .mc-footer-inner { gap: 32px 16px; }
    .mc-footer-column h2 { font-size: 10px; }
    .mc-footer-column a { padding-left: 12px; font-size: 13px; }
    .mc-footer-brand { font-size: 11px; }
}
