/* Страница устроена как вакансия: одна колонка, заголовок с кнопкой, текст, форма */
.page { max-width: 852px; margin-inline: auto; padding-block: 24px 48px; font-size: 1rem; line-height: 1.5; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 28px; }
.top-tools { display: flex; align-items: center; gap: 6px; }
.name { font: 600 1.0625rem/1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.back { display: inline-flex; align-items: center; gap: 6px; }
.back svg { width: 12px; height: 12px; }
.title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 32px; padding-block: 20px 24px; }
.title > div { flex: 1 1 320px; min-width: 0; }
.title h1 { font: 600 2rem/2.5rem var(--sans); letter-spacing: -.012em; text-wrap: balance; }
.place { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.place svg { width: 16px; height: 16px; flex: none; }

/* Кнопки вакансии: радиус 5, шрифт текста */
.job-btn { display: inline-block; font: 400 1rem/1.5 var(--serif); padding: 8px 24px; border-radius: 5px; border: 1px solid transparent; cursor: pointer; text-decoration: none; text-align: center; background: none; color: var(--ink); transition: opacity .15s, background-color .15s; }
.job-main { background: var(--btn-bg); color: var(--btn-fg); font-weight: 500; }
.job-main:hover { opacity: .86; }
.job-out { border-color: var(--ink); }
.job-out:hover { background: var(--chip); }

.post { display: grid; gap: 16px; padding-bottom: 32px; }
.post h2 { font: 700 1.5rem/2.5rem var(--serif); letter-spacing: -.005em; margin-top: 8px; }
.post ul { display: grid; gap: 4px; list-style: disc; padding-left: 1.5em; }
.post em { display: block; }

/* Форма */
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.form-head { font: 600 1.5rem/2.5rem var(--sans); }
.req-note { font-size: .875rem; }
.req { color: var(--error); }
form { display: grid; gap: 24px; padding-top: 8px; }
.group { display: grid; gap: 11px; }
.f { max-width: 600px; }
.box {
  position: relative; display: block; border-radius: 5px; outline: 1px solid var(--field); outline-offset: -1px; background: transparent; cursor: text;
  transition: outline-color .12s;
}
.box:hover { outline-color: color-mix(in srgb, var(--ink) 55%, transparent); }
.box:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; }
.f.bad .box { outline: 2px solid var(--error); outline-offset: -2px; }
.box > label, .box > .lab { display: block; font: 700 .8125rem/1.125rem var(--serif); padding: 8px 12px 0; cursor: inherit; }
.box input, .box textarea {
  display: block; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 400 1rem/1.5 var(--serif); padding: 2px 12px 8px; border-radius: 0 0 5px 5px;
}
.box textarea { min-height: 96px; resize: vertical; }
.hint { font-size: .9375rem; padding: 6px 8px 0; }
.err { display: none; color: var(--error); font-size: .875rem; padding: 6px 8px 0; }
.f.bad .err { display: block; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 11px; max-width: 600px; }
.split > * { min-width: 0; }
@media (max-width: 480px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Выпадающий список */
.sel { cursor: pointer; }
.sel button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--ink); cursor: pointer; font: 400 1rem/1.5 var(--serif); padding: 2px 34px 8px 12px; min-height: 32px; border-radius: 0 0 5px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel button:focus { outline: 0; }
.sel button.empty { color: var(--muted); }
.sel::after { content: ""; position: absolute; right: 12px; top: 50%; margin-top: -2px; border: 5px solid transparent; border-top: 6px solid var(--ink); border-bottom: 0; pointer-events: none; }
.sel.open::after { rotate: 180deg; }
.sel ul { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 4; background: var(--bg); border-radius: 5px; box-shadow: 0 0 0 1px var(--field), 0 6px 18px rgba(20, 20, 19, .14); padding: 4px; max-height: 280px; overflow: auto; }
.sel li { padding: 6px 10px; border-radius: 3px; cursor: pointer; font: 400 1rem/1.5 var(--serif); }
.sel li.on, .sel li:hover { background: var(--chip); }
.sel li[aria-selected="true"] { font-weight: 600; }

/* Вложение */
.upl-label { font: 700 .8125rem/1.125rem var(--serif); margin-bottom: 8px; }
.upl { display: grid; gap: 8px; max-width: 300px; }
.upl .job-btn { width: 100%; }
.file-types { font-size: .875rem; margin-top: 8px; }
.file-name { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 600px; font-size: .9375rem; margin-top: 8px; overflow-wrap: anywhere; }
.file-name button { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: .18em; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trap { position: absolute; left: -9999px; }
.send { display: flex; justify-content: flex-end; padding-top: 12px; }
.privacy { font-size: .875rem; color: var(--muted); max-width: 600px; padding-top: 16px; }

/* Итог отправки */
.done { background: var(--card); border-radius: 5px; padding: 18px 20px; display: grid; gap: 10px; justify-items: start; }
.done h3 { font: 700 1.25rem/1.4 var(--serif); }

.foot-note { padding-top: 40px; text-align: center; font-size: .875rem; color: var(--muted); }

/* Условия перед отправкой, как юридический блок на странице вакансии */
.agree { display: grid; gap: 12px; max-width: 42em; padding-bottom: 6px; }
.agree h3 { font: italic 700 1rem/1.5 var(--serif); margin: 0; }
.agree p { margin: 0; }
