/* ==========================================================================
   EduSpaceApp — Дизайн-токены (палитра, типографика, отступы, тени)
   ========================================================================== */

:root {
  /* Фирменная палитра EduSpaceApp */
  --bg-midnight: #161938;
  --bg-midnight-deep: #10132c;
  --bg-midnight-surface: #21254e;
  --bg-midnight-surface-hover: #292e5e;
  --border-midnight: rgba(255, 255, 255, 0.12);

  --brand-indigo: #3b3ce6;
  --brand-indigo-hover: #2d2ec9;
  --brand-indigo-light: #6e72fa;
  --brand-indigo-soft: #eef0ff;
  --brand-indigo-soft-border: #d5d9ff;

  --brand-amber: #f5a623;
  --brand-amber-soft: #fff6e5;
  --brand-amber-ink: #9a5b04;

  /* Светлые поверхности и текст */
  --bg-page: #f7f8fc;
  --bg-surface: #ffffff;
  --bg-muted: #f0f2f9;
  --border-subtle: #e3e6f2;
  --border-strong: #cdd2e6;

  --ink-primary: #171a33;
  --ink-secondary: #48506e;
  --ink-muted: #707896;
  --ink-on-dark: #ffffff;
  --ink-on-dark-muted: rgba(255, 255, 255, 0.74);
  --ink-on-dark-subtle: rgba(255, 255, 255, 0.56);

  /* Семантические цвета */
  --success: #0d9668;
  --success-soft: #e6f8f1;
  --success-border: #b6ebd7;
  --warning: #c97a06;
  --warning-soft: #fff5e0;
  --danger: #cf344a;
  --danger-soft: #fdecef;
  --whatsapp: #1ea855;
  --whatsapp-hover: #178c45;

  /* Типографика */
  --font-sans: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Шкала размеров шрифта */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: clamp(1.75rem, 2.8vw, 2.35rem);
  --text-hero: clamp(2.15rem, 4.1vw, 3.35rem);

  /* Геометрия и отступы */
  --container-max: 1220px;
  --container-pad: clamp(1rem, 3vw, 2rem);
  --section-py: clamp(4.25rem, 7vw, 6.5rem);
  --header-height: 72px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Тени — сдержанные, преимущественно на продуктовых экранах */
  --shadow-xs: 0 1px 2px rgba(22, 25, 56, 0.05);
  --shadow-sm: 0 4px 16px rgba(22, 25, 56, 0.06);
  --shadow-md: 0 12px 32px rgba(22, 25, 56, 0.09);
  --shadow-screen: 0 24px 60px rgba(8, 10, 28, 0.42);

  /* Переходы */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms var(--ease);
  --t-base: 240ms var(--ease);
}
