/* ── Reset & Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:     #FFD600;
  --yellow-dark:#E6C000;
  --black:      #111111;
  --gray-900:   #1a1a1a;
  --gray-700:   #374151;
  --gray-500:   #6b7280;
  --gray-300:   #d1d5db;
  --gray-100:   #f3f4f6;
  --gray-50:    #f9fafb;
  --white:      #ffffff;
  --blue:       #2563eb;
  --red:        #ef4444;
  --green:      #16a34a;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --transition: 200ms ease;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── App layout ─────────────────────────────────────────────────────── */
.app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

/* ── Header ─────────────────────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--yellow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  color: var(--black);
  letter-spacing: -0.3px;
}

.header-phone a {
  color: var(--black);
  font-weight: 600;
  font-size: 13px;
}

/* ── Progress ───────────────────────────────────────────────────────── */
.progress-wrap {
  padding: 12px 20px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.progress-bar {
  height: 4px;
  background: var(--gray-200, #e5e7eb);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 99px;
  transition: width 400ms cubic-bezier(.4,0,.2,1);
  width: 0%;
}

.progress-steps {
  display: flex;
  gap: 4px;
  padding-bottom: 10px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.progress-steps::-webkit-scrollbar { display: none; }

.ps-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400, #9ca3af);
  white-space: nowrap;
  flex-shrink: 0;
}
.ps-item.active { color: var(--gray-900); }
.ps-item.done   { color: var(--green); }

.ps-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  background: var(--white);
  color: var(--gray-400, #9ca3af);
  flex-shrink: 0;
  transition: all var(--transition);
}
.ps-item.active .ps-dot {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
}
.ps-item.done .ps-dot {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

/* ── Steps container ────────────────────────────────────────────────── */
.steps-container { flex: 1; }

.step {
  padding: 24px 20px 100px;
  animation: stepIn 250ms ease both;
}
.step.hidden { display: none; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Step header ────────────────────────────────────────────────────── */
.step-header {
  margin-bottom: 24px;
  position: relative;
}

.step-header h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
  margin-bottom: 4px;
}

.step-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.4;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.btn-back:hover { color: var(--gray-900); }

/* ── Park cards ─────────────────────────────────────────────────────── */
.parks-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.parks-loading {
  text-align: center;
  color: var(--gray-500);
  padding: 32px;
}

.park-card {
  border: 2px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  position: relative;
}

.park-card:hover {
  border-color: var(--yellow-dark);
  background: #fffde8;
}

.park-card.selected {
  border-color: var(--yellow);
  background: #fffde8;
  box-shadow: 0 0 0 3px rgba(255,214,0,.25);
}

.park-radio {
  width: 22px; height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition);
}
.park-card.selected .park-radio {
  border-color: var(--yellow);
  background: var(--yellow);
}
.park-radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--black);
  opacity: 0;
  transition: opacity var(--transition);
}
.park-card.selected .park-radio::after { opacity: 1; }

.park-info { flex: 1; }

.park-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

.park-metro {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.park-address {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.4;
}

.parks-phone-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  padding: 12px 0 20px;
  border-top: 1px solid var(--gray-100);
}
.parks-phone-hint a { color: var(--gray-700); font-weight: 500; }

/* ── Form fields ────────────────────────────────────────────────────── */
.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.req { color: var(--red); margin-left: 2px; }

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--yellow-dark);
  box-shadow: 0 0 0 3px rgba(255,214,0,.2);
}

.field-group input.error {
  border-color: var(--red);
}

.field-hint {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 5px;
  display: block;
}

.field-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
  display: block;
  min-height: 16px;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-group.half { flex: 1; }

/* ── Docs upload grid ───────────────────────────────────────────────── */
.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 360px) {
  .docs-grid { grid-template-columns: 1fr; }
}

.doc-card { display: flex; flex-direction: column; gap: 8px; }

.doc-upload-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--gray-50);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.doc-upload-zone:hover,
.doc-upload-zone:active {
  border-color: var(--yellow-dark);
  background: #fffde8;
}

.doc-upload-zone.uploading {
  border-color: var(--yellow);
  background: #fffde8;
}

.doc-upload-zone.done {
  border-color: var(--green);
  border-style: solid;
  background: #f0fdf4;
}

.doc-icon { font-size: 28px; line-height: 1; }

.doc-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  line-height: 1.3;
}

.doc-hint {
  font-size: 11px;
  color: var(--gray-500);
}

.doc-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: calc(var(--radius) - 2px);
  opacity: 0;
  transition: opacity var(--transition);
}
.doc-upload-zone.done .doc-preview { opacity: 0.25; }

.doc-status {
  font-size: 11px;
  font-weight: 500;
  min-height: 16px;
  text-align: center;
  color: var(--green);
}
.doc-status.error { color: var(--red); }

.docs-note {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

/* ── Review form sections ───────────────────────────────────────────── */
.review-section {
  background: var(--gray-50);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.review-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200, #e5e7eb);
}

/* ── Self-employment ────────────────────────────────────────────────── */
.sz-toggle-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.sz-option {
  border: 2px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}

.sz-option:hover {
  border-color: var(--yellow);
  background: #fffde8;
}

.sz-option.selected {
  border-color: var(--yellow);
  background: #fffde8;
  box-shadow: 0 0 0 3px rgba(255,214,0,.2);
}

.sz-icon { font-size: 28px; margin-bottom: 8px; }

.sz-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.sz-hint {
  font-size: 11px;
  color: var(--gray-500);
  line-height: 1.3;
}

.sz-screenshot-zone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  margin-top: 16px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.sz-screenshot-zone:hover {
  border-color: var(--yellow);
  background: #fffde8;
}

.sz-help-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 0;
}

.sz-help-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sz-help-card ol {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-700);
}

.sz-help-card p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

/* ── Summary card ───────────────────────────────────────────────────── */
.summary-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200, #e5e7eb);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}
.summary-row:last-child { border-bottom: none; }

.summary-key {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  min-width: 120px;
  flex-shrink: 0;
}

.summary-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  word-break: break-all;
}

.summary-section-header {
  background: var(--yellow);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--black);
}

/* ── Consent ────────────────────────────────────────────────────────── */
.consent-block {
  margin-bottom: 20px;
  padding: 14px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200, #e5e7eb);
}

.consent-label {
  display: flex;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  cursor: pointer;
  accent-color: var(--yellow);
  margin-top: 2px;
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  position: sticky;
  bottom: 0;
  padding: 12px 0 16px;
  background: #fff;
  box-shadow: 0 -12px 20px rgba(255,255,255,1);
  z-index: 10;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  outline: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  flex: 1;
  box-shadow: 0 2px 8px rgba(255,214,0,.4);
}

.btn-primary:hover:not(:disabled) {
  background: var(--yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,214,0,.5);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--gray-200, #e5e7eb);
}

.btn-next svg,
.btn-submit svg { flex-shrink: 0; }

/* ── Result screens ─────────────────────────────────────────────────── */
.step-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}

.result-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 8px;
}

.step-center h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.step-center p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
  max-width: 340px;
}

.result-park {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
}

.result-contact {
  margin-top: 16px;
}
.result-contact .btn-primary { min-width: 200px; }

/* ── Spinner ────────────────────────────────────────────────────────── */
.spinner {
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ──────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  transition: transform 300ms ease;
  max-width: calc(100vw - 40px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: var(--red); }
.toast.toast-success { background: var(--green); }

/* ── Utility ────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* Retry upload link */
.retry-link {
  color: var(--yellow);
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: underline;
  margin-left: 8px;
  white-space: nowrap;
}
.retry-link:hover { opacity: 0.8; }
.doc-status.success { color: #16a34a; }

/* Additional consent checkboxes spacing */
.consent-label + .consent-label {
  margin-top: 10px;
}

/* Drag-and-drop */
.doc-upload-zone.drag-over {
  border-color: var(--yellow) !important;
  background: rgba(255,214,0,0.08) !important;
  transform: scale(1.02);
}
.doc-upload-zone.drag-over .doc-icon { opacity: 0.5; }

/* Tablet landscape fix */
@media screen and (min-width: 640px) and (max-width: 1024px) {
  .wizard-wrap { max-width: 560px; }
  .park-card { padding: 14px 16px; }
  .field-row { gap: 16px; }
}

/* ИНН / СНИЛС error highlight */
input.input-error {
  border-color: #ef4444 !important;
  background: rgba(239,68,68,0.04);
}

/* ── Кнопка "Назад" — улучшенная ─────────────────────────────────── */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 12px;
  transition: background var(--transition), border-color var(--transition);
}
.btn-back:hover {
  background: var(--gray-200, #e5e7eb);
  border-color: var(--gray-500);
  color: var(--black);
}
.btn-back svg { flex-shrink: 0; }

/* ── Кнопка "Начать заново" ───────────────────────────────────────── */
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-ghost:hover { color: var(--red); }
.btn-restart { margin-top: 4px; }

/* ── Кнопка "Опасное действие" ───────────────────────────────────── */
.btn-danger {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { opacity: 0.9; }

/* ── Модальное окно подтверждения ────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 360px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.modal-card p  { font-size: 14px; color: var(--gray-700); line-height: 1.6; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Чекбокс согласия Яндекс Про ────────────────────────────────── */
.consent-ypro {
  margin-top: 14px;
  padding: 12px;
  background: #fffbea;
  border: 1.5px solid #fbbf24;
  border-radius: var(--radius-sm);
}

/* ── Экран успеха — обновлённый ─────────────────────────────────── */
.result-park-card {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0 8px;
  text-align: left;
}
.result-park-name    { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.result-park-address { font-size: 14px; color: var(--gray-700); margin-bottom: 8px; }
.result-park-phone   { font-size: 15px; font-weight: 700; color: var(--black); display: block; margin-bottom: 8px; }
.result-park-msg     { font-size: 14px; font-weight: 600; color: var(--black); margin: 0; }

/* Статус Яндекс Про */
.result-ypro-status { margin: 12px 0; }
.ypro-loading, .ypro-pending, .ypro-done {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}
.ypro-loading { background: var(--gray-100); color: var(--gray-700); }
.ypro-pending { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ypro-done    { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ypro-loading .spinner { animation: spin 1s linear infinite; }

/* Ссылки на приложения */
.result-apps { margin: 16px 0; text-align: left; }
.result-apps-title { font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.result-apps-grid  { display: flex; gap: 10px; flex-wrap: wrap; }
.app-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-900);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition);
}
.app-link:hover { opacity: 0.85; text-decoration: none; color: var(--white); }

/* ── Счётчик документов на кнопке "Далее" ────────────────────────── */
.docs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.35);
  color: #333;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 4px;
  min-width: 32px;
}
.docs-badge-done {
  background: #16a34a;
  color: #fff;
}

/* ── Подсветка незагруженной зоны ─────────────────────────────────── */
.doc-upload-zone.zone-required {
  border: 2px solid var(--red) !important;
  background: rgba(239,68,68,0.04) !important;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-4px); }
  60%       { transform: translateX(4px); }
}

/* ── Чекбокс "Ознакомился" на шаге 5 ─────────────────────────────── */
.sz-ack-label {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-sm);
}
.sz-ack-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

/* ── Кнопка TaxiCRM (отдельный цвет) ─────────────────────────────── */
.app-link-taxicrm {
  background: #1e3a5f;
}
.app-link-taxicrm:hover { opacity: 0.85; color: var(--white); }

/* ── Кнопка "Проверить статус самозанятого" ───────────────────────── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 2px solid #0ea5e9;
  border-radius: var(--radius-sm, 10px);
  color: #0ea5e9;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.btn-secondary:hover:not(:disabled) { background: #0ea5e9; color: #fff; }
.btn-secondary:disabled              { opacity: .5; cursor: not-allowed; }

/* ── Пульс кнопки при ошибке ──────────────────────────────────────── */
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(14,165,233,0); }
}
.btn-pulse { animation: pulse-border .5s ease 2; }

/* ── Блок проверки ФНС ────────────────────────────────────────────── */
.sz-check-block { margin: 16px 0; }

.sz-check-status {
  padding: 0;
  border-radius: var(--radius-sm, 10px);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
}

/* checking */
.sz-check-checking {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  color: #0369a1;
}
.sz-check-checking .spin {
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* success */
.sz-check-success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #15803d;
}
.sz-check-success svg { flex-shrink: 0; margin-top: 1px; }

/* failed */
.sz-check-failed {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  color: #c2410c;
}
.sz-check-failed svg { flex-shrink: 0; margin-top: 1px; }
.sz-check-fail-text { flex: 1; font-size: 13px; }
.sz-check-fail-text strong { display: block; margin-bottom: 4px; }

/* Ссылка "Проверить снова / другой ИНН" */
.sz-recheck-link {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: none;
  color: #0369a1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.sz-recheck-link:hover { color: #0ea5e9; }

/* ── Блок скриншота при failed ────────────────────────────────────── */
.sz-screenshot-card {
  margin-top: 16px;
  padding: 16px;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-sm, 10px);
}
.sz-screenshot-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #c2410c;
}
.sz-screenshot-desc {
  font-size: 13px;
  color: #78350f;
  margin: 0 0 12px;
}
.sz-screenshot-zone {
  margin-top: 8px;
}
.sz-screenshot-hint {
  margin-top: 8px;
  font-size: 13px;
  color: #9a3412;
}
.sz-screenshot-hint.ok {
  color: #15803d;
  font-weight: 500;
}

/* ── Счётчик документов (из v2) ───────────────────────────────────── */
.docs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.35);
  color: #333;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  margin-left: 4px;
  min-width: 32px;
}
.docs-badge-done { background: #16a34a; color: #fff; }

/* ── Подсветка незагруженной зоны ────────────────────────────────── */
.doc-upload-zone.zone-required {
  border: 2px solid var(--red, #ef4444) !important;
  background: rgba(239,68,68,0.04) !important;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-4px); }
  60%       { transform: translateX(4px); }
}

/* ── Чекбокс "Ознакомился" шаг 5 ─────────────────────────────────── */
.sz-ack-label {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  padding: 10px 12px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-sm, 10px);
}
.sz-ack-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--green, #16a34a);
}

/* ── Кнопка TaxiCRM ─────────────────────────────────────────────── */
.app-link-taxicrm { background: #1e3a5f; }
.app-link-taxicrm:hover { opacity: .85; color: #fff; }

/* ── Кнопка «Открыть камеру» под зоной загрузки ─────────────────── */
.doc-btn-camera {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-top: none;
  border-radius: 0 0 10px 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.doc-btn-camera:hover,
.doc-btn-camera:active {
  background: #f0f9ff;
  border-color: #0ea5e9;
  color: #0369a1;
}
.sz-camera-btn {
  border-radius: 0 0 10px 10px;
  margin-top: 0;
}

/* ── «Начать заново» — чуть заметнее ────────────────────────────── */
.btn-restart {
  margin-top: 8px;
  color: #475569;
  font-size: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.btn-restart:hover { color: var(--red); border-color: var(--red); text-decoration: none; }

/* ── Camera modal (getUserMedia) ─────────────────────────────────── */
.camera-modal-card {
  background: #000;
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
#cameraVideo {
  width: 100%;
  display: block;
  max-height: 62vh;
  object-fit: cover;
  background: #111;
}
.camera-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 17px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  z-index: 10;
}
.camera-controls {
  padding: 14px 16px 8px;
  display: flex;
  justify-content: center;
}
.camera-capture-btn {
  background: #fff;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.camera-capture-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.camera-hint {
  color: rgba(255,255,255,.65);
  text-align: center;
  font-size: 13px;
  padding: 0 16px 14px;
  margin: 0;
}
