/* Общие токены и сброс для сайта и кабинета. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-latin-wght-normal.woff2) format("woff2-variations");
  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";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/onest-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #0f1a3d;
  --ink-2: #1b2a5c;
  --fg: #141a2e;
  --muted: #5b6480;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --line: #e3e6f0;
  --accent: #3366ff;
  --accent-hover: #2652d9;
  --accent-soft: #e8eeff;
  --mint: #12b89a;
  --mint-soft: #ddf6f0;
  --warn: #b26a00;
  --warn-soft: #fff2dc;
  --danger: #c62f3b;
  --danger-soft: #fde8ea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 26, 61, .06), 0 8px 24px rgba(15, 26, 61, .06);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--fg); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--font); padding: 12px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  background: var(--accent); color: #fff; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 8px; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #a3232e; }
.btn.link { background: none; color: var(--accent); padding: 0; border: 0; font-weight: 500; }

label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date],
input[type=number], input[type=search], select, textarea {
  width: 100%; font: 15px/1.4 var(--font); color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.alert { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 15px; }
.alert.error { background: var(--danger-soft); color: var(--danger); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.hp { position: absolute; left: -9999px; }

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