/* ============================================================
   Vacancies — archive & single page
   Editorial card list, light-intro hero, application form
   ============================================================ */


/* ============================================================
   Stat strip (why work here) — 4-col grid under intro
   ============================================================ */

.vac-stats {
  background: var(--white);
  padding: 24px 0 48px;
}

.vac-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: hidden;
}

@media (max-width: 1023.98px) {
  .vac-stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
  .vac-stats__grid { grid-template-columns: 1fr; }
}

.vac-stat {
  padding: 26px 24px 22px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vac-stat__num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.vac-stat__label {
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.vac-stat__desc {
  font-size: var(--fs-12);
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ============================================================
   Archive section — list of vacancy cards
   ============================================================ */

.vac-archive {
  background: var(--white);
  padding: 24px 0 64px;
}

@media (max-width: 767.98px) {
  .vac-archive { padding: 16px 0 48px; }
}

.vac-archive__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.vac-archive__count {
  font-size: var(--fs-14);
  color: var(--text-muted);
}

.vac-archive__count strong {
  color: var(--ink);
  font-weight: 600;
}

.vac-archive__hint {
  font-size: var(--fs-13);
  color: var(--text-muted);
}

.vac-archive__hint a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-3);
}

.vac-archive__hint a:hover { color: var(--red); border-color: var(--red); }


/* ============================================================
   Vacancy card — wide horizontal-friendly card
   ============================================================ */

.vac-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vac-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 18px 32px;
  padding: 26px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur) var(--ease);
}

.vac-card:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .vac-card { grid-template-columns: 1fr; padding: 22px 22px 20px; gap: 14px; }
}

.vac-card.is-hidden { display: none; }

.vac-card__head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.vac-card__dept {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--paper);
  border-radius: var(--r-pill);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.vac-card__type {
  font-size: var(--fs-12);
  color: var(--text-muted);
}

.vac-card__flag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vac-card__flag--new {
  background: var(--red);
  color: var(--white);
}

.vac-card__title {
  grid-column: 1;
  font-size: clamp(20px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.vac-card:hover .vac-card__title { color: var(--red); }

.vac-card__teaser {
  grid-column: 1;
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 70ch;
}

.vac-card__meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  font-size: var(--fs-12);
  color: var(--text-muted);
}

.vac-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vac-card__meta-item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.vac-card__meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}

.vac-card__btn {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: var(--fs-13);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}

.vac-card__btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.vac-card:hover .vac-card__btn {
  background: var(--ink);
  color: var(--white);
}

.vac-card:hover .vac-card__btn svg { transform: translateX(3px); }

@media (max-width: 767.98px) {
  .vac-card__btn {
    grid-column: 1;
    grid-row: auto;
    justify-content: center;
    width: 100%;
  }
}


/* ============================================================
   Empty state
   ============================================================ */

.vac-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--paper-2);
  border-radius: var(--r-4, 12px);
  display: none;
}

.vac-empty.is-visible { display: block; }

.vac-empty__title {
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.vac-empty__desc {
  font-size: var(--fs-14);
  color: var(--text-muted);
}


/* ============================================================
   Vacancy single — page layout
   ============================================================ */

.vac-single {
  background: var(--white);
  padding: 32px 0 64px;
}

.vac-single__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
}

@media (max-width: 1023.98px) {
  .vac-single__layout { grid-template-columns: 1fr; gap: 32px; }
}

.vac-single__body { min-width: 0; }


/* Single hero */
.vac-single__head {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.vac-single__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.vac-single__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 14px;
}

.vac-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-14);
  color: var(--text-muted);
}

.vac-single__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vac-single__meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.vac-single__meta-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}


/* Single body sections */
.vac-section {
  margin-bottom: 32px;
}

.vac-section__title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.3;
}

.vac-section p {
  font-size: var(--fs-15, 0.9375rem);
  line-height: 1.65;
  color: var(--ink-2, #1C1D21);
  margin-bottom: 14px;
}

.vac-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vac-section ul li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--ink-2, #1C1D21);
}

.vac-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}


/* Sticky head sidebar */
.vac-single__aside {
  position: sticky;
  top: calc(var(--header-h, 64px) + 32px);
}

.vac-aside-card {
  padding: 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-3);
}

.vac-aside-card__eyebrow {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.vac-aside-card__title {
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.005em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.vac-aside-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-13);
}

.vac-aside-card__row:last-of-type { border-bottom: none; }

.vac-aside-card__label { color: rgba(255, 255, 255, 0.65); }
.vac-aside-card__value { color: var(--white); font-weight: 600; text-align: right; }

.vac-aside-card .btn {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
}

@media (max-width: 1023.98px) {
  .vac-single__aside { position: static; }
}


/* ============================================================
   Application form — CV upload area
   ============================================================ */

.vac-apply {
  margin-top: 48px;
  padding: 32px 32px 28px;
  background: var(--paper);
  border-radius: var(--r-3);
  scroll-margin-top: calc(var(--header-h, 64px) + 24px);
}

@media (max-width: 575.98px) {
  .vac-apply { padding: 24px 22px; }
}

.vac-apply__head {
  margin-bottom: 22px;
}

.vac-apply__eyebrow {
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.vac-apply__title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

.vac-apply__lede {
  font-size: var(--fs-14);
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 6px;
  max-width: 60ch;
}

/* File upload area */
.vac-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px dashed var(--ink-3);
  border-radius: var(--r-3);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}

.vac-upload:hover {
  border-color: var(--ink);
  background: rgba(0, 0, 0, 0.02);
}

.vac-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.vac-upload__icon {
  width: 38px;
  height: 38px;
  background: var(--paper);
  border-radius: var(--r-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}

.vac-upload__icon svg { width: 16px; height: 16px; }

.vac-upload__text {
  flex: 1;
  min-width: 0;
}

.vac-upload__title {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2px;
}

.vac-upload__hint {
  font-size: var(--fs-12);
  color: var(--text-muted);
}
