/* RailTech UI Design Tokens */
/* Файлы шрифтов нужно положить в папку ../fonts/ */

@font-face {
  font-family: "RussianRail G Pro";
  src: url("../fonts/RussianRail\ G\ Pro\ Regular.otf") format("otf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "FSRailway Book";
  src: url("../fonts/FSRailwayBook Regular.ttf") format("ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --system-version: "2026";
  /* Шрифты */
  --font-heading:
    "RussianRail G Pro", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-body: "FSRailway Book", Arial, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  /* Брендовые цвета */
  --color-brand-red: #e21a1a;
  --color-brand-red-hover: #c91818;
  --color-brand-red-pressed: #a91414;
  --color-brand-red-soft: #fff1f1;
  --color-brand-red-subtle: #fdecec;

  /* Фоны */
  --color-bg-app: #f5f6f8;
  --color-bg-surface: #ffffff;
  --color-bg-muted: #f9fafb;
  --color-bg-subtle: #f3f4f6;

  /* Текст */
  --color-text-primary: #111827;
  --color-text-secondary: #374151;
  --color-text-muted: #6b7280;
  --color-text-disabled: #9ca3af;
  --color-text-inverse: #ffffff;

  /* Границы */
  --color-border-muted: #e5e7eb;
  --color-border: #d1d5db;
  --color-border-hover: #9ca3af;
  --color-border-strong: #111827;

  /* Статусы */
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-error: #dc2626;
  --color-info: #2563eb;

  /* Типографика */
  --text-h1-size: 28px;
  --text-h1-line: 36px;
  --text-h1-weight: 400;

  --text-h2-size: 22px;
  --text-h2-line: 30px;
  --text-h2-weight: 400;

  --text-h3-size: 18px;
  --text-h3-line: 24px;
  --text-h3-weight: 400;

  --text-h4-size: 16px;
  --text-h4-line: 22px;
  --text-h4-weight: 400;

  --text-body-size: 14px;
  --text-body-line: 20px;
  --text-body-weight: 400;

  --text-label-size: 13px;
  --text-label-line: 16px;
  --text-label-weight: 400;

  --text-caption-size: 12px;
  --text-caption-line: 16px;
  --text-caption-weight: 400;

  /* Отступы */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 999px;

  /* Размеры компонентов */
  --control-height: 32px;
  --control-radius: var(--radius-md);
  --control-padding-x: 12px;
  --button-padding-x: 16px;
  --icon-size: 16px;
  --icon-stroke-width: 2;

  /* Тени */
  --shadow-sm: 0 2px 6px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 20px rgba(17, 24, 39, 0.08);

  /* Focus */
  --focus-ring: 0 0 0 2px rgba(17, 24, 39, 0.12);
}
