:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #15181c;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #1f6feb;
  --brand-ink: #ffffff;
  --brand-soft: #eaf2ff;
  --danger: #c8302b;
  --ok: #1f9d55;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: baseline; font-weight: 700; font-size: 22px; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--brand-ink);
  width: 30px; height: 30px; border-radius: 8px; font-size: 18px;
  margin-right: 4px;
}
.topbar__phone { color: var(--ink); text-decoration: none; font-weight: 500; }
.topbar__phone:hover { color: var(--brand); }

.main { padding: 32px 20px 48px; }

.hero { text-align: center; margin: 16px 0 24px; }
.hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.hero__sub { color: var(--muted); margin: 0; font-size: 15px; }

.steps {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}
.steps__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; color: var(--muted);
  transition: all .15s ease;
}
.steps__item span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--line); color: var(--muted); font-weight: 600; font-size: 12px;
}
.steps__item.is-active { color: var(--ink); border-color: var(--brand); background: var(--brand-soft); }
.steps__item.is-active span { background: var(--brand); color: var(--brand-ink); }
.steps__item.is-done span { background: var(--ok); color: #fff; }
.steps__item.is-done span::before { content: "✓"; }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin: 0 0 24px;
}

.panel { display: none; }
.panel.is-active { display: block; }
.panel__title { font-size: 22px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }
.panel__hint { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

.cards-radio { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rcard {
  display: block; padding: 18px; border: 2px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: all .15s ease; background: #fff;
}
.rcard:hover { border-color: var(--brand); }
.rcard input { position: absolute; opacity: 0; pointer-events: none; }
.rcard__title { display: block; font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.rcard__hint { display: block; color: var(--muted); font-size: 13px; }
.rcard:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.rcard:has(input:focus-visible) { outline: 3px solid rgba(31,111,235,.25); outline-offset: 2px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field__label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field__label em { color: var(--muted); font-style: normal; font-weight: 400; }
.field__hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.field input,
.field select,
.field textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brand); }
.field input:invalid:not(:placeholder-shown) { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 60px; }
.field input[type="file"] { padding: 9px 10px; }

.check { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: var(--brand-soft); border-radius: 10px; }
.check input { margin-top: 3px; }
.check a { color: var(--brand); }

.work { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 720px) { .work { grid-template-columns: 1fr; } }
.work__field .field { margin-bottom: 14px; }
.work__hint {
  background: #fafbfc; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px;
  max-height: 460px; overflow: auto;
}
.work__hint details { margin-bottom: 10px; }
.work__hint summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 4px 0; }
.work__hint ol { margin: 6px 0 0 22px; padding: 0; font-size: 13px; color: #1f2937; }
.work__hint ol li { margin-bottom: 2px; }
.muted { color: var(--muted); font-size: 13px; margin: 6px 0 0; }

/* Multi-object step 4 */
.objects { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.objects:empty + .btn--add { margin-top: 0; }
.object {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px; transition: border-color .15s;
}
.object.is-focused { border-color: var(--brand); }
.object.is-collapsed { padding: 12px 16px; }
.object__header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.object__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand); font-weight: 700; font-size: 18px; flex: 0 0 36px;
}
.object__summary { flex: 1 1 220px; min-width: 0; }
.object__summary b { font-size: 15px; font-weight: 600; }
.object__summary .muted { display: block; margin: 2px 0 0; line-height: 1.35; }
.object__actions { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.iconbtn {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.iconbtn:hover { color: var(--ink); border-color: var(--ink); }
.iconbtn--danger:hover { color: var(--danger); border-color: var(--danger); }
.object__body { margin-top: 14px; }
.object.is-collapsed .object__body { display: none; }
.object__section {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.object__section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.object__section-title {
  font-size: 13px; font-weight: 600; color: var(--ink);
  margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.04em;
}
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.checks label {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff;
  font-size: 14px; line-height: 1.35;
}
.checks label:hover { border-color: var(--brand); }
.checks input { margin-top: 3px; }
.checks label:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.btn--add {
  width: 100%; padding: 14px; border: 2px dashed var(--line); background: transparent;
  color: var(--muted); font-weight: 600;
}
.btn--add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.mt-24 { margin-top: 24px; }
.grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .grid--2 { grid-template-columns: 1fr; } }

.files { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.files li { font-size: 13px; color: var(--ink); padding: 6px 10px; background: var(--brand-soft); border-radius: 6px; }

.nav { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.nav__spacer { flex: 1; }

.btn {
  font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: all .15s;
}
.btn:focus-visible { outline: 3px solid rgba(31,111,235,.25); outline-offset: 2px; }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { filter: brightness(.95); }
.btn--primary:disabled { opacity: .6; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: #fafbfc; }

.panel--success { text-align: center; padding: 24px 0; }
.panel--success .panel__title { color: var(--ok); font-size: 26px; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 16px 0 8px; }
.foot p { margin: 0; }
