:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #172637;
  background: #f3f6f8;
  --accent: #145774;
  --muted: #485a6a;
  --line: #d5dfe6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.frame { width: min(1050px, calc(100% - 48px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .frame { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top img { display: block; height: auto; max-width: 42%; }
.top span { color: var(--muted); font-size: .9rem; }
.intro { margin: 40px 0 26px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.06; letter-spacing: -.045em; }
h2 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.025em; }
.intro p, .hint, #done p { color: var(--muted); line-height: 1.55; margin-top: 9px; }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 36px; }
aside nav, .card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
aside nav { padding: 20px 16px; }
#progress { font-weight: 700; margin-left: 8px; font-size: .9rem; }
ol { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: step; }
ol li { counter-increment: step; display: flex; align-items: center; gap: 9px; padding: 8px; color: var(--muted); font-size: .9rem; }
ol li::before { content: counter(step); width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: .73rem; }
ol li[aria-current] { color: var(--accent); font-weight: 750; background: #e8f3f7; border-radius: 8px; }
ol li[aria-current]::before { background: var(--accent); color: #fff; border-color: var(--accent); }
.notice { margin: 16px 0 0; padding: 0 9px; line-height: 1.55; color: var(--muted); font-size: .84rem; }
.notice strong { color: #273f51; }
.card { padding: clamp(18px, 4vw, 34px); min-width: 0; }
label { display: block; margin-top: 17px; font-size: .93rem; font-weight: 650; min-width: 0; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 9px 11px; border: 1px solid #aabac7; border-radius: 8px; background: white; color: #172637; font-weight: 400; font-size: 1rem; }
textarea { resize: vertical; }
::placeholder { color: #617283; opacity: 1; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.street { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
fieldset { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
legend { font-weight: 750; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 7px; }
.options label { display: flex; gap: 6px; align-items: center; margin: 0; min-height: 32px; font-weight: 500; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.partner { padding: 0 14px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.partner legend { padding-inline: 7px; }
.actions { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; }
button { border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; font-weight: 700; }
.primary { background: var(--accent); color: white; margin-left: auto; }
.primary:hover { background: #10465e; }
.secondary { color: #183c50; background: #fff; border-color: #aabac7; }
.secondary:hover { background: #eef5f8; }
.preview-review { width: 100%; margin-top: 12px; }
.remove { background: transparent; color: #8d3540; margin: 10px 0 0; padding-inline: 0; }
:focus-visible { outline: 3px solid #1881a5; outline-offset: 3px; }
.review-group { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.review-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-title button { padding: 6px 11px; }
dl { display: grid; grid-template-columns: minmax(105px, 2fr) minmax(0, 3fr); gap: 7px 12px; margin: 9px 0 0; font-size: .92rem; }
dt { font-weight: 650; }
dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.documents { background: #edf5f8; padding: 16px; border-radius: 10px; margin-top: 24px; }
.documents ul { margin-bottom: 0; padding-left: 20px; }
.documents li { margin-bottom: 6px; }
#done button { margin-top: 20px; }
@media (max-width: 700px) {
  .frame { width: calc(100% - 28px); }
  .top .frame { min-height: 68px; }
  .intro { margin: 24px 0 18px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  aside nav { padding: 10px 12px; }
  #progress { margin-left: 0; }
  ol { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 5px; }
  ol li { display: none; }
  ol li[aria-current] { display: flex; padding: 5px 8px; }
  .notice { margin: 8px 0 0; padding: 0 2px; }
}
@media (max-width: 475px) {
  .pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
.qualification {
  margin-top: 18px;
  padding: 0 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.qualification legend { padding-inline: 5px; font-size: .9rem; }
.person > .qualification { padding: 0; border: 0; }
.person > .qualification legend { padding: 0; }
.qualification .declaration { display: flex; align-items: center; gap: 7px; }
.hint.small { font-size: .84rem; margin-top: 5px; }
.add-manager { margin-top: 10px; }
.manager-choice { align-items: end; }
.manager-choice button { justify-self: start; }
.residential-address legend, .company-address legend { font-size: .9rem; }
.acting-options { display: grid; gap: 4px; }
