/* =====================================================================
   GRP · дизайн-система портала отбора
   Спокойный «консалтинговый» стиль: много белого, тонкие линии, заголовки с засечками,
   фирменный синий #0F02BE — как акцент, а не заливка. Шапка — глубокий оттенок того же синего.
   ===================================================================== */

@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("fonts/Roboto-Regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("fonts/Roboto-Medium.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("fonts/Roboto-Bold.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-weight: 400; font-display: swap; src: url("fonts/PTSerif-Regular.woff2") format("woff2"); }
@font-face { font-family: "PT Serif"; font-weight: 700; font-display: swap; src: url("fonts/PTSerif-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* фирменный синий и его оттенки */
  --brand: #0F02BE;
  --brand-hover: #0B0196;
  --brand-deep: #0A0850;          /* шапка */
  --brand-ink: #0B0A2E;           /* заголовки */
  --brand-06: rgba(15, 2, 190, .06);
  --brand-10: rgba(15, 2, 190, .10);
  --brand-20: rgba(15, 2, 190, .20);
  --teal: #0B8A8F;                /* из логотипа — только для «успеха» */
  --teal-10: rgba(11, 138, 143, .10);
  /* нейтральные */
  --ink: #1C1C2E; --ink-2: #44445A; --muted: #6F6F85; --faint: #9A9AAE;
  --line: #E4E4EC; --line-2: #EFEFF4; --bg: #F6F6F9; --card: #FFFFFF;
  /* состояния */
  --danger: #A8321E; --danger-10: rgba(168, 50, 30, .08);
  --warn: #86560A; --warn-10: #FBF3E3;
  /* совместимость со старыми именами */
  --primary: var(--brand); --primary-text: #fff; --text: var(--ink); --border: var(--line);
  --done: var(--brand-10); --warn-bg: var(--warn-10); --ok: var(--teal);
  --radius: 6px; --radius-s: 4px;
  --shadow: 0 1px 2px rgba(11, 10, 46, .04), 0 12px 32px -18px rgba(11, 10, 46, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 "Roboto", Arial, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh; -webkit-font-smoothing: antialiased; }
main.container { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 32px 20px 56px; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
::selection { background: var(--brand-20); }

h1, h2, h3 { font-family: "PT Serif", Georgia, serif; color: var(--brand-ink); font-weight: 700; letter-spacing: -.005em; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 21px; line-height: 1.3; margin: 28px 0 10px; }
h3 { font-size: 17px; margin: 20px 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mt { margin-top: 18px; } .mt0 { margin-top: 0; }
.nowrap { white-space: nowrap; }
.eyebrow, .step, .section-title { font: 700 11.5px/1.4 "Roboto", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.55; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка и подвал ---------- */
.corp-header { background: var(--brand-deep); }
.corp-header-in { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.corp-logo img { display: block; height: 42px; width: auto; }
.corp-tag { color: rgba(255,255,255,.72); font: 500 12px/1 "Roboto"; letter-spacing: .16em; text-transform: uppercase; }
.corp-footer { border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 13px; }
.corp-footer-in { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.corp-footer a { color: var(--ink-2); }
@media (max-width: 600px) { .corp-logo img { height: 30px; } .corp-header-in { padding: 14px 16px; } main.container { padding: 22px 16px 40px; } h1 { font-size: 26px; } }
@media (max-width: 440px) { .corp-tag { display: none; } }

/* ---------- шкала этапов ---------- */
.journey { list-style: none; display: flex; gap: 0; margin: 0 0 26px; padding: 0; counter-reset: j; }
.journey li { flex: 1; position: relative; padding-top: 30px; font-size: 12.5px; color: var(--faint); text-align: center; line-height: 1.3; }
.journey li::before { content: ""; position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: var(--line); }
.journey li:first-child::before { left: 50%; } .journey li:last-child::before { right: 50%; }
.journey li .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--line); display: grid; place-items: center; font: 700 11px/1 "Roboto"; color: var(--faint); z-index: 1; }
.journey li.done { color: var(--ink-2); } .journey li.done::before { background: var(--brand-20); }
.journey li.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.journey li.current { color: var(--brand-ink); font-weight: 500; }
.journey li.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-10); }
.journey li.stop .dot { border-color: var(--faint); background: var(--line-2); }
@media (max-width: 600px) { .journey li { font-size: 0; } .journey li.current { font-size: 11.5px; } }

/* ---------- карточки ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; }
.card.soft { box-shadow: var(--shadow); border-color: transparent; }
.narrow { max-width: 640px; margin: 0 auto; }
.wide-card { max-width: 720px; }
@media (max-width: 600px) { .card { padding: 22px 18px; } }
.rule { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 500 15px/1.2 "Roboto"; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-20); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); padding-left: 4px; padding-right: 4px; }
.btn.ghost:hover { text-decoration: underline; }
.btn.danger, .btn.danger-soft { color: var(--danger); border-color: rgba(168,50,30,.35); background: var(--card); }
.btn.danger:hover, .btn.danger-soft:hover { background: var(--danger-10); color: var(--danger); border-color: var(--danger); }
.btn.wide { width: 100%; margin-top: 22px; padding: 14px 20px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 15px 26px; font-size: 16px; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.muted-link { color: var(--muted); font-size: 14px; }
form.inline { display: inline; }

/* ---------- формы ---------- */
.field { display: block; margin: 18px 0 4px; }
.field > span { display: block; font-weight: 500; font-size: 14.5px; margin-bottom: 7px; color: var(--ink); }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=url], input[type=search],
input[type=datetime-local], input[type=file], textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid #D5D5E0; border-radius: var(--radius-s); background: #fff; color: var(--ink);
  font: 400 15px/1.4 "Roboto", sans-serif; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-10); }
textarea { resize: vertical; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 4px; font-size: 14.5px; line-height: 1.5; }
.checkbox input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.radio-row { display: flex; gap: 24px; flex-wrap: wrap; }
.radio-row label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.radio-row input { accent-color: var(--brand); width: 17px; height: 17px; }
.error { color: var(--danger); font-size: 13.5px; margin-top: 6px; }
.questionnaire .field { margin-top: 22px; }
.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: grid; place-items: center; width: 46px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; font-weight: 500; background: #fff; }
.scale input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.scale input:focus-visible + span { box-shadow: 0 0 0 3px var(--brand-20); }

/* зона загрузки файла */
.dropzone { display: block; position: relative; border: 1.5px dashed #C9C9D8; border-radius: var(--radius); background: #FBFBFD; padding: 22px 18px;
  text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-06); color: var(--ink-2); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-title { color: var(--ink); font-weight: 500; }
.dropzone .dz-file { display: none; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-weight: 500; }
.dropzone.has-file { border-style: solid; border-color: var(--brand-20); background: var(--brand-06); }
.dropzone.has-file .dz-empty { display: none; } .dropzone.has-file .dz-file { display: flex; }
.upload-progress { display: none; margin-top: 16px; }
.upload-progress.on { display: block; }
.upload-progress .bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.upload-progress .bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.upload-progress .label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- плашки ---------- */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-s); background: var(--brand-06);
  border-left: 3px solid var(--brand); color: var(--ink-2); font-size: 15px; margin: 18px 0; }
.note.warn, .deadline { background: var(--warn-10); border-left: 3px solid #D9A441; color: var(--ink-2); padding: 14px 16px; border-radius: var(--radius-s); margin: 18px 0; }
.disclaimer, .task-warning { background: var(--danger-10); border-left: 3px solid var(--danger); color: var(--ink-2); padding: 14px 16px; border-radius: var(--radius-s); margin: 18px 0; line-height: 1.55; }
.congrats, .success { background: var(--teal-10); border-left: 3px solid var(--teal); color: var(--ink-2); padding: 14px 16px; border-radius: var(--radius-s); margin: 0 0 20px; }
.warning { background: var(--warn-10); color: var(--warn); border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 16px; }
.flash { border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 14px; background: var(--brand-06); border-left: 3px solid var(--brand); }
.flash.error { background: var(--danger-10); border-left-color: var(--danger); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.warn { background: var(--warn-10); color: var(--warn); }
.chip.ok { background: var(--teal-10); color: var(--teal); }
.chip.brand { background: var(--brand-10); color: var(--brand); }
.chip.danger { background: var(--danger-10); color: var(--danger); }
.pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.pill.warn { background: var(--warn-10); color: var(--warn); }

/* уведомления (toast) */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 60; max-width: 380px; }
.toast { background: var(--brand-ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-s); box-shadow: var(--shadow); font-size: 14px;
  animation: toast-in .25s ease-out; }
.toast.error { background: var(--danger); }
.toast.hide { opacity: 0; transform: translateY(6px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- приветствие и согласие ---------- */
.hero h1 { font-size: 36px; }
.stages { list-style: none; padding: 0; margin: 22px 0 6px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.stages li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stages .n { font: 700 15px/1 "PT Serif", serif; color: var(--brand); }
.stages .t { color: var(--ink); font-weight: 500; } .stages .t small { display: block; color: var(--muted); font-weight: 400; font-size: 13.5px; }
.stages .d { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.consent-box { border: 1px solid var(--line); border-radius: var(--radius-s); margin: 18px 0 8px; }
.consent-box summary { cursor: pointer; padding: 12px 16px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.consent-box summary::-webkit-details-marker { display: none; }
.consent-box summary::after { content: "Показать текст"; color: var(--brand); font-weight: 400; font-size: 14px; }
.consent-box[open] summary::after { content: "Скрыть"; }
.consent-text { max-height: 380px; overflow-y: auto; padding: 4px 18px 10px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); background: #FCFCFE; }
.decline { margin-top: 16px; text-align: center; }
.signed-as { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; background: var(--bg);
  border-radius: var(--radius-s); padding: 11px 14px; margin: 14px 0 4px; font-size: 15px; }

/* ---------- кабинет кандидата ---------- */
.status-card h1 { margin-bottom: 8px; }
.next-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.countdown { display: flex; gap: 14px; align-items: baseline; }
.countdown .v { font: 700 30px/1 "PT Serif", serif; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.countdown .u { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.countdown .of { color: var(--muted); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* расписание */
.schedule { list-style: none; padding: 0; margin: 12px 0; }
.schedule li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.schedule li:first-child { border-top: 0; }
.schedule .n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--brand-20); color: var(--brand); font-weight: 700; font-size: 13px; flex: none; }
.schedule .slot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.schedule .meet { flex-basis: 100%; font-weight: 500; text-decoration: none; }
.schedule li.past { opacity: .55; }
.schedule li.current .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.schedule .step-title { flex-basis: 100%; font-weight: 500; }

/* результат теста */
.result-card { text-align: center; }
.result-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 700; }
.result-icon.ok { background: var(--teal-10); color: var(--teal); }
.result-icon.fail { background: var(--danger-10); color: var(--danger); }
.modal { border: 0; border-radius: var(--radius); padding: 28px 30px; max-width: 520px; width: calc(100% - 32px); background: var(--card); color: var(--ink); text-align: left; box-shadow: 0 30px 80px -20px rgba(11,10,46,.45); }
.modal::backdrop { background: rgba(11, 10, 46, .45); backdrop-filter: blur(2px); }
.modal h2 { margin-top: 0; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.modal-actions form { margin: 0; }

/* практическое задание */
.task-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.task-head h1 { margin: 0; }
.task-text { max-width: 68ch; }
.task-text h2 { font-size: 19px; margin: 28px 0 8px; }
.task-text ul, .task-text ol { padding-left: 22px; } .task-text li { margin: 5px 0; }
.materials { list-style: none; padding: 0; margin: 10px 0; border-top: 1px solid var(--line); }
.materials li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.materials a { font-weight: 500; text-decoration: none; }
.facts, .rules { padding-left: 20px; } .facts li, .rules li { margin: 6px 0; }
.policy { font-size: 15px; } .policy p:first-child { font: 700 20px/1.3 "PT Serif", serif; color: var(--brand-ink); }

/* ---------- тест ---------- */
.exam { user-select: none; -webkit-user-select: none; }
.exam main.container { padding-top: 20px; }
.exam-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--brand-deep); color: rgba(255,255,255,.85); border-radius: var(--radius-s); padding: 12px 20px; margin-bottom: 8px; font-size: 14.5px; }
.exam-bar b { color: #fff; }
.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; background: var(--brand); }
.timer { font: 700 22px/1 "Roboto"; color: #fff; font-variant-numeric: tabular-nums; }
.timer.low { color: #FFC857; }
.question-card { position: relative; z-index: 1; }
.question-text { font-size: 18px; font-weight: 500; margin-bottom: 18px; color: var(--ink); }
.instructions { background: var(--bg); border-radius: var(--radius-s); padding: 10px 14px; margin-bottom: 18px; font-size: 14px; }
.instructions summary { cursor: pointer; font-weight: 500; }
.passage { border-left: 2px solid var(--brand-20); padding: 2px 0 2px 18px; margin-bottom: 22px; color: var(--ink-2); }
.passage img { max-width: 100%; height: auto; display: block; margin: 12px 0; background: #fff; pointer-events: none; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; background: #fff; transition: border-color .12s, background .12s; }
.choice:hover { border-color: #C5C5D6; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-06); }
.choice input { margin-top: 5px; accent-color: var(--brand); }
.letter { font-weight: 700; color: var(--faint); min-width: 1em; }
.choice:has(input:checked) .letter { color: var(--brand); }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 26px; }
.flag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); cursor: pointer; user-select: none; }
.flag input { accent-color: #D9A441; }
.qnav-wrap { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.qnav-wrap summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.qnav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.qnav button { width: 38px; height: 34px; border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 500 13px "Roboto"; cursor: pointer; position: relative; }
.qnav button.done { background: var(--brand-10); border-color: transparent; color: var(--brand-ink); }
.qnav button.flagged::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: #D9A441; }
.qnav button.current { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); font-weight: 700; }
.finish-row { text-align: right; margin-top: 14px; }
.kbd-hint { font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.watermark { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden; opacity: .05; display: flex; flex-wrap: wrap;
  align-content: space-around; gap: 60px 80px; transform: rotate(-24deg) scale(1.4); }
.watermark span { font-size: 20px; white-space: nowrap; }
@media print { body.exam * { display: none !important; } }
@media (max-width: 600px) {
  .exam .actions { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; margin: 0; z-index: 20; }
  .exam main.container { padding-bottom: 90px; }
}

/* ---------- сотрудники: общее ---------- */
body.staff main.container { max-width: 1680px; padding: 22px 24px 40px; }
body.staff h1 { font-size: 26px; }
/* Вкладки раздела (например, «Собеседования» / «Моё время») — в строке заголовка страницы */
.subtabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--brand-06); border: 1px solid var(--line); }
.subtabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; color: var(--ink-2);
  text-decoration: none; font: 500 14px/1.3 "Roboto", sans-serif; white-space: nowrap; }
.subtabs a:hover { color: var(--brand); }
.subtabs a.active { background: var(--card); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(11, 10, 46, .12); }
.subtabs .icon { width: 16px; height: 16px; }
body.staff .corp-footer { display: none; }
.staff-top { max-width: 1480px; margin: 0 auto; padding: 18px 20px 0; display: flex; justify-content: space-between; align-items: center; }
.staff-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.staff-bar .brand { font: 700 20px "PT Serif", serif; color: var(--brand-ink); text-decoration: none; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-link img { width: 28px; height: auto; }
.brand-name { font: 700 19px/1 "PT Serif", serif; color: var(--brand-ink); }
.brand-sub { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.row-link { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.row-link:first-of-type { border-top: 0; }
.row-link:hover b { color: var(--brand); }
.facts-grid { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: 15px; }
.facts-grid dt { color: var(--muted); } .facts-grid dd { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.evaluation select, .evaluation textarea { width: 100%; }
@media (max-width: 700px) { .row-link { grid-template-columns: 1fr; gap: 4px; } .facts-grid, .kv { grid-template-columns: 1fr; gap: 2px 0; } .facts-grid dd, .kv dd { margin-bottom: 8px; } }

/* ---------- доска HR ---------- */
.board-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.board-head h1 { margin: 0; }
.board-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.board-tools input, .board-tools select { width: auto; padding: 8px 11px; font-size: 14px; }
.board-tools input[type=search] { min-width: 240px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 1.6fr; gap: 12px; margin-bottom: 18px; align-items: stretch; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .v { font: 700 28px/1.1 "PT Serif", serif; color: var(--brand-ink); }
.kpi .l { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi.funnel { display: grid; gap: 2px; align-content: center; padding: 10px 14px; }
.fbar { display: grid; grid-template-columns: 92px 1fr 28px; align-items: center; gap: 8px; font-size: 11px; line-height: 1.25; color: var(--muted); }
.fbar i { display: block; height: 6px; border-radius: 3px; background: var(--brand); opacity: .75; min-width: 2px; }
.fbar b { color: var(--ink-2); font-weight: 500; text-align: right; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpi.funnel { grid-column: 1 / -1; } }
.board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; padding-bottom: 10px; align-items: start; }
@media (max-width: 1100px) { .board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); overflow-x: auto; } }
.board.board-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .board.board-3 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); overflow-x: auto; } }
.kcol { background: #EEEEF4; border-radius: var(--radius); padding: 8px; min-height: 140px; min-width: 0; transition: background .15s, box-shadow .15s; }
.kcol.drop-ok { background: var(--brand-06); box-shadow: inset 0 0 0 2px var(--brand-20); }
.kcol.drop-no { opacity: .55; }
.kcol > header { display: flex; justify-content: space-between; gap: 6px; font: 500 12.5px/1.3 "Roboto"; color: var(--ink-2); margin: 2px 4px 10px; min-height: 2.6em; }
.kcol .count { color: var(--faint); }
.kcards { display: grid; gap: 8px; max-height: calc(100vh - 330px); overflow-y: auto; padding: 1px; }
.kempty { color: var(--faint); text-align: center; padding: 10px; font-size: 13px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 11px; min-width: 0; overflow-wrap: anywhere; display: grid; gap: 5px; font-size: 13px;
  cursor: pointer; transition: border-color .12s, box-shadow .12s; position: relative; }
.kcard:hover { border-color: #C9C9D8; box-shadow: 0 4px 14px -8px rgba(11,10,46,.25); }
.kcard.dragging { opacity: .5; }
.kcard.urgent { box-shadow: inset 3px 0 0 var(--danger); }
.kcard.soon { box-shadow: inset 3px 0 0 #D9A441; }
.khead { display: flex; align-items: center; gap: 9px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-10); color: var(--brand); display: grid; place-items: center; font: 700 11px/1 "Roboto"; flex: none; letter-spacing: .02em; }
.kname { font-weight: 500; font-size: 14px; color: var(--ink); text-decoration: none; line-height: 1.25; }
.kname:hover { color: var(--brand); }
.kmeta, .kline { color: var(--muted); }
.kline b { color: var(--ink-2); font-weight: 500; }
.kline.warn { color: var(--warn); }
.kactions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.kmore { display: block; text-align: center; font-size: 13px; margin-top: 8px; text-decoration: none; }
.todo-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* выезжающая карточка кандидата */
.drawer-back { position: fixed; inset: 0; background: rgba(11,10,46,.35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--bg);
  transform: translateX(100%); transition: transform .25s ease, visibility .25s; visibility: hidden; z-index: 41; overflow-y: auto; }
.drawer.open { transform: none; visibility: visible; box-shadow: -20px 0 60px -30px rgba(11,10,46,.5); } .drawer-back.open { opacity: 1; pointer-events: auto; }
.drawer-in { padding: 22px 26px 40px; }
.drawer-close { position: sticky; top: 0; float: right; margin: -6px -8px 0 0; z-index: 2; background: var(--bg); border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 10px; }
.drawer-loading { padding: 60px; text-align: center; color: var(--muted); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 16px 0 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 0; font: 500 14.5px "Roboto"; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tabpanel { display: none; } .tabpanel.active { display: block; }
.preview { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.file-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; }

/* история */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ""; position: absolute; left: 1px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand-20); }
.timeline li.ok::before { border-color: var(--teal); } .timeline li.bad::before { border-color: var(--danger); } .timeline li.brand::before { border-color: var(--brand); }
.timeline .when { font-size: 12.5px; color: var(--faint); }
.timeline .what { color: var(--ink); }
.timeline .who { color: var(--muted); font-size: 13px; }

/* страница кандидата и план */
.cand-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cand-head h1 { margin: 0; }
.cand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.plan h3 { margin: 22px 0 8px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 4px 6px; }
.plan-table td { padding: 4px 6px; }
.plan-table select, .plan-table input, .step-schedule input, .step-schedule select { padding: 8px 10px; font-size: 14px; }
.istep { border-top: 1px solid var(--line); padding: 14px 0; display: grid; gap: 7px; }
.istep.current { background: var(--brand-06); margin: 0 -14px; padding: 14px; border-radius: var(--radius-s); border-top-color: transparent; }
.istep.done { opacity: .72; }
.step-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.step-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--brand-20); color: var(--brand); font-weight: 700; font-size: 12px; }
.step-schedule { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.step-schedule input[type=datetime-local] { width: auto; }
.step-schedule input[type=url] { flex: 1; min-width: 200px; }
@media (max-width: 700px) { .plan-table, .plan-table tbody, .plan-table tr, .plan-table td { display: block; width: 100%; } .plan-table tr:first-child { display: none; } }

/* архив и команда */
.archive-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.archive-filters input, .archive-filters select { width: auto; padding: 8px 11px; font-size: 14px; }
.archive-filters input[type=search] { min-width: 260px; flex: 1; max-width: 420px; }
.archive-card { padding: 0; overflow-x: auto; }
table.archive { width: 100%; border-collapse: collapse; font-size: 14px; }
table.archive th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); letter-spacing: .02em; }
table.archive td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
table.archive tbody tr { cursor: pointer; }
table.archive tbody tr:hover { background: #FAFAFC; }
table.archive a { color: var(--ink); font-weight: 500; text-decoration: none; }
.pager { display: flex; gap: 16px; justify-content: center; margin: 16px 0; font-size: 14px; }
.team-form { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr auto; gap: 10px; align-items: end; }
.team-form .field { margin: 0; }
@media (max-width: 800px) { .team-form { grid-template-columns: 1fr; } }

/* Уведомления в Telegram в кабинете кандидата */
.tg-card { margin-top: 18px; padding: 22px 28px; }
.tg-card h2 { margin: 0 0 6px; font-size: 18px; }
.tg-card .checkbox { margin: 12px 0 14px; color: var(--muted); }
.tg-state { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; }
.tg-state .icon { color: var(--brand); flex: none; margin-top: 3px; }

/* Окна для собеседований: сетка недели у сотрудника и выбор времени кандидатом */
.staff-bar { gap: 12px; flex-wrap: wrap; }
.week-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; }
.slot-grid-wrap { max-width: 100%; }
.slot-grid { border-collapse: separate; border-spacing: 3px; width: 100%; table-layout: fixed; }
.slot-grid tr > th:first-child { width: 44px; }
@media (max-width: 520px) {
  .slot-grid { border-spacing: 2px; }
  .slot-grid th { font-size: 11px; }
  .slot-grid tr > th:first-child { width: 36px; padding-right: 2px; }
  .slot-grid .cell { height: 28px; font-size: 0; }
  .slot-grid .cell.booked::after { content: "✓"; font-size: 12px; }
}
.slot-grid th { font: 500 12px/1.2 "Roboto", sans-serif; color: var(--muted); text-align: center; padding: 2px; }
.slot-grid thead th span { display: block; font-weight: 400; color: var(--faint); }
.slot-grid thead th.today { color: var(--brand); }
.slot-grid tbody th { text-align: right; padding-right: 6px; white-space: nowrap; }
.slot-grid td { padding: 0; }
.cell { display: block; height: 30px; border-radius: var(--radius-s); background: var(--line-2); border: 1px solid var(--line);
  font-size: 11px; line-height: 28px; text-align: center; color: #fff; overflow: hidden; }
label.cell { cursor: pointer; }
label.cell input { position: absolute; opacity: 0; pointer-events: none; }
label.cell span { display: block; height: 100%; }
label.cell:hover { border-color: var(--brand); }
label.cell:has(input:checked) { background: var(--brand); border-color: var(--brand); }
label.cell:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--brand-20); }
.cell.booked { background: var(--teal); border-color: var(--teal); }
.cell.past { background: transparent; border-style: dashed; }
.cell.past.was { background: var(--brand-10); }
.legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.legend .cell.sample { display: inline-block; width: 18px; height: 14px; margin-left: 8px; }
.legend .cell.sample.on { background: var(--brand); border-color: var(--brand); }
.booked-box { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-06); margin: 14px 0; }
.slot-day { display: grid; grid-template-columns: 124px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.slot-date { font-weight: 500; line-height: 1.3; }
.slot-date span { display: block; font-weight: 400; font-size: 13px; }
.slot-times { display: grid; grid-template-columns: repeat(auto-fill, 76px); gap: 8px; }
.slot-times .btn { width: 76px; padding-left: 0; padding-right: 0; }
.decline-box summary { cursor: pointer; color: var(--muted); }

/* Предложение подключить Telegram */
.btn.tg { background: #229ED9; border-color: #229ED9; color: #fff; }
.btn.tg:hover { background: #1B8BC0; border-color: #1B8BC0; color: #fff; }
.tg-card.offer { border: 1px solid rgba(34, 158, 217, .35); background: linear-gradient(180deg, rgba(34, 158, 217, .07), var(--card) 60%); }
.tg-head { display: flex; gap: 14px; align-items: flex-start; }
.tg-head h2 { margin: 2px 0 4px; font-size: 20px; }
.tg-head p { margin: 0; }
.tg-logo { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #229ED9; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; }
.tg-logo .icon { width: 22px; height: 22px; }
.tg-benefits { list-style: none; padding: 0; margin: 14px 0 6px; }
.tg-benefits li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.tg-benefits .icon { color: #229ED9; flex: none; }
.tg-foot { margin: 10px 0 0; }
@media (max-width: 520px) { .tg-card .btn.lg { width: 100%; } }
.auto-note { margin: 26px 0 0; color: var(--ink-2); }
.skills { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.skills li { display: flex; align-items: center; gap: 10px; }
.skills .n { flex: none; width: 22px; text-align: right; font-weight: 500; color: var(--brand); }
.skills input { flex: 1; min-width: 0; }
.notify-choice { margin: 10px 0 4px; }
.tg-go { text-align: center; }
.tg-manual { margin-top: 14px; text-align: left; }
.tg-manual summary { cursor: pointer; color: var(--muted); }
.tg-manual p { margin: 8px 0; }
.tg-code { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tg-code code { font-size: 15px; padding: 6px 10px; border-radius: 6px; background: rgba(34, 158, 217, .1); user-select: all; word-break: break-all; }
.tg-go .tg-logo { width: 56px; height: 56px; margin: 0 auto 8px; }
/* Кружки и галочки: без квадратной подсветки поля ввода; при навигации с клавиатуры — рамка вокруг ответа */
input[type=radio]:focus, input[type=checkbox]:focus { box-shadow: none; outline: none; }
input[type=radio]:focus-visible, input[type=checkbox]:focus-visible { outline: 2px solid var(--brand-20); outline-offset: 2px; border-radius: 50%; }
input[type=checkbox]:focus-visible { border-radius: 3px; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--brand-10); }
.choice input:focus-visible { outline: none; }

/* Контакт для технических проблем — внизу каждой страницы, почти незаметно */
.support-note { text-align: center; color: var(--muted); opacity: .55; font-size: 12px; margin: 12px 16px 18px; }
.support-note a { color: inherit; }
