:root {
    --teal: #007995;
    --teal-dark: #005b70;
    --ink: #19363d;
    --muted: #627378;
    --red: #df202b;
    --line: #e2e9e9;
    --soft: #f5f8f8;
    --white: #fff;
    --shadow: 0 18px 50px rgba(14, 53, 62, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", Arial, sans-serif; font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.topline { color: rgba(255,255,255,.86); background: var(--teal-dark); font-size: 11px; letter-spacing: .045em; }
.topline-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 89px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 49px; height: 49px; object-fit: contain; }
.brand-copy, .footer-brand { display: grid; line-height: 1.3; }
.brand-copy strong { font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: -.025em; }
.brand-copy span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.header-link { color: var(--teal); font-weight: 700; font-size: 13px; }
.header-link span { padding-left: 5px; }

.hero { position: relative; overflow: hidden; min-height: 455px; display: flex; align-items: center; background: var(--teal); color: #fff; }
.hero::before, .hero::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; pointer-events: none; }
.hero::before { width: 610px; height: 610px; right: 7%; top: -110px; }
.hero::after { width: 430px; height: 430px; right: calc(7% + 90px); top: -20px; }
.hero-pattern { position: absolute; width: 390px; height: 390px; right: 12%; top: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 76px rgba(255,255,255,.025); }
.hero-pattern::before { position: absolute; content: ""; width: 160px; height: 160px; right: 65px; top: 68px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.hero-logo-watermark { position: absolute; z-index: 0; top: 50%; right: 9%; width: min(38vw, 410px); height: auto; opacity: .13; mix-blend-mode: multiply; transform: translateY(-50%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding-top: 43px; padding-bottom: 48px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: 10px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #b7e5ea; margin: 0 0 17px; }
.eyebrow-mark { display: inline-block; width: 7px; height: 7px; background: #fa7a7b; border-radius: 50%; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 700px; margin-bottom: 14px; font-family: Manrope, sans-serif; font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.12; letter-spacing: -.055em; }
.hero-intro { max-width: 565px; margin-bottom: 20px; color: rgba(255,255,255,.8); font-size: 14px; }
.hero-meta { display: flex; gap: 25px; margin: 0 0 23px; color: rgba(255,255,255,.94); font-size: 12px; font-weight: 600; }
.meta-icon { margin-right: 7px; color: #b7e5ea; font-size: 14px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border: 0; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--teal-dark); background: #fff; }
.button-light:hover { background: #eaf7f7; }
.hero-side-label { position: absolute; right: 34px; bottom: 30px; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .2em; font-size: 9px; transform: rotate(-90deg); transform-origin: right; }

.intro-section { padding: 81px 0 72px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-kicker { color: var(--red); margin-bottom: 11px; }
.intro-grid h2, .section-heading h2, .application-aside h2, .form-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.045em; }
.intro-copy { max-width: 470px; color: var(--muted); font-size: 14px; }
.intro-copy p { margin-bottom: 15px; }
.text-link { color: var(--teal); font-weight: 700; font-size: 12px; }
.text-link span { margin-left: 5px; }

.vacancies-section { padding: 72px 0 88px; background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.section-aside { margin: 0; color: var(--muted); text-align: right; font-size: 11px; }
.vacancy-list { border-top: 1px solid var(--line); }
.vacancy-card { display: grid; grid-template-columns: 90px 1fr 90px; gap: 22px; align-items: center; padding: 22px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.52); transition: background .2s ease, box-shadow .2s ease; }
.vacancy-card:hover { position: relative; background: #fff; box-shadow: 0 8px 26px rgba(14,53,62,.06); }
.vacancy-ref { align-self: start; padding-top: 4px; color: var(--teal); font-family: Manrope, sans-serif; font-weight: 800; font-size: 12px; }
.vacancy-details h3 { margin: 0 0 2px; font-family: Manrope, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.015em; }
.salary { margin: 0 0 8px; color: var(--muted); font-size: 11px; }
.vacancy-card details { color: var(--muted); font-size: 12px; }
.vacancy-card summary { width: fit-content; color: var(--teal); cursor: pointer; font-weight: 700; list-style: none; }
.vacancy-card summary::-webkit-details-marker { display: none; }
.vacancy-card summary span { display: inline-block; margin-left: 5px; font-size: 15px; }
.vacancy-card details[open] summary span { transform: rotate(45deg); }
.vacancy-card details p { max-width: 760px; margin: 10px 0 0; line-height: 1.7; }
.apply-link { justify-self: end; color: var(--red); font-size: 12px; font-weight: 700; }
.apply-link span { margin-left: 5px; }
.service-note { display: flex; gap: 15px; align-items: center; margin-top: 25px; padding: 17px 20px; border-left: 3px solid var(--teal); background: #eaf3f4; }
.service-note-icon { color: var(--teal); font-size: 21px; }
.service-note p { margin: 0; color: var(--muted); font-size: 12px; }
.service-note strong { color: var(--ink); font-size: 13px; }

.application-section { padding: 88px 0; background: #fff; }
.application-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); align-items: start; gap: 58px; }
.application-aside { position: sticky; top: 25px; }
.application-aside h2 { max-width: 280px; font-size: 30px; }
.aside-intro { margin: 15px 0 25px; color: var(--muted); font-size: 13px; }
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 11px; }
.steps li > span { color: var(--teal); font-family: Manrope, sans-serif; font-size: 12px; font-weight: 800; }
.steps strong { font-size: 12px; }
.steps p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.mailing-card { display: flex; gap: 13px; margin-top: 25px; padding: 16px; background: var(--soft); }
.mailing-icon { color: var(--teal); font-size: 22px; }
.mailing-card strong { font-size: 11px; }
.mailing-card p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.shortlist-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.shortlist-note strong { color: var(--ink); }
.form-panel { padding: 34px 36px 36px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 27px; }
.form-heading h2 { font-size: 25px; }
.required-note { color: var(--muted); font-size: 10px; }
.application-role { margin-bottom: 24px; padding: 17px; border-left: 3px solid var(--teal); background: #f4f8f8; }
.required-note i, .field i, .consent-check i { color: var(--red); font-style: normal; }
fieldset { min-width: 0; margin: 0; padding: 22px 0 25px; border: 0; border-top: 1px solid var(--line); }
fieldset legend { float: left; width: 100%; margin-bottom: 17px; padding: 0; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; }
fieldset legend + * { clear: both; }
fieldset legend span { margin-right: 10px; color: var(--teal); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 16px; clear: both; }
.field { display: grid; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 600; }
.field[hidden] { display: none; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea, .field select { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #dfe7e7; border-radius: 2px; outline: none; background: #fff; color: var(--ink); font-size: 12px; font-weight: 400; }
.field textarea { min-height: 78px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,121,149,.09); }
.field input[type="file"] { padding: 8px; color: var(--muted); font-size: 11px; }
.field input[type="file"]::file-selector-button { margin-right: 10px; padding: 6px 9px; border: 0; border-radius: 2px; background: #eaf3f4; color: var(--teal-dark); cursor: pointer; font-size: 10px; font-weight: 700; }
.field small, .fieldset-hint { color: var(--muted); font-size: 10px; font-weight: 400; }
.fieldset-hint { clear: both; margin: -7px 0 15px; }
.education-entry { padding: 16px; border: 1px solid var(--line); background: #fbfcfc; }
.education-entry + .education-entry { margin-top: 12px; }
.education-entry-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--teal-dark); font-size: 11px; }
.education-entry-heading strong { font-family: Manrope, sans-serif; }
.certificate-hint { margin-top: 0; }
.certificate-entry { padding: 16px; border: 1px solid var(--line); background: #fbfcfc; }
.certificate-entry + .certificate-entry { margin-top: 12px; }
.certificate-entry-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--teal-dark); font-size: 11px; }
.certificate-entry-heading strong { font-family: Manrope, sans-serif; }
.remove-entry, .add-entry { border: 0; background: transparent; color: var(--teal); cursor: pointer; font-size: 10px; font-weight: 700; }
.remove-entry { color: var(--red); }
.add-entry { margin-top: 14px; padding: 9px 12px; border: 1px solid #cfe0e2; border-radius: 2px; }
.add-entry:hover:not(:disabled) { background: #eaf3f4; }
.add-entry:disabled { cursor: not-allowed; opacity: .55; }
.referee-block + .referee-block { margin-top: 19px; padding-top: 19px; border-top: 1px dashed var(--line); }
.referee-block h3 { margin: 0 0 11px; color: var(--teal); font-family: Manrope, sans-serif; font-size: 11px; }
.privacy-note { display: flex; align-items: start; gap: 11px; margin: 2px 0 15px; padding: 13px; background: #f4f8f8; color: var(--muted); }
.privacy-note > span { color: var(--teal); }
.privacy-note p { margin: 0; font-size: 10px; }
.consent-check { display: flex; gap: 9px; align-items: start; color: var(--muted); font-size: 10px; }
.consent-check input { accent-color: var(--teal); margin: 3px 0 0; }
.button-primary { margin-top: 20px; background: var(--teal); color: #fff; }
.button-primary:hover { background: var(--teal-dark); }
.deadline-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; }
.alert { margin: 0 0 20px; padding: 13px 15px; border: 1px solid; font-size: 12px; }
.alert-success { border-color: #9dcbb5; background: #eef9f2; color: #176339; }
.alert-error { border-color: #ecc4c4; background: #fff3f2; color: #922b2b; }
.alert ul { margin: 7px 0 0; padding-left: 18px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.print-reference-button { margin: 0 0 20px; }
.application-printout { display: none; }
.printout-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.printout-identity { display: flex; align-items: center; gap: 12px; }
.printout-identity img { width: 76px; height: auto; object-fit: contain; }
.printout-header h1 { margin: 0 0 4px; font-family: Manrope, sans-serif; font-size: 22px; }
.printout-header p { margin: 0; font-size: 11px; }
.printout-kicker { margin-bottom: 7px !important; color: var(--teal-dark); font-size: 12px !important; font-weight: 700; }
.passport-photo { width: 35mm; height: 45mm; display: grid; flex: 0 0 auto; place-content: center; border: 1px dashed #647378; color: #647378; text-align: center; font-size: 9px; line-height: 1.4; }
.printout-details { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0; }
.printout-details > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #dfe7e7; }
.printout-details dt { font-weight: 700; }
.printout-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.printout-note { color: var(--muted); font-size: 10px; }
.application-printout h2 { margin: 20px 0 8px; font-family: Manrope, sans-serif; font-size: 13px; }
.printout-education { width: 100%; border-collapse: collapse; text-align: left; }
.printout-education th, .printout-education td { padding: 8px; border: 1px solid #dfe7e7; font-size: 10px; vertical-align: top; }
.printout-education th { background: #f4f8f8; }
.printout-position { margin-top: 16px; }

.site-footer { padding: 27px 0; background: #14373e; color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-family: Manrope, sans-serif; font-size: 11px; font-weight: 700; }
.footer-brand span { margin-top: 3px; color: rgba(255,255,255,.62); font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 400; }
.footer-inner > p { margin: 0; color: rgba(255,255,255,.65); text-align: right; font-size: 10px; }
.footer-inner > p span { padding: 0 5px; }

@media (max-width: 900px) {
    .application-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 30px; }
    .form-panel { padding: 28px 24px; }
    .hero-pattern { right: -3%; }
}
@media (max-width: 700px) {
    .container { width: min(100% - 36px, 540px); }
    .topline-inner { min-height: 31px; font-size: 9px; }
    .masthead { min-height: 72px; }
    .brand img { width: 42px; height: 42px; }
    .brand-copy strong { font-size: 11px; }
    .brand-copy span { font-size: 10px; }
    .header-link { font-size: 10px; }
    .hero { min-height: 420px; }
    .hero-content { padding-top: 38px; padding-bottom: 40px; }
    .hero h1 { font-size: 40px; }
    .hero-intro { max-width: 450px; font-size: 13px; }
    .hero-meta { flex-direction: column; gap: 5px; }
    .hero-pattern { width: 240px; height: 240px; right: -85px; top: 116px; opacity: .7; }
    .hero-pattern::before { width: 100px; height: 100px; }
    .hero-logo-watermark { right: -50px; width: 210px; opacity: .1; }
    .hero::before, .hero::after, .hero-side-label { display: none; }
    .intro-section, .vacancies-section, .application-section { padding: 56px 0; }
    .intro-grid { grid-template-columns: 1fr; gap: 17px; }
    .intro-grid h2, .section-heading h2 { font-size: 28px; }
    .section-heading { align-items: start; flex-direction: column; gap: 10px; }
    .section-aside { text-align: left; }
    .vacancy-card { grid-template-columns: 55px minmax(0, 1fr); gap: 9px 13px; padding: 17px 11px; }
    .vacancy-details h3 { font-size: 13px; }
    .apply-link { grid-column: 2; justify-self: start; }
    .application-layout { grid-template-columns: 1fr; gap: 28px; }
    .application-aside { position: static; }
    .application-aside h2 { max-width: 430px; }
    .steps { grid-template-columns: 1fr 1fr; gap: 15px; }
    .steps li:last-child { grid-column: 1 / -1; }
    .mailing-card { max-width: 370px; }
    .form-panel { padding: 24px 18px; }
    .form-heading { align-items: start; flex-direction: column; gap: 8px; }
    .footer-inner { align-items: start; flex-direction: column; }
    .footer-inner > p { text-align: left; }
}
@media (max-width: 430px) {
    .container { width: calc(100% - 28px); }
    .topline-inner span + span { display: none; }
    .hero h1 { font-size: 34px; }
    .hero-meta { font-size: 11px; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .steps { grid-template-columns: 1fr; }
    .steps li:last-child { grid-column: auto; }
}

@media print {
    @page { size: A4; margin: 16mm; }
    body * { visibility: hidden !important; }
    .application-printout, .application-printout * { visibility: visible !important; }
    .application-printout { position: absolute; top: 0; left: 0; display: block; width: 100%; margin: 0; padding: 0; color: #000; font: 10pt/1.45 Arial, sans-serif; }
    .application-printout h1, .application-printout h2 { color: #000; }
    .printout-details { grid-template-columns: 1fr 1fr; }
    .printout-details > div { grid-template-columns: 130px minmax(0, 1fr); break-inside: avoid; }
    .printout-education { break-inside: auto; }
    .printout-education tr { break-inside: avoid; }
    .printout-education th, .printout-education td { color: #000; border-color: #777; }
}
