.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.brand-emblem { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; background: #ffffffdd; border: 1px solid #ffffffbb; border-radius: 14px; box-shadow: 0 3px 8px #28425912; }
.brand-emblem img { display: block; width: 38px; height: 38px; object-fit: contain; }
.brand .wordmark { font-size: 20px; font-weight: 800; letter-spacing: -.065em; color: var(--ink); }
.wordmark > span { color: #346dbc; font-weight: 550; }
[data-theme="dark"] .wordmark > span { color: #9bbcec; }
.site-footer { background: linear-gradient(125deg, var(--panel) 46%, var(--panel-soft)); }
.site-footer .footer-inner { display: block; padding-top: clamp(28px, 4vw, 54px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr minmax(215px, .86fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.footer-brand .brand { text-decoration: none; margin: 0; }
.footer-brand p { max-width: 34ch; margin: 14px 0 0; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.footer-links a, .footer-base a { display: inline-flex; align-items: center; width: fit-content; min-height: 36px; color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-base a:hover { color: var(--accent); text-decoration: underline; }
.footer-telegram { display: flex; gap: 11px; align-items: center; padding: 12px; color: var(--ink); background: var(--panel); border: 1px solid var(--border); border-radius: 15px; text-decoration: none; }
.footer-telegram:hover { border-color: var(--accent); }
.footer-telegram-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--accent); background: var(--panel-soft); font-size: 20px; flex: none; }
.footer-telegram strong, .footer-telegram small { display: block; }
.footer-telegram small { color: var(--muted); margin-top: 2px; }
.footer-arrow { margin-left: auto; color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 27px; padding: 10px 0 max(10px,env(safe-area-inset-bottom)); border-top: 1px solid var(--border); font-size: 12px; }
.footer-base a { gap: 7px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-telegram { grid-column: 2; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-telegram { grid-column: auto; }
}
@media (max-width: 600px) {
  .header-inner { justify-content: center; }
  .header-inner nav { margin-inline: auto; }
}
@media (max-width: 490px) {
  .header-inner nav { flex-wrap: wrap; max-width: 100%; }
  .brand { gap: 5px; }
  .brand-emblem { width: 31px; height: 31px; border-radius: 11px; }
  .brand-emblem img { width: 29px; height: 29px; }
  .brand .wordmark { font-size: 15px; }
}
