:root {
  --surface: #f7f9fb;
  --surface-soft: #eef4fb;
  --card: #ffffff;
  --card-muted: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #171c24;
  --ink-muted: #475569;
  --primary: #005bbf;
  --primary-bright: #1a73e8;
  --secondary: #4b41e1;
  --teal: #10b6ca;
  --green: #19b768;
  --shadow-soft: 0 22px 55px rgba(15, 23, 42, 0.12);
  --shadow-float: 0 4px 6px rgba(15, 23, 42, 0.05), 0 22px 30px rgba(15, 23, 42, 0.13);
  --radius-card: 16px;
  --radius-large: 24px;
  --site-footer-height: 92px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--surface);
}

.page {
  min-height: 100%;
  background: var(--surface);
}

.site-footer {
  position: relative;
  padding: 0 24px 32px;
  color: #66778d;
  background: var(--surface);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(185, 200, 218, 0.68);
}

.site-footer__brand,
.site-footer__link {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.site-footer__brand {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}

.site-footer__brand span,
.site-footer__copy,
.site-footer__link {
  overflow-wrap: anywhere;
}

.site-footer__nav {
  display: flex;
  grid-column: 2;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 8px;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(191, 219, 254, 0.64);
  border-radius: 8px;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: #0f172a;
  background: rgba(219, 234, 254, 0.82);
  outline: none;
}

.site-footer__copy {
  grid-column: 3;
  justify-self: end;
  min-width: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

[data-theme="dark"] {
  --surface: #080d16;
  --surface-soft: #101827;
  --card: #121a28;
  --card-muted: #162033;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.34);
  --ink: #eef4ff;
  --ink-muted: #aebdd3;
  --primary: #8ec5ff;
  --primary-bright: #65a9ff;
  --secondary: #a79cff;
  --teal: #80ecff;
  --green: #72e3aa;
  --shadow-soft: 0 22px 55px rgba(0, 0, 0, 0.3);
  --shadow-float: 0 4px 8px rgba(0, 0, 0, 0.22), 0 22px 38px rgba(0, 0, 0, 0.32);
}

[data-theme="dark"] body,
[data-theme="dark"] .page {
  color: var(--ink);
  background: var(--surface);
}

[data-theme="dark"] .site-footer {
  color: #8da4c0;
  background: #080d16;
}

[data-theme="dark"] .site-footer__inner {
  border-top-color: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .site-footer__link {
  color: #8ec5ff;
  background: rgba(18, 28, 44, 0.82);
  border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .site-footer__link:hover,
[data-theme="dark"] .site-footer__link:focus-visible {
  color: #ffffff;
  background: rgba(30, 64, 120, 0.64);
}

@media (max-width: 760px) {
  .site-footer {
    padding: 0 16px 26px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 20px;
  }

  .site-footer__brand,
  .site-footer__nav,
  .site-footer__copy {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }
}
