.greenbox-footer {
    --footer-bg: #edf5ef;
    --footer-text: #16352a;
    --footer-muted: #405b50;
    --footer-accent: #186344;
    --footer-line: #c8dacd;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.greenbox-footer__inner {
    width: min(calc(100% - 72px), 1312px);
    margin-inline: auto;
}

.greenbox-footer__payment-strip {
    border-block: 1px solid var(--footer-line);
    background: #fff;
}

.greenbox-footer__payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-width: 0;
    padding-block: 19px;
}

.greenbox-footer__payment p {
    margin: 0;
    color: var(--footer-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.greenbox-footer__payment img {
    display: block;
    width: min(100%, 400px);
    min-width: 0;
    height: auto;
}

.greenbox-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 64px);
    padding-block: clamp(35px, 5vw, 70px) clamp(30px, 4vw, 55px);
}

.greenbox-footer a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.greenbox-footer a:hover {
    color: var(--footer-accent);
    text-decoration: underline;
}

.greenbox-footer :is(a, input, button):focus-visible {
    outline: 2px solid var(--footer-accent);
    outline-offset: 3px;
}

.greenbox-footer__brand p {
    max-width: 28ch;
    margin: 15px 0 0;
    color: var(--footer-muted);
}

.greenbox-footer__logo {
    display: inline-block;
    max-width: 100%;
}

.greenbox-footer__logo img {
    display: block;
    width: 164px;
    max-width: 100%;
    height: auto;
    max-height: 64px;
    object-fit: contain;
    object-position: left center;
}

.greenbox-footer h2 {
    margin: 0 0 12px;
    color: var(--footer-text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.greenbox-footer__links {
    display: grid;
    justify-items: start;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.greenbox-footer__links a,
.greenbox-footer__shopping-links a {
    display: inline-block;
    padding-block: 2px;
}

.greenbox-footer__contact address {
    display: grid;
    justify-items: start;
    gap: 8px;
    margin: 0;
    font-style: normal;
    overflow-wrap: anywhere;
}

.greenbox-footer__social {
    margin-block-start: 20px;
}

.greenbox-footer__social h3 {
    margin: 0 0 5px;
    color: var(--footer-text);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
}

.greenbox-footer__social .greenbox-footer__links,
.greenbox-footer__shopping-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
}

.greenbox-footer__utility {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
    align-items: end;
    gap: 18px 36px;
    padding-block: 20px;
    border-block: 1px solid var(--footer-line);
}

.greenbox-footer__utility h2,
.greenbox-footer__newsletter label {
    display: block;
    margin: 0 0 7px;
    font-size: 0.875rem;
    font-weight: 700;
}

.greenbox-footer__subscribe {
    display: flex;
}

.greenbox-footer__subscribe input,
.greenbox-footer__subscribe button {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--footer-accent);
    font: inherit;
}

.greenbox-footer__subscribe input {
    flex: 1;
    min-width: 0;
    border-start-start-radius: 6px;
    border-end-start-radius: 6px;
    background: #fff;
    color: var(--footer-text);
}

.greenbox-footer__subscribe input::placeholder {
    color: var(--footer-muted);
    opacity: 1;
}

.greenbox-footer__subscribe button {
    border-start-end-radius: 6px;
    border-end-end-radius: 6px;
    background: var(--footer-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.greenbox-footer__subscribe button:hover {
    border-color: var(--footer-text);
    background: var(--footer-text);
}

.greenbox-footer__copyright {
    margin: 0;
    padding-block: 15px 55px;
    color: var(--footer-muted);
    font-size: 0.8125rem;
    text-align: center;
}

@media (max-width: 991px) {
    .greenbox-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .greenbox-footer__inner {
        width: calc(100% - 40px);
    }

    .greenbox-footer__payment {
        flex-direction: column;
        gap: 9px;
        padding-block: 13px;
    }

    .greenbox-footer__grid {
        gap: 23px 18px;
    }

    .greenbox-footer__brand,
    .greenbox-footer__contact {
        grid-column: 1 / -1;
    }

    .greenbox-footer__utility {
        grid-template-columns: minmax(0, 1fr);
    }

    .greenbox-footer__copyright {
        padding-block-end: 95px;
        text-align: start;
    }
}
