/* The Socium footer — one object for socium.tools (every page), market.socium.tools, the cabinet (both editions) and the
   error pages (owner 2026-12-01: «футеры разные. В один тип и вид все футеры сведи»). Markup: tools/site_header.py
   common_footer, from content/site.json (one set of links). Every colour is its own --sft-* token, so a page's own
   stylesheet cannot change it; the theme follows the page (:root[data-theme="dark"]). */
.sft { --sft-paper: #fff; --sft-ink: #1d202b; --sft-soft: #4d5364; --sft-hint: #666c7c; --sft-line: #e2e4ea; --sft-accent: #ea580c;
  margin-top: 40px; padding: 56px 0 34px; border-top: 1px solid var(--sft-line); background: var(--sft-paper); color: var(--sft-ink);
  font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; }
:root[data-theme="dark"] .sft { --sft-paper: #181b24; --sft-ink: #f1f3f8; --sft-soft: #a6acbd; --sft-hint: #8a90a3; --sft-line: #2b2f3d; }
.sft *, .sft *::before, .sft *::after { box-sizing: border-box; }
.sft-in { width: min(1180px, 100% - 40px); margin: 0 auto; }
.sft-grid { display: grid; grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: 28px; }
.sft-brand { display: grid; align-content: start; gap: 14px; }
.sft-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--sft-ink); font-size: 21px; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.sft-logo img { width: 30px; height: 30px; }
:root[data-theme="dark"] .sft-logo img { filter: invert(1) brightness(1.6); }
.sft-brand p { max-width: 34ch; margin: 0; color: var(--sft-soft); }
.sft-tg { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, #2aabee 12%, var(--sft-paper)); color: #1d8fd1; font-weight: 700; text-decoration: none; }
:root[data-theme="dark"] .sft-tg { color: #63c4f5; }
.sft-tg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.sft-title { margin-bottom: 14px; font-weight: 800; }
.sft-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sft-col a, .sft-link { padding: 0; border: 0; background: none; color: var(--sft-soft); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: color .2s ease; }
.sft-col a:hover, .sft-link:hover { color: var(--sft-ink); }
.sft-soon { color: var(--sft-hint); }
.sft-soon i { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--sft-accent) 12%, var(--sft-paper)); color: var(--sft-accent); font-size: 12px; font-style: normal; font-weight: 700; }
.sft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--sft-line); color: var(--sft-hint); font-size: 13.5px; }
@media (max-width: 1100px) { .sft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sft-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .sft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .sft-grid { gap: 26px 18px; } .sft { padding-top: 44px; } }
/* The fixed chat button (bottom right) never covers the footer's last line. */
.sft-bottom { padding-right: 76px; }
@media (max-width: 640px) { .sft-bottom { flex-direction: column; padding-right: 0; padding-bottom: 64px; } }
.sft { position: relative; z-index: 1; }
