.site-footer {
    width: 100%;
    background: #f5f3ee;
    color: #343b35;
    border-top: 1px solid rgba(91, 102, 84, 0.10);
}

.footer-main {
    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
    padding: 90px 0 78px;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.footer-identity {
    max-width: 330px;
}

.footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    color: #3d493d;
    text-decoration: none;
}

.footer-brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    font-style: italic;
}

.footer-brand-profession {
    margin-top: 9px;
    padding-left: 2px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.36em;
    color: #838b7e;
}

.footer-message {
    max-width: 290px;
    margin: 28px 0 0;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    color: #737a72;
}

.footer-navigation,
.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-small-title {
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #92988e;
}

.footer-navigation a,
.footer-contact a {
    position: relative;
    color: #505950;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color 250ms ease,
        transform 250ms ease;
}

.footer-navigation a:hover,
.footer-contact a:hover {
    color: #78836e;
    transform: translateX(3px);
}

.footer-closing {
    position: relative;
    justify-self: end;
    min-width: 280px;
    padding-left: 46px;
}

.footer-closing::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 1px;
    height: 92px;
    background: rgba(103, 115, 94, 0.20);
}

.footer-closing p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.5vw, 40px);
    font-weight: 400;
    line-height: 1.14;
    color: #596553;
}

.footer-leaf {
    display: inline-block;
    margin-top: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    color: #929d87;
}

.footer-bottom {
    width: min(1380px, calc(100% - 80px));
    min-height: 76px;
    margin: 0 auto;
    border-top: 1px solid rgba(91, 102, 84, 0.12);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: #8a9087;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.footer-legal a {
    color: #7c837a;
    text-decoration: none;
    transition: color 250ms ease;
}

.footer-legal a:hover {
    color: #596553;
}

.footer-credit {
    justify-self: end;
}

@media (max-width: 900px) {

    .footer-main {
        width: min(100% - 44px, 680px);
        padding: 68px 0 55px;
        grid-template-columns: 1fr 1fr;
        gap: 50px 30px;
    }

    .footer-closing {
        justify-self: start;
        min-width: 0;
        padding-left: 30px;
    }

    .footer-bottom {
        width: min(100% - 44px, 680px);
        padding: 25px 0;
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        gap: 10px 22px;
    }

    .footer-credit {
        justify-self: center;
    }
}

@media (max-width: 560px) {

    .footer-main {
        width: calc(100% - 40px);
        padding: 58px 0 45px;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .footer-identity {
        max-width: 100%;
    }

    .footer-message {
        max-width: 310px;
    }

    .footer-navigation,
    .footer-contact {
        gap: 15px;
    }

    .footer-closing {
        margin-top: 6px;
    }

    .footer-closing p {
        font-size: 30px;
    }

    .footer-bottom {
        width: calc(100% - 40px);
        min-height: 0;
        padding: 28px 0 34px;
    }
}