.cab-tool-card--wide {
  grid-column: 1 / -1;
}

.cab-tool__head-body {
  flex: 1;
  min-width: 0;
}

.debt-test__head-docs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 12px;
}

.debt-test__head-docs-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  width: 100%;
  margin-bottom: 2px;
}

.debt-test__head-doc {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(108, 71, 255, 0.2);
  background: rgba(108, 71, 255, 0.06);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.debt-test__head-doc:hover {
  background: rgba(108, 71, 255, 0.12);
  border-color: rgba(108, 71, 255, 0.35);
}

.debt-test__progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.debt-test__question h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-main);
}

.debt-test__hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(108, 71, 255, 0.06);
  border: 1px solid rgba(108, 71, 255, 0.12);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.debt-test__options {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.debt-test__option {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: #fff;
  color: var(--text-main);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.debt-test__option:hover {
  border-color: rgba(108, 71, 255, 0.35);
}

.debt-test__option.is-selected {
  border-color: var(--primary);
  background: rgba(108, 71, 255, 0.08);
  font-weight: 600;
}

.debt-test__next[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.debt-test__result {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.debt-test__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(108, 71, 255, 0.1);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.debt-test__result-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--text-main);
}

.debt-test__result-sub {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.debt-test__result-intro,
.debt-test__result-label {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
}

.debt-test__result-label {
  font-weight: 700;
  margin-top: 4px;
}

.debt-test__steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.6;
}

.debt-test__steps li {
  margin-bottom: 8px;
}

.debt-test__downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.debt-test__download {
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.4;
}

.debt-test__restart {
  align-self: flex-start;
  margin-top: 4px;
}

@media (max-width: 720px) {
  .debt-test__option {
    padding: 12px 14px;
    font-size: 0.84rem;
  }
}
