.site-footer {
    border-top: 1px solid var(--line);
    background: #f7f8fb;
}

.footer-shell {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    align-items: start;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0;
}

.footer-brand p {
    max-width: 330px;
    margin: 20px 0 0;
    line-height: 1.65;
}

.brand-footer {
    display: inline-flex;
    align-items: center;
}

.footer-logo {
    display: block;
    width: auto;
    max-width: 178px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.footer-links {
    display: contents;
}

.footer-links > div {
    justify-self: center;
}

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

.footer-links h2 {
    margin-bottom: 14px;
    font-size: 0.86rem;
    color: var(--text);
}

.footer-links a {
    display: block;
    color: var(--muted);
    margin: 10px 0;
    transition: color 180ms ease;
}

.footer-links a:hover {
    color: var(--text);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.footer-links .social-links a:hover {
    transform: translateY(-3px);
    border-color: rgba(17, 24, 39, 0.18);
    background: var(--text);
    color: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

@media (max-width: 760px) {
    .footer-shell,
    .footer-bottom {
        width: min(100% - 28px, var(--max));
    }

    .footer-shell {
        grid-template-columns: 1fr;
    }

    .footer-links {
        display: grid;
        gap: 28px;
    }

    .footer-links > div,
    .footer-social {
        justify-self: start;
    }

    .footer-bottom {
        display: grid;
    }
}
