* { box-sizing: border-box; }
body { font-family: system-ui, Arial, sans-serif; margin: 0; color: #1c2530; background: #f4f6f9; }
.container { max-width: 880px; margin: 24px auto; padding: 0 16px; }
body.admin .container { max-width: 98vw; }
.site-header, .admin-header { background: #0b3d66; color: #fff; padding: 14px 16px; }
.admin-header a { color: #fff; margin-right: 16px; text-decoration: none; }
.admin-header a.right { float: right; margin-right: 0; }
.logo { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer { text-align: center; color: #6b7785; padding: 24px; font-size: 14px; }
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); }
.card { background: #fff; border: 1px solid #dde3ea; border-radius: 10px; padding: 20px; }
.card h2 { margin-top: 0; }
.btn { display: inline-block; background: #0b6ec0; color: #fff; padding: 10px 18px;
       border: 0; border-radius: 8px; text-decoration: none; cursor: pointer; font-size: 15px; }
.btn:hover { background: #095a9e; }
.btn.secondary { background: #6b7785; }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 9px; border: 1px solid #c4ccd6;
       border-radius: 7px; font-size: 15px; font-family: inherit; }
textarea { min-height: 120px; }
.field-error { color: #c0392b; font-size: 13px; margin-top: 4px; }
.wizard.js .wizard-step { display: none; }
.wizard.js .wizard-step.active { display: block; }
.progress { display: flex; gap: 6px; margin-bottom: 18px; }
.progress span { flex: 1; height: 6px; background: #d7dee7; border-radius: 3px; }
.progress span.done { background: #0b6ec0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid #dde3ea; padding: 8px 10px; text-align: left; font-size: 14px; }
th { background: #eef2f6; }
.badge { background: #c0392b; color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.chat { background: #fff; border: 1px solid #dde3ea; border-radius: 10px; padding: 12px; }
.msg { margin: 8px 0; padding: 8px 12px; border-radius: 10px; max-width: 75%; }
.msg.user { background: #eef2f6; }
.msg.admin { background: #d8ecff; margin-left: auto; }
.msg .meta { font-size: 12px; color: #6b7785; }
.alert { background: #e7f6e7; border: 1px solid #b6dfb6; padding: 12px; border-radius: 8px; }
.lang-row { display: flex; gap: 8px; margin-bottom: 6px; align-items: center; }
.lead { font-size: 17px; color: #34465a; line-height: 1.5; }
.step-counter { color: #6b7785; font-size: 13px; margin: 4px 0 12px; }
.hint { color: #6b7785; font-size: 13px; }

/* Вертикальный список вакансий */
.vac-list { display: flex; flex-direction: column; gap: 14px; }
.vac-item { display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #dde3ea; border-radius: 12px; padding: 20px 24px;
  text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.vac-item:hover { box-shadow: 0 4px 16px rgba(11,61,102,.12); transform: translateY(-1px); }
.vac-main h2 { margin: 0 0 6px; color: #0b3d66; }
.vac-main p { margin: 0 0 8px; color: #4a5663; }
.vac-tag { display: inline-block; background: #eaf3fb; color: #0b6ec0; font-size: 13px;
  padding: 3px 10px; border-radius: 20px; }
.vac-arrow { font-size: 26px; color: #0b6ec0; margin-left: 18px; }

/* Дата рождения — три селекта */
.dob { display: flex; gap: 8px; }
.dob select { flex: 1; }

/* Админ: статусы сообщений и сортировка */
th a { color: #0b3d66; text-decoration: none; }
th a:hover { text-decoration: underline; }
tr.awaiting > td { background: #fff6e5; }
tr.detail > td { padding: 0; border-top: 0; }
tr.detail details { padding: 6px 10px; }
tr.detail summary { cursor: pointer; color: #0b6ec0; font-size: 13px; }
table.kv { margin: 10px 0; width: 100%; }
table.kv th { width: 30%; background: #f7f9fb; }
.msg-tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 10px;
  margin: 1px 2px; white-space: nowrap; }
.msg-tag.out { background: #d8ecff; color: #0b4e86; }
.msg-tag.in { background: #e7f6e7; color: #1e7e34; }
.msg-tag.wait { background: #c0392b; color: #fff; }
.badge-soft { background: #eef2f6; color: #34465a; border-radius: 10px; padding: 1px 8px; font-size: 12px; }

/* Широкая таблица анкет во всю ширину, без горизонтальной прокрутки */
.table-scroll { overflow-x: visible; border: 1px solid #dde3ea; border-radius: 8px; }
table.wide { width: 100%; min-width: 0; font-size: 12px; table-layout: fixed; }
table.wide th, table.wide td { white-space: normal; word-break: break-word;
  padding: 5px 6px; vertical-align: top; }
table.wide tr.detail td { white-space: normal; }
/* ФИО и E-mail — в одну строку без переносов */
table.wide .c-name, table.wide .c-email { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Бейджи статуса */
.status-badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.status-badge.s-new { background: #eef2f6; color: #34465a; }
.status-badge.s-reviewing { background: #fff0cf; color: #8a6100; }
.status-badge.s-rejected { background: #f6dada; color: #b3261e; }
/* Бейдж скоринга */
.score-badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; font-weight: 600; }
.score-badge.l-низкий { background: #f1d6d6; color: #b3261e; }
.score-badge.l-средний { background: #fdeecb; color: #8a6100; }
.score-badge.l-высокий { background: #d6efd6; color: #1e7e34; }
/* Пометки */
.mark-tag { display: inline-block; background: #eaf3fb; color: #0b6ec0; font-size: 13px; padding: 2px 10px; border-radius: 14px; margin: 2px; }
fieldset.marks { border: 1px solid #dde3ea; border-radius: 8px; margin: 12px 0; padding: 8px 12px; }
fieldset.marks legend { font-weight: 600; padding: 0 6px; }
label.chk { display: inline-block; font-weight: 400; margin: 4px 14px 4px 0; }
label.chk input { width: auto; }
