:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  background: #f5f6f3; color: #182c2d; color-scheme: light;
  --primary: #256252; --muted: #546562; --line: #dfe6e1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
header { background: linear-gradient(110deg, #172f34, #244b4c); color: white; }
.bar { min-height: 68px; padding: 0 24px; max-width: 850px; margin: auto; display: flex; gap: 11px; align-items: center; letter-spacing: .06em; }
.mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #2f635e; border: 1px solid #749c8f; color: #e6f3e9; font-weight: 680; letter-spacing: 0; }
main { margin: 0 auto; max-width: 850px; padding: 38px 24px 48px; }
.heading { margin-bottom: 23px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(27px, 5vw, 38px); letter-spacing: -.04em; }
.heading p, .confirmation p { margin-top: 8px; color: var(--muted); line-height: 1.55; }
form, .confirmation { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 27px; box-shadow: 0 1px 2px #163a2d0c; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 19px; }
fieldset + fieldset { margin-top: 25px; padding-top: 14px; border-top: 1px solid var(--line); }
legend { color: #213a35; font-weight: 700; padding: 0 11px 0 0; margin-bottom: 8px; font-size: 16px; }
label { display: grid; gap: 6px; min-width: 0; align-content: start; font-weight: 620; font-size: 14px; }
label small { color: var(--muted); font-weight: normal; }
.template-link { align-self: center; justify-self: start; color: var(--primary); font-weight: 650; padding: 7px 0; text-underline-offset: 4px; }
input[type=file] { font-size: 14px; }
.wide { grid-column: 1 / -1; }
input, select, textarea, button { font: inherit; }
input, select, textarea { padding: 9px 11px; border: 1px solid #d2ddd6; background: white; color: #213a35; border-radius: 8px; min-height: 44px; width: 100%; font-size: 16px; }
textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='%2360617b' stroke-width='1.5' d='m3 5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
:focus-visible { outline: 3px solid #548d7d; outline-offset: 2px; }
.form-end { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
button { padding: 10px 21px; min-height: 45px; border: 0; background: var(--primary); color: #fff; border-radius: 8px; font-weight: 680; white-space: nowrap; cursor: pointer; }
button:hover { background: #1d4d41; }
button:disabled { cursor: wait; opacity: .6; }
.error { color: #a9254a; font-size: 14px; }
.check { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
.confirmation { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 40px 20px; }
.confirmation p { margin: 0; }
.success-symbol { color: #116c53; background: #e3f7ef; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 23px; margin-bottom: 3px; }
#reference { font-family: ui-monospace, monospace; background: #edf5f1; border-radius: 8px; padding: 10px 13px; color: var(--primary); margin-bottom: 7px; }
@media (max-width: 600px) {
  .bar { padding-inline: 16px; }
  main { padding: 25px 14px 32px; }
  form { padding: 17px; }
  fieldset { grid-template-columns: 1fr; }
  .form-end { align-items: stretch; flex-direction: column; }
}
