/* SLIST — «Где работать», вахта и права (24.10.2026): work-place.js и vahta-ui.js. Кнопки «Где работать» — сеткой
   одной ширины: галочка нажатой кнопки не удлиняет её и не переносит соседей на другую строку (замечание владельца). */

/* ============ «Где работать» ============ */
/* узко — две на две, широко — все в ряд; «три и одна внизу» не бывает */
#spWork,#obWork{container-type:inline-size}
.sx-where{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@container (min-width:640px){.sx-where{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}
.sx-where .sx-tg{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;padding:0 10px;text-align:center;white-space:nowrap}
.sx-where .sx-tg::before{content:"✓";visibility:hidden;color:var(--amber)}
.sx-where .sx-tg[aria-pressed="true"]::before{content:"✓";visibility:visible}
.sx-vahta{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px;padding:12px 14px;border-radius:14px;background:var(--amber-s);border:1px solid rgba(242,169,59,.35);font-size:15px;line-height:1.4}
.sx-vahta span{flex:1 1 200px;min-width:0}
.sx-lic{display:grid;gap:10px;margin-top:16px}
.sx-lic h4{margin:0;font-size:16px;font-weight:600}

/* ============ отметки прав и кнопки вопросов вахты ============ */
.vh-lic,.vh-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.vh-row.vh-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.vh-tg{display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:0 8px;border-radius:12px;border:1px solid var(--line-2);background:rgba(255,255,255,.03);font-size:15px;font-weight:500;color:var(--fg-2);white-space:nowrap;transition:background .2s,border-color .2s,color .2s}
.vh-tg:hover{border-color:var(--line-3);color:var(--fg)}
.vh-tg:focus-visible{outline:2px solid var(--amber);outline-offset:1px}
.vh-tg::before{content:"✓";visibility:hidden;color:var(--amber)}
.vh-tg[aria-pressed="true"]{color:var(--fg);border-color:rgba(242,169,59,.55);background:var(--amber-s);box-shadow:inset 0 0 0 1px rgba(242,169,59,.25)}
.vh-tg[aria-pressed="true"]::before{visibility:visible}

/* ============ лист «Вахта» и карточка «Вахта и права» ============ */
.vh-form{display:grid;gap:16px} /* не .vh: так в ready.css зовётся «скрыть с экрана» */
.vh-q{display:grid;gap:8px}
.vh-qh{margin:0;font-size:15px;font-weight:600;color:var(--fg)}
.vh-regions{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.vh-regions .vh-tg{white-space:normal;line-height:1.2;padding:6px 8px}
.vh-other{grid-column:1/-1;display:flex;gap:8px;align-items:center}
.vh-in{min-height:48px}
.vh-msg{margin:0;min-height:1.2em;color:var(--coral);font-size:14px}
.vh-msg:empty{display:none}
.vh-foot{display:flex;justify-content:flex-end}
.vh-sheet{width:min(560px,calc(100vw - 20px))}
.sh-dialog .vh-sheet,.sh-pop .vh-sheet{width:min(560px,100%)}

/* ============ карточка вакансии ============ */
.chip.vh-mark{font-weight:600}
.vh-memo{margin-top:4px}

@media (max-width:900px){
  .sx-where .sx-tg,.vh-tg{font-size:16px}
  .vh-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .vh-regions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .vh-foot .btn{width:100%}
}

/* ============ знакомство, шаг «Где работать» ============ */
.ob-work{display:grid;gap:10px;width:min(560px,100%);margin:0 auto}
.ob-abroad{margin-top:18px}
.ob-abroad-h{margin:0 0 8px;font-size:18px;font-weight:700;text-align:center}
