/* RMRP-WIKI — страница «Работы» (jobs.html, assets/work.js). Основа — wiki.css и pages.css (.box, .seg, .page-hero) */
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 20px; align-items: start; }
.work--full { grid-template-columns: minmax(0, 1fr); }
.work__body { min-width: 0; }
.work__body > .box + .box, .work__body > section + section { margin-top: 16px; }
.work__map { position: sticky; top: 84px; }
.wmap { height: min(70vh, 620px); border-radius: 12px; border: 1px solid var(--border-strong); background: #1b1b1b; overflow: hidden; }
.wmap .leaflet-container, .wmap.leaflet-container { background: #1b1b1b; font-family: var(--font); }
.wmap__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font: 12px var(--font-ui); color: var(--text-muted); }
.wmap__legend span { display: inline-flex; align-items: center; gap: 7px; }
.wmap__legend i { width: 14px; height: 10px; border-radius: 3px; border: 1.5px dashed var(--c); background: color-mix(in srgb, var(--c) 25%, transparent); }
.wmap__legend b { width: 12px; height: 12px; border-radius: 50%; background: #111; box-shadow: 0 0 0 2px var(--accent); }
/* точки появления видны с приближения */
.work__map:not(.wmap--dots) .wdot { display: none; }
.work__map:not(.wmap--dots) canvas.leaflet-zoom-animated { opacity: 0; }

/* значок места на мини-карте */
.wpin-wrap { background: none; border: 0; }
.wpin { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; overflow: hidden; background: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), 0 0 12px rgba(var(--accent-rgb), .7); }
.wpin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wpin__l { position: absolute; left: 50%; top: calc(50% + 19px); transform: translateX(-50%); width: max-content; max-width: 140px; text-align: center;
  font: 600 10px/1.15 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: #e3e6ea; text-shadow: 0 0 3px #000, 0 1px 2px #000; pointer-events: none; }
.wmap .leaflet-popup-content-wrapper, .wmap .leaflet-popup-tip { background: var(--bg-muted, #1d2126); color: #fff; }
.wmap .leaflet-popup-content { font: 13px/1.45 var(--font-ui); }

/* карточки и таблицы */
.wintro p, .box > p { color: var(--text-soft); }
.wh { margin: 0 0 10px; font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 24px; }
.wjob__head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 12px; }
.wjob__head h2 { margin: 0; font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1.1; }
.wjob__head small { color: var(--text-muted); font: 12px var(--font-ui); }
.wjob__ic { width: 48px; height: 48px; border-radius: 50%; background: #111; box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), 0 0 14px rgba(var(--accent-rgb), .5); object-fit: cover; }
.wjob__about { margin: 0 0 12px; font-size: 14px; }
.wtable-wrap { overflow-x: auto; margin: 0 -4px; }
.wtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.wtable th { text-align: left; padding: 0 8px 8px; font: 600 12px var(--font-ui); color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.wtable td { padding: 9px 8px; border-top: 1px solid var(--border); color: var(--text-soft); vertical-align: top; }
.wtable td b { color: #fff; font-weight: 700; }
.wtable td small { display: block; margin-top: 3px; font: 12px/1.4 var(--font-ui); color: var(--text-muted); }
.wtable tbody tr:hover td { background: rgba(255, 255, 255, .03); }
.wnum { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wtable th:not(:first-child):not(:nth-child(2)) { text-align: right; }
.wtable--items th:nth-child(2) { text-align: left; }
.wpay { color: #fff !important; font-weight: 700; white-space: nowrap; }
.wtd-img { width: 46px; padding-right: 0 !important; }
.wimg { display: block; width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.wbad { margin-left: 6px; padding: 1px 7px; border-radius: 9px; font: normal 600 11px var(--font-ui); color: #ffb3a8; background: rgba(225, 80, 65, .18); }
.wsmall { margin: 12px 0 0 !important; font: 13px/1.5 var(--font-ui); color: var(--text-muted) !important; }
.wnote { margin: 16px 0 0; font: 12px/1.5 var(--font-ui); color: var(--text-muted); }
.wchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wchips span { display: grid; gap: 2px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); font: 700 15px var(--font-ui); color: #fff; }
.wchips small { font: 500 11px var(--font-ui); color: var(--text-muted); }

@media (max-width: 960px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .work__map { position: static; order: -1; }
  .wmap { height: 46vh; min-height: 260px; }
}
@media (max-width: 560px) {
  .wjob__head { grid-template-columns: auto 1fr; }
  .wjob__head .btn { grid-column: 1 / -1; justify-self: start; }
  .wtable { font-size: 13px; }
  .wtable td, .wtable th { padding-left: 6px; padding-right: 6px; }
}
/* телефон: должности — карточками (название и описание сверху, уровень и оплата строкой ниже) */
@media (max-width: 560px) {
  .wtable--jobs thead { display: none; }
  .wtable--jobs tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--border); }
  .wtable--jobs td { padding: 0 !important; border: 0; }
  .wtable--jobs td:first-child { grid-column: 1 / -1; }
  .wtable--jobs .wlv { font-size: 0; }
  .wtable--jobs .wlv::before { content: attr(data-l); font: 12px var(--font-ui); color: var(--text-muted); }
  .wtable--jobs .wpay { text-align: right; }
  .wtable--jobs tbody tr:hover td { background: none; }
}
