.site-footer {
    background: var(--gray1);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px;
}

.footer-brand {
    flex: 0 1 410px;
    min-width: 260px;
}

.footer-brand,
.footer-about,
.footer-contact-socials,
.footer-contact,
.footer-newsletter,
.footer-newsletter-form,
.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-brand,
.footer-contact-socials,
.footer-newsletter {
    gap: 24px;
}

.footer-about,
.footer-links {
    gap: 16px;
}

.footer-logo {
    display: inline-flex;
    align-self: flex-start;
}

.footer-logo img {
    width: 243.433px;
    height: auto;
}

.footer-contact {
    gap: 12px;
}

.footer-heading {
    color: var(--green1);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-email {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.footer-email img {
    flex-shrink: 0;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-social-icon {
    display: block;
    width: 24px;
    height: 24px;
    background: currentColor;
}

.footer-social-facebook {
    -webkit-mask: url('../icons/facebook.svg') center / contain no-repeat;
    mask: url('../icons/facebook.svg') center / contain no-repeat;
}

.footer-social-instagram {
    color: var(--green1);
    -webkit-mask: url('../icons/instagram.svg') center / contain no-repeat;
    mask: url('../icons/instagram.svg') center / contain no-repeat;
}

.footer-sections {
    display: flex;
    align-items: flex-start;
    gap: 150px;
}

.footer-menu {
    min-width: 0;
}

.footer-menu summary {
    list-style: none;
}

.footer-menu summary::-webkit-details-marker {
    display: none;
}

.footer-menu nav {
    margin-top: 24px;
}

.footer-links {
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.footer-links a {
    display: inline-block;
}

.footer-links a:hover,
.footer-links .current-menu-item > a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: var(--green1);
}

.footer-newsletter {
    width: 364px;
    max-width: 100%;
    min-width: 0;
}

.footer-newsletter-form {
    width: 100%;
    gap: 8px;
}

.footer-newsletter-field button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--green1);
    color: var(--white1);
    cursor: pointer;
}

.footer-newsletter-field button span {
    width: 12.8px;
    height: 12.8px;
    background: currentColor;
    -webkit-mask: url('../icons/arrow-right.svg') center / contain no-repeat;
    mask: url('../icons/arrow-right.svg') center / contain no-repeat;
}

.footer-newsletter-field button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.footer-privacy a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-newsletter-status {
    color: var(--green1);
}

.footer-newsletter-status.is-error {
    color: var(--red1);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray3);
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-payments img {
    width: auto;
    height: calc(20px * var(--payment-scale, 1));
    max-width: none;
}

.footer-payments .footer-payment-revolut,
.footer-payments .footer-payment-artea {
    height: calc(16px * var(--payment-scale, 1));
}

.footer-payments .footer-payment-luminor,
.footer-payments .footer-payment-seb {
    height: calc(18px * var(--payment-scale, 1));
}

.footer-payments .footer-payment-citadele {
    height: calc(19.96px * var(--payment-scale, 1));
}

.site-footer a:focus-visible,
.site-footer summary:focus-visible,
.site-footer button:focus-visible {
    outline: 2px solid var(--green1);
    outline-offset: 4px;
}

@media (max-width: 1600px) {
    .footer-main,
    .footer-sections {
        gap: 48px;
    }

    .footer-brand {
        flex-basis: 340px;
    }

    .footer-newsletter {
        width: 320px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .footer-sections {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 32px;
    }

    .footer-newsletter {
        grid-column: 1 / -1;
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        padding: 32px 16px;
        gap: 16px;
    }

    .footer-main {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .footer-brand {
        flex-basis: auto;
        min-width: 0;
    }

    .footer-logo img {
        width: 186.401px;
    }

    .footer-contact-socials {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
    }

    .footer-email {
        font-size: 14px;
    }

    .footer-socials {
        gap: 12px;
    }

    .footer-social-icon {
        width: 20px;
        height: 20px;
    }

    .footer-sections {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .footer-newsletter {
        order: -1;
        width: 100%;
        gap: 12px;
    }

    .footer-newsletter .footer-heading {
        color: var(--black1);
    }

    .footer-menu summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        color: var(--black1);
        cursor: pointer;
    }

    .footer-menu summary::after {
        content: "";
        flex: 0 0 20px;
        height: 20px;
        background: currentColor;
        -webkit-mask: url('../icons/chevron.svg') center / contain no-repeat;
        mask: url('../icons/chevron.svg') center / contain no-repeat;
    }

    .footer-menu[open] summary::after {
        transform: rotate(180deg);
    }

    .footer-menu nav {
        margin-top: 16px;
    }

    .footer-links {
        font-size: 14px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-payments {
        --payment-scale: 0.8;
        gap: 12px;
    }
}
