:root { color-scheme: light; --blue: #284bd4; --ink: #182448; --yellow: #f4d44a; --muted: #64708a; --line: #dce1ed; --error: #ad2639; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
button:focus-visible, input:focus-visible, textarea:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.site-header, .registration { max-width: 480px; margin-inline: auto; }
.site-header { width: calc(100% - 48px); padding: 36px 0 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { display: block; width: 188px; min-width: 0; height: auto; }
.languages { display: flex; flex: none; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; }
.languages > span { color: #c5cce0; font-weight: 400; }
.languages button { padding: 10px 3px; background: none; color: var(--muted); border: 0; border-bottom: 2px solid transparent; }
.languages button[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--yellow); }
main { padding: 40px 24px 80px; }
.registration { width: 100%; }
.heading-mark { width: 42px; height: 5px; background: var(--yellow); margin-bottom: 23px; }
h1 { margin: 0 0 34px; color: var(--blue); font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -.035em; line-height: 1.18; font-weight: 700; }
label { display: block; margin-bottom: 9px; font-size: .875rem; font-weight: 600; }
.required-mark { margin-inline-start: .25rem; color: var(--blue); }
input { width: 100%; min-height: 3.125rem; padding: .8125rem .9375rem; line-height: 1.25; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover { border-color: #a5b1d4; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px #284bd412; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: 7px 0 0; color: var(--error); font-size: .8125rem; line-height: 1.4; }
.field-error:empty { display: none; }
.feedback-space { display: grid; }
.feedback-space > * { grid-area: 1 / 1; margin: 0; overflow-wrap: anywhere; }
.feedback-sizer { visibility: hidden; }
.field-feedback { margin-top: 3px; }
.field-feedback .field-error { margin: 0; font-size: .875rem; }
.submit { margin-top: 11px; min-height: 52px; width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: center; padding: 14px 12px; border: 1px solid var(--blue); border-radius: 3px; background: var(--blue); color: #fff; font-size: .9375rem; font-weight: 600; }
.submit > span:first-child { grid-area: 1 / 2; text-align: center; overflow-wrap: anywhere; }
.submit > span:last-child { grid-area: 1 / 3; justify-self: end; font-size: 24px; line-height: 1; color: var(--yellow); }
.submit:hover { background: #203eb4; }
.submit:disabled { opacity: .6; cursor: default; }
form[aria-busy="true"] .submit { cursor: wait; }
.status { margin: 0 0 25px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.status:empty { display: none; }
.form-feedback { margin-top: 12px; }
.form-error { padding: 13px 15px; background: #fff5f5; border-left: 3px solid var(--error); color: var(--error); font-size: .875rem; line-height: 1.6; }
.retry { border: 1px solid var(--blue); border-radius: 3px; background: #fff; color: var(--blue); padding: 12px 18px; }
.success { padding: 24px 0; }
.success-symbol { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #f7f0ce; color: var(--blue); font-size: 1.5625rem; }
.success h2 { font-size: 1.6875rem; color: var(--blue); margin: 23px 0 10px; }
.success p { font-size: 1rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 600px) {
  .site-header { padding: 24px 0 20px; }
  .logo { width: 150px; }
  main { padding: 35px 24px 56px; }
  h1 { margin-bottom: 29px; }
  input { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
