@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/onest-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/onest-2.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/onest-3.woff2) format('woff2');
  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: 'Unbounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/unbounded-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/unbounded-2.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/unbounded-3.woff2) format('woff2');
  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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-2.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-3.woff2) format('woff2');
  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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-5.woff2) format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-6.woff2) format('woff2');
  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: 'Noto Sans Georgian';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/noto-sans-georgian-1.woff2) format('woff2');
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31;
}


/* ============================= 1. Токены («Вечерняя лампа») ============================= */
:root, .cz-root {
  --bg: #131110;
  --bg-elev: #1b1815;
  --panel: rgba(27, 24, 21, 0.56);
  --panel-solid: #1b1815;
  --panel-hover: rgba(38, 33, 28, 0.72);
  --panel2: #191614;
  --tile: #25211c;
  --hover: #221e1a;
  --bgmix: #161311;

  --line: rgba(243, 236, 227, 0.08);
  --line-strong: rgba(243, 236, 227, 0.16);
  --line2: #29241f;
  --line3: #231f1b;
  --line4: #38312a;
  --tickb: #5a5048;

  --text: #f3ece3;
  --text2: #d8cfc4;
  --muted: #b3a899;
  --muted2: #9a8f81;
  --faint: #85796b;

  --accent: #f2a65a;
  --accent-soft: rgba(242, 166, 90, 0.14);
  --accent-ink: #1b120a;
  --signal: #f2a65a;

  --good: #6bd490;
  --good-soft: rgba(107, 212, 144, 0.14);
  --sage: #8fbf9a;
  --sagebg: #1d2620;

  --warn: #f2a65a;
  --warn-soft: rgba(242, 166, 90, 0.14);
  --amb: #e6c35c;

  --bad: #e87070;
  --bad-soft: rgba(232, 112, 112, 0.14);
  --coral: #e8836b;

  --info: #70b8e8;
  --info-soft: rgba(112, 184, 232, 0.14);

  --ov: 243, 236, 227;
  --glass: 19, 17, 16;
  --glass2: 27, 24, 21;

  /* 10 пастельных акцентов категорий */
  --cat-dead:     #e8836b;
  --cat-uniform:  #d4b07a;
  --cat-contrast: #d9cfc2;
  --cat-gradient: #c991c9;
  --cat-sharp:    #7fb8c4;
  --cat-motion:   #f2a65a;
  --cat-flicker:  #e6c35c;
  --cat-oled:     #a493d6;
  --cat-tools:    #8fbf9a;
  --cat-extra:    #d98e9a;

  --font-display: 'Unbounded', 'Noto Sans Georgian', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --font-ui:      'Onest', 'Noto Sans Georgian', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  /* Совместимость со встроенными рендерами тестов */
  --paper: #f3ece3;
  --mute: #b3a899;
  --phosphor: #6bd490;
  --ink: #131110;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --blur: blur(22px) saturate(140%);
}

/* ============================= 2. Сброс, Выделение и Фокус ============================= */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}
.cz-root, .test-screen, button, .cz-btn, .cz-card, kbd, svg {
  user-select: none;
  -webkit-user-select: none;
}
input, textarea {
  user-select: text;
  -webkit-user-select: text;
}
a {
  color: var(--accent);
  transition: color .15s;
}
a:hover {
  color: #ffc58a;
}
::selection {
  background: #f2a65a;
  color: #1b120a;
  -webkit-text-fill-color: #1b120a;
  text-shadow: none;
}
::-moz-selection {
  background: #f2a65a;
  color: #1b120a;
  text-shadow: none;
}
img::selection, svg::selection {
  background: transparent;
}
input, textarea {
  caret-color: #f2a65a;
}
input::selection, textarea::selection {
  background: rgba(242, 166, 90, 0.85);
  color: #1b120a;
}
:focus-visible {
  outline: 2px solid #f2a65a;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}

/* Иконки из SVG-спрайта */
svg.ic {
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

