/* Общая основа трёх направлений: шрифт, токены, примитивы. Значения в DESIGN.md. */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Знака ₽ нет в стандартных подмножествах: без этого файла браузер берёт его из системного шрифта. */
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-rub.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20BD;
}

:root {
  --ink: #251c2d;
  --ink-2: #3f3546;
  --muted: #665c6d;
  --paper: #f7f4f7;
  --surface: #fdfbfd;
  --soft: #f0ebf2;
  --line: #e4dee8;
  --line-strong: #cec4d4;
  --plum: #70517e;
  --on-plum: #ffffff;
  --ring: #c4a9d0;
  --on-ink: #fdfbfd;

  --info: #3d6db0; --info-soft: #e5edf8;
  --ok: #2f7a50; --ok-soft: #e2f0e7;
  --warn: #a66800; --warn-soft: #fbefd8;
  --danger: #b2382d; --danger-soft: #fbe5e2;
  --done-soft: #eeeaf0;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r1: 6px; --r2: 10px; --r3: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1440px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul { margin: 0; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
::selection { background: var(--ring); color: var(--ink); }

.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  inset-inline-start: var(--s4);
  inset-block-start: -100px;
  padding: var(--s2) var(--s4);
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r2);
  z-index: 10;
}
.skip:focus { inset-block-start: var(--s2); }

.top {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--s3) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.top__nav { display: flex; align-items: center; gap: var(--s5); }
.top__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .top__link:hover { text-decoration: underline; }
}
@media (max-width: 359px) {
  .top__link { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding-inline: var(--s5);
  border: 1px solid transparent;
  border-radius: var(--r2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  text-wrap: balance;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--quiet { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--sm { min-height: 44px; padding-inline: var(--s4); font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--ink-2); }
  .btn--quiet:hover { border-color: var(--ink); }
}

.link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--ink);
}

.noscript { padding: var(--s4) var(--gutter); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
