:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #526071;
  --blue: #174ea6;
  --red: #d92d20;
  --red-dark: #b42318;
  --navy: #0b1220;
  --paper: #ffffff;
  --soft: #f7f8fa;
  --line: #d8dee8;
  --danger: #a52828;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); line-height: 1.6; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.025em; }
.page-width { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: white; }
.nav-shell { width: min(1120px, calc(100% - 40px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 178px; height: auto; }
.header-link, .back-link, .text-link { color: #344054; font-size: 14px; font-weight: 650; text-decoration: none; }
.header-link:hover, .back-link:hover, .text-link:hover { color: var(--red); text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 26px; }

.vacancy-hero { padding-block: 38px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.vacancy-heading { max-width: 640px; }
.job-state { margin-bottom: 13px; color: var(--red); font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin-bottom: 20px; font-size: clamp(40px, 4.4vw, 56px); line-height: 1.04; font-weight: 730; }
.lead { max-width: 620px; margin-bottom: 28px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.vacancy-image { width: 100%; height: 380px; object-fit: cover; object-position: center 46%; border-radius: 3px; }
.button { min-height: 48px; padding: 0 21px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; color: white; background: var(--red); text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.button.primary:hover { background: var(--red-dark); }
.button.light { color: var(--navy); border-color: white; background: white; }
.button.light:hover { background: #f2f4f7; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 78, 166, .28); outline-offset: 3px; }
.full-width { width: 100%; }

.job-layout { padding-block: 58px 78px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 90px; border-top: 1px solid var(--line); align-items: start; }
.job-description { max-width: 700px; }
.job-description section + section { margin-top: 46px; }
.job-description h2, .job-summary h2 { margin-bottom: 15px; font-size: 24px; }
.job-description p, .job-description li { color: #475467; }
.job-description ul { margin: 0; padding-left: 22px; }
.job-description li + li { margin-top: 9px; }
.process-list { margin: 0; padding-left: 22px; }
.process-list li + li { margin-top: 13px; }
.process-list strong { color: var(--ink); }
.job-summary { padding: 27px; border: 1px solid var(--line); background: var(--soft); }
.job-summary dl { margin: 0 0 26px; }
.job-summary dl div { padding-block: 14px; border-top: 1px solid var(--line); }
.job-summary dt { margin-bottom: 3px; color: #667085; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.job-summary dd { margin: 0; color: #344054; font-size: 14px; }
.summary-note { margin: 13px 0 0; color: #667085; text-align: center; font-size: 12px; }
.final-cta { color: white; background: var(--blue); }
.final-cta-inner { min-height: 180px; padding-block: 35px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.final-cta h2 { margin-bottom: 5px; font-size: 30px; }
.final-cta p { margin: 0; color: #dbe7fb; }

.application-page { background: var(--soft); }
.application-layout { padding-block: 54px 76px; display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 68px; align-items: start; }
.application-heading { position: sticky; top: 30px; }
.application-heading h1 { margin-bottom: 18px; font-size: 39px; }
.application-heading > p:not(.job-state, .privacy-note, .contact-note) { color: var(--muted); }
.privacy-note { margin-top: 28px; padding: 16px; border-left: 3px solid var(--blue); color: #344054; background: #eef4ff; font-size: 13px; }
.contact-note { margin-top: 24px; color: #667085; font-size: 13px; }
.contact-note a { color: var(--blue); font-weight: 700; }
.form-card { border: 1px solid var(--line); background: white; }
form { padding: 38px; }
fieldset { margin: 0; padding: 0 0 36px; border: 0; }
fieldset + fieldset { padding-top: 36px; border-top: 1px solid var(--line); }
legend { width: 100%; margin-bottom: 24px; font-size: 20px; font-weight: 730; }
.field-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { margin-bottom: 21px; display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 650; }
.field-grid .field { margin-bottom: 0; }
.field > span small { color: #667085; font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #b8c1ce; border-radius: 2px; color: var(--ink); background: white; outline: none; }
input, select { min-height: 47px; padding: 0 12px; }
textarea { padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(23, 78, 166, .12); }
.choice-grid, .check-grid { display: grid; gap: 8px; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.responsibilities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.days-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice, .check { position: relative; cursor: pointer; }
.choice input, .check input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span, .check > span { min-height: 50px; padding: 10px; display: grid; place-items: center; border: 1px solid #b8c1ce; border-radius: 2px; color: #344054; background: white; text-align: center; font-size: 12px; line-height: 1.35; transition: border-color .12s ease, background .12s ease; }
.choice input:checked + span, .check input:checked + span { color: #123b74; border-color: var(--blue); background: #eef4ff; box-shadow: inset 0 0 0 1px var(--blue); }
.choice input:focus-visible + span, .check input:focus-visible + span { outline: 3px solid rgba(23, 78, 166, .24); outline-offset: 2px; }
.consent-row { margin: 15px 0 0; display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: #475467; font-size: 13px; cursor: pointer; }
.consent-row input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; opacity: 0; pointer-events: none; }
.form-message { display: none; margin-bottom: 17px; padding: 12px 14px; border: 1px solid #f2a7a0; color: var(--danger); background: #fff1f0; font-size: 13px; font-weight: 650; }
.form-message.is-visible { display: block; }
.submission-note { margin: 12px 0 0; color: #667085; text-align: center; font-size: 12px; }
.field-error { color: var(--danger); font-size: 11px; font-weight: 650; }
.consent-row .field-error { grid-column: 1 / -1; }
.has-error input, .has-error select, .has-error textarea, .has-error .choice > span, .has-error .check > span { border-color: #c74646; }

.confirmation-page { min-height: 100vh; display: flex; flex-direction: column; }
.confirmation-shell { max-width: 700px; padding-block: 90px 110px; text-align: center; flex: 1; }
.confirmation-mark { width: 54px; height: 54px; margin: 0 auto 24px; display: grid; place-items: center; color: white; background: var(--blue); font-size: 25px; font-weight: 800; }
.confirmation-shell h1 { margin-bottom: 18px; font-size: clamp(38px, 6vw, 54px); }
.confirmation-shell > p:not(.job-state) { max-width: 620px; margin-inline: auto; color: var(--muted); font-size: 17px; }
.email-guidance { max-width: 530px; margin: 30px auto 0; padding: 20px 22px; border: 1px solid #b7d5ef; background: #f1f8ff; text-align: left; }
.email-guidance h2 { margin: 0 0 7px; color: var(--navy); font-size: 18px; }
.email-guidance p { margin: 0; color: #475467; font-size: 14px; line-height: 1.65; }
.email-pending { border-color: var(--line); background: var(--soft); }
.confirmation-actions { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 24px; }

.site-footer { padding: 56px 0 24px; color: #cbd5e1; background: var(--navy); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr 1fr; gap: 64px; }
.footer-about img { width: 180px; }
.footer-about p { max-width: 390px; margin: 18px 0 0; color: #94a3b8; font-size: 13px; line-height: 1.7; }
.site-footer h2 { margin-bottom: 15px; color: white; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; display: grid; gap: 8px; color: #94a3b8; font-size: 13px; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid #1e293b; color: #94a3b8; font-size: 11px; }
.compact-footer { margin-top: auto; }

@media (max-width: 900px) {
  .vacancy-hero { grid-template-columns: 1fr; gap: 36px; }
  .vacancy-image { height: 400px; }
  .job-layout { grid-template-columns: 1fr; gap: 48px; }
  .job-summary { max-width: 620px; }
  .application-layout { grid-template-columns: 1fr; gap: 34px; }
  .application-heading { position: static; max-width: 650px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .page-width, .nav-shell { width: min(100% - 30px, 1120px); }
  .nav-shell { min-height: 62px; }
  .brand img { width: 145px; }
  .header-link { font-size: 12px; }
  .vacancy-hero { padding-block: 30px 36px; }
  h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .vacancy-image { height: 285px; }
  .job-layout { padding-block: 42px 56px; }
  .job-description section + section { margin-top: 36px; }
  .job-summary { padding: 21px; }
  .final-cta-inner { padding-block: 35px; align-items: flex-start; flex-direction: column; gap: 22px; }
  .final-cta .button { width: 100%; }
  .application-layout { padding-block: 36px 54px; }
  .application-heading h1 { font-size: 34px; }
  form { padding: 24px 17px; }
  .two-columns, .three-columns, .responsibilities-grid { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .days-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .time-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-about { grid-column: auto; }
  .confirmation-shell { padding-block: 65px 80px; }
}

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