/* ============================================================
   Ветеран PRO — Вакансії
   Visual system replicated from veteranpro.gov.ua
   ============================================================ */

/* ---------- Fonts: e-Ukraine (official Ukrainian gov typeface) ---------- */
@font-face {
  font-family: 'e-Ukraine';
  src: url('assets/fonts/e-Ukraine-Light.otf') format('opentype');
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: 'e-Ukraine';
  src: url('assets/fonts/e-Ukraine-Regular.otf') format('opentype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'e-Ukraine';
  src: url('assets/fonts/e-Ukraine-Medium.otf') format('opentype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'e-Ukraine';
  src: url('assets/fonts/e-Ukraine-Bold.otf') format('opentype');
  font-weight: 700; font-display: swap;
}

/* ---------- Design tokens (exact values from veteranpro.gov.ua) ---------- */
:root {
  --charcoal: #2d2926;
  --bg: #e9e4e3;          /* page background — warm light gray */
  --card: #d1cbcb;        /* big blocks / cards — medium warm gray */
  --card-soft: #ddd8d7;   /* lighter chip surface on a card */
  --white: #ffffff;
  --line: rgba(45, 41, 38, 0.13);
  --line-strong: rgba(45, 41, 38, 0.28);
  --text: #2d2926;
  --text-muted: #6b6764;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.66);

  --radius-hero: 32px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --maxw: 1240px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'e-Ukraine', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { height: 21px; width: auto; }
.brand__divider { width: 1px; height: 22px; background: var(--line-strong); }
.brand__label { font-size: 14px; font-weight: 500; color: var(--charcoal); }

.header-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--charcoal);
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.header-link:hover { background: var(--card); border-color: var(--charcoal); }
.header-link svg { width: 16px; height: 16px; }

/* ============================================================
   Hero — rounded card on the gray background
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-hero);
  margin-top: 6px;
  background-color: #1c1a14;
  background-image:
    linear-gradient(100deg, rgba(20,18,14,0.88) 0%, rgba(20,18,14,0.48) 52%, rgba(20,18,14,0.18) 100%),
    url('assets/img/hero-bg.jpg');
  background-size: cover;
  background-position: center 62%;
  color: var(--on-dark);
}

.hero__inner {
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 64px);
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  padding: 7px 15px;
  border-radius: var(--radius-pill);
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #a7c14e;
  box-shadow: 0 0 0 4px rgba(167, 193, 78, 0.22);
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.hero__lead {
  margin-top: 16px;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 560px;
}

.hero__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 17px; height: 17px; }

.btn--light { background: var(--white); color: var(--charcoal); }
.btn--light:hover { transform: translateY(-2px); background: #f1efee; }

.btn--ghost-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.34);
}
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.10); border-color: var(--white); }

.btn--primary { background: var(--charcoal); color: var(--white); }
.btn--primary:hover { transform: translateY(-2px); background: #45403c; }

.btn--full { width: 100%; }

/* ============================================================
   Generic section
   ============================================================ */
.section { padding-block: 52px; }
.section--tight { padding-block: 40px; }

.section__head { max-width: 660px; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section__title {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.section__lead {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

/* ============================================================
   Vacancies
   ============================================================ */
.filters {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-btn {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--charcoal);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--charcoal); }
.filter-btn[aria-pressed="true"] {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.team-group { margin-top: 34px; }
.team-group.is-hidden { display: none; }

.team-group__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.team-group__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 500;
}
.team-group__emoji { font-size: 20px; line-height: 1; }
.team-group__org { font-size: 13.5px; font-weight: 300; color: var(--text-muted); }

.vacancy-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.vacancy-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.vacancy-card:hover {
  box-shadow: 0 12px 28px rgba(45, 41, 38, 0.14);
  transform: translateY(-3px);
}

.vacancy-card__tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--card-soft);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.vacancy-card__title {
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 500;
}

.vacancy-card__label {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--charcoal);
}

.vacancy-card__text {
  margin-top: 4px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
}

.vacancy-card__cta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

#filter-empty { margin-top: 28px; }

/* ============================================================
   Closing CTA — compact band
   ============================================================ */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  background: var(--charcoal);
  color: var(--on-dark);
  border-radius: var(--radius-card);
  padding: 32px 36px;
}
.cta__title { font-size: clamp(20px, 2.4vw, 25px); font-weight: 700; letter-spacing: -0.01em; }
.cta__text {
  margin-top: 6px;
  max-width: 460px;
  font-size: 14px;
  font-weight: 300;
  color: var(--on-dark-muted);
}
.cta .btn { flex: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: var(--on-dark);
  padding-block: 40px 28px;
  margin-top: 8px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__about { max-width: 400px; }
.footer__about p {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--on-dark-muted);
}

.footer__logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__logos img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--on-dark-muted);
}
.footer__bottom a {
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
}
.footer__bottom a:hover { border-color: var(--white); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .vacancy-grid { grid-template-columns: 1fr; }
  .section { padding-block: 40px; }
  .cta { padding: 26px 24px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .brand__label { display: none; }
  .header-link span { display: none; }
  .header-link { padding: 9px; }
  .vacancy-card { padding: 20px; }
  .team-group__name { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
