/* Подвал: тяжёлое основание, как станина станка */
.site-footer {
  position: relative; padding: clamp(64px, 8vw, 112px) 0 32px; margin-top: 0;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
  border-top: 1px solid var(--color-border);
  overflow-x: clip;
}
.site-footer::before { /* свет сверху на кромке */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; pointer-events: none;
  background: radial-gradient(ellipse 50% 100% at 50% 0%, rgba(var(--text-rgb), .06), transparent 70%);
}
.ft-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .7fr)) minmax(0, 1fr); gap: 40px; }
.ft-mark { width: 44px; height: 44px; color: var(--color-text); margin-bottom: 18px; }
.ft-word { font-size: clamp(52px, 5.6vw, 84px); margin-bottom: 18px; white-space: nowrap; }
.ft-say { max-width: 36ch; }
.ft-nav, .ft-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ft-nav .label, .ft-contacts .label { margin-bottom: 6px; }
.ft-nav a, .ft-contacts a:not(.btn) { color: var(--color-text); text-decoration: none; }
@media (hover: hover) { .ft-nav a:hover, .ft-contacts a:not(.btn):hover { color: var(--color-focus-ring); } }
.ft-nav a[aria-current="page"] { color: var(--color-focus-ring); }
.ft-phone { font-size: 20px; }
.ft-contacts a.f-mono { font-size: 14px; overflow-wrap: anywhere; }
.ft-cta { margin-top: 10px; }
.ft-legal { margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--color-border); font-size: 12.5px; line-height: 1.7; color: var(--color-text-muted); display: grid; gap: 4px; }
.ft-docs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
.ft-docs a { color: var(--color-text-muted); }
@media (hover: hover) { .ft-docs a:hover { color: var(--color-text); } }

@media (max-width: 1000px) {
  .ft-top { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ft-top { grid-template-columns: 1fr; gap: 32px; }
}

/* наверх */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 55;
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--color-text); cursor: pointer;
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), border-color .2s;
}
.to-top svg { width: 22px; height: 22px; color: var(--color-primary-foreground); }
.to-top.is-on { opacity: 1; transform: none; }
.to-top::before { content: ""; position: absolute; inset: 6px; background: var(--color-primary); border-radius: 9px; z-index: -1; }
@media (hover: hover) { .to-top:hover { border-color: var(--color-text-muted); } }
.site-header.is-open ~ * .to-top, body.menu-open .to-top { display: none; }

/* cookie */
.cookie {
  position: fixed; right: max(80px, calc(env(safe-area-inset-right) + 80px)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 56;
  max-width: 440px; padding: 16px 18px; display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--color-text-muted);
}
.cookie a { color: var(--color-text); }
.cookie .btn { min-height: 40px; padding: 0 16px; flex: 0 0 auto; }
@media (max-width: 560px) {
  .cookie { left: 16px; right: 16px; max-width: none; flex-direction: column; align-items: stretch; gap: 12px; bottom: max(76px, env(safe-area-inset-bottom)); }
}
