:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #30323a;
  background: #fff;
  --blue: #086bb7;
  --blue-hover: #005797;
  --muted: #686d77;
  --border: #dfe3e9;
  --surface: #fff;
  --error: #b12835;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 2; background: var(--surface); padding: 12px 18px; color: var(--blue); }
.skip-link:focus { top: 12px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 38px; }
.brand { display: flex; gap: 12px; align-items: center; color: #282a35; text-decoration: none; font-weight: 700; letter-spacing: 1.1px; font-size: 1.18rem; }
.brand-subtitle { display: block; margin-top: 5px; font-size: .75rem; letter-spacing: 1.4px; color: var(--muted); font-weight: 400; }
.brand-icon { width: 40px; height: 45px; display: block; flex: 0 0 auto; object-fit: contain; }
.accessibility { display: flex; gap: 8px; align-items: center; }
.accessibility button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: inherit; min-width: 36px; height: 40px; padding: 3px; }
.accessibility button[aria-pressed="true"] { border-bottom-color: var(--blue); color: var(--blue); }
.contrast-control { font-size: 1.9rem; line-height: 1; }
.control-divider { width: 1px; height: 22px; background: var(--border); margin: 0 6px; }
.text-size-normal { font-size: 1rem; }
.text-size-large { font-size: 1.4rem; }
main { flex: 1; width: 100%; padding: 23px 24px 40px; }
h1 { color: var(--blue); text-align: center; font-size: 1.8rem; line-height: 1.3; margin: 0 0 23px; font-weight: 600; }
.form-card { max-width: 780px; margin: 0 auto; padding: 35px 62px 31px; border: 1px solid #f3f4f6; border-radius: 7px; background: var(--surface); box-shadow: 0 5px 32px rgba(37, 48, 72, .065); }
.intro { padding-bottom: 25px; border-bottom: 1px solid #edf0f3; }
h2 { font-size: 1.06rem; line-height: 1.5; margin: 0 0 8px; font-weight: 700; }
.intro p { font-size: 1rem; line-height: 1.6; margin: 0; color: #525761; }
form { max-width: 540px; margin: 0 auto; padding-top: 23px; }
.form-hint { margin: 0 0 20px; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.field { margin-bottom: 19px; }
label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 600; }
input { display: block; width: 100%; height: 51px; border: 1px solid var(--border); border-radius: 3px; padding: 0 15px; color: inherit; background: var(--surface); box-shadow: 0 3px 10px rgba(27, 39, 58, .075); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #737984; opacity: 1; font-size: .875rem; }
input:hover { border-color: #acb5c0; }
input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 107, 183, .14); }
input[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 7px 0 0; font-size: .875rem; color: var(--error); line-height: 1.5; }
.submit-area { text-align: center; margin-top: 28px; }
.submit-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 47px; min-width: 145px; padding: 12px 28px; border: 1px solid transparent; border-radius: 28px; color: #fff; background: var(--blue); box-shadow: 0 3px 8px rgba(8, 107, 183, .18); transition: background .15s, transform .15s; }
.submit-button:hover { background: var(--blue-hover); }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { opacity: .75; cursor: wait; }
.test-note { font-size: .8125rem; line-height: 1.6; color: var(--muted); margin: 15px 0 0; }
.form-status { margin-top: 24px; border-radius: 4px; border: 1px solid #b4d8c4; background: #eff8f3; color: #195d3b; padding: 14px 16px; line-height: 1.55; overflow-wrap: anywhere; font-size: .9375rem; }
.form-status strong, .form-status small { display: block; }
.form-status small { margin-top: 5px; font-size: .8125rem; }
.form-status.is-error { color: var(--error); background: #fff5f5; border-color: #e9bdc1; }
footer { display: flex; justify-content: space-between; gap: 16px; background: #292937; color: #e8e8ec; padding: 17px 38px; font-size: .75rem; line-height: 1.5; }
.spinner { width: 16px; height: 16px; border: 2px solid #ffffff70; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.noscript { color: var(--error); line-height: 1.5; }
@keyframes spin { to { transform: rotate(360deg); } }
html.large-text { font-size: 20px; }
html.high-contrast { color-scheme: dark; color: #fff; background: #101014; --blue: #ffde59; --blue-hover: #ffe887; --muted: #e1e1e6; --border: #e2e2e8; --surface: #18181e; --error: #ff9da8; }
.high-contrast .brand, .high-contrast .intro p { color: #fff; }
.high-contrast .form-card, .high-contrast .intro { border-color: #777; }
.high-contrast input::placeholder { color: #c8c8d2; }
.high-contrast .submit-button { color: #101014; }
.high-contrast input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.high-contrast .form-status { background: #173622; color: #eefff2; border-color: #8dce9d; }
.high-contrast .form-status.is-error { background: #451820; color: #fff; border-color: #ff9da8; }
@media (max-width: 640px) {
  .page-header { padding: 22px 20px; gap: 12px; }
  .brand { font-size: .94rem; gap: 9px; letter-spacing: .7px; }
  .brand-subtitle { font-size: .75rem; letter-spacing: .4px; }
  .brand-icon { width: 32px; height: 38px; padding: 6px; }
  .accessibility { gap: 2px; }
  .accessibility button { min-width: 30px; }
  .control-divider { margin: 0 2px; }
  main { padding: 22px 16px 32px; }
  h1 { font-size: 1.55rem; margin-bottom: 21px; }
  .form-card { padding: 27px 23px; }
  .intro { padding-bottom: 21px; }
  .desktop-break { display: none; }
  footer { padding: 16px 20px; }
  html.large-text .page-header { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
