* { box-sizing: border-box; }
body { margin: 0; padding: 24px 16px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f1f4f9; color: #1c2430; }
.card { max-width: 640px; margin: 0 auto; background: #fff; padding: 28px; border-radius: 12px; box-shadow: 0 4px 20px rgba(20, 40, 80, .08); }
h1 { margin: 0 0 4px; font-size: 1.5rem; }
.sub { margin: 0 0 18px; color: #5c6877; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { padding: 4px 12px; border-radius: 999px; background: #e6ebf3; color: #5c6877; font-size: .85rem; }
.tag.active { background: #1f5fd1; color: #fff; }
.tag.done { background: #1b8a4b; color: #fff; }
.field { margin-bottom: 14px; flex: 1; }
.row { display: flex; gap: 14px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #c5cedb; border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #1f5fd1; outline-offset: 0; border-color: #1f5fd1; }
.phone { display: flex; align-items: stretch; }
.phone span { display: flex; align-items: center; padding: 0 12px; background: #e6ebf3; border: 1px solid #c5cedb; border-right: 0; border-radius: 8px 0 0 8px; font-weight: 600; }
.phone input { border-radius: 0 8px 8px 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: #3b4654; margin: 6px 0 16px; }
.consent input { margin-top: 3px; }
button { width: 100%; padding: 12px; font: inherit; font-weight: 700; color: #fff; background: #1f5fd1; border: 0; border-radius: 8px; cursor: pointer; }
button:hover { background: #184fb0; }
button:disabled { opacity: .6; cursor: not-allowed; }
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .9rem; }
.alert.error { background: #fdecec; color: #9b1c1c; }
.alert.ok { background: #e7f6ed; color: #14693a; }
.result { border: 1px solid #c5cedb; border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.result.ok { border-color: #1b8a4b; background: #f2fbf6; }
.result.fail { border-color: #c0392b; background: #fdf5f4; }
.result h2 { margin: 0 0 10px; font-size: 1.15rem; }
.result.ok h2 { color: #1b8a4b; }
.result.fail h2 { color: #c0392b; }
.result dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 10px; font-size: .9rem; }
.result dt { font-weight: 600; color: #3b4654; }
.result dd { margin: 0; word-break: break-all; }
.result ul { margin: 6px 0 10px; padding-left: 20px; font-size: .9rem; }
.result table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-bottom: 10px; }
.result th, .result td { border: 1px solid #d5dce8; padding: 5px 8px; text-align: left; word-break: break-all; }
.result th { background: #eef2f8; }
.result details { font-size: .8rem; margin-bottom: 12px; }
.result pre { background: #1c2430; color: #e6ebf3; padding: 10px; border-radius: 8px; overflow: auto; }
.result .actions { display: flex; gap: 10px; }
.result .actions button { flex: 1; }
button.secondary { background: #e6ebf3; color: #1c2430; }
button.secondary:hover { background: #d5dce8; }
@media (max-width: 520px) { .row { flex-direction: column; gap: 0; } .card { padding: 20px; } }
