:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --navy: #1e293b;
  --navy-soft: #334155;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --input: #f1f5f9;
  --red: #c41e3a;
  --red-hover: #a01830;
  --danger: #c41e3a;
  --ok: #15803d;
  --ok-bg: #f0fdf4;
  --err-bg: #fef2f2;
  --err-border: #fecaca;
  --warn-bg: #fff7ed;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(640px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.page-header {
  margin-bottom: 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px #fecaca;
}

.brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-tag {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.subtitle {
  margin: 0.4rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 1.5rem 1.5rem 1.35rem;
  margin-bottom: 1rem;
}

.card--muted {
  background: #fafbfc;
}

.steps {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.35rem;
  flex-wrap: wrap;
}

.steps__item {
  flex: 1;
  min-width: 5.5rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 0.4rem;
  border-radius: 999px;
  background: var(--input);
  border: 1px solid transparent;
}

.steps__item.is-active {
  color: #fff;
  background: var(--red);
}

.steps__item.is-done {
  color: var(--red);
  background: #fff1f2;
  border-color: #fecdd3;
}

.form-lead {
  margin: 0 0 1.25rem;
  color: var(--navy-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.field {
  display: block;
  margin-bottom: 1.15rem;
}

.field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.field__label em {
  color: var(--red);
  font-style: normal;
  margin-left: 2px;
}

.field__input {
  width: 100%;
  border: 1px solid transparent;
  background: var(--input);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field__input:focus {
  border-color: #fda4af;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}

.field__input--otp {
  letter-spacing: 0.35em;
  font-weight: 600;
  font-size: 1.15rem;
  text-align: center;
}

.field__hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.actions--split {
  justify-content: space-between;
  align-items: center;
}

.actions__right {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.15rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s, transform 0.05s;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  background: var(--red-hover);
}

.btn--danger {
  background: var(--red);
  color: #fff;
}

.btn--danger:hover:not(:disabled) {
  background: var(--red-hover);
}

.btn--ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--input);
}

.alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.alert--error {
  background: var(--err-bg);
  border-color: var(--err-border);
  color: #991b1b;
}

.alert--warn {
  background: var(--warn-bg);
  border-color: #fed7aa;
  color: #9a3412;
}

.alert--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.success {
  text-align: center;
  padding: 1rem 0.5rem 0.5rem;
}

.success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.success__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.success__text {
  margin: 0;
  color: var(--navy-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.info__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.info__list {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  color: var(--navy-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.info__note {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.info__note:last-child {
  margin-bottom: 0;
}

.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

@media (max-width: 520px) {
  .page {
    width: calc(100% - 1.25rem);
    padding-top: 1.5rem;
  }

  .card {
    padding: 1.15rem;
  }

  .actions--split {
    flex-direction: column;
    align-items: stretch;
  }

  .actions__right {
    width: 100%;
  }

  .actions__right .btn,
  .actions--split > .btn {
    width: 100%;
  }
}
