:root {
  --ink:#152e2c;
  --muted:#667570;
  --green:#176b53;
  --line:#dce3dc;
  --paper:#f5f6f0;
  --white:#fff;
  --lime:#dcf2a6;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,Segoe UI,Arial,sans-serif;
  font-size:15px;
  line-height:1.55;
}

header,main,footer {
  max-width:1200px;
  margin:auto;
}

header {
  height:100px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding:0 24px;
}

.brand {
  font-size:23px;
  font-weight:700;
  color:var(--ink);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
}

.brand-icon {
  background:var(--ink);
  color:var(--lime);
  width:36px;
  height:40px;
  text-align:center;
  line-height:40px;
  border-radius:10px 10px 16px 10px;
  font-size:23px;
}

.muted {
  font-weight:400;
  color:var(--muted);
}

.local-badge {
  font-size:12px;
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:24px;
  padding:8px 13px;
}

.dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
}

main {
  padding:0 24px;
  min-height:75vh;
}

.intro {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:52px 0 36px;
  gap:30px;
}

.eyebrow {
  font-size:11px;
  letter-spacing:1.8px;
  font-weight:700;
  color:var(--green);
  margin:0 0 15px;
}

h1 {
  font-size:46px;
  line-height:1.12;
  letter-spacing:-1.8px;
  font-weight:600;
  margin:0 0 18px;
}

h2 {
  font-size:21px;
  line-height:1.3;
  margin:0 0 6px;
  letter-spacing:-.4px;
}

h3 {
  font-size:15px;
  margin:0 0 5px;
}

p {
  margin:0 0 14px;
}

.lead {
  font-size:16px;
  color:var(--muted);
  max-width:510px;
  margin:0;
}

.step-summary {
  display:flex;
  gap:24px;
}

.step {
  display:flex;
  flex-direction:column;
  font-size:12px;
  color:#82908a;
  border-top:2px solid var(--line);
  padding-top:12px;
  min-width:80px;
  gap:4px;
}

.step.active {
  border-color:var(--green);
  color:var(--green);
}

.workspace {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);
  gap:30px;
  align-items:start;
}

.panel {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:16px;
  padding:30px;
}

.panel-heading {
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin-bottom:26px;
}

.panel-heading p {
  color:var(--muted);
  font-size:13px;
  margin:0;
}

.number {
  background:#edf3e9;
  border-radius:50%;
  width:38px;
  height:38px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  color:var(--green);
  font-size:12px;
  font-weight:700;
}

fieldset {
  border:0;
  padding:0;
  margin:0 0 23px;
}

legend,label {
  font-size:13px;
  font-weight:600;
}

legend {
  margin-bottom:10px;
}

.choices {
  display:flex;
  gap:8px;
}

.choices label {
  border:1px solid var(--line);
  border-radius:7px;
  flex:1;
  padding:11px 9px;
  cursor:pointer;
  white-space:nowrap;
}

.choices label:has(input:checked) {
  border-color:var(--green);
  background:#f0f6e9;
  color:var(--green);
}

input[type=radio],input[type=checkbox] {
  accent-color:var(--green);
}

label {
  display:block;
}

input:not([type=radio]):not([type=checkbox]) {
  width:100%;
  margin:7px 0 0;
  padding:12px;
  border:1px solid var(--line);
  border-radius:7px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-weight:400;
  min-height:45px;
}

input:focus-visible,button:focus-visible,a:focus-visible {
  outline:3px solid #7bb99f;
  outline-offset:3px;
}

.form-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:16px;
  margin-bottom:20px;
}

.document-fields {
  margin-bottom:20px;
}

.upload {
  display:block;
  margin:18px 0;
  background:#fafbf7;
  border:1px dashed #b3c1b3;
  border-radius:9px;
  padding:16px;
}

.upload input[type=file] {
  border:0;
  background:transparent;
  padding:0;
  font-size:12px;
  min-height:32px;
}

.upload input::file-selector-button {
  border:1px solid var(--line);
  border-radius:4px;
  padding:7px 10px;
  background:#fff;
  color:var(--ink);
  margin-right:10px;
  cursor:pointer;
}

small {
  display:block;
  font-size:11px;
  font-weight:400;
  color:var(--muted);
  margin-top:4px;
}

.consent {
  display:flex;
  gap:9px;
  align-items:flex-start;
  font-weight:400;
  color:var(--muted);
  font-size:12px;
  margin:22px 0;
}

.consent input {
  margin-top:4px;
}

button,.button {
  display:inline-flex;
  justify-content:center;
  gap:25px;
  align-items:center;
  cursor:pointer;
  border:1px solid var(--line);
  padding:12px 20px;
  border-radius:7px;
  font:inherit;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  background:#edf3e9;
  color:var(--ink);
}

button:hover,.button:hover {
  filter:brightness(.95);
}

button:disabled {
  opacity:.5;
  cursor:not-allowed;
}

.primary {
  background:var(--green);
  color:white;
  border-color:var(--green);
  min-height:47px;
}

.primary span {
  margin-left:auto;
}

#document-form .primary {
  width:100%;
}

.aside-card {
  padding:28px;
  background:#eaf0e2;
  border:1px solid #dde6d5;
  border-radius:16px;
}

.aside-card h2 {
  font-size:25px;
  line-height:1.3;
}

.check-list {
  list-style:none;
  margin:24px 0 0;
  padding:0;
}

.check-list li {
  padding:17px 0;
  border-top:1px solid #d3ddcb;
}

.check-list li:last-child {
  padding-bottom:0;
}

.check-list b {
  display:block;
  font-size:14px;
  margin-bottom:4px;
}

.check-list b:before {
  content:'✓';
  color:var(--green);
  margin-right:10px;
}

.check-list span {
  display:block;
  font-size:13px;
  color:var(--muted);
  padding-left:24px;
}

.privacy-note {
  display:flex;
  gap:15px;
  padding:24px 4px 8px;
}

.privacy-note p {
  font-size:12px;
  color:var(--muted);
}

.small-icon {
  font-size:26px;
  color:var(--green);
}

.fine-print {
  font-size:12px;
  color:var(--muted);
  line-height:1.7;
}

.status {
  font-size:13px;
  color:var(--green);
}

.status.error {
  color:#a23328;
}

.notice {
  margin-top:24px;
  padding:14px 20px;
  background:#fff1d7;
  border:1px solid #decba5;
  border-radius:8px;
}

.compact {
  margin-bottom:30px;
}

.camera-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}

.camera-grid video,.camera-grid canvas,.camera-grid img {
  width:100%;
  max-height:420px;
  object-fit:contain;
  background:#142a29;
  border-radius:9px;
  aspect-ratio:4/3;
}

.empty-preview {
  border:1px dashed var(--line);
  border-radius:9px;
  aspect-ratio:4/3;
  display:grid;
  place-items:center;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  padding:20px;
}

.camera-grid button {
  margin:12px 5px 14px 0;
}

.reset-form {
  margin:20px 0;
}

.text-button {
  border:0;
  background:transparent;
  color:var(--green);
  padding-left:0;
}

.result-panel {
  max-width:760px;
  margin:60px auto;
  text-align:center;
  padding:40px;
}

.result-panel .lead {
  margin:0 auto 26px;
}

.result-symbol {
  width:60px;
  height:60px;
  margin:24px auto;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:30px;
}

.pass {
  background:#eaf0e2;
  color:var(--green);
}

.review {
  background:#fff0d9;
  color:#8f6100;
}

table {
  border-collapse:collapse;
  width:100%;
  font-size:13px;
  text-align:left;
  margin:20px 0;
}

th,td {
  padding:13px 10px;
  border-bottom:1px solid var(--line);
}

caption {
  text-align:left;
  font-weight:600;
  margin-bottom:10px;
}

footer {
  display:flex;
  align-items:center;
  gap:25px;
  border-top:1px solid var(--line);
  margin-top:48px;
  padding:24px;
  font-size:11px;
  color:var(--muted);
}

footer span {
  font-weight:700;
  letter-spacing:1px;
  white-space:nowrap;
}

footer p {
  margin:0;
}

[hidden] {
  display:none!important;
}

@media(max-width:850px) {
  .intro {
    align-items:flex-start;
  }
  .step-summary {
    gap:10px;
  }
  .step {
    min-width:55px;
  }
  .workspace {
    grid-template-columns:1fr;
  }
  .workspace aside {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
  }
  .workspace aside>.fine-print {
    grid-column:1/-1;
  }
}

@media(max-width:600px) {
  header {
    height:78px;
  }
  .local-badge {
    font-size:10px;
    padding:6px 8px;
  }
  .brand {
    font-size:18px;
  }
  .brand-icon {
    width:28px;
    height:32px;
    line-height:32px;
    font-size:18px;
  }
  main {
    padding:0 16px;
  }
  .intro {
    display:block;
    margin:32px 0 24px;
  }
  h1 {
    font-size:36px;
  }
  .step-summary {
    margin-top:24px;
  }
  .step {
    flex:1;
  }
  .panel {
    padding:20px;
  }
  .form-grid,.camera-grid {
    grid-template-columns:1fr;
  }
  .choices {
    gap:5px;
  }
  .choices label {
    font-size:11px;
    padding:10px 6px;
  }
  .workspace aside {
    display:block;
  }
  .result-panel {
    padding:24px 16px;
  }
  th,td {
    padding:9px 4px;
    font-size:11px;
  }
  footer {
    display:block;
    padding:20px;
  }
  footer p {
    margin-top:10px;
  }
}
