.footer-inner--site {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.footer-inner--site > div {
    line-height: 1.6;
}

.footer-counter-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.footer-counter-row .site-counter {
    flex: none;
    white-space: nowrap;
}

.footer-counter-notice {
    flex: 1;
    color: var(--ink);
    text-align: left;
}

.footer-details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 20px;
    width: 100%;
    padding: 4px 0;
}

.footer-details-grid > div,
.footer-copyright {
    line-height: 1.6;
}

.footer-details-grid > div {
    overflow-wrap: anywhere;
}

.footer-details-grid strong {
    color: var(--ink);
    font-weight: 600;
}

.footer-copyright {
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.scroll-top-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: #15191d;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    cursor: pointer;
    font: 700 22px/1 inherit;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}

.scroll-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-button:hover {
    background: #2b3339;
}

.scroll-top-button:focus-visible {
    outline: 3px solid #8fd0f0;
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .footer-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scroll-top-button {
        right: 14px;
        bottom: 14px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 420px) {
    .footer-details-grid {
        grid-template-columns: 1fr;
    }
}