/* Workforix — все стили лендинга. Значения перенесены из макета дизайнера (Final M,
   см. README) один в один; где здесь стоит что-то, чего в макете нет, рядом комментарий. */

:root {
  --ink: #17171a;
  --ink-hover: #3a3a3e;
  --text-2: #6e6e73;
  --text-3: #8a8a8f;
  --text-dark-2: #3a3a3e;
  --page: #fbfbfa;
  --white: #ffffff;
  --field: #f4f4f2;
  --panel: #f6f5f2;
  --line: rgba(0, 0, 0, 0.09);
  --line-soft: rgba(0, 0, 0, 0.07);

  /* Цвета макета заданы в oklch, а его нет в Chrome до 111 (на Windows 7 и 8.1 последний —
     109-й). Здесь их ближайшие sRGB-значения, точные oklch — в @supports ниже: часть цветов
     выходит за sRGB, и на P3-экранах hex выглядел бы бледнее задуманного. */
  --err: #b63325;
  --result-bg: #e8f3ff;
  --log-done: #1b9247;
  --j-ask-bg: #fff9ed;          /* строка журнала, которая ждёт решения */

  /* Статусы сотрудников в демо */
  --st-work-dot: #0f74c5;
  --st-work-fg: #005fa8;
  --st-ask-dot: #e38f00;
  --st-ask-fg: #9d5300;
  --st-idle-dot: #c4c4c8;
  --live: #47aa62;              /* «Команда работает 24/7», «Работает сам» */
  --your-turn: #974d00;         /* «Ваш ход: одобрите или отклоните» */
  --amber-glow: rgba(227, 143, 0, 0.6);

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --sec-pad: clamp(80px, 10vw, 136px);
  color-scheme: light;
}

/* Пастели ролей: фон, текст и точка в ходе поручения. Один класс красит и метку, и аватар,
   и чип, и точку. --role-live — чуть насыщеннее точки: им в фоновой работе отмечен занятый
   сотрудник и его записи в ленте. */
.r-fin { --tint: #e2f2ff; --tint-fg: #194f81; --role-dot: #4f84ba; --role-live: #4284c5; }
.r-buy { --tint: #feedd7; --tint-fg: #754b10; --role-dot: #a37734; --role-live: #a97416; }
.r-rev { --tint: #fce9fa; --tint-fg: #743f6f; --role-dot: #a26a9d; --role-live: #a864a2; }
.r-cnt { --tint: #daf7f6; --tint-fg: #04585c; --role-dot: #0f9293; --role-live: #009696; }
.r-ads { --tint: #ffe9e6; --tint-fg: #8e3f34; }
.r-mgr { --tint: #17171a; --tint-fg: #ffffff; --role-dot: #17171a; --role-live: #17171a; }
.r-mgr-inv { --tint: #ffffff; --tint-fg: #17171a; }
.r-mgr-soft { --tint: #ececea; --tint-fg: #17171a; }

@supports (color: oklch(0 0 0)) {
  :root {
    --err: oklch(0.52 0.17 30);
    --result-bg: oklch(0.96 0.02 250);
    --log-done: oklch(0.58 0.15 150);
    --j-ask-bg: oklch(0.985 0.018 80);
    --st-work-dot: oklch(0.55 0.15 250);
    --st-work-fg: oklch(0.48 0.14 250);
    --st-ask-dot: oklch(0.72 0.16 70);
    --st-ask-fg: oklch(0.52 0.13 60);
    --live: oklch(0.66 0.14 150);
    --your-turn: oklch(0.5 0.13 60);
    --amber-glow: oklch(0.72 0.16 70 / 0.6);
  }
  .r-fin { --tint: oklch(0.955 0.03 250); --tint-fg: oklch(0.42 0.1 250); --role-dot: oklch(0.6 0.1 250); --role-live: oklch(0.6 0.12 250); }
  .r-buy { --tint: oklch(0.955 0.035 75); --tint-fg: oklch(0.45 0.09 70); --role-dot: oklch(0.6 0.1 75); --role-live: oklch(0.6 0.12 75); }
  .r-rev { --tint: oklch(0.955 0.03 330); --tint-fg: oklch(0.45 0.1 330); --role-dot: oklch(0.6 0.1 330); --role-live: oklch(0.6 0.12 330); }
  .r-cnt { --tint: oklch(0.955 0.03 195); --tint-fg: oklch(0.42 0.07 200); --role-dot: oklch(0.6 0.1 195); --role-live: oklch(0.6 0.12 195); }
  .r-ads { --tint: oklch(0.955 0.03 25); --tint-fg: oklch(0.47 0.11 30); }
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.modal-open { overflow: hidden; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #55555a; }
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: #fff; }
[hidden] { display: none !important; }

/* В макете фокуса с клавиатуры не видно вовсе; без него по странице не пройти с Tab. */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.band-dark :focus-visible, .plan--dark :focus-visible, .hire-bar :focus-visible { outline-color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--dot, var(--st-idle-dot)); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; border-radius: 999px; font-weight: 500;
  text-align: center; transition: background-color .2s, color .2s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-hover); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #e9e9e7; color: var(--ink); }
.btn-white-ring { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.btn-ring { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.btn-ring:hover { color: var(--ink); background: rgba(0, 0, 0, 0.03); }
.btn-light { background: var(--field); color: var(--ink); }
.btn:disabled { cursor: progress; opacity: .7; }

.btn-s { font-size: 14px; padding: 12px 18px; }
.btn-l { font-size: 17px; padding: 15px 28px; }
.btn-ring.btn-l { padding: 15px 24px; }
.btn-xs { font-size: 13px; padding: 12px 18px; }
.btn-m { font-size: 15px; font-weight: 600; padding: 12px 22px; }
.btn-plan { font-size: 15px; font-weight: 600; padding: 13px 20px; }
.btn-final { margin-top: 36px; font-size: 17px; font-weight: 600; padding: 16px 30px; }
.btn-wide { width: 100%; font-size: 16px; font-weight: 600; padding: 15px 20px; }

/* ---------- шапка ---------- */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(251, 251, 250, 0.76);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
/* Поля и промежутки сжимаются на узких экранах, чтобы рядом с кнопкой поместилось «Войти»;
   от 460px шапка прежняя (24px). */
.hdr-in {
  max-width: 1240px; margin: 0 auto; height: 60px;
  padding: 0 clamp(16px, calc((100vw - 340px) * 0.2 + 6px), 24px);
  display: flex; align-items: center; gap: clamp(8px, calc((100vw - 340px) * 0.2), 24px);
}
.hdr-act { flex: none; margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hdr .btn { flex: none; padding-left: clamp(14px, 4vw, 18px); padding-right: clamp(14px, 4vw, 18px); }
.hdr-login {
  flex: none; display: inline-block; white-space: nowrap; color: var(--ink);
  padding: 13px clamp(6px, 2vw, 12px); font-size: 14px; line-height: 18px; font-weight: 500;
}
/* Отступление от макета: там ссылка уходит через max-width с overflow: hidden, но он обрезал бы
   кольцо фокуса. Порог тот же — уже 372px остаются «Войти» в подвале и в анкете. */
@media (max-width: 371.98px) { .hdr-login { display: none; } }
.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-word { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; }
.logo-word span { color: #9a9aa0; }
.nav {
  flex: 1 1 0; min-width: 0; display: flex; justify-content: center; column-gap: 30px;
  font-size: 14px; line-height: 20px;
}
.nav a { color: var(--text-dark-2); white-space: nowrap; }
.nav a:hover { color: var(--ink); }
/* Порог выше, чем был до «Войти» (759px). Медиазапрос считает ширину вместе с полосой прокрутки,
   а место под меню — без неё. С полосой 15px (Windows) на 760–767px меню шире своего места и
   зазоры по краям сжимаются до 19px, на 768px оно шире на 1–2px, что незаметно. Без полосы
   (телефоны, iPad в портрете — 768px) на 768px зазоры 31px. */
@media (max-width: 767px) { .nav { display: none; } }

/* ---------- общие для секций ---------- */
.sec { background: var(--page); padding: var(--sec-pad) 24px; }
.sec--white { background: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; }
.kicker { margin: 0 0 16px; font-size: 15px; font-weight: 500; color: var(--text-2); }
h2 {
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; font-weight: 600;
  letter-spacing: -0.04em; text-wrap: balance;
}
.h2-narrow { max-width: 820px; }
.lead { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.lead--520 { max-width: 520px; }
.lead--620 { max-width: 620px; }

/* ---------- первый экран ---------- */
.hero { background: #fff; padding: clamp(108px, 14vw, 148px) 24px clamp(64px, 9vw, 96px); }
.hero-text {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-kicker { margin: 0 0 22px; font-size: 15px; font-weight: 500; color: var(--text-2); }
h1 {
  font-size: clamp(44px, 7.4vw, 108px); line-height: 0.98; font-weight: 600;
  letter-spacing: -0.05em; max-width: 1100px; text-wrap: balance;
}
/* Без этого строка рвётся по дефису: «Ваш ИИ-» / «управляющий. Его». На телефоне фраза
   целиком не влезает в строку даже при 44px, поэтому только от 600px и шире. */
@media (min-width: 600px) { .nobr { white-space: nowrap; } }
/* Короткое слово с дефисом, которое влезает в строку на любой ширине. */
.keep { white-space: nowrap; }
.hero-sub {
  margin-top: 28px; max-width: 680px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5;
  color: var(--text-2); text-wrap: pretty;
}
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* демо */
.demo {
  max-width: 1180px; margin: clamp(40px, 7vw, 72px) auto 0;
  background: var(--panel); border-radius: 32px; padding: clamp(16px, 3vw, 32px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px;
}
.team { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
/* На телефоне подпись и «Команда работает 24/7» в одну строку не влезают: пусть метка уходит
   на свою строку целиком, а не рвёт «Что поручим / команде?» пополам. */
.ask-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 12px; margin-bottom: 10px;
}
.demo-label { font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--text-dark-2); white-space: nowrap; }
.dot--live { --dot: var(--live); animation: wfx-blink 1.6s ease-in-out infinite; }

/* Поле поручения. Курсор мигает всегда, как в настоящем поле в фокусе. */
.ask {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px; padding: 8px 8px 8px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
}
/* В макете клик по самому полю ничего не делает, а курсор в нём зовёт кликнуть и набрать
   текст. Клик по полю делает то же, что «Поручить»: запускает поручение из подсказки. */
.ask-field {
  flex: 1; min-width: 0; padding: 10px 0; cursor: pointer;
  display: flex; align-items: center; overflow: hidden;
  font-size: 15px; line-height: 1.4;
}
/* Набираемый текст прижат вправо: длинное поручение уходит за левый край, и у курсора видно
   последние напечатанные слова, как в настоящем поле. В макете он обрезался многоточием
   справа, и на телефоне печать шла «за кадром». */
.ask-text { display: flex; justify-content: flex-end; overflow: hidden; white-space: nowrap; }
.ask-ph { color: #a1a1a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-caret {
  width: 2px; height: 19px; background: var(--ink); margin: 0 2px; flex: none;
  animation: wfx-caret 1s steps(1) infinite;
}
.ask-send {
  flex: none; border: 0; cursor: pointer; border-radius: 12px; padding: 12px 18px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  transition: background-color .2s;
}
.ask-send:hover { background: var(--ink-hover); }

.chips { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { font-size: 13px; color: var(--text-3); }
.chip {
  border: 0; cursor: pointer; padding: 11px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.chip:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(0, 0, 0, 0.08); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.coach { margin-top: 14px; display: flex; animation: wfx-bob 1.6s ease-in-out infinite; }
.coach-in {
  position: relative; max-width: 360px; padding: 11px 16px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 14px; line-height: 1.4;
}
.coach-in::before {
  content: ""; position: absolute; top: -5px; left: 84px; width: 12px; height: 12px;
  background: var(--ink); transform: rotate(45deg); border-radius: 2px;
}

/* Цвет точки и подписи статуса задаёт data-st — его переключает landing.js. auto — управляющий
   в фоновом режиме («Работает сам»), live — сотрудник, который сейчас занят фоновой задачей:
   его точка и обводка в цвет роли. */
[data-st="idle"] { --dot: var(--st-idle-dot); --st-fg: var(--text-2); }
[data-st="work"] { --dot: var(--st-work-dot); --st-fg: var(--st-work-fg); }
[data-st="done"] { --dot: var(--ink); --st-fg: var(--ink); }
[data-st="ask"]  { --dot: var(--st-ask-dot); --st-fg: var(--st-ask-fg); }
[data-st="auto"] { --dot: var(--live); }
[data-st="live"] { --dot: var(--role-live); --st-fg: var(--tint-fg); }
[data-st="work"], [data-st="ask"], [data-st="live"] { --ring: var(--dot); }

.org { display: flex; flex-direction: column; align-items: center; }
.mgr-card {
  width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 12px 18px 12px 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .05);
  outline: 2px solid var(--ring, transparent); outline-offset: 3px; transition: outline-color .3s;
  display: flex; align-items: center; gap: 12px;
}
/* Знак из логотипа: в фоне точки медленно вращаются, пока команда работает над поручением —
   поворачиваются рывками по 120°, и центр «дышит». data-busy ставит landing.js. Ось вращения
   (24, 26) — в координатах viewBox. */
.mgr-mark { display: block; flex: none; overflow: visible; }
.mgr-core, .mgr-sats { transform-origin: 24px 26px; }
.mgr-sats { animation: wfx-spin 9s linear infinite; }
.mgr-card[data-busy] .mgr-sats { animation: wfx-orbit 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
.mgr-card[data-busy] .mgr-core { animation: wfx-core 1.2s ease-in-out infinite; }
.mgr-body { flex: 1; min-width: 0; }
.mgr-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.mgr-desc { font-size: 13px; line-height: 1.3; color: var(--text-2); margin-top: 2px; }
.mgr-st {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-top: 8px;
  font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px;
  background: var(--panel); color: var(--text-dark-2);
}
.mgr-card[data-st="auto"] .dot { animation: wfx-blink 1.6s ease-in-out infinite; }
.bus-v { width: 1px; height: 22px; background: rgba(0, 0, 0, 0.16); }
.bus-h { width: 76%; height: 1px; background: rgba(0, 0, 0, 0.16); }

/* В макете auto-fit с minmax(130px): в колонке шириной 548px (десктоп) влезают три карточки,
   и «Контент» висит один во втором ряду. Четыре в ряд тоже не годятся: в карточке шириной
   ~127px фоновый статус «Сейчас проверяет удержания» занимает три строки. Поэтому всегда 2×2 —
   на десктопе те же два ряда, что в макете, и такая же сетка, как на телефоне. */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: -10px; }
.spec {
  background: var(--tint); border-radius: 16px; padding: 14px;
  outline: 2px solid var(--ring, transparent); outline-offset: 3px; transition: opacity .35s, outline-color .3s;
}
.spec.is-dim { opacity: .42; }
.spec-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.spec-desc { font-size: 13px; color: var(--text-2); margin-top: 2px; }
/* Фоновая задача переходит от сотрудника к сотруднику каждые 2,6 с, и подпись «Сейчас сверяет
   выплаты» занимает две строки, а «На связи» — одну. Без запаса в две строки ряд карточек
   менял высоту на каждом шаге, и всё ниже прыгало (на телефоне — и лента под карточками). */
.spec-st {
  margin-top: 12px; display: flex; align-items: flex-start; gap: 6px; min-height: 2.5em;
  font-size: 12px; font-weight: 500; line-height: 1.25; color: var(--st-fg);
}
.spec-st .dot { margin-top: calc((1.25em - 7px) / 2); }
/* То же на узком экране: карточка ~130px, «Сейчас проверяет удержания» — три строки; описание
   управляющего то в одну строку («Сейчас собирает сводку»), то в две. */
@media (max-width: 479px) {
  .spec-st { min-height: 3.75em; }
  .mgr-desc { min-height: 2.6em; }
}

/* scroll-margin — запас под фиксированную шапку (61px): к ленте подкручивает «К фоновой работе». */
.feed {
  background: #fff; border-radius: 24px; padding: 22px; min-width: 0;
  display: flex; flex-direction: column; gap: 14px; min-height: 420px;
  scroll-margin-top: 76px;
}
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.feed-title { font-size: 15px; font-weight: 600; }
.feed-tag { font-size: 12px; color: var(--text-3); }

/* Фоновая работа: пять последних записей, новые сверху, старые бледнеют. */
.feed-auto { flex: 1; display: flex; flex-direction: column; gap: 14px; }
/* Высота ленты фиксирована: записи разной длины, и без этого на телефоне, где лента стоит
   отдельным рядом, высота блока менялась бы каждые 2,6 с и сдвигала страницу под пальцем.
   Что не влезло, плавно уходит под край — это самые бледные, старые записи. */
.feed-auto-lines {
  display: flex; flex-direction: column; gap: 14px;
  height: 330px; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.feed-auto-lines .feed-line { transition: opacity .4s; }
.feed-auto-lines .feed-line-dot { background: var(--role-live); }
.feed-auto-note {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft);
  font-size: 13px; line-height: 1.5; color: var(--text-2);
}
/* Ход поручения — live-область, она остаётся в разметке и в фоновом режиме, только пустая:
   область, которая появляется вместе с текстом, диктор может не объявить. Пустая она не должна
   добавлять лишний зазор gap снизу панели. */
.feed-run { display: flex; flex-direction: column; gap: 14px; }
.feed-auto:not([hidden]) + .feed-run { margin-top: -14px; }
.feed-auto[hidden] + .feed-run { flex: 1; }
.feed-prompt {
  background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px;
  font-size: 14px; line-height: 1.45;
}
.feed-prompt-who { opacity: .6; }
.feed-lines { display: flex; flex-direction: column; gap: 14px; }
.feed-line { display: grid; grid-template-columns: 8px 1fr; gap: 12px; }
.feed-line-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: var(--role-dot); }
.feed-line-meta { font-size: 12px; color: var(--text-3); }
.feed-line-meta b { font-weight: 600; color: var(--ink); }
.feed-line-text { font-size: 14px; line-height: 1.45; margin-top: 2px; }
.feed-result { margin-top: auto; background: var(--result-bg); border-radius: 16px; padding: 16px; }
.feed-result-label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.feed-result-text { font-size: 15px; font-weight: 500; line-height: 1.45; margin-top: 4px; }
.your-turn {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--your-turn);
}
.your-turn-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--st-ask-dot);
  animation: wfx-amber 1.4s ease-out infinite;
}
.feed-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-pulse { animation: wfx-ring 1.6s ease-out infinite; }
.feed-decided { margin-top: 10px; font-size: 13px; color: var(--text-dark-2); }
.feed-back {
  margin-top: 12px; border: 0; padding: 0; cursor: pointer; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}

/* Анимации демо из макета (второй <style> прототипа), имена — как у остальных здесь. */
@keyframes wfx-orbit {
  0% { transform: rotate(0deg); } 28% { transform: rotate(120deg); } 33.3% { transform: rotate(120deg); }
  61% { transform: rotate(240deg); } 66.6% { transform: rotate(240deg); }
  94% { transform: rotate(360deg); } 100% { transform: rotate(360deg); }
}
@keyframes wfx-core { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.86); } }
@keyframes wfx-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.72); } }
@keyframes wfx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes wfx-ring { 0% { box-shadow: 0 0 0 0 rgba(23, 23, 26, 0.35); } 100% { box-shadow: 0 0 0 11px rgba(23, 23, 26, 0); } }
@keyframes wfx-amber { 0% { box-shadow: 0 0 0 0 var(--amber-glow); } 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes wfx-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Демо ушло с экрана (или вкладка скрыта) — анимации на паузе, чтобы не тратить батарею. */
.demo.is-off *, .demo.is-off *::before { animation-play-state: paused !important; }
.demo-note { max-width: 1180px; margin: 16px auto 0; font-size: 13px; color: var(--text-3); text-align: center; }

/* ---------- как сейчас / с Workforix ---------- */
.cmp { margin-top: 56px; display: flex; flex-direction: column; }
/* В макете колонки резиновые (auto-fit, minmax 340px), и в столбик они вставали при viewport
   около 770px — не там, где переключаются шапка и подписи «Сейчас». Колонки заданы тем же
   порогом 720px, что и подписи, чтобы раскладка и подписи не расходились. */
.cmp-row {
  display: grid; grid-template-columns: 1fr;
  gap: 8px 40px; padding: 26px 0; border-top: 1px solid var(--line);
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45;
}
@media (min-width: 720px) { .cmp-row { grid-template-columns: 1fr 1fr; } }
.cmp-row:last-child { border-bottom: 1px solid var(--line); }
.cmp-head { padding: 0 0 14px; border-top: 0; font-size: 13px; font-weight: 600; color: var(--text-3); line-height: normal; }
.cmp-before { color: var(--text-3); display: flex; flex-direction: column; gap: 6px; }
.cmp-label { font-size: 13px; font-weight: 600; line-height: normal; }
/* На широком экране колонки подписаны общей шапкой, и «Сейчас» у строки остаётся только для
   экранного диктора. Уже 720px колонки встают друг под друга: шапку прячем, подпись
   показываем над каждой левой ячейкой. Правую отмечает метка роли. */
@media (min-width: 720px) {
  .cmp-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
@media (max-width: 719.98px) { .cmp-head { display: none; } }
.cmp-after { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tag {
  font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 999px;
  background: var(--tint); color: var(--tint-fg); line-height: normal;
}

/* ---------- журнал ---------- */
.j-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px clamp(40px, 6vw, 80px); align-items: end;
}
.j-head .lead { margin-top: 0; font-size: clamp(17px, 1.6vw, 19px); }

.j-bar {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px;
}
.j-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.j-filter {
  border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 9px 10px 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; background: #fff; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: background-color .2s, color .2s;
}
.j-filter[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.j-count {
  min-width: 24px; padding: 2px 7px; border-radius: 999px; text-align: center;
  font-size: 12px; background: #f1f1ef;
}
.j-filter[aria-pressed="true"] .j-count { background: rgba(255, 255, 255, 0.18); }
.j-bulk { font-size: 14px; min-height: 44px; padding: 11px 18px; }

/* Строка — flex с переносом и блоками фиксированной ширины (276 / от 300 / 370), поэтому
   колонки у всех строк совпадают, а на узком экране блоки встают друг под друга: время и
   сотрудник, текст, статус с кнопками. */
.j-table {
  margin-top: 16px; background: var(--panel); border-radius: clamp(20px, 2.4vw, 24px); padding: 8px;
  container-type: inline-size;
}
.j-box { background: #fff; border-radius: 18px; overflow: hidden; }
.j-rows { list-style: none; margin: 0; padding: 0; }
.j-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 20px;
  padding: 18px 20px; border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.j-row[data-j="ask"] { background: var(--j-ask-bg); }
.j-when { width: 276px; max-width: 100%; flex: none; display: flex; align-items: center; gap: 12px 20px; }
.j-what { flex: 1 1 300px; min-width: 0; }
.j-res { width: 370px; max-width: 100%; flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.j-time { width: 56px; flex: none; }
.j-st-col { width: 150px; flex: none; }
.j-row .j-time { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--text-3); }
.j-row .j-what { padding-top: 3px; }
.j-who { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
.j-ava {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--tint); color: var(--tint-fg); font-size: 12px; font-weight: 600;
}
.j-text { font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.j-data { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--text-3); }
.j-st {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
  padding: 5px 10px; border-radius: 999px; background: var(--field); white-space: nowrap;
}
.j-row[data-j="ask"] .j-st { --dot: var(--st-ask-dot); }
.j-row[data-j="work"] .j-st { --dot: var(--st-work-dot); }
.j-row[data-j="done"] .j-st, .j-row[data-j="ok"] .j-st { --dot: var(--log-done); }
.j-row[data-j="no"] .j-st { --dot: #a1a1a6; }
.j-actions { display: flex; gap: 6px; }
.btn-row { font-size: 13px; min-height: 44px; padding: 9px 16px; }
.j-decided { flex: 1 1 160px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.j-empty { padding: 40px 20px; text-align: center; font-size: 15px; color: var(--text-3); }
.j-note { margin-top: 12px; font-size: 12px; color: var(--text-3); }

/* Шапка колонок — только когда строки помещаются в одну линию. В макете она завязана на
   ширину окна (от 1100px), но строки переносятся по ширине самой таблицы, и с полосой
   прокрутки Windows шапка появлялась бы над уже сложенными строками. Порог — ширина строки:
   276 + 300 + 370 + два зазора по 20 + поля строки 2×20 = 1026px. Без container queries
   шапки просто нет. flex-start — подписи по верху, как в макете: иначе .j-when и .j-res
   растянулись бы на высоту шапки и опустили свои подписи (у них align-items: center от строк). */
.j-cols {
  display: none; height: 44px; align-items: flex-start; gap: 20px;
  padding: 12px 20px 10px; font-size: 13px; color: var(--text-3);
}
@container (min-width: 1026px) { .j-cols { display: flex; } }

/* В макете карточки резиновые (auto-fit от 220px), и примерно с 730 до 960px окна они
   вставали 3 + 1. По README дизайнера на узких экранах их 2 или 1 в ряд — так и сделано. */
.levels { margin-top: clamp(44px, 5vw, 56px); }
.levels-title { font-size: clamp(20px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em; }
.lvl-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 500px) { .lvl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 964px) { .lvl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lvl { background: var(--panel); border-radius: 20px; padding: 20px 22px; }
.lvl-n { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--text-3); }
.lvl-t { margin-top: 10px; font-size: 17px; font-weight: 600; }
.lvl-d { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.levels-note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text-3); }

/* ---------- выбор сотрудников ---------- */
.hire-grid {
  margin-top: 48px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.hcard {
  border: 0; cursor: pointer; text-align: left; width: 100%;
  background: #fff; border-radius: 24px; padding: 24px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .2s; user-select: none;
}
.hcard[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.hcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hcard-top > span:first-child { display: block; min-width: 0; }
.hcard-ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--tint); color: var(--tint-fg); font-size: 15px; font-weight: 600; margin-bottom: 14px;
}
.hcard-name { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.hcard-desc { display: block; font-size: 15px; color: var(--text-2); margin-top: 6px; line-height: 1.45; }
.check {
  width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.22);
  color: #fff; font-size: 15px; line-height: 1;
}
.hcard[aria-pressed="true"] .check { background: var(--ink); box-shadow: none; }
.hcard[aria-pressed="true"] .check::after { content: "✓"; }
.hcard-tasks {
  display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-dark-2);
  border-top: 1px solid var(--line-soft); padding-top: 16px;
}
.hire-bar {
  margin-top: 20px; background: var(--ink); color: #fff; border-radius: 22px;
  padding: 16px 16px 16px 24px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px;
}
.hire-count { font-size: 16px; }
.hire-count b { font-weight: 600; }

/* ---------- тарифы ---------- */
.plans {
  margin-top: 48px; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.plan {
  --card: var(--panel);
  background: var(--card); border-radius: 28px; padding: 30px;
  display: flex; flex-direction: column; gap: 22px;
}
.plan--dark { --card: var(--ink); color: #fff; }
.plan-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-name { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.plan-badge { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.plan-for { font-size: 15px; color: var(--text-2); margin-top: 6px; }
.plan--dark .plan-for, .plan--dark .plan-price { color: rgba(255, 255, 255, 0.7); }
.avatars { display: flex; margin-top: 18px; padding-left: 6px; }
.av {
  width: 26px; height: 26px; border-radius: 50%; margin-left: -6px;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: var(--tint); color: var(--tint-fg); box-shadow: 0 0 0 2px var(--card);
}
.av--more {
  background: var(--panel); color: var(--text-dark-2); font-size: 14px; font-weight: 400;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.25), 0 0 0 2px var(--card);
}
.plan-list {
  display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4;
  border-top: 1px solid rgba(0, 0, 0, 0.08); padding-top: 20px;
}
.plan--dark .plan-list { border-top-color: rgba(255, 255, 255, 0.14); }
.plan-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.plan-price { font-size: 14px; color: var(--text-2); }

/* ---------- вопросы ---------- */
.faq { max-width: 860px; }
.faq-h { margin-bottom: 40px; text-wrap: initial; }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; border: 0; background: transparent; cursor: pointer; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-align: left; color: var(--ink); font-size: clamp(17px, 1.6vw, 20px); font-weight: 500;
}
.faq-plus { font-size: 24px; font-weight: 300; flex: none; transition: transform .25s; }
.faq-q[aria-expanded="true"] .faq-plus { transform: rotate(45deg); }
.faq-a { margin: -6px 0 24px; font-size: 16px; line-height: 1.6; color: var(--text-2); max-width: 700px; }

/* ---------- финал и подвал ---------- */
.band-dark { background: var(--ink); color: #fff; padding: clamp(88px, 11vw, 148px) 24px clamp(64px, 8vw, 96px); }
.join { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.crew { display: flex; margin-bottom: 32px; }
.crew span {
  width: 48px; height: 48px; border-radius: 50%; margin-left: -10px;
  display: grid; place-items: center; font-size: 16px; font-weight: 600;
  background: var(--tint); color: var(--tint-fg); box-shadow: 0 0 0 3px var(--ink);
}
.crew span:first-child { margin-left: 0; }
.join-h { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; max-width: 900px; }
.join-p { margin-top: 24px; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); max-width: 600px; text-wrap: pretty; }
.ftr {
  max-width: 1180px; margin: clamp(72px, 9vw, 120px) auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  font-size: 13px; color: #9a9aa0;
}
.ftr-brand { display: flex; align-items: center; gap: 14px; }
.logo--dark { gap: 8px; color: #fff; }
.logo--dark .logo-word { font-size: 15px; letter-spacing: -0.02em; color: #fff; }
.logo--dark .logo-word span { color: #8a8a90; }
/* Контакты — как в подвале VoiceTrics. Между рядами на телефоне зазора нет: у ссылок и так поля
   по 12px. nowrap — чтобы номер телефона не рвался по пробелам и дефисам. */
.ftr-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.ftr-links a { color: #9a9aa0; display: inline-block; padding: 12px 0; white-space: nowrap; }
.ftr-links a:hover { color: #fff; }

/* ---------- анкета ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; padding: 16px;
  background: rgba(15, 15, 17, 0.44);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
}
.modal-card {
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 28px; padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); color: var(--ink);
}
.modal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.modal-step { font-size: 13px; font-weight: 500; color: var(--text-3); }
.modal-x {
  border: 0; cursor: pointer; width: 34px; height: 34px; border-radius: 50%;
  background: var(--field); color: var(--ink); font-size: 18px; line-height: 1; flex: none;
}
.modal-h { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.modal-p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.plan-pill { margin-top: 16px; display: inline-flex; gap: 4px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--field); }
.modal-q { margin-top: 26px; font-size: 15px; font-weight: 600; }
.modal-q--2 { margin-top: 24px; }
.mchips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.mchip {
  border: 0; cursor: pointer; padding: 13px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--field); color: var(--ink);
}
.mchip--role { background: var(--tint); color: var(--tint-fg); }
.mchip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.modal-next { margin-top: 30px; }
.modal-login {
  margin-top: 8px; display: flex; justify-content: center; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-2);
}
.modal-login a {
  display: inline-block; padding: 13px 4px; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.modal-login a:hover { color: #55555a; }

.fields { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
/* 16px в полях — чтобы iOS не увеличивал страницу при фокусе. */
.inp {
  width: 100%; border: 0; outline: none; background: var(--field); border-radius: 14px;
  padding: 15px 16px; font-size: 16px; color: var(--ink);
}
textarea.inp { line-height: 1.45; resize: vertical; }
.inp::placeholder { color: var(--text-3); }
/* В макете у полей нет состояния фокуса; тонкое кольцо показывает, куда идёт ввод. */
.inp:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consent {
  margin-top: 16px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  user-select: none; font-size: 13px; line-height: 1.45; color: var(--text-2);
}
.consent a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--ink); }
.cbox {
  width: 20px; height: 20px; border-radius: 6px; flex: none; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.25);
  color: #fff; font-size: 13px; line-height: 1;
}
.consent input:checked + .cbox { background: var(--ink); box-shadow: none; }
.consent input:checked + .cbox::after { content: "✓"; }
.consent input:focus-visible + .cbox { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-err { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--err); }
.modal-actions { margin-top: 24px; display: flex; gap: 10px; align-items: center; }
.btn-back { font-size: 15px; padding: 15px 20px; }
.btn-submit { flex: 1; gap: 10px; font-size: 16px; font-weight: 600; padding: 15px 20px; }
.btn-submit:disabled, .btn-submit:disabled:hover { background: var(--ink); }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: wfx-spin .8s linear infinite;
}
@keyframes wfx-spin { to { transform: rotate(360deg); } }

.done { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 0 2px; }
.done-mark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 24px;
}
.done-h { margin-top: 22px; }
.done-queue { margin-top: 14px; font-size: 17px; }
.done-queue b { font-weight: 600; }
.done-btn { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  /* Как просил дизайнер: знак управляющего стоит, подсказка не качается. Пульсации точек и
     кнопки тоже убраны — это то же движение ради внимания. Печать поручения отключает
     landing.js. Спиннер отправки анкеты остаётся: он показывает, что идёт запрос. */
  .demo *, .demo *::before { animation: none !important; }
}
