:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #192333;
  background: #f5f3ef;
  --ink: #121926;
  --muted: #566375;
  --gold: #ffd169;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #377acc; outline-offset: 3px; }
.wrap { width: min(75rem, calc(100% - 4rem)); margin-inline: auto; }

.site-header { color: #f7f9fc; background: var(--ink); }
.header-inner { min-height: 4.3rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.125rem; font-weight: 730; text-decoration: none; white-space: nowrap; }
.brand-mark { position: relative; width: 2rem; height: 2rem; border-radius: .5rem; background: var(--gold); }
.brand-mark::after {
  content: ""; position: absolute; width: .41rem; height: .41rem; inset: .56rem;
  background: var(--ink); box-shadow: .47rem .47rem var(--ink);
}
.header-inner nav { display: flex; align-items: center; gap: .3rem clamp(.5rem, 2vw, 1.8rem); flex-wrap: wrap; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #e0e5ed; font-size: .9rem; text-decoration: none; }
.header-inner nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: .3rem; }

.hero { position: relative; display: grid; align-items: center; min-height: clamp(28rem, 39vw, 38rem); isolation: isolate; color: white; background: var(--ink); overflow: hidden; }
.hero-photo, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-photo { object-fit: cover; object-position: center 66%; }
.hero-shade { background: linear-gradient(90deg, #0c121dee 0%, #0c121dc2 30%, #0c121d50 59%, transparent 82%); }
.hero-inner { padding-block: 4.5rem; }
.hero h1 { max-width: 13ch; font-size: clamp(3.1rem, 5.7vw, 5.5rem); line-height: .99; letter-spacing: -.064em; }
.hero p { max-width: 28rem; margin-top: 1.4rem; font-size: clamp(1rem, 1.6vw, 1.19rem); line-height: 1.55; color: #eceff5; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.1rem;
  padding: .7rem 1.05rem; border: 1px solid transparent; border-radius: .5rem; cursor: pointer; text-decoration: none;
  background: var(--gold); color: #211809; font-weight: 720;
}
.primary:hover { background: #ffdc89; }
.primary:disabled { opacity: .68; cursor: progress; }
.hero .primary { margin-top: 1.7rem; }

.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding-top: 1rem; color: var(--muted); font-size: .9rem; }
.service-cities { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.1rem; padding-block: 1.15rem; border-bottom: 1px solid #dbdfe4; }
.service-cities h2 { font-size: 1rem; }
.service-cities div { display: flex; flex-wrap: wrap; gap: .45rem; }
.service-cities a {
  min-height: 2.5rem; display: inline-flex; align-items: center; padding: .4rem .65rem; border: 1px solid #d8dce2;
  border-radius: .45rem; background: #fff; text-decoration: none; font-size: .92rem;
}
.service-cities a:hover, .service-cities a[aria-current] { border-color: #a37a25; background: #fff6df; }
.recruitment-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-top: 1.6rem; }
.recruitment-guides section { padding: clamp(1.05rem, 3vw, 1.8rem); background: #fff; border: 1px solid #dbdfe4; border-radius: .75rem; }
.recruitment-guides h2 { font-size: clamp(1.3rem, 2.7vw, 1.9rem); letter-spacing: -.035em; line-height: 1.12; }
.recruitment-guides p { margin-top: .8rem; color: var(--muted); line-height: 1.6; }
.guide-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; }
.guide-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #674706; font-weight: 680; text-underline-offset: .2em; }

.application { display: grid; grid-template-columns: minmax(13rem, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 6rem); padding-block: clamp(2rem, 6.5vw, 5rem); }
.intro h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.046em; line-height: 1.06; }
.intro p { margin-top: .9rem; max-width: 25rem; color: var(--muted); line-height: 1.6; }
.application-card { padding: clamp(1rem, 3.3vw, 2rem); border: 1px solid #dbdfe4; border-radius: .8rem; background: #fff; box-shadow: 0 12px 28px #19233309; }
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.form-fields, .choices, .fields { display: grid; gap: 1rem; }
.form-fields { gap: 1.35rem; }
.choices { gap: .48rem; }
legend { margin-bottom: .65rem; padding: 0; font-weight: 720; }
.choices label {
  display: flex; align-items: center; gap: .68rem; min-height: 2.9rem; padding: .5rem .75rem; border: 1px solid #d7dce4;
  border-radius: .48rem; cursor: pointer; font-weight: 620;
}
.choices label:hover { border-color: #888f9b; }
.choices label:has(:checked) { border-color: #a37a25; background: #fff6df; }
.choices input { width: 1rem; height: 1rem; flex: 0 0 1rem; margin: 0; accent-color: #775208; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields label { min-width: 0; display: grid; align-content: start; gap: .4rem; font-size: .93rem; font-weight: 650; }
.fields input, .fields select {
  width: 100%; min-width: 0; min-height: 2.85rem; padding: .62rem .67rem;
  border: 1px solid #c2cad5; border-radius: .45rem; color: #192333; background: #fff; font-weight: 450; font-size: 1rem;
}
.fields input::placeholder { color: #626e7f; }
.form-fields button { justify-self: start; }
.form-error { color: #9a2c31; }
.success { display: grid; align-content: center; gap: .75rem; min-height: 12rem; line-height: 1.45; }
.success h3 { font-size: 1.55rem; letter-spacing: -.027em; }
.success p { color: var(--muted); }
.footer { padding-block: 1.25rem 1.75rem; border-top: 1px solid #dedfdc; color: var(--muted); }

@media (max-width: 850px) {
  .application { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(90deg, #0c121de8 0%, #0c121db5 45%, #0c121d35 100%); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { align-items: start; flex-direction: column; gap: .25rem; padding-block: .8rem .4rem; }
  .header-inner nav { gap: 1rem; }
  .hero { min-height: 33rem; align-items: end; }
  .hero-photo { object-position: 68% center; }
  .hero-shade { background: linear-gradient(0deg, #0c121df8 8%, #0c121de0 42%, #0c121d40 78%, transparent); }
  .hero-inner { padding-block: 2rem; }
  .hero h1 { font-size: clamp(2.5rem, 10.8vw, 3.6rem); }
  .hero p { margin-top: .95rem; }
  .recruitment-guides { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .form-fields button { justify-self: stretch; }
}
