/* NoHead - общий стиль.
   Правила визуального языка описаны в docs/DESIGN_PROMPT.md. Новые компоненты
   продолжают ту же систему: чёрный контур, жёсткая тень без размытия,
   неровный радиус, лёгкий поворот. Никаких новых акцентных цветов. */

:root {
  --ink: #171717;
  --paper: #fffef8;
  --yellow: #ffd83d;
  --yellow-soft: #fff3a9;
  --muted: #686868;
  --line: #1d1d1d;
  --green: #dff3d6;
  --red-soft: #ffdcd5;
}

/* HH agent */
.page-heading { align-items: flex-start; margin-bottom: 20px; }
.hh-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hh-status-card { min-height: 190px; }
.hh-status-card h3 { margin-top: 18px; }
.compact-grid { gap: 10px; }
.hh-captcha-image { display: block; max-width: min(100%, 720px); max-height: 280px; object-fit: contain; margin: 16px 0; border: 1px solid var(--line); border-radius: 6px; }
.code-field { min-height: 280px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.hh-live-log { min-height: 180px; max-height: 520px; overflow: auto; white-space: pre-wrap; word-break: break-word; padding: 16px; background: #151515; color: #f1f1e8; border-radius: 6px; font-size: 13px; line-height: 1.55; }

@media (max-width: 760px) {
  .hh-status-grid { grid-template-columns: 1fr; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(255,216,61,.08), transparent 28%),
    var(--paper);
  font-family: "Comic Sans MS", "Segoe Print", "Bradley Hand", system-ui, sans-serif;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.wrap { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.landing-page .wrap { width: min(1400px, calc(100% - 80px)); }

/* --- шапка --- */

header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 900;
  font-size: 25px;
  letter-spacing: -1.5px;
  transform: rotate(-1deg);
}

.brand-dot {
  position: relative;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 55% 45% 52% 48%;
  background: var(--yellow);
  font-size: 0;
  flex: 0 0 auto;
}
.brand-dot::before,
.brand-dot::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--ink);
  left: 50%;
  top: 50%;
}
.brand-dot::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.brand-dot::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
nav a { text-decoration: none; position: relative; }
nav a:not(.mini-btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 3px;
  background: var(--yellow);
  border-radius: 60% 30% 70% 35%;
  transform: scaleX(0) rotate(-1deg);
  transition: transform .2s ease;
}
nav a:hover::after { transform: scaleX(1) rotate(-1deg); }

/* --- кнопки --- */

.mini-btn, .primary, .start-btn, .btn {
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 3px 4px 0 var(--ink);
  border-radius: 13px 17px 12px 15px / 16px 12px 17px 13px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mini-btn { padding: 9px 15px; }
.primary { padding: 15px 22px; display: inline-block; }
.start-btn { width: 100%; padding: 15px 18px; font-size: 16px; }
.btn { padding: 11px 16px; font-size: 14px; }
.btn.ghost { background: #fff; }
.btn.quiet { background: #fff; box-shadow: 2px 3px 0 var(--ink); font-weight: 700; }
.btn.danger { background: var(--red-soft); }
.btn.small { padding: 7px 11px; font-size: 12px; box-shadow: 2px 3px 0 var(--ink); }

.mini-btn:hover, .primary:hover, .start-btn:hover, .btn:hover {
  transform: translate(2px, 2px) rotate(-.4deg);
  box-shadow: 1px 2px 0 var(--ink);
}
.btn[disabled], .start-btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: 3px 4px 0 var(--ink);
}

/* --- лендинг --- */

.hero {
  position: relative;
  min-height: calc(100dvh - 82px);
  padding: 70px 0 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: clamp(46px, 6vw, 104px);
  align-items: center;
}

.hero-copy { max-width: 740px; }
.hero > * { min-width: 0; }

.eyebrow {
  display: inline-block;
  padding: 7px 12px;
  background: var(--yellow-soft);
  border: 1.7px solid var(--ink);
  border-radius: 50% 44% 53% 47%;
  font-size: 13px;
  font-weight: 700;
  transform: rotate(-2deg);
}

h1 {
  margin: 25px 0 22px;
  max-width: 720px;
  font-size: clamp(54px, 6.4vw, 94px);
  line-height: .94;
  letter-spacing: -5px;
  text-wrap: balance;
}

.strike { position: relative; display: inline-block; white-space: nowrap; }
.strike::after {
  content: "";
  position: absolute;
  left: -2%; right: -1%; top: 54%;
  height: 6px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 40% 65% 43% 58%;
  transform: rotate(-2deg);
  z-index: -1;
}

.lead {
  max-width: 550px;
  margin: 0 0 30px;
  color: #393939;
  font-family: system-ui, sans-serif;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tiny-note {
  color: var(--muted);
  font: 12px/1.45 system-ui, sans-serif;
  transform: rotate(1deg);
}

.hero-art {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.mascot-stage {
  position: relative;
  width: min(520px, 92%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.yellow-blob {
  position: absolute;
  inset: 0;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 46% 54% 57% 43% / 52% 42% 58% 48%;
  transform: rotate(-4deg);
  box-shadow: 8px 9px 0 rgba(23,23,23,.95);
}

.mascot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 90%;
  height: 98%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%) rotate(.5deg);
  filter: contrast(1.18);
}

.arrow-note {
  position: absolute;
  z-index: 3;
  right: -12px;
  bottom: 16px;
  width: 164px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(-5deg);
}
.arrow-note-line {
  position: absolute;
  left: -116px;
  top: -78px;
  width: 112px;
  height: 92px;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-2deg);
}
.arrow-note span {
  position: relative;
  display: block;
}

.dash {
  position: absolute;
  z-index: 4;
  left: 2%;
  top: 62px;
  padding: 9px 13px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 13px 18px 11px 15px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 800;
  transform: rotate(-6deg);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 700 12px system-ui, sans-serif;
  text-decoration: none;
  transform: translateX(-50%);
}
.scroll-cue span {
  color: var(--ink);
  font-size: 20px;
  transition: transform .18s ease;
}
.scroll-cue:hover span { transform: translateY(3px); }

.landing-page section { padding: 104px 0; }
.section-title { margin: 0 0 12px; font-size: clamp(35px, 5vw, 58px); line-height: 1; letter-spacing: -2px; }
.section-sub {
  max-width: 670px;
  margin: 0 0 54px;
  color: var(--muted);
  font: 17px/1.55 system-ui, sans-serif;
  text-wrap: pretty;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 42px);
  padding-top: 18px;
}
.steps::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 40px;
  border-top: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--yellow);
  transform: rotate(.2deg);
}
.step {
  position: relative;
  z-index: 1;
  min-height: 258px;
  padding: 48px 28px 30px;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 19px 26px 17px 24px / 23px 18px 27px 19px;
  box-shadow: 6px 7px 0 var(--line);
}
.step:nth-child(2) { background: #fff9dc; transform: rotate(.55deg); }
.step:nth-child(3) { transform: rotate(-.7deg); }
.step-num {
  position: absolute;
  left: 24px;
  top: -20px;
  width: 46px;
  height: 46px;
  display: grid; place-items: center;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50% 46% 52% 43%;
  font-weight: 900;
  transform: rotate(-5deg);
}
.step-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.step h3 { margin: 0 0 12px; font-size: clamp(20px, 2vw, 25px); line-height: 1.2; }
.step p { margin: 0; color: var(--muted); font: 15px/1.6 system-ui, sans-serif; text-wrap: pretty; }

.demo-shell {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  border: 2px solid var(--ink);
  border-radius: 29px 22px 31px 25px / 26px 32px 22px 29px;
  overflow: hidden;
  background: #fff;
  box-shadow: 7px 8px 0 var(--ink);
  transform: rotate(-.15deg);
}
/* Верхний отступ больше прочих не для красоты: на шве между колонками висит
   плашка «правила → результат», и заголовкам надо под неё поместиться. При
   38px она наезжала на «Как это выглядит» и съедала первую букву - заголовок
   читался как «ак это выглядит». Отступ ОДИНАКОВЫЙ у обеих колонок, иначе
   они разъедутся по высоте; вторая половина правила у .feed. */
.setup { padding: 76px 46px 38px 38px; border-right: 2px dashed var(--ink); }
.setup h3, .feed h3 { margin: 0 0 24px; font-size: 23px; }

.demo-bridge {
  position: absolute;
  z-index: 3;
  left: 45%;
  top: 14px;
  width: 118px;
  padding: 7px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 9px 12px 8px 11px;
  background: var(--paper);
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%) rotate(-2deg);
}

.closing { padding-bottom: 110px; text-align: center; }
.closing-card {
  position: relative;
  padding: clamp(64px, 7vw, 94px) 28px;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 42px 54px 39px 50px / 48px 38px 51px 42px;
  box-shadow: 8px 10px 0 var(--ink);
  overflow: hidden;
}
.closing-card h2 { margin: 0 0 16px; font-size: clamp(39px, 6vw, 70px); letter-spacing: -3px; line-height: 1.02; }
.closing-card p { margin: 0 auto 28px; max-width: 530px; font: 17px/1.5 system-ui, sans-serif; }
.closing-card .primary { background: #fff; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 38px;
  color: var(--muted);
  font: 12px/1.5 system-ui, sans-serif;
  border-top: 1.5px dashed #aaa;
}

/* --- поля и чипы --- */

label { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 800; }

.field {
  width: 100%;
  padding: 13px 14px;
  border: 1.8px solid var(--ink);
  border-radius: 10px 14px 9px 13px;
  background: #fffef8;
  color: var(--ink);
  outline: none;
}
.field:focus { box-shadow: 0 0 0 4px var(--yellow-soft); }

/* Размеры, которые раньше стояли инлайном атрибутом style= в разметке.
   Политика безопасности страницы задаёт style-src 'self', а это запрещает
   не только теги <style>, но и атрибуты style у элементов. Браузер их
   ПРОСТО НЕ ПРИМЕНЯЛ: выпадающие списки растягивались во всю ширину,
   поля ввода письма были обычной высоты, а в консоли висело пять ошибок.
   Классы делают ровно то же и политику проходят. */
.field.auto { width: auto; }

/* --- вход через Telegram --- */
.btn.wide { display: block; width: 100%; text-align: center; }
.auth-or {
  /* Черта с надписью посередине: она отделяет вход почтой от входа мессенджером,
     чтобы кнопка не читалась как ещё одна кнопка той же формы. */
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: var(--muted);
  font: 12px/1 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  border-top: 2px solid var(--line, #111);
  opacity: .35;
}

/* Кнопка Telegram. Синий здесь не украшение: это цвет самого мессенджера, и
   человек узнаёт кнопку раньше, чем читает надпись. Форма при этом наша -
   толстая рамка и тень, как у остальных кнопок сайта. */
.btn-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  border: 2px solid #111;
  border-radius: 14px;
  box-shadow: 3px 3px 0 #111;
  background: #2aabee;
  color: #fff;
  font: 600 15px/1 inherit;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
.btn-tg:hover { background: #229ed9; }
.btn-tg:active {
  /* Кнопка «вжимается»: тень уходит ровно на то расстояние, на которое едет сама
     кнопка, иначе она выглядит съезжающей вбок. */
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 #111;
}
.btn-tg:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.btn-tg svg { flex: none; }
@media (prefers-reduced-motion: reduce) {
  .btn-tg { transition: none; }
}
/* Число для сверки. Крупно и моноширинно намеренно: человек сравнивает его
   с числом в боте глазами, и от этого сравнения зависит, не отдаст ли он
   доступ к своему аккаунту. Мелкий текст тут читают по диагонали. */
.tg-code {
  margin: 10px 0;
  font: 900 34px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: .18em;
  text-align: center;
}
.field.tall { min-height: 220px; }
.field.taller { min-height: 260px; }
.btn.flush { margin: 0; }
.field[type="range"] {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--yellow);
}
textarea.field { min-height: 96px; resize: vertical; font-family: system-ui, sans-serif; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.7px solid var(--ink);
  background: #fff;
  border-radius: 40% 55% 47% 58%;
  padding: 8px 11px;
  cursor: pointer;
  font-size: 12px;
}
.chip.active { background: var(--yellow); font-weight: 800; transform: rotate(-1.5deg); }
.start-btn { margin-top: 25px; }

/* Источники могут иметь длинные названия и пояснения. Это не короткие фильтры,
   поэтому они живут в собственной сетке и не притворяются узкими овальными чипами. */
#sourceChips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
  width: 100%;
}
#sourceChips .source-option {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 11px 12px;
  border-radius: 10px 15px 9px 13px;
  text-align: left;
  transform: none;
}
#sourceChips .source-option::before {
  content: "";
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  border: 1.7px solid var(--ink);
  border-radius: 5px 7px 4px 6px;
  background: #fff;
}
#sourceChips .source-option.active::before {
  content: "✓";
  display: grid;
  place-items: center;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}
.source-option-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.source-option-state {
  grid-column: 2;
  color: var(--muted);
  font: 11px/1.35 system-ui, sans-serif;
}
#sourceChips .source-option.active {
  background: #fff9dc;
  box-shadow: 2px 3px 0 var(--ink);
}

.hint { margin: 6px 0 0; color: var(--muted); font: 12px/1.45 system-ui, sans-serif; }

/* --- лента вакансий --- */

/* Верхний отступ парный к .setup - см. пояснение там. */
.feed { padding: 76px 38px 38px; background: #fffdf2; }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 12px system-ui, sans-serif; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #64ad55; box-shadow: 0 0 0 4px #dff3d6; }

.vacancy-list { display: grid; gap: 12px; }
.vacancy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1.6px solid var(--ink);
  border-radius: 12px 16px 11px 15px;
  background: white;
  transition: transform .2s ease, opacity .2s ease;
}
.vacancy:nth-child(2) { transform: rotate(.4deg); }
.vacancy strong { display: block; font-size: 14px; }
.vacancy small { color: var(--muted); font: 12px system-ui, sans-serif; }

.status {
  padding: 6px 9px;
  border: 1.4px solid var(--ink);
  border-radius: 7px 10px 6px 9px;
  background: var(--green);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.status.wait { background: var(--yellow-soft); }
.status.bad { background: var(--red-soft); }
.status.plain { background: #fff; }

.counter {
  margin-top: 17px;
  padding: 13px 15px;
  border-top: 2px dashed var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.counter b { font-size: 28px; }

/* --- страница входа --- */

.auth-page { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 40px 0 80px; }
.auth-card {
  width: min(430px, 100%);
  padding: 32px 30px 30px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 24px 30px 22px 28px / 28px 22px 30px 24px;
  box-shadow: 7px 8px 0 var(--ink);
  transform: rotate(-.4deg);
}
.auth-card h1 { margin: 0 0 8px; font-size: 38px; letter-spacing: -2px; }
.auth-switch { margin-top: 18px; text-align: center; font: 13px system-ui, sans-serif; color: var(--muted); }
.auth-switch button {
  background: none; border: 0; padding: 0;
  font-weight: 800; cursor: pointer; text-decoration: underline;
  font-family: inherit; color: var(--ink);
}

/* --- кабинет --- */

/* Кабинет: боковое меню разделами. Цикл поиска работы длинный, внутри разделов
   появляются вложенные экраны, и верхние вкладки для этого не годятся. */

.cabinet {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 26px;
  padding: 22px 0 70px;
  align-items: start;
}

.side { display: flex; flex-direction: column; gap: 9px; position: sticky; top: 18px; }
.side-item {
  text-align: left;
  padding: 12px 15px;
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 14px 19px 12px 17px;
  box-shadow: 3px 4px 0 var(--ink);
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.side-item:hover { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--ink); }
.side-item.on { background: var(--yellow); transform: rotate(-1deg); }

.page-area { min-width: 0; }
.page { display: none; }
.page.on { display: block; animation: pop .3s ease both; }
.page-title { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -1.5px; }
.page-sub { margin: 0 0 22px; color: var(--muted); font: 14px/1.55 system-ui, sans-serif; }
.page-sub code {
  font: 12px ui-monospace, monospace;
  background: var(--yellow-soft);
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 1px 5px;
}

.subtabs { display: flex; gap: 9px; margin-bottom: 18px; flex-wrap: wrap; }
.subtab {
  padding: 8px 14px;
  border: 1.8px solid var(--ink);
  background: #fff;
  border-radius: 40% 55% 47% 58%;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
}
.subtab.on { background: var(--yellow); transform: rotate(-1deg); }
.subpage { display: none; }
.subpage.on { display: block; }

/* Меню профиля: настройки аккаунта живут здесь, а не в основной навигации */
.who { position: relative; }
.who-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: grid;
  min-width: 208px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px 18px 12px 16px;
  box-shadow: 4px 5px 0 var(--ink);
  overflow: hidden;
}
.who-menu[hidden] { display: none; }
.who-menu button {
  border: 0;
  background: none;
  padding: 11px 15px;
  text-align: left;
  cursor: pointer;
  font: 700 13px system-ui, sans-serif;
  border-bottom: 1.2px dashed #ccc;
}
.who-menu button:last-child { border-bottom: 0; }
.who-menu button:hover { background: var(--yellow-soft); }

/* Маршрут запуска вместо дашборда с нулями */
.route { display: grid; gap: 11px; margin-top: 14px; }
.route-step {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  border: 1.8px solid var(--ink);
  border-radius: 13px 17px 12px 16px;
  background: #fff;
}
.route-step.done { background: var(--green); }
.route-step .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: 52% 45% 55% 48%;
  background: var(--yellow-soft);
  font-weight: 900;
}
.route-step.done .mark { background: var(--yellow); }
.route-step b { display: block; font-size: 15px; }
.route-step span { color: var(--muted); font: 12px/1.5 system-ui, sans-serif; }

.summary-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 10px; }
.summary-row div b { display: block; font-size: 26px; line-height: 1.2; }
.summary-row div span { color: var(--muted); font: 12px system-ui, sans-serif; }

.match.sample { opacity: .72; }

/* Окно письма */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23,23,23,.45);
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px 26px 26px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 22px 28px 20px 26px;
  box-shadow: 7px 8px 0 var(--ink);
}

.card {
  padding: 22px 24px;
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 19px 26px 17px 24px / 23px 18px 27px 19px;
  box-shadow: 4px 5px 0 var(--ink);
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 6px; font-size: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Вложенная карточка: тень и рамка тоньше, иначе внутри карточки получается матрёшка. */
.card .card.inner {
  padding: 14px 16px;
  box-shadow: 2px 3px 0 var(--ink);
  margin-bottom: 12px;
}
/* Форма в одну строку: подписи рядом с полями, переносится на узком экране. */
.row-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.row-form label { margin: 0; font-size: 14px; }
/* Подпись и ползунок переносятся только вместе: порознь подпись отрывается
   от значения, которое называет. */
.row-pair { display: inline-flex; align-items: center; gap: 8px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.match {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1.8px solid var(--ink);
  border-radius: 14px 18px 12px 16px;
  background: #fff;
  margin-bottom: 11px;
}
.match:nth-child(3n+2) { transform: rotate(.25deg); }
.score {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: 52% 45% 55% 48%;
  background: var(--yellow-soft);
  font-weight: 900;
  font-size: 15px;
}
.score.high { background: var(--yellow); }
.match-title { font-size: 15px; font-weight: 800; text-decoration: none; }
.match-meta { color: var(--muted); font: 12px/1.5 system-ui, sans-serif; }
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 7px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}
.reasons li {
  position: relative;
  min-width: 0;
  padding: 8px 10px 8px 34px;
  border: 1.2px solid #b9b4a7;
  border-radius: 8px 12px 7px 10px;
  background: #fffef8;
  color: #444;
  font: 11px/1.45 system-ui, sans-serif;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.reasons li::before {
  content: "·";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1.2px solid var(--ink);
  border-radius: 5px 7px 4px 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  line-height: 1;
}
/* Тип объяснения виден без чтения: что помогло, что помешало, чего не хватает */
.reasons li.plus { background: var(--green); border-color: var(--ink); }
.reasons li.plus::before { content: "+"; }
.reasons li.minus { background: var(--red-soft); border-color: var(--ink); }
.reasons li.minus::before { content: "−"; }
.reasons li.gap { background: var(--yellow-soft); border-color: var(--ink); }
.reasons li.gap::before { content: "?"; }

.vote { display: inline-flex; gap: 6px; }
.vote button { padding: 6px 10px; font-size: 12px; }
.vote button.on { background: var(--yellow); }

.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  font: 14px/1.6 system-ui, sans-serif;
  border: 2px dashed var(--ink);
  border-radius: 20px 26px 18px 24px;
  background: #fffdf2;
}

.notice {
  padding: 12px 15px;
  border: 2px solid var(--ink);
  border-radius: 12px 16px 11px 15px;
  background: var(--yellow-soft);
  font: 13px/1.5 system-ui, sans-serif;
  margin-bottom: 16px;
  box-shadow: 3px 3px 0 var(--ink);
}
.notice.bad { background: var(--red-soft); }
.notice.good { background: var(--green); }
.notice[hidden] { display: none; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: 340px;
  padding: 13px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px 18px 12px 16px;
  background: var(--yellow);
  box-shadow: 4px 5px 0 var(--ink);
  font: 13px/1.45 system-ui, sans-serif;
  transform: rotate(-1deg);
}
.toast.bad { background: var(--red-soft); }
.toast[hidden] { display: none; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.tight { gap: 6px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin: 18px 0 0; }
.switch input { width: 18px; height: 18px; accent-color: #ffd83d; }

.source-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1.4px dashed #c9c9c9; font: 13px system-ui, sans-serif; }
.source-line:last-child { border-bottom: 0; }

.pop { animation: pop .32s ease both; }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) rotate(-1deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* --- адаптив --- */

@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  /* На узком экране меню превращается в горизонтальную ленту сверху */
  .cabinet { grid-template-columns: 1fr; gap: 18px; }
  .side {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .side-item { white-space: nowrap; font-size: 14px; padding: 10px 13px; }
}

@media (max-width: 850px) {
  nav a:not(.mini-btn) { display: none; }
  .landing-page .wrap { width: min(100% - 48px, 1160px); }
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    padding: 54px 0 78px;
    gap: 24px;
  }
  .hero-art { min-height: 520px; }
  .arrow-note { right: 2%; }
  .scroll-cue { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step:nth-child(n) { transform: none; min-height: 0; margin-top: 18px; }
  .demo-shell { grid-template-columns: 1fr; }
  .setup { border-right: 0; border-bottom: 2px dashed var(--ink); }
  .demo-bridge { display: none; }
  .match { grid-template-columns: 44px 1fr; }
  .match .card-actions { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .landing-page .wrap { width: min(100% - 24px, 1160px); }
  header { height: 70px; }
  .brand { font-size: 22px; }
  .mini-btn { padding: 8px 10px; font-size: 12px; }
  h1 { font-size: clamp(40px, 11.3vw, 50px); letter-spacing: -3.5px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 38px 0 56px; }
  .hero-art { min-height: 410px; }
  .mascot-stage { width: min(320px, 86vw); }
  .mascot { width: 90%; height: 98%; }
  .dash { left: 0; top: 28px; font-size: 11px; }
  .arrow-note { right: -8px; bottom: 3px; width: 116px; font-size: 12px; }
  .arrow-note-line { left: -78px; top: -62px; width: 76px; height: 62px; }
  .landing-page section { padding: 68px 0; }
  .section-sub { margin-bottom: 42px; }
  .step { padding: 43px 20px 24px; }
  .setup, .feed { padding: 22px 18px; }
  .vacancy { grid-template-columns: 1fr; }
  #sourceChips { grid-template-columns: 1fr; }
  .route-step { grid-template-columns: 34px 1fr; }
  .route-step .card-actions { grid-column: 1 / -1; }
  .modal-card { padding: 18px 16px 20px; }
  .closing-card { padding-inline: 18px; border-radius: 28px 34px 25px 31px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
