.footer-block {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 1rem;
    background: var(--footerBg);
    color: var(--white);
}
.footer-block__shell {
    position: relative;
    z-index: 1;
}
.footer-block__content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(630px, 0.75fr);
    gap: 3rem;
    align-items: start;
}
.footer-block__brand-column {
    max-width: 560px;
}
.footer-block__brand {
    display: inline-flex;
    margin-bottom: 1.15rem;
    text-decoration: none;
}
.footer-block__brand img {
    width: min(240px, 100%);
    height: auto;
    display: block;
}
.footer-block__title {
    margin: 0 0 20px;
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}
.footer-block__title--small {
    margin-top: 1.7rem;
}
.footer-block__copy,
.footer-block__disclaimer {
    margin: 0 0 20px;
    color: var(--white);
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.5px;
}
.footer-block__disclaimer {
    max-width: 520px;
}
.footer-block__side-column {
    display: grid;
    gap: 56px;
    padding-top: 0.35rem;
    text-align: end;
}
.footer-block__verse {
    margin: 0;
}
.footer-block__verse p {
    margin: 0;
    color: var(--white);
    font-style: italic;
    font-size: 18px;
    font-weight: 600;
    line-height: 35px;
    letter-spacing: 0.2px;
}
.footer-block__verse .quote-block__title {
    color: var(--secondaryFontColor);
    font-size: 16px;
    font-weight: 600;
    line-height: 35px;
    letter-spacing: 0.2px;
}
.footer-block__links {
    width: 100%;
}
.footer-block__links-title {
    margin: 0 0 15px;
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}
.footer_menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.95rem;
    text-align: end;
}
.footer_menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer_menu a:hover,
.footer_menu a:focus {
    color: var(--secondaryFontColor);
    transform: translateX(4px);
}
.footer-block__divider {
    height: 1px;
    margin: 3rem 0 1.5rem;
    background: rgba(255, 255, 255, 0.4);
}
.footer-block__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
}
.footer-block__copyright,
.legal_menu a {
    margin: 0;
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.2px;
}
.legal_menu_wrapper ul {
    display: flex;
    align-items: center;
    gap: 2.6rem;
}
.legal_menu a {
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.legal_menu a:hover,
.legal_menu a:focus {
    color: var(--secondaryFontColor);
}
.footer-block__to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 3px solid var(--white);
    border-radius: 50%;
    background: var(--secondaryFontColor);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}
.footer-block__to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.footer-block__to-top:hover,
.footer-block__to-top:focus {
    background: #a47f42;
}
.footer-block__to-top span {
    width: 14px;
    height: 14px;
    border-top: 3px solid var(--white);
    border-left: 3px solid var(--white);
    transform: rotate(45deg) translateY(1px);
}
@media (max-width: 1199.98px) {
    .footer-block {
        padding-top: 4rem;
    }
    .footer-block__content {
        gap: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .footer-block__content {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .footer-block__side-column {
        gap: 1.75rem;
        text-align: start;
    }
    .footer-block__bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .footer_menu {
        text-align: start;
    }
}

@media (max-width: 767.98px) {
    .footer-block {
        padding: 3.5rem 0 1.5rem;
    }
    .footer-block__brand img {
        width: min(210px, 100%);
    }
    .legal_menu_wrapper ul {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .footer-block__divider {
        margin-top: 2.5rem;
    }
    .footer-block__title,
    .footer-block__links-title {
        font-size: 1.25rem;
    }
    .footer-block__copy,
    .footer-block__disclaimer,
    .footer-block__verse .quote-block__title,
    .footer-block__copyright,
    .legal_menu a,
    .footer_menu a {
        font-size: 0.95rem;
    }
    .footer-block__to-top {
        right: 12px;
        bottom: 12px;
    }
}