/* Основа: шрифт Inter (как в Закупщике), сброс, прокрутка, фокус. */
@font-face { font-family: Inter; src: url('../vendor/inter/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--l0); color: var(--ink); }
body {
  font: 14px/1.5 var(--font);
  font-feature-settings: 'tnum' 1, 'zero' 0, 'ss01' 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  background: var(--l0); color: var(--ink);
  overflow-x: clip;
}
h1, h2, h3, h4 { margin: 0; font-optical-sizing: auto; letter-spacing: -.018em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-hover); }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
mark { background: var(--ryn-soft); color: inherit; border-radius: 3px; padding: 0 1px; box-shadow: 0 0 0 1px var(--ryn-brd); }
kbd { font: 600 10.5px/1 var(--font); padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--l2); color: var(--mut); }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--acc-soft); }

:is(button, a, [role="button"], [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

/* тонкая прокрутка как в Закупщике. Стандартные свойства — только там, где нет ::-webkit-scrollbar
   (Firefox): в Edge/Chrome они отключают стили ниже и возвращают системные стрелки ▲▼ на концах. */
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; } }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--line-3); }
::-webkit-scrollbar-track { background: transparent; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grow { flex: 1 1 auto; }
.mut { color: var(--mut); }
.mut2 { color: var(--mut2); }
.ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ic { display: inline-block; flex: 0 0 auto; vertical-align: -3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
