:root {
    --footer-background: #3f4c46;
    --footer-background-dark: #303a35;
    --footer-text: #ffffff;
    --footer-muted: rgba(255, 255, 255, 0.72);
    --footer-border: rgba(255, 255, 255, 0.18);
    --footer-width: 1180px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

.site-footer {
    width: 100%;
    margin-top: 36px;
    color: var(--footer-text);
    background:
        linear-gradient(
            135deg,
            var(--footer-background),
            var(--footer-background-dark)
        );
    border-top: 4px solid #151a17;
    box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.16);
}

.site-footer-inner {
    width: min(
        var(--footer-width),
        calc(100% - 40px)
    );
    min-height: 92px;
    margin: 0 auto;
    padding: 22px 0;
    display: grid;
    grid-template-columns:
        minmax(210px, 1fr)
        auto
        minmax(150px, 1fr);
    align-items: center;
    gap: 25px;
}

.site-footer-brand {
    display: grid;
    gap: 4px;
}

.site-footer-brand strong {
    font-size: 1.12rem;
}

.site-footer-brand span,
.site-footer-copyright {
    color: var(--footer-muted);
    font-size: 0.82rem;
}

.site-footer-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.site-footer-navigation a {
    min-height: 38px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--footer-text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--footer-border);
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.site-footer-navigation a:hover,
.site-footer-navigation a:focus-visible {
    background: rgba(255, 255, 255, 0.17);
    outline: none;
}

.site-footer-copyright {
    margin: 0;
    text-align: right;
}

@media (max-width: 700px) {
    .site-footer {
        margin-top: 24px;
    }

    .site-footer-inner {
        width: calc(100% - 24px);
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 16px;
        text-align: center;
    }

    .site-footer-brand {
        justify-items: center;
    }

    .site-footer-copyright {
        text-align: center;
    }
}
