/* Флекс, а не грид с auto-fit: иначе, когда блоков меньше, чем колонок,
   одиночный блок делит строку с пустой колонкой и выглядит половинным. */
.site-footer {
    margin-top: 64px; padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; align-items: stretch;
    gap: 24px; font-size: 13.5px; color: var(--text-dim);
}

.site-footer-block {
    flex: 1 1 300px; min-width: 0;
    background: var(--panel-soft); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 16px 18px;
}
/* Знак LFF с подписью: отдельный блок на всю ширину, пара центрируется целиком. */
.site-footer .site-footer-brand {
    flex: 1 1 100%;
    display: flex; justify-content: center; align-items: center;
}
.site-footer-brand-link {
    display: inline-flex; align-items: center; gap: 12px;
    color: inherit; text-decoration: none;
}
.site-footer-brand-link:hover { text-decoration: none; opacity: .85; }
.site-footer-brand-text {
    display: flex; flex-direction: column; line-height: 1.25;
}
.site-footer-brand-text .lff-name { font-size: 14px; font-weight: 600; }
.site-footer-brand-text .lff-sub { font-size: 12px; margin-top: 2px; }
.site-footer-title {
    font-size: 12px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-mute); margin-bottom: 10px;
}
.site-footer-online { line-height: 1.7; word-break: break-word; }
.site-footer-user { margin-right: 4px; white-space: nowrap; }
.site-footer-user:hover { text-decoration: underline; }
.site-footer-counts { margin-top: 8px; color: var(--text-mute); font-size: 12.5px; }
.site-footer-counts b { color: var(--text); font-weight: 600; }
.site-footer-counts .dot { margin: 0 6px; }
.site-footer-bday { line-height: 1.7; margin-bottom: 6px; }
.site-footer-bday:last-child { margin-bottom: 0; }
.bd-label { color: var(--text-mute); margin-right: 4px; }
.profile-card {
    display: grid; grid-template-columns: 140px 1fr; gap: 24px;
    background: var(--panel-soft); border: 1px solid var(--border);
    border-radius: var(--r); padding: 24px; margin-top: 32px;
}
.avatar-xl { width: 96px; height: 96px; flex: 0 0 96px; font-size: 40px; margin: 0 auto; }
.profile-info { min-width: 0; }
.profile-dl {
    margin: 0; display: grid; grid-template-columns: 140px 1fr;
    gap: 8px 16px; font-size: 14px;
}
.profile-dl dt { color: var(--text-mute); margin: 0; }
.profile-dl dd { margin: 0; color: var(--text); }
.profile-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 640px) {
    .site-footer { gap: 16px; }
    .profile-card { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    .profile-dl { grid-template-columns: 1fr; text-align: left; }
    .profile-socials { justify-content: center; }
}

/* Документы: ссылки в одну строку по центру блока */
.site-footer-docs .site-footer-title { text-align: center; }
.site-footer-doc-links {
    display: flex; flex-direction: row; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: 8px 20px; font-size: 13px; text-align: center;
}
.site-footer-doc-links a { color: var(--text-dim); text-decoration: none; white-space: nowrap; }
.site-footer-doc-links a:hover { color: var(--accent); }
