/* Отклик — общие токены для приложения соискателя, кабинета работодателя и страницы для работодателей.
   Светлая тема по умолчанию; тёмная — по системе или <html data-theme="dark">. Меняйте цвета только здесь.
   Палитра и знак — web/shared/brand/README.md. */

@font-face {
  font-family: 'Onest';
  src: url('/shared/fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  src: url('/shared/fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20B8, U+20BD, U+2122, U+2190-2199, U+2212, U+2215;
}

:root {
  /* бренд: «отклик, на который ответили» — живой зелёный */
  --brand-50: #eefbf1; --brand-100: #d8f4df; --brand-200: #b5e8c3; --brand-300: #85d69e;
  --brand-400: #4abb74; --brand-500: #1fae60; --brand-600: #14874a; --brand-700: #0f6b3a; --brand-800: #0b4f2b;
  --brand: #1FAE60;            /* знак, акценты, графика (не для мелкого текста на белом: 2.9:1) */
  --primary: #14874a;          /* кнопки и ссылки: белый текст 4.6:1 */
  --primary-hover: #0f6b3a;
  --on-primary: #ffffff;
  --primary-soft: #eefbf1;     /* фон выбранного/подсветки */
  --primary-soft-ink: #0f6b3a; /* текст на primary-soft: 6.2:1 */

  /* второй акцент — «новое, ждёт вас»: тёплый янтарь (счётчики, метка «новая», срок ответа) */
  --accent: #b45309; --accent-soft: #fef3c7; --accent-strong: #f59e0b;

  /* нейтральные — холодные с каплей зелёного */
  --bg: #f4f7f5;               /* фон страницы */
  --surface: #ffffff;          /* карточки, панели */
  --surface-2: #edf2ef;        /* вложенные поля, полосы */
  --surface-3: #e3eae6;
  --line: #dfe6e2;             /* разделители */
  --line-strong: #c9d3cd;
  --ink: #121a16;              /* основной текст */
  --ink-2: #36413b;
  --muted: #5b6a62;            /* вторичный текст: 5.7:1 на белом */
  --faint: #94a39b;            /* подписи на крупном, плейсхолдеры */

  /* смысловые */
  --ok: #14874a; --ok-soft: #d8f4df;
  --warn: #b45309; --warn-soft: #fef3c7;
  --danger: #c0262d; --danger-soft: #fde8e8;
  --info: #2563eb; --info-soft: #e0ebff;
  --star: #f0a21a;             /* звёзды рейтинга */

  /* этапы отклика (точка/полоска и фон плашки): --st-<status> из API.md §1 */
  --st-invited: #7c3aed;   --st-invited-bg: #f1eaff;
  --st-new: #d97706;       --st-new-bg: #fff6e0;
  --st-viewed: #2563eb;    --st-viewed-bg: #e6f0ff;
  --st-review: #0891b2;    --st-review-bg: #e0f5fa;
  --st-interview: #7c3aed; --st-interview-bg: #f1eaff;
  --st-offer: #14874a;     --st-offer-bg: #d8f4df;
  --st-hired: #0b4f2b;     --st-hired-bg: #b5e8c3;
  --st-rejected: #c0262d;  --st-rejected-bg: #fde8e8;
  --st-declined: #6b7a72;  --st-declined-bg: #edf2ef;
  --st-withdrawn: #6b7a72; --st-withdrawn-bg: #edf2ef;
  --st-expired: #9a6b00;   --st-expired-bg: #f6efd9;

  /* форма */
  --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;
  --sh-1: 0 1px 2px rgba(18,26,22,.06), 0 1px 1px rgba(18,26,22,.04);
  --sh-2: 0 4px 16px rgba(18,26,22,.08), 0 1px 3px rgba(18,26,22,.06);
  --sh-3: 0 18px 50px rgba(18,26,22,.18), 0 4px 12px rgba(18,26,22,.08);
  --ring: 0 0 0 3px rgba(31,174,96,.38);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs: 15px; --fs-md: 17px; --fs-lg: 20px; --fs-xl: 26px; --fs-2xl: 34px; --fs-3xl: 46px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px;

  --ease: cubic-bezier(.2,.8,.2,1);
  --t-fast: 120ms; --t: 200ms; --t-slow: 360ms;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #2fd07c;
    --primary: #3ccf80; --primary-hover: #6ee0a2; --on-primary: #04210f;
    --primary-soft: #12301f; --primary-soft-ink: #9be8be;
    --accent: #f0b44c; --accent-soft: #3a2a0c; --accent-strong: #f5b53d;
    --bg: #0d1210; --surface: #151c18; --surface-2: #1c2520; --surface-3: #25302a;
    --line: #26312b; --line-strong: #34423a;
    --ink: #eef4f0; --ink-2: #cfd9d3; --muted: #9aa9a1; --faint: #68766e;
    --ok: #3ccf80; --ok-soft: #12301f; --warn: #f0b44c; --warn-soft: #3a2a0c;
    --danger: #f2777b; --danger-soft: #3d1416; --info: #7aa7ff; --info-soft: #14244a; --star: #f5b53d;
    --st-invited: #b79cff; --st-invited-bg: #2a1d4a; --st-new: #f0b44c; --st-new-bg: #3a2a0c;
    --st-viewed: #7aa7ff; --st-viewed-bg: #14244a; --st-review: #5fd0e6; --st-review-bg: #0f3038;
    --st-interview: #b79cff; --st-interview-bg: #2a1d4a; --st-offer: #3ccf80; --st-offer-bg: #12301f;
    --st-hired: #9be8be; --st-hired-bg: #17402a; --st-rejected: #f2777b; --st-rejected-bg: #3d1416;
    --st-declined: #9aa9a1; --st-declined-bg: #1c2520; --st-withdrawn: #9aa9a1; --st-withdrawn-bg: #1c2520;
    --st-expired: #d9b25a; --st-expired-bg: #332a12;
    --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 6px 20px rgba(0,0,0,.45); --sh-3: 0 20px 60px rgba(0,0,0,.6);
    --ring: 0 0 0 3px rgba(60,207,128,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #2fd07c;
  --primary: #3ccf80; --primary-hover: #6ee0a2; --on-primary: #04210f;
  --primary-soft: #12301f; --primary-soft-ink: #9be8be;
  --accent: #f0b44c; --accent-soft: #3a2a0c; --accent-strong: #f5b53d;
  --bg: #0d1210; --surface: #151c18; --surface-2: #1c2520; --surface-3: #25302a;
  --line: #26312b; --line-strong: #34423a;
  --ink: #eef4f0; --ink-2: #cfd9d3; --muted: #9aa9a1; --faint: #68766e;
  --ok: #3ccf80; --ok-soft: #12301f; --warn: #f0b44c; --warn-soft: #3a2a0c;
  --danger: #f2777b; --danger-soft: #3d1416; --info: #7aa7ff; --info-soft: #14244a; --star: #f5b53d;
  --st-invited: #b79cff; --st-invited-bg: #2a1d4a; --st-new: #f0b44c; --st-new-bg: #3a2a0c;
  --st-viewed: #7aa7ff; --st-viewed-bg: #14244a; --st-review: #5fd0e6; --st-review-bg: #0f3038;
  --st-interview: #b79cff; --st-interview-bg: #2a1d4a; --st-offer: #3ccf80; --st-offer-bg: #12301f;
  --st-hired: #9be8be; --st-hired-bg: #17402a; --st-rejected: #f2777b; --st-rejected-bg: #3d1416;
  --st-declined: #9aa9a1; --st-declined-bg: #1c2520; --st-withdrawn: #9aa9a1; --st-withdrawn-bg: #1c2520;
  --st-expired: #d9b25a; --st-expired-bg: #332a12;
  --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 6px 20px rgba(0,0,0,.45); --sh-3: 0 20px 60px rgba(0,0,0,.6);
  --ring: 0 0 0 3px rgba(60,207,128,.45);
  color-scheme: dark;
}

/* ── база ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs)/1.45 var(--font); font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.ic { display: inline-flex; flex: none; line-height: 0; }
.num, .tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: var(--brand-200); color: #121a16; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
