/* =========================================================================
   hosting.belles.kz — theme.css: токены дизайн-системы админки (P16 H1)
   Источник: _tasks/photo/design-lab/hosting/theme.css в выборе владельца (OWNER-CHOICE.md):
   шрифт Inter Tight · фон #f4f4f5 · акцент brand (бордовый везде) · радиус 16 · плотность compact.
   Переключателей вариантов (data-alt-*) нет — выбранные значения записаны прямо в :root.
   Подключение: layout.blade.php → theme.css, ui.css, motion.css, tour.css (через hosting_asset()).
   ========================================================================= */

/* ---------- Шрифт: Inter Tight (SIL OFL 1.1), локально, variable 100–900;
   латиница + кириллица + казахские буквы (ә ғ қ ң ө ұ ү һ і) + ₸ — проверено fontTools (P16 H1) ---------- */
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight/inter-tight.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* --- Шрифт --- */
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-features: normal;

  /* Шкала (rem, шаг ~1.14); compact: основной 14 */
  --fs-xs: .75rem;    /* 12 */
  --fs-sm: .8125rem;  /* 13 */
  --fs-md: .875rem;   /* 14 — основной текст, поля, кнопки (compact) */
  --fs-lg: 1.0625rem; /* 17 — заголовок карточки */
  --fs-xl: 1.375rem;  /* 22 — заголовок страницы */
  --fs-2xl: 1.75rem;  /* 28 — цифры KPI, заголовок входа */
  --lh-tight: 1.25;
  --lh: 1.5;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --tracking-head: -.012em;

  /* --- Нейтральные (фон #f4f4f5) --- */
  --canvas: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #f8f8f9;
  --surface-hover: #f4f4f5;
  --surface-press: #ececef;
  --surface-sunken: #f4f4f5;
  --line: #e4e4e7;
  --line-soft: #efeff1;
  --line-input: #8b8b94;      /* рамка полей ≥3:1 к белому (WCAG 1.4.11) */
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #6b6b73;
  --text-on-dark: #ffffff;
  --skeleton: #ececef;
  --skeleton-hi: #f6f6f7;
  --overlay: rgb(24 24 27 / .42);

  /* --- Бренд и акцент: бордовый везде (brand) --- */
  --brand: #950F1E;
  --brand-hover: #7c0c19;
  --brand-press: #680a15;
  --brand-soft: #fbeff1;
  --brand-line: #f1d3d7;
  --ink: #18181b;
  --ink-hover: #2e2e33;
  --ink-press: #3f3f46;

  --primary-bg: var(--brand);
  --primary-bg-hover: var(--brand-hover);
  --primary-bg-press: var(--brand-press);
  --primary-fg: #fff;
  --accent-ui: var(--brand);
  --nav-active-bg: var(--brand-soft);
  --nav-active-fg: var(--brand);
  --nav-active-icon: var(--brand);
  --selected-bg: #fdf5f6;
  --selected-line: var(--brand-line);
  --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent-ui);

  /* --- Семантика (текст ≥5:1 на своём фоне) --- */
  --success: #067647; --success-bg: #ecfdf3; --success-line: #abefc6;
  --warning: #b54708; --warning-bg: #fffaeb; --warning-line: #fedf89;
  --danger:  #b42318; --danger-bg:  #fef3f2; --danger-line:  #fecdca;
  --danger-solid: #c0261b; --danger-solid-hover: #a31f16;
  --info:    #175cd3; --info-bg:    #eff8ff; --info-line:    #b2ddff;
  --violet:  #5b21b6; --violet-bg:  #f5f3ff; --violet-line:  #ddd6fe;
  --neutral: #3f3f46; --neutral-bg: #f4f4f5; --neutral-line: #e4e4e7;

  /* --- Радиусы: база 16 --- */
  --r-base: 16px;
  --r-xs: calc(var(--r-base) / 3);
  --r-sm: calc(var(--r-base) * .5 + 2px);
  --r-ctl: calc(var(--r-base) * .75 + 1px);
  --r-card: var(--r-base);
  --r-lg: calc(var(--r-base) + 4px);
  --r-pill: 999px;

  /* --- Тени --- */
  --shadow-xs: 0 1px 2px rgb(24 24 27 / .05);
  --shadow-sm: 0 1px 2px rgb(24 24 27 / .04), 0 2px 6px -1px rgb(24 24 27 / .05);
  --shadow-md: 0 2px 4px -1px rgb(24 24 27 / .06), 0 8px 20px -4px rgb(24 24 27 / .08);
  --shadow-lg: 0 4px 8px -2px rgb(24 24 27 / .06), 0 20px 40px -8px rgb(24 24 27 / .16);

  /* --- Отступы (шаг 4) --- */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;

  /* --- Плотность: compact --- */
  --ctl-h: 36px;
  --ctl-h-sm: 30px;
  --row-h: 44px;            /* ui.css уточняет: строка списка 48 (compact) */
  --card-pad: 16px;
  --page-pad: 24px;
  --stack: 16px;
  --tap: 44px;

  /* --- Каркас --- */
  --sidebar-w: 236px;
  --sidebar-w-compact: 72px;
  --topbar-h: 56px;
  --content-max: 1280px;
  --form-max: 880px;

  /* --- Движение --- */
  --dur-1: 120ms; --dur-2: 180ms; --dur-3: 240ms; --dur-4: 320ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-emph: cubic-bezier(.2, 0, 0, 1);
  --ease-spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 17.6%, 1.017 21.6%, 1.035 24.4%, 1.032 27.9%, 1.006 37.2%, .998 47.6%, 1);

  --z-sticky: 20; --z-sidebar: 40; --z-overlay: 50; --z-popover: 60; --z-modal: 70; --z-toast: 80;
}

/* ---------- Мобильная (≤ 767): крупные цели, поля 44px, 16px — iOS не зумит ---------- */
@media (max-width: 767px) {
  :root {
    --ctl-h: 44px; --ctl-h-sm: 40px; --row-h: 64px; --card-pad: 16px; --page-pad: 16px; --stack: 16px;
    --fs-md: 1rem; --fs-xl: 1.25rem; --topbar-h: 56px;
  }
}
