/* Страница вакансий — в стиле сайта: строгий красно-белый 2D с плоской тенью */
.vac-main { padding: calc(var(--header-h) + 40px) 0 90px; min-height: 70vh; }
.vac-crumbs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 30px; }
.vac-crumbs a { color: var(--red); }
.vac-crumbs a:hover { text-decoration: underline; }
.vac-head { max-width: 820px; margin-bottom: 44px; }
.vac-intro { margin-top: 26px; font-size: 18px; color: var(--muted); }
.vac-intro p + p { margin-top: 12px; }

.vac-items { display: grid; gap: 24px; }
.vac { background: var(--surface); border: 1.5px solid var(--edge); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.vac details > summary { list-style: none; cursor: pointer; display: flex; gap: 20px; align-items: flex-start; padding: 28px 30px; }
.vac details > summary::-webkit-details-marker { display: none; }
.vac details > summary:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.vac-sum { flex: 1; display: grid; gap: 12px; min-width: 0; }
.vac-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; }
.vac-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.vac-chip { display: inline-block; padding: 6px 11px; font-size: 14px; font-weight: 600; border: 1.5px solid var(--line); background: var(--bg-alt); }
.vac-chip b { font-weight: 700; color: var(--muted); }
.vac-chip-red { border-color: var(--red); background: var(--red-soft); }
.vac-chip-red b { color: var(--red); }
.vac-summary { color: var(--muted); font-size: 16px; }
.vac-toggle { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--edge); background: var(--bg); position: relative; transition: background .2s, transform .2s; }
.vac-toggle::before, .vac-toggle::after { content: ""; position: absolute; width: 16px; height: 2.5px; background: currentColor; transition: transform .25s var(--ease); }
.vac-toggle::after { transform: rotate(90deg); }
.vac details[open] .vac-toggle { background: var(--red); border-color: var(--red); color: #fff; }
.vac details[open] .vac-toggle::after { transform: rotate(0); }
.vac summary:hover .vac-toggle { box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); }

.vac-body { padding: 0 30px 30px; border-top: 1.5px solid var(--line); }
.vac-block { padding-top: 24px; }
.vac-block h3 { font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.vac-block p { font-size: 16px; line-height: 1.6; }
.vac-block p + p { margin-top: 10px; }
.vac-list { display: grid; gap: 9px; }
.vac-list li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.5; }
.vac-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; background: var(--red); }
.vac-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.vac-actions .ic-tg { width: 18px; height: 18px; }
.vac-actions .btn:hover .ic-tg { transform: none; }

.vac-empty { padding: 40px; border: 1.5px dashed var(--edge); background: var(--surface); display: grid; gap: 22px; justify-items: start; max-width: 760px; }
.vac-empty p { font-size: 18px; }
.vac-safe { margin-top: 36px; max-width: 820px; font-size: 14px; color: var(--muted); }

/* окно отклика */
.vac-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(10, 10, 12, .72); animation: fade .2s ease; overflow-y: auto; }
.vac-modal[hidden] { display: none; }
.vac-box { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1.5px solid var(--edge); box-shadow: 12px 12px 0 var(--red); padding: 34px 34px 26px; }
.vac-close { position: absolute; top: 14px; right: 14px; float: none; margin: 0; }
.vac-form-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 3vw, 28px); margin: 0 56px 24px 0; }
.vac-form select { width: 100%; padding: 15px 16px; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 2px; }
.vac-form select:focus { outline: none; border-color: var(--edge); box-shadow: 4px 4px 0 var(--red); }
.vac-form textarea[aria-invalid="true"] { border-color: var(--red); }
.vac-row { display: grid; grid-template-columns: 1fr 130px; gap: 14px; align-items: end; }
.vac-note { font-size: 14px; padding: 12px 14px; background: var(--bg-alt); border-left: 4px solid var(--red); }
.vac-consent { font-size: 12.5px; color: var(--muted); text-align: center; }

@media (max-width: 720px) {
  .vac-main { padding-top: calc(var(--header-h) + 24px); }
  .vac details > summary { padding: 20px 18px; gap: 14px; }
  .vac-body { padding: 0 18px 22px; }
  .vac-actions .btn { width: 100%; }
  .vac-box { padding: 26px 18px 20px; box-shadow: 8px 8px 0 var(--red); }
  .vac-row { grid-template-columns: 1fr 96px; }
  .vac-intro { font-size: 16px; }
}
