:root {
  color-scheme: light;
  --ink: #171928;
  --navy: #090823;
  --gold: #f3c747;
  --paper: #fff;
  --surface: #f5f5f8;
  --border: #d8d9e1;
  --link: #244775;
  font: 100%/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-underline-offset: .17em; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible { outline: 3px solid #236aa1; outline-offset: 4px; }
.site-header { background: var(--navy); border-bottom: 4px solid var(--gold); }
.header-inner {
  width: min(100% - 2rem, 62rem);
  min-height: 5.25rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.header-inner img { display: block; height: auto; max-height: 4.5rem; object-fit: contain; }
.site-header nav a { color: #fff; font-weight: 650; }
.document { width: min(100% - 2rem, 62rem); margin: clamp(1rem, 4vw, 3.25rem) auto; }
article {
  background: var(--paper);
  padding: clamp(1.25rem, 5vw, 3.75rem);
  border: 1px solid var(--border);
  border-radius: .35rem;
  overflow-wrap: break-word;
}
.document-header { border-bottom: 1px solid var(--border); padding-bottom: 1.2rem; margin-bottom: 1.65rem; }
.document-header h1 {
  margin: 0;
  max-width: 28ch;
  color: var(--navy);
  font-size: clamp(1.75rem, 4.25vw, 2.65rem);
  font-weight: 730;
  line-height: 1.17;
  letter-spacing: -.024em;
}
.organization { font-size: .8rem; font-weight: 680; letter-spacing: .06em; color: #4f5262; margin: 0 0 .7rem; }
h2, h3 { line-height: 1.3; break-after: avoid; }
h2 { margin: 2.1rem 0 .65rem; color: var(--navy); font-size: 1.3rem; }
h3 { margin: 1.5rem 0 .55rem; font-size: 1.075rem; }
p { margin: 0 0 1.05rem; }
.document-body > :first-child { margin-top: 0; }
ul { margin: .6rem 0 1.25rem; padding-inline-start: 1.4rem; }
li + li { margin-top: .28rem; }
.enumerated { list-style: none; padding-inline-start: 0; }
.enumerated li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); }
.enumerated li > span { color: #4f5262; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; line-height: 1.5; }
th, td { border: 1px solid var(--border); text-align: left; vertical-align: top; padding: .55rem .75rem; }
thead th, .form-table th { background: #f0f0f5; }
tbody th { min-width: 8rem; }
caption { padding: 0 0 .5rem; color: var(--navy); font-size: 1.1rem; font-weight: 680; text-align: left; }
td { overflow-wrap: anywhere; }
.print {
  margin-top: 1rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  color: var(--navy);
  background: var(--gold);
  border: 1px solid #c39d2e;
  border-radius: .3rem;
  padding: .37rem .9rem;
}
.application-title { border-top: 1px solid var(--border); padding-top: 1.1rem; }
.form-table th { width: 44%; }
.form-table td { width: 56%; }
.form-table .tall td { height: 4.25rem; }
.relations { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; padding: 0; list-style: none; }
.relations li { margin: 0; }
.blank-check { display: inline-block; width: .8em; height: .8em; margin-inline-end: .5em; border: 1px solid #414454; }
.write-line { display: inline-block; min-width: 6rem; min-height: 1.3em; border-bottom: 1px solid #7b7f8c; }
.write-field { display: flex; gap: .55rem; }
.write-field .write-line { flex: 1; }
.document-body > .write-line { display: block; }
.request-space { min-height: 12rem; border: 1px solid #7b7f8c; margin-bottom: 1.2rem; }
.signature { text-align: right; line-height: 1.9; }
@media (max-width: 36rem) {
  .document { width: min(100% - 1rem, 62rem); }
  .header-inner { min-height: 4.5rem; }
  .header-inner img { width: 109px; max-height: 3.5rem; }
  .enumerated li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .relations { grid-template-columns: 1fr; }
  th, td { padding: .45rem; font-size: .875rem; }
  tbody th { min-width: 5.75rem; }
}
@page { size: A4; margin: 14mm; }
@media print {
  :root { background: #fff; color: #111; font-size: 10.5pt; }
  .site-header, .print { display: none !important; }
  .document { width: auto; margin: 0; }
  article { padding: 0; border: none; }
  .document-header h1 { font-size: 20pt; max-width: none; }
  p { orphans: 2; widows: 2; }
  .table-wrap { overflow: visible; }
  tr, .request-space, .signature { break-inside: avoid; }
  .relations { display: block; columns: 2; }
  .relations li { break-inside: avoid; margin-bottom: .2rem; }
  a { color: #111; }
}
