/* Legendario — кабинет компании. Базовые токены, шрифты, типографика (как в админке, без общих файлов).
   Тёмная тёплая палитра бренда: янтарь/карамель на почти чёрном, кремовый текст.
   CSP: всё локально, без inline-стилей. Cormorant — только латиница (название бренда). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.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: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  color-scheme: dark;

  /* Поверхности */
  --bg: #120b07;
  --bg-deep: #0d0805;
  --surface: #1e140d;
  --surface-2: #261a11;
  --surface-3: #312217;
  --input-bg: #160e09;

  /* Текст */
  --text: #f4e7d0;
  --text-2: #d6c3a4;
  --muted: #a8937a;
  --faint: #7d6b58;

  /* Бренд */
  --amber: #e2a24c;
  --amber-bright: #f3c177;
  --caramel: #c27a36;
  --on-amber: #1a0f08;
  --amber-wash: rgba(226, 162, 76, 0.1);

  /* Линии */
  --line: rgba(226, 162, 76, 0.13);
  --line-strong: rgba(226, 162, 76, 0.3);

  /* Статусы (текст и фон) */
  --ok: #8fca78;
  --ok-bg: rgba(120, 190, 100, 0.12);
  --warn: #f0bd57;
  --warn-bg: rgba(240, 180, 70, 0.12);
  --danger: #f39a7e;
  --danger-strong: #e0674b;
  --danger-bg: rgba(240, 120, 90, 0.12);
  --info: #9cbcf0;
  --info-bg: rgba(120, 160, 230, 0.12);

  /* Типографика и размеры */
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --radius: 10px;
  --radius-sm: 6px;
  --sidebar-w: 232px;
  --gap: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-2);
  font: 400 14px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { color: var(--text); font-weight: 650; }
a { color: var(--amber-bright); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
strong { color: var(--text); font-weight: 650; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: rgba(226, 162, 76, 0.35); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Утилиты ---------- */
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.text-danger { color: var(--danger); }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }

.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;
}

.noscript { padding: 24px; color: var(--text); }

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