:root {
  color-scheme: light;
  --red: #b83232;
  --red-dark: #982525;
  --ink: #171717;
  --muted: #666;
  --field: #f1efef;
  --line: #d5d0d0;
  --success-bg: #edf8f0;
  --success: #176b35;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font-size: 16px; }
.brand-bar { height: 72px; background: var(--red); display: flex; align-items: center; padding: 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; line-height: 1.05; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; font-size: 27px; font-weight: 800; }
main { width: min(100% - 32px, 600px); margin: 0 auto; }
.intro { text-align: center; padding: 76px 0 70px; }
.intro p { margin: 0 0 8px; font-size: 30px; }
.intro h1 { margin: 0; font-size: 31px; line-height: 1.15; font-weight: 800; }
.application-form { padding-bottom: 62px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.field { margin-bottom: 22px; }
.field label, .skills legend { display: block; margin-bottom: 7px; font-weight: 700; line-height: 1.3; }
label span, .required-note span { color: var(--red); }
input, textarea, select { width: 100%; min-height: 38px; border: 1px solid transparent; border-radius: 10px; background: var(--field); padding: 9px 12px; color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { resize: vertical; line-height: 1.45; }
input:hover, textarea:hover, select:hover { background: #ece9e9; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(184,50,50,.13); }
input:user-invalid, textarea:user-invalid { border-color: var(--red); }
input::placeholder { color: #9a9696; }
.skills { margin: 8px 0 24px; }
.section-title { font-size: 18px; font-weight: 800; margin: 28px 0 18px; }
.application-form fieldset:first-child .section-title { margin-top: 0; }
.skills legend { font-size: 18px; margin-bottom: 3px; }
.skills-hint { margin: 0 0 22px; color: var(--muted); }
.field-help { margin: -2px 0 10px; color: var(--muted); font-size: 14px; }
.option-field > label { font-size: 18px; }
.skills h2 { margin: 20px 0 7px; font-size: 16px; font-weight: 400; color: #414141; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; padding: 4px 2px; font-weight: 700; cursor: pointer; }
.check span { color: var(--ink); }
.check input { flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; margin: 0; accent-color: var(--red); cursor: pointer; }
.consent { display: grid; grid-template-columns: 21px 1fr; gap: 10px; align-items: start; margin: 30px 0 28px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.consent input { width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--red); }
.consent > span { color: var(--ink); }
button { display: block; margin: 0 auto; min-width: 190px; min-height: 52px; border: 0; border-radius: 10px; padding: 12px 26px; color: #fff; background: var(--red); font: 700 18px/1 Arial, sans-serif; cursor: pointer; transition: background .15s, transform .15s; }
button:hover { background: var(--red-dark); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid rgba(184,50,50,.28); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .65; }
.required-note { text-align: center; color: var(--muted); font-size: 13px; }
.form-status { border-radius: 10px; margin: 0 0 26px; padding: 15px 17px; line-height: 1.45; }
.form-status.success { color: var(--success); background: var(--success-bg); border: 1px solid #b9dec4; }
.form-status.error { color: #8d2020; background: #fff0f0; border: 1px solid #edb4b4; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
footer.brand-bar { margin-top: 0; }

@media (max-width: 640px) {
  .brand-bar { height: 62px; padding: 0 16px; }
  .brand-mark { width: 38px; height: 38px; font-size: 24px; }
  main { width: min(100% - 28px, 600px); }
  .intro { padding: 52px 0 48px; }
  .intro p { font-size: 25px; }
  .intro h1 { font-size: 26px; }
  .field { margin-bottom: 19px; }
}

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