:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  color: #20262e;
  background: #f5f7fa;
  accent-color: #005fba;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
header { border-bottom: 1px solid #dce2e9; background: #fff; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 18px clamp(18px, 5vw, 52px);
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.brand-symbol { display: block; position: relative; width: 29px; height: 22px; }
.brand-symbol i {
  width: 18px;
  height: 13px;
  position: absolute;
  left: 0;
  top: 1px;
  border: 2px solid #0067c5;
  border-radius: 3px;
}
.brand-symbol i:last-child { left: 9px; top: 7px; background: #fff; }
main {
  align-self: start;
  width: min(100% - 32px, 496px);
  margin: clamp(28px, 9vh, 92px) auto 32px;
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid #dce2e9;
  border-radius: 14px;
  background: #fff;
}
h1 { font-size: clamp(23px, 5vw, 30px); margin: 0 0 22px; line-height: 1.3; }
h2 { margin: 24px 0 8px; font-size: 17px; }
p { line-height: 1.65; }
.intro { margin: -10px 0 24px; color: #4c5867; }
.field { margin-bottom: 17px; }
.field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.field input:not([type=checkbox]) {
  width: 100%;
  padding: 9px 11px;
  min-height: 42px;
  border: 1px solid #aeb9c6;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.field .check { display: flex; gap: 8px; align-items: center; font-weight: 400; }
input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
button {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}
.primary { color: white; background: #005fba; }
.primary:hover { background: #004f9b; }
.secondary { border-color: #b6c0cb; background: #fff; color: #20262e; }
.secondary:hover { background: #f2f5f9; }
.link { min-height: 32px; padding: 0; color: #0055a5; background: transparent; text-decoration: underline; }
a { color: #0055a5; text-underline-offset: .16em; }
:focus-visible { outline: 2px solid #005fba; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hint { margin-top: 6px; color: #526172; font-size: 13px; line-height: 1.55; }
.error, .errorlist { color: #981c26; font-size: 14px; }
.errorlist { padding-left: 18px; }
.below, details { border-top: 1px solid #e1e6ed; margin: 22px 0 0; padding-top: 14px; }
summary { cursor: pointer; }
footer { display: flex; justify-content: center; gap: 20px; padding: 12px 16px 24px; font-size: 14px; }
@media (forced-colors: active) {
  .primary, .secondary { border: 1px solid ButtonText; }
}
