/* ===== reset + базовая типографика ========================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  /* НЕ включаем -webkit-font-smoothing: antialiased — оно выключает
     субпиксельное сглаживание и текст становится тоньше и мылкее. */
  font-feature-settings: "cv05" 1, "ss01" 1;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); letter-spacing: -.025em; }
h3 { font-size: var(--t-h3); letter-spacing: -.015em; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

img, svg { display: block; max-width: 100%; }
/* svg{display:block} перебивает [hidden] из UA-стилей — возвращаем */
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--brand-soft); color: var(--brand-ink); }

/* тонкие скроллбары внутри списков */
.scroll-thin { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--r-full); }
.scroll-thin::-webkit-scrollbar-track { background: transparent; }

/* --- утилиты ------------------------------------------------ */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--ink-3); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
