/* ============================================================
   БС:Design — Tokens
   Дизайн-токены БизнесСистем (БС: Talks brand foundation).
   Включает CSS-переменные, базовый сброс, body, типографику базовую.
   Подключи ПЕРЕД components.css. Шрифты грузи отдельно (см. README).
   ============================================================ */

:root {
  /* light palette */
  --turq:      #04BAEE;
  --turq-2:    #7FD9F2;
  --blue:      #005892;
  --ink:       #0A2540;
  --bg:        #F2F7FB;
  --surf:      #FFFFFF;
  --surf-2:    #E5F0F7;
  --muted:     rgba(10, 37, 64, 0.60);
  --border:    rgba(10, 37, 64, 0.08);
  --border-strong: rgba(10, 37, 64, 0.16);
  --turq-glow: rgba(4, 186, 238, 0.35);

  /* semantic */
  --warn-bg:    rgba(255, 178, 46, 0.10);
  --warn-line:  #FF8E0B;
  --danger-bg:  rgba(255, 91, 46, 0.08);
  --danger-line: #FF5B2E;

  /* radii */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;

  /* shadows */
  --shadow-soft: 0 18px 50px rgba(10, 37, 64, 0.08);
  --shadow-card: 0 1px 0 rgba(10, 37, 64, 0.04), 0 12px 32px rgba(10, 37, 64, 0.06);
  --shadow-glow: 0 16px 40px var(--turq-glow);

  /* type families */
  --display: "Manrope", system-ui, -apple-system, sans-serif;
  --body:    "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(4, 186, 238, 0.10), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(0, 88, 146, 0.07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
small { font-size: 12px; }

::selection { background: var(--turq); color: white; }

a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 88, 146, 0.25);
  transition: color .15s, border-color .15s;
}
a:hover { color: var(--turq); border-color: var(--turq); }

/* base helpers */
.text-muted { color: var(--muted) !important; }
.text-danger { color: var(--danger-line) !important; font-weight: 500; }
.font-weight-bold { font-weight: 700 !important; }

.mr-2 { margin-right: 12px !important; }
.mb-2 { margin-bottom: 12px !important; }
.mb-3 { margin-bottom: 20px !important; }
.mt-1 { margin-top: 8px !important; }
.mt-4 { margin-top: 32px !important; }

/* focus visibility */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--turq);
  outline-offset: 2px;
}
