/* Общие токены темы и базовая сброс-типографика (как на главной). Подключать перед site-header.css / site-footer.css */
:root,
[data-theme="light"] {
  --color-bg: #f7f6f2;
  --color-surface: #f9f8f5;
  --color-surface-offset: #f0ede8;
  --color-divider: #dcd9d5;
  --color-border: rgba(40, 37, 29, 0.12);
  --color-text: #28251d;
  --color-text-muted: #6b6a65;
  --color-text-faint: #b0afa9;
  --color-primary: #01696f;
  --color-primary-hover: #0c4e54;
  --color-primary-hl: #cedcd8;
  --color-accent: #437a22;
  --color-practice-recommendation: #c62828;
  --color-tg: #0088cc;
  --color-tg-hl: rgba(0, 136, 204, 0.12);
  --shadow-sm: 0 1px 2px rgba(40, 37, 29, 0.07);
  --shadow-md: 0 4px 16px rgba(40, 37, 29, 0.09);
  --shadow-lg: 0 12px 40px rgba(40, 37, 29, 0.12);
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --sp1: 0.25rem;
  --sp2: 0.5rem;
  --sp3: 0.75rem;
  --sp4: 1rem;
  --sp5: 1.25rem;
  --sp6: 1.5rem;
  --sp8: 2rem;
  --sp10: 2.5rem;
  --sp12: 3rem;
  --sp16: 4rem;
  --fh: "Fraunces", Georgia, serif;
  --fb: "Inter", "Helvetica Neue", sans-serif;
  --tr: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] {
  --color-bg: #111110;
  --color-surface: #1a1917;
  --color-surface-offset: #252422;
  --color-divider: #2d2c2a;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #e2e0dc;
  --color-text-muted: #97948f;
  --color-text-faint: #6a6864;
  --color-primary: #4f98a3;
  --color-primary-hover: #227f8b;
  --color-primary-hl: #1e3a3d;
  --color-accent: #6daa45;
  --color-practice-recommendation: #c48787;
  --color-tg: #29b6f6;
  --color-tg-hl: rgba(41, 182, 246, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--fb);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
main {
  flex: 1 0 auto;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--sp6);
}
