:root {
  --color-primary: #0a3d91;
  --color-primary-dark: #072a66;
  --color-primary-light: #e8f0fc;
  --color-text: #1c2733;
  --color-text-muted: #5b6b7c;
  --color-border: #dde3ea;
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-error: #c22b2b;
  --color-success: #1c8a4b;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 30, 50, 0.06);
  --shadow-hover: 0 6px 20px rgba(20, 30, 50, 0.10);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 32px;
}

.top-bar__inner {
  max-width: 1040px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.top-bar__logo {
  display: inline-flex;
}

.top-bar__trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.page {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 20px 64px;
}

.wizard {
  width: 100%;
  max-width: 640px;
}

.wizard__intro {
  text-align: center;
  margin-bottom: 32px;
}

.wizard__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.wizard__lede {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 20px 32px;
}

.site-footer__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.site-footer__links {
  display: flex;
  gap: 18px;
}

.site-footer__links span {
  color: var(--color-text-muted);
}

.stepper {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0 0 28px;
}

.stepper__item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  color: var(--color-text-muted);
}

.stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 55%;
  width: 90%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.stepper__index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1;
}

.stepper__label {
  width: 100%;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  word-break: break-word;
}

.stepper__item.is-active .stepper__index {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.stepper__item.is-active .stepper__label {
  color: var(--color-primary);
}

.stepper__item.is-done .stepper__index {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.stepper__item.is-done::after {
  background: var(--color-primary);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 36px 36px 32px;
}

.card__title {
  font-size: 1.4rem;
  margin: 0 0 6px;
}

.card__subtitle {
  color: var(--color-text-muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.card__actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.card__actions--split {
  justify-content: space-between;
}

.btn {
  border: none;
  border-radius: var(--radius);
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

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

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

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

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn--ghost:hover {
  color: var(--color-text);
}

.btn--secondary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.btn--secondary:hover {
  background: #d9e6fb;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  background: var(--color-surface);
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #b9cdec;
}

.product-card.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.product-card__body {
  flex: 1;
  min-width: 0;
}

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card__name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.product-card__badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #8a6d1f;
  background: #fdf1d6;
  border-radius: 999px;
  padding: 3px 9px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.product-card__category {
  margin: 2px 0 6px;
  font-size: 0.76rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card__description {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.product-card__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.7rem;
  transition: all 0.15s ease;
}

.product-card.is-selected .product-card__check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form__row {
  display: flex;
  gap: 16px;
}

.form__row .form__field {
  flex: 1;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form__field input,
.form__field select {
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-surface);
}

.form__field input:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form__field input[type="file"] {
  padding: 8px;
  font-size: 0.85rem;
}

.form__error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin: 0;
  min-height: 1.1em;
}

.form__hint {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  margin: 4px 0 0;
}

.step--loading {
  text-align: center;
  padding: 48px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--color-primary-light);
  border-top-color: var(--color-primary);
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.camera {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera__video,
.camera__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verify-block__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 22px 0 10px;
}

.verify-block__title:first-of-type {
  margin-top: 4px;
}

.verify-block__actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.camera__guide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.step--success {
  text-align: center;
  padding: 24px 0 12px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e6f6ec;
  color: var(--color-success);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.legal {
  width: 100%;
  max-width: 720px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 40px 44px 48px;
}

.legal__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.legal__section {
  margin-bottom: 26px;
}

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

.legal__section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.legal__section p {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 480px) {
  .stepper {
    margin-bottom: 20px;
  }

  .stepper__item {
    gap: 5px;
  }

  .stepper__index {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .stepper__item:not(:last-child)::after {
    top: 12px;
  }

  .stepper__label {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .legal {
    padding: 28px 22px 32px;
  }

  .card {
    padding: 24px 20px 24px;
  }

  .form__row {
    flex-direction: column;
  }

  .card__actions--split {
    flex-direction: column-reverse;
  }

  .card__actions--split .btn {
    width: 100%;
  }
}
