/* Розділ «Вакансії» (/vacansy, /vacansy/{адреса}). ТЗ на верстку: розділи 1–7. Задача Асани 1220280377869146.
   Усе — під .vac, шапка й підвал сайту не зачіпаються. Без JS усе видно: анімації вмикає клас .vac-js на <html>. */

@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/onest/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('../fonts/onest/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Запасний шрифт з метриками Onest: поки Onest вантажиться, текст займає те саме місце, і підміна не зсуває
   макет (CLS). Підібрано 06.11.2026: середня ширина Onest / Arial на кирилиці 1,034, на латиниці 1,053 → 103,7 %;
   ascent 0,970 і descent 0,305 Onest, поділені на 1,037. */
@font-face { font-family: 'Onest Fallback'; font-weight: 400; src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Roboto');
  size-adjust: 103.7%; ascent-override: 93.5%; descent-override: 29.4%; line-gap-override: 0%; }
@font-face { font-family: 'Onest Fallback'; font-weight: 700; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Roboto Bold');
  size-adjust: 103.7%; ascent-override: 93.5%; descent-override: 29.4%; line-gap-override: 0%; }

/* Висота sticky-шапки сайту (.site-header): 72 + 40 px від 1024 px, 72 px вужче; з рядком оголошення шапка вища —
   тоді справжню висоту ставить vacancies-20261109.js. Під шапкою з відступом 24 px зупиняються бічна картка й переходи
   за якорями: «Відгукнутися» з картки в списку (#apply), кнопки на сторінці, фокус на полі з помилкою. */
:root { --site-header: 112px; scroll-padding-top: calc(var(--site-header) + 24px); }
@media (max-width: 1023px) { :root { --site-header: 72px; } }

.vac {
  --blue: #2f37dd; --blue-hover: #1d2299; --blue-soft: #eceeff; --blue-light: #9ea6ff;
  --ink: #12142b; --text-2: #3a3d55; --muted: #5b5f78; --muted-2: #8a8fb0;
  --bg: #f4f5fa; --line: #e3e5ef; --line-2: #eef0f6; --input-border: #d9dcea;
  --green: #1f7a46; --green-soft: #e3f6ea; --live: #2fb36b; --error: #d23c3c;
  --pad: clamp(16px, 4vw, 40px); --wrap: 1240px; --gap-section: clamp(56px, 8vw, 96px);
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  display: block; background: var(--bg); color: var(--ink);
  font-family: 'Onest', 'Onest Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* Скидання стилів сайту. styles.css ставить КОЖНОМУ елементу font: 1.5rem ProximaNova (успадкування не працює),
   абзацам — сірий колір, li — width: max-content і маркер ::before. Тут повертаємо успадкування від .vac.
   :where() не додає специфічності: класи компонентів нижче завжди сильніші за це скидання. */
.vac *, .vac *::before, .vac *::after { box-sizing: border-box; }
.vac :where(*) { font-family: inherit; font-size: inherit; font-weight: inherit; font-style: inherit; line-height: inherit; color: inherit; letter-spacing: inherit; }
.vac :where(p, ul, ol, li, h1, h2, h3, figure, fieldset, legend, dl, dd) { margin: 0; padding: 0; }
.vac :where(ul, ol) { list-style: none; }
.vac :where(li) { width: auto; max-width: none; }
.vac :where(li)::before { content: none; }
.vac :where(fieldset) { border: 0; min-width: 0; }
.vac :where(a) { text-decoration: none; }
.vac :where(button, input, select, textarea) { font: inherit; color: inherit; }
.vac :where(img) { max-width: 100%; height: auto; }
.vac :where(strong, b) { font-weight: 700; }
.vac .vi { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; vertical-align: middle; }
.vac [hidden] { display: none !important; }
.vac-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Діапазон чисел у текстах з адмінки («2024–2025», «1–3») не розривається на тире (VacancyText::inline). */
.vac-nw { white-space: nowrap; }
.vac :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.vac-wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; position: relative; }
@media (min-width: 1920px) { .vac { --wrap: 1500px; font-size: 17px; } }
@media (min-width: 2560px) { .vac { --wrap: 1900px; font-size: 18px; } }
@media (min-width: 3840px) { .vac { --wrap: 2400px; font-size: 20px; } }

.vac-section { padding-block: var(--gap-section) 0; }
/* Якір (#apply, #vacancies, #contact) — на секції, а її зміст починається після верхнього відступу. Відступ віднімаємо:
   під шапкою з 24 px — сам блок (синя форма, заголовок списку), а не порожнеча й низ попереднього блоку. */
.vac-section[id] { scroll-margin-top: calc(-1 * var(--gap-section)); }
.vac > .vac-section:last-child, .vac > section:last-of-type { padding-bottom: var(--gap-section); }
.vac-h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin-bottom: clamp(20px, 3vw, 32px); text-wrap: balance; }
.vac-h2--light { color: #fff; }
.vac-h2-row { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(20px, 3vw, 32px); }
.vac-h2-row .vac-h2 { margin-bottom: 0; }
.vac-num { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--blue); font-weight: 700; align-self: flex-end; padding-bottom: .45em; }
.vac-h2--num { font-size: clamp(26px, 3vw, 34px); }
.vac-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.vac-count--h2 { min-width: 34px; height: 34px; font-size: 17px; }
.vac-accent, .vac strong.vac-accent { color: var(--blue); font-weight: 700; }

/* Кнопки й посилання */
.vac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; text-align: center; }
.vac-btn:hover { transform: translateY(-1px); }
.vac-btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.vac-btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.vac-btn--block { width: 100%; }
.vac-btn--primary { background: var(--blue); color: #fff; }
.vac-btn--primary:hover { background: var(--blue-hover); color: #fff; }
.vac-btn--ghost { background: #fff; border-color: var(--input-border); color: var(--ink); }
.vac-btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.vac-btn--white { background: #fff; color: var(--blue); }
.vac-btn--white:hover { background: var(--blue-soft); color: var(--blue-hover); }
.vac-btn--white .vac-count { background: var(--blue); }
.vac-btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.vac-btn--outline-light:hover { border-color: #fff; color: #fff; }
.vac-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.vac-arrow-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--blue); transition: gap .2s; }
.vac-arrow-link:hover { gap: 10px; color: var(--blue-hover); }
.vac-arrow-link--light { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 6px; }
.vac-arrow-link--light:hover { color: #fff; }

.vac-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.vac-eyebrow--light { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.vac-live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.vac-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(47,179,107,.45); animation: vac-pulse 1.8s infinite; }
@keyframes vac-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,179,107,.45); } 70% { box-shadow: 0 0 0 8px rgba(47,179,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,107,0); } }

/* Шапка списку */
.vac-hero { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); isolation: isolate; }
.vac-hero__inner { z-index: 1; }
.vac-hero__title { font-size: clamp(44px, 7.5vw, 96px); font-weight: 800; line-height: .98; letter-spacing: -.035em; margin-bottom: clamp(20px, 3vw, 32px); }
.vac-hero__title span { display: block; }
.vac-hero__lead { max-width: 900px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: rgba(255,255,255,.82); text-wrap: pretty; }
.vac-hero__lead p + p { margin-top: .8em; }
.vac-hero__lead strong, .vac-hero__lead .vac-hl { color: #fff; font-weight: 700; }
.vac-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 24px; margin: clamp(32px, 5vw, 56px) 0; }
.vac-stat { border-top: 1px solid rgba(255,255,255,.3); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.vac-stat__num { font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.vac-stat__label { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.4; max-width: 18ch; }
.vac-bearing { position: absolute; top: -120px; right: -160px; width: min(760px, 90vw); aspect-ratio: 1; pointer-events: none; z-index: 0; opacity: .16; }
.vac-bearing svg { width: 100%; height: 100%; overflow: visible; }
.vac-bearing__ring { fill: none; stroke: #fff; stroke-width: 2; }
.vac-bearing__dash { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 10 14; transform-origin: 300px 300px; animation: vac-spin 60s linear infinite; }
.vac-bearing__balls { fill: #fff; transform-origin: 300px 300px; animation: vac-spin 24s linear infinite; }
@keyframes vac-spin { to { transform: rotate(360deg); } }

/* Плитки «Чому з нами» */
.vac-perks { display: flex; flex-wrap: wrap; gap: 20px; }
.vac-perk { flex: 1 1 340px; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 32px); transition: transform .35s, box-shadow .35s; }
.vac-perk:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -32px rgba(18,20,43,.35); }
.vac-perk__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); margin-bottom: 18px; }
.vac-perk__icon .vi { width: 28px; height: 28px; }
.vac-perk__icon--green { background: var(--green-soft); color: var(--green); }
.vac-perk__title { font-size: 21px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.vac-perk__text { color: var(--muted); font-size: 16px; line-height: 1.55; }
.vac-perk__text strong { color: var(--ink); }
.vac-perk--number { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; }
.vac-perk--number .vac-perk__main { flex: 1 1 280px; }
.vac-perk__pre { color: var(--muted); font-size: 15px; }
.vac-perk__num { font-size: clamp(64px, 8vw, 96px); font-weight: 800; color: var(--blue); line-height: .95; letter-spacing: -.04em; margin: 2px 0 8px; }
.vac-perk__subs { flex: 1 1 320px; display: grid; gap: 14px; }
.vac-perk__subs li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border-radius: 16px; padding: 18px 20px; color: var(--text-2); line-height: 1.5; }
.vac-perk__subs .vi { color: var(--blue); width: 24px; height: 24px; margin-top: 1px; }
.vac-perk--dark { flex-basis: 100%; background: var(--ink); border-color: var(--ink); color: #fff; }
.vac-perk--dark .vac-perk__icon { background: var(--blue); color: #fff; }
.vac-perk--dark .vac-perk__text { color: rgba(255,255,255,.75); max-width: 60ch; margin-bottom: 14px; }
.vac-perk--dark .vac-perk__text strong { color: #fff; }
.vac-perk--dark .vac-arrow-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 6px; }
.vac-perk__year { position: absolute; right: -10px; bottom: -40px; font-size: clamp(120px, 18vw, 240px); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.18); pointer-events: none; letter-spacing: -.04em; }
/* Діапазон років («2024–2025»): дрібніше, щоб лишався праворуч і не лягав під текст плитки. */
.vac-perk__year--long { font-size: clamp(64px, 9vw, 128px); bottom: -20px; }
.vac-perk--dark .vac-perk__main { position: relative; z-index: 1; }

/* Фільтри й список */
.vac-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.vac-chips { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 520px; }
.vac-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.vac-chip:hover { border-color: var(--blue); }
.vac-chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.vac-chip__n { display: inline-flex; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; }
.vac-chip.is-on .vac-chip__n { background: rgba(255,255,255,.2); color: #fff; }
.vac-select { position: relative; flex: 0 1 300px; min-width: min(100%, 220px); }
.vac-select select { appearance: none; width: 100%; min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 44px 0 20px; font-weight: 600; cursor: pointer; }
.vac-select__icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--blue); }
.vac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); gap: 20px; }
.vac-empty { padding: 40px 24px; text-align: center; color: var(--muted); background: #fff; border-radius: 22px; border: 1px dashed var(--input-border); }

/* Картка вакансії */
.vac-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 2.6vw, 30px); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s cubic-bezier(.2,.7,.2,1), border-color .35s; }
.vac-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(47,55,221,.45); border-color: var(--blue); }
.vac-card[hidden] { display: none; }
.vac-card__dir { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 600; }
.vac-card__dir .vi { width: 18px; height: 18px; }
.vac-card__title { font-size: 22px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
.vac-card__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.vac-card__link:focus-visible { outline: none; }
.vac-card__link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 2px; }
.vac-card__sub { display: block; font-size: 17px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.vac-card__row { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.vac-card__row .vi { color: var(--muted-2); margin-top: 1px; }
.vac-card__salary { color: var(--muted); }
.vac-card__salary strong { color: var(--ink); font-size: 18px; margin-right: 4px; white-space: nowrap; }
.vac-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 600; }
.vac-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.vac-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--bg); color: var(--text-2); font-size: 13px; font-weight: 600; }
.vac-badge .vi { width: 16px; height: 16px; color: var(--blue); }
.vac-badge--green { background: var(--green-soft); color: var(--green); }
.vac-badge--green .vi { color: var(--green); }
.vac-card__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.vac-card__foot .vac-live { flex: 1 1 100%; }
.vac-card--compact .vac-card__foot .vac-live { flex: 1 1 auto; }
.vac-card__actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.vac-card__arrow { color: var(--blue); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; transition: transform .2s; }
.vac-card--compact:hover .vac-card__arrow { transform: translateX(4px); }
.vac-js .vac-card.is-entering { animation: vac-card-in .52s var(--ease-out) both; }
@keyframes vac-card-in { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }

/* «Не знайшли свою вакансію?» і форми */
.vac-notfound__box { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 56px); }
.vac-notfound__intro { flex: 1 1 380px; }
.vac-notfound__text { color: var(--text-2); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; margin-bottom: 22px; }
.vac-form--short { flex: 1 1 420px; }

.vac-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px 16px; }
.vac-form__grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.vac-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vac-field--wide { grid-column: 1 / -1; }
.vac-field label, .vac-resume__legend { font-weight: 600; font-size: 15px; color: var(--ink); }
.vac .vac-field input, .vac .vac-field textarea { width: 100%; min-height: 52px; border: 1px solid var(--input-border); border-radius: 12px; background: var(--bg); padding: 12px 16px; font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.vac .vac-field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.vac .vac-field input::placeholder, .vac .vac-field textarea::placeholder { color: var(--muted-2); }
.vac .vac-field input:focus, .vac .vac-field textarea:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47,55,221,.14); }
.vac .vac-field.has-error input, .vac .vac-field.has-error textarea, .vac .vac-resume.has-error .vac-drop, .vac .vac-resume.has-error .vac-resume__link input { border-color: var(--error); }
.vac-field__error { color: var(--error); font-size: 13px; min-height: 0; }
.vac-field__error:empty { display: none; }
.vac-check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 6px; cursor: pointer; color: var(--text-2); font-size: 15px; line-height: 1.45; min-height: 44px; }
/* styles.css знімає вигляд з усіх input (html input { appearance: none !important }) і ставить їм height: auto !important,
   тож галочку малюємо самі, а висоту — теж з !important. Поля — через .vac .vac-field: правила сайту для input[type=text] сильніші за один клас. */
.vac .vac-check input { width: 22px; height: 22px !important; margin: 0; flex: 0 0 22px; border: 1.5px solid var(--input-border); border-radius: 6px; background: #fff center / 16px no-repeat; cursor: pointer; transition: background-color .2s, border-color .2s; }
.vac .vac-check input:checked { background-color: var(--blue); border-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23fff' d='M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z'/%3E%3C/svg%3E"); }
.vac-check input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.vac-field.has-error .vac-check input, .vac-check input[aria-invalid] { border-color: var(--error); }
.vac-form .vac-btn--block { margin-top: 14px; }
.vac-form__status:not(:empty) { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: #fdecec; color: var(--error); font-size: 15px; }
.vac-form__status.is-ok { background: var(--green-soft); color: var(--green); }
.vac-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.vac-done { text-align: center; padding: clamp(24px, 4vw, 40px) 12px; }
.vac-done .vi { width: 56px; height: 56px; color: var(--green); }
.vac-done__title { font-size: 24px; font-weight: 800; margin: 12px 0 6px; }
.vac-done__text { color: var(--muted); }

.vac-resume { margin-top: 16px; }
.vac-resume__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.vac-resume__legend { float: left; }
.vac-seg { display: inline-flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.vac-seg__opt { position: relative; }
.vac-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vac-seg__opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.vac-seg__opt span .vi { width: 18px; height: 18px; }
.vac-seg__opt input:checked + span { background: #fff; color: var(--blue); box-shadow: 0 4px 12px -6px rgba(18,20,43,.3); }
.vac-seg__opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.vac-drop { display: flex; gap: 16px; align-items: center; min-height: 76px; padding: 14px 18px; border: 1px dashed var(--blue-light); border-radius: 16px; background: var(--bg); cursor: pointer; color: var(--blue); font-weight: 600; transition: border-color .2s, background-color .2s; }
.vac-drop:hover, .vac-drop.is-drag { border-color: var(--blue); background: var(--blue-soft); }
.vac-drop__icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.vac-drop__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.vac-drop__text small { color: var(--muted); font-weight: 400; font-size: 13px; }
.vac-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.vac-drop__input:focus-visible + .vac-drop, .vac-resume__file:focus-within .vac-drop { outline: 3px solid var(--blue); outline-offset: 2px; }
.vac-resume__file { position: relative; }
.vac-more { margin-top: 14px; }
.vac-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; color: var(--blue); font-weight: 700; list-style: none; }
.vac-more summary::-webkit-details-marker { display: none; }
.vac-more[open] summary { margin-bottom: 10px; }

/* Сторінка вакансії */
.vac-detail { padding-top: clamp(20px, 3vw, 32px); }
.vac-detail__cols { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: flex-start; }
.vac-detail__main { flex: 1 1 560px; min-width: 0; }
.vac-side { flex: 0 1 380px; position: sticky; top: calc(var(--site-header) + 24px); width: 100%; }
.vac-detail__title { font-size: clamp(36px, 5vw, 62px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; margin-bottom: 22px; text-wrap: balance; overflow-wrap: anywhere; }
.vac-detail__sub { display: block; color: var(--blue); font-weight: 700; }
.vac-detail__title--closed { font-size: clamp(32px, 4.4vw, 54px); }
.vac-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.vac-meta__item { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); font-weight: 600; font-size: 15px; color: var(--ink); }
.vac-meta__item .vi { color: var(--blue); }
.vac-meta__item--green { background: var(--green-soft); border-color: var(--green-soft); color: var(--green); }
.vac-meta__item--green .vi { color: var(--green); }
.vac-meta__item--salary { background: var(--blue); border-color: var(--blue); color: #fff; }
.vac-meta__item--salary .vi { color: #fff; }
.vac-meta__item--salary[hidden] { display: none; }
.vac-lead { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: var(--text-2); margin: clamp(20px, 3vw, 32px) 0 0; max-width: 62ch; text-wrap: pretty; }
.vac--closed .vac-lead { margin-bottom: 18px; }
.vac-block { margin-top: clamp(40px, 6vw, 72px); }
.vac-duties li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); line-height: 1.55; transition: padding-left .25s; }
.vac-duties li:last-child { border-bottom: 1px solid var(--line); }
.vac-duties li:hover { padding-left: 8px; }
.vac-duties__n { flex: 0 0 auto; display: inline-flex; width: 40px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 14px; }
.vac-reqs li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line-2); line-height: 1.5; }
.vac-reqs__check { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.vac-reqs__check .vi { width: 16px; height: 16px; }
/* Плитки «Вимоги» й «Умови»: ряди повні (n плиток порівну на ряди — VacancyText::tileRowVars дає --k1…--kN у style),
   плитка не вужча за 22em / 15em. Скільки колонок m влазить, визначає @container за шириною списку в em:
   поріг m = m × мінімум + (m − 1) × проміжок .875em. На 2560 і 3840 шрифт більший, тож і плитки ширші. */
.vac-tiles { display: flex; flex-wrap: wrap; gap: .875em; }
.vac-tiles > li { flex: 1 1 15em; min-width: 0; }
@supports (container-type: inline-size) {
  .vac-tiles { container-type: inline-size; }
  .vac-tiles > li { --k: var(--k1); flex: 1 1 calc((100% - (var(--k) - 1) * .875em) / var(--k)); }
}
.vac-reqs { container-name: vac-reqs; }
@container vac-reqs (min-width: 44.875em) { .vac-reqs > li { --k: var(--k2); } }
@container vac-reqs (min-width: 67.75em) { .vac-reqs > li { --k: var(--k3); } }
@container vac-reqs (min-width: 90.625em) { .vac-reqs > li { --k: var(--k4); } }
.vac-conds { container-name: vac-conds; }
@container vac-conds (min-width: 30.875em) { .vac-conds > li { --k: var(--k2); } }
@container vac-conds (min-width: 46.75em) { .vac-conds > li { --k: var(--k3); } }
@container vac-conds (min-width: 62.625em) { .vac-conds > li { --k: var(--k4); } }
@container vac-conds (min-width: 78.5em) { .vac-conds > li { --k: var(--k5); } }
@container vac-conds (min-width: 94.375em) { .vac-conds > li { --k: var(--k6); } }
.vac-conds li { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 18px; background: var(--ink); color: #fff; line-height: 1.5; transition: transform .3s, background-color .3s; }
.vac-conds li:hover { transform: translateY(-3px); background: var(--blue); }
.vac-conds .vi { width: 28px; height: 28px; color: var(--blue-light); }
.vac-conds li:hover .vi { color: #fff; }
.vac-equipment { margin-top: 18px; color: var(--text-2); line-height: 1.55; }

.vac-side__card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 30px 60px -40px rgba(18,20,43,.35); }
.vac-side__salary { background: var(--blue-soft); border-radius: 18px; padding: 20px 22px; margin-bottom: 16px; }
.vac-side__label { color: var(--muted); font-size: 14px; }
.vac-side__amount { color: var(--blue); font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 4px 0; }
.vac-side__note { color: var(--text-2); font-size: 14px; }
.vac-side__reply { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; margin: 14px 0 0; line-height: 1.45; }
.vac-side__reply .vi { color: var(--live); }
.vac-side__perks { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 16px; display: grid; gap: 12px; }
.vac-side__perks li { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.4; }
.vac-side__perk-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }

.vac-about { background: var(--ink); color: #fff; margin-top: var(--gap-section); padding: var(--gap-section) 0; }
.vac-about__cols { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 80px); }
.vac-about__side { flex: 1 1 280px; max-width: 420px; }
.vac-about__since { display: flex; align-items: baseline; gap: 10px; color: rgba(255,255,255,.6); margin-bottom: 28px; }
.vac-about__year { font-size: clamp(64px, 8vw, 104px); font-weight: 800; color: var(--blue-light); line-height: .9; letter-spacing: -.04em; }
.vac-about__main { flex: 2 1 480px; }
.vac-about__text { color: rgba(255,255,255,.78); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; }
.vac-about__text strong { color: #fff; }
.vac-about__text p + p { margin-top: .8em; }
.vac-about__tiles { display: grid; gap: 16px; margin-top: 32px; }
.vac-about__tile { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); border-radius: 22px; padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; line-height: 1.55; }
.vac-about__tile strong { color: #fff; }
.vac-about__icon.vi { width: 32px; height: 32px; color: var(--blue-light); }

.vac-where__box { display: flex; flex-wrap: wrap; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3vw, 40px); }
.vac-where__info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.vac-where__place { display: flex; gap: 16px; align-items: center; font-size: clamp(20px, 2vw, 26px); font-weight: 800; line-height: 1.25; }
.vac-where__icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 16px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.vac-where__icon .vi { width: 28px; height: 28px; }
.vac-where__address { color: var(--text-2); font-size: 17px; }
.vac-where__note { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 14px; padding: 14px 16px; color: var(--text-2); }
.vac-where__note .vi { color: var(--blue); }
.vac-map { flex: 1 1 420px; min-height: 280px; border-radius: 20px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--bg) 0 14px, #fff 14px 28px); border: 1px solid var(--line); position: relative; }
.vac-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vac-map__load { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; color: var(--blue); font-weight: 700; }
.vac-map__load .vi { width: 36px; height: 36px; }
.vac-map__load small { color: var(--muted); font-weight: 400; }

.vac-apply__box { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); background: var(--blue); color: #fff; border-radius: 32px; padding: clamp(24px, 4.5vw, 64px); isolation: isolate; }
.vac-apply__ring { position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px; fill: none; stroke: rgba(255,255,255,.25); stroke-width: 2; stroke-dasharray: 8 14; z-index: -1; animation: vac-spin 50s linear infinite; pointer-events: none; }
.vac-apply__intro { flex: 1 1 360px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.vac-apply__intro .vac-h2 { margin-bottom: 0; }
.vac-pill { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); font-size: 14px; }
.vac-apply__hint { font-size: clamp(16px, 1.5vw, 19px); color: rgba(255,255,255,.85); }
.vac-apply__hint strong { color: #fff; }
.vac-apply__form { flex: 1 1 460px; background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(20px, 3vw, 40px); }
.vac-others__head { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: baseline; justify-content: space-between; }
.vac-preview { background: #fff6dc; color: #6b5200; text-align: center; padding: 10px 16px; font-weight: 600; }

/* Поява при прокрутці — лише з JS і без prefers-reduced-motion (клас ставить vacancies-20261109.js) */
.vac-js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); transition-delay: var(--d, 0ms); }
.vac-js [data-reveal].is-in { opacity: 1; transform: none; }

/* Під текстом вакансії картка не на всю ширину, а як колонка тексту. */
@media (max-width: 1080px) { .vac-side { position: static; flex-basis: 100%; max-width: 40em; } }
@media (max-width: 640px) {
  .vac-card__actions { width: 100%; }
  .vac-card__actions .vac-btn { flex: 1 1 140px; }
  .vac-filters .vac-select { flex-basis: 100%; }
  .vac-bearing { top: -60px; right: -220px; }
}
@media (prefers-reduced-motion: reduce) {
  .vac *, .vac *::before, .vac *::after { animation: none !important; transition: none !important; }
  .vac-js [data-reveal] { opacity: 1; transform: none; }
}
