:root {
  color-scheme: light;
  --ink: #111820;
  --muted: #5b6470;
  --line: #dce1e7;
  --red: #d72231;
  --red-dark: #a91320;
  --green: #087a55;
  --focus: #246bce;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: linear-gradient(180deg, #f3f5f7 0, #fff 360px); }
.site-header, main, footer { width: min(920px, calc(100% - 32px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 0 22px; }
.site-header img { height: auto; max-width: 220px; }
.site-header > div { text-align: right; }
.eyebrow { margin: 0; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.site-header h1 { margin: 4px 0 0; font-size: clamp(28px, 5vw, 44px); line-height: 1.05; }
.header-note { margin: 8px 0 0; color: var(--muted); font-weight: 700; }
.notice { margin-bottom: 18px; border-radius: 16px; padding: 16px 18px; line-height: 1.5; }
.notice-critical { border: 1px solid #f0b8bd; background: #fff0f1; color: #75111a; }
.notice-warning { margin: 0; border: 1px solid #edcf84; background: #fff8df; color: #684a00; }
.notice strong { display: block; margin-bottom: 3px; }
form { display: grid; gap: 18px; }
.card { border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 34px); background: #fff; box-shadow: 0 10px 28px rgba(17,24,32,.06); }
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.section-heading > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 900; }
.section-heading h2 { margin: 1px 0 4px; font-size: 22px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
fieldset { margin: 0 0 22px; padding: 0; border: 0; }
legend, .field > span:first-child { display: block; margin-bottom: 8px; color: #3e4853; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; border: 2px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; font-weight: 800; cursor: pointer; transition: .15s; }
.choice input:checked + span { border-color: var(--red); background: #fff3f4; color: var(--red-dark); }
.choice input:focus-visible + span { outline: 3px solid rgba(36,107,206,.25); outline-offset: 2px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.field-wide { grid-column: 1/-1; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #bfc7d0; border-radius: 12px; padding: 13px 14px; outline: none; background: #fbfcfd; color: var(--ink); font: inherit; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); background: #fff; box-shadow: 0 0 0 3px rgba(36,107,206,.14); }
.field input[aria-invalid=true], .field select[aria-invalid=true], .field textarea[aria-invalid=true] { border-color: var(--red); background: #fff7f7; }
.field small { display: block; margin-top: 7px; color: var(--muted); line-height: 1.4; }
.input-action { display: flex; gap: 8px; }
.input-action input { min-width: 0; }
.input-action button { flex: 0 0 auto; border: 0; border-radius: 12px; padding: 0 15px; background: var(--ink); color: #fff; font-weight: 900; cursor: pointer; }
.input-action button:disabled { opacity: .55; cursor: wait; }
.contact-options { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 6px; }
.additional-contacts { margin-top: 18px; border-radius: 16px; padding: 16px; background: #f5f7f9; }
.additional-contact { position: relative; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.additional-contact:first-child { margin-top: 0; }
.additional-contact h3 { margin: 0 0 14px; font-size: 15px; }
.remove-contact-button { position: absolute; top: 12px; right: 12px; border: 0; border-radius: 9px; padding: 7px 10px; background: #fff0f1; color: #75111a; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }
.field-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.secondary-button { border: 1px solid #aeb8c3; border-radius: 11px; padding: 10px 14px; background: #fff; color: var(--ink); font: inherit; font-weight: 900; cursor: pointer; }
.secondary-button:hover { border-color: var(--ink); background: #f5f7f9; }
.secondary-button:disabled { opacity: .5; cursor: not-allowed; }
.privacy-card { border-color: #b9d7cc; }
.privacy-copy { border-radius: 14px; padding: 16px 18px; background: #eef8f4; color: #24483c; font-size: 14px; line-height: 1.55; }
.privacy-copy p { margin: 0; }
.privacy-copy p + p { margin-top: 10px; }
.document-list { display: grid; gap: 10px; margin-top: 18px; }
.document-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.document-item strong, .document-item small { display: block; }
.document-item small, .document-loading { color: var(--muted); }
.document-item button { flex: 0 0 auto; border: 0; border-radius: 10px; padding: 9px 12px; background: var(--ink); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.document-item button:disabled { opacity: .6; cursor: wait; }
.document-item.opened { border-color: #8ec7b3; background: #f2faf7; }
.document-loading { margin: 0; }
.document-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.consent-list { margin-top: 18px; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; line-height: 1.5; font-weight: 700; }
.consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--red); }
.submit-button, #new-request-button { border: 0; border-radius: 14px; padding: 16px 22px; background: var(--red); color: #fff; font: inherit; font-weight: 900; letter-spacing: .04em; cursor: pointer; box-shadow: 0 10px 24px rgba(215,34,49,.22); }
.submit-button:hover, #new-request-button:hover { background: var(--red-dark); }
.submit-button:disabled { opacity: .65; cursor: wait; }
.security-note { margin: 0 0 14px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.5; }
.form-message { display: none; border-radius: 14px; padding: 14px 16px; font-weight: 700; line-height: 1.45; }
.form-message.error { display: block; border: 1px solid #f0b8bd; background: #fff0f1; color: #75111a; }
.form-message.info { display: block; border: 1px solid #bdd3f2; background: #eef5ff; color: #184b89; }
.success-panel { border: 1px solid #b9d7cc; border-radius: 24px; padding: clamp(30px,6vw,60px); background: #fff; text-align: center; box-shadow: 0 12px 32px rgba(17,24,32,.08); }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e8f7f1; color: var(--green); font-size: 34px; font-weight: 900; }
.success-panel h2 { margin: 0 0 10px; font-size: 30px; }
.success-panel p { color: var(--muted); line-height: 1.55; }
.success-panel output { display: block; width: fit-content; margin: 20px auto; border: 2px dashed #9ebdaf; border-radius: 14px; padding: 14px 20px; background: #f2faf7; color: #095f44; font: 900 20px ui-monospace,Consolas,monospace; letter-spacing: .08em; }
.success-panel button { margin-top: 12px; }
.bot-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
footer { padding: 28px 0 40px; color: var(--muted); text-align: center; font-size: 12px; }
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-header > div { text-align: left; }
  .site-header img { max-width: 190px; }
  .choice-grid, .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .card { border-radius: 18px; }
  .choice span { text-align: left; }
  .input-action { align-items: stretch; flex-direction: column; }
  .input-action button { padding: 12px; }
  .document-item { align-items: flex-start; flex-direction: column; }
}
