* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f4f6f8 0%, #eef1f6 100%);
  min-height: 100vh;
  color: #1a1a1a;
  margin: 0;
  padding: 32px 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  padding: 36px 40px;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 30, 60, 0.04),
    0 8px 24px rgba(15, 30, 60, 0.06),
    0 24px 48px rgba(15, 30, 60, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}

.subtitle {
  color: #666;
  margin: 0 0 28px 0;
  font-size: 15px;
}

.disclaimer {
  background: #fff8e1;
  border-left: 4px solid #ffb300;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 24px;
}

form label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d8dee6;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

form input:hover,
form select:hover,
form textarea:hover {
  border-color: #b9c3d0;
}

form textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: #2f6df5;
  box-shadow: 0 0 0 4px rgba(47,109,245,0.12);
  background: #fbfcff;
}

form label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #2b3440;
  letter-spacing: -0.005em;
}

button {
  margin-top: 24px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, #3f7bf7 0%, #2f6df5 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.15s, filter 0.15s;
  box-shadow: 0 2px 8px rgba(47,109,245,0.25);
  letter-spacing: -0.005em;
}

button:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(47,109,245,0.35);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(47,109,245,0.2);
}

.emergency {
  background: #ffebee;
  border-left: 4px solid #d32f2f;
  color: #b71c1c;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 15px;
}

.reason {
  font-size: 16px;
  color: #333;
  margin: 20px 0 24px 0;
  white-space: pre-wrap;
}

.back {
  display: inline-block;
  color: #2f6df5;
  text-decoration: none;
  font-weight: 500;
}

.back:hover {
  text-decoration: underline;
}

.footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #999;
  font-size: 12px;
  text-align: center;
}

/* ─── CASE: страница дела ─── */
.case-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.case-header h1 {
  margin-bottom: 4px;
  font-size: 22px;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.case-date {
  color: #888;
  font-size: 13px;
  margin: 0;
}

.case-section {
  margin-bottom: 28px;
}

.case-section h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.case-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.case-table td {
  padding: 6px 0;
  vertical-align: top;
  border-bottom: 1px solid #f5f5f5;
}

.case-table td:first-child {
  color: #666;
  width: 35%;
}

.case-source {
  font-size: 12px;
  color: #888;
  word-break: break-all;
}

.case-docs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-docs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #f8f9fb;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
}

.doc-type {
  font-weight: 600;
}

.doc-date {
  color: #888;
  font-size: 12px;
  margin: 0 12px;
}

.doc-link {
  color: #2f6df5;
  text-decoration: none;
  font-weight: 500;
}

.doc-link:hover {
  text-decoration: underline;
}

.case-empty {
  color: #999;
  font-style: italic;
}

.case-source-text {
  background: #f8f9fb;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.case-footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.case-footer a {
  color: #2f6df5;
  text-decoration: none;
  font-weight: 500;
}

/* ─── Top bar (общая навигация) ─── */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-tag {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.top-nav {
  display: flex;
  gap: 16px;
}

.top-link {
  color: #2f6df5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.top-link:hover {
  text-decoration: underline;
}

.top-link-muted {
  color: #888;
}

/* ─── Экран «Мои дела» ─── */
.my-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.my-header h1 {
  margin-bottom: 4px;
  font-size: 22px;
}

.my-subtitle {
  color: #888;
  font-size: 14px;
  margin: 0;
}

.my-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.my-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f8f9fb;
  border-radius: 8px;
  margin-bottom: 10px;
}

.my-item-left {
  flex: 1;
  min-width: 0;
}

.my-item-number {
  font-family: monospace;
  font-size: 15px;
  font-weight: 600;
  color: #2f6df5;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.my-item-number:hover {
  text-decoration: underline;
}

.my-item-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #888;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.my-type {
  color: #555;
  font-weight: 500;
}

.my-item-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.my-docs-count {
  font-size: 12px;
  color: #888;
}

.my-link {
  color: #2f6df5;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.my-link:hover {
  text-decoration: underline;
}

.my-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 14px;
}

.my-empty p {
  margin: 8px 0;
}
/* ─── Блок ошибок формы ─── */
.form-errors {
  background: #ffebee;
  border-left: 4px solid #d32f2f;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-errors strong {
  color: #b71c1c;
  display: block;
  margin-bottom: 6px;
}

.form-errors ul {
  margin: 0;
  padding-left: 20px;
  color: #b71c1c;
}

.form-errors li {
  margin: 2px 0;
}
/* ─── Stop-страница ─── */
.stop-title {
  font-size: 26px;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}

.stop-reason {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 24px 0;
  white-space: pre-wrap;
}

.stop-actions {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.stop-back-btn {
  display: inline-block;
  color: #2f6df5;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.stop-back-btn:hover {
  text-decoration: underline;
}

/* ─── Emergency: усиленный вид ─── */
.stop-emergency {
  background: #fff5f5;
  border: 2px solid #d32f2f;
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 8px;
}

.stop-emergency-icon {
  font-size: 48px;
  line-height: 1;
  color: #d32f2f;
  margin-bottom: 12px;
}

.stop-emergency .stop-title {
  color: #b71c1c;
  text-align: center;
  font-size: 24px;
  margin-bottom: 12px;
}

.stop-emergency .stop-reason {
  text-align: center;
  color: #b71c1c;
}

.stop-call-btn {
  display: inline-block;
  background: #d32f2f;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.stop-call-btn:hover {
  background: #b71c1c;
}
/* ─── Placeholder — светлее, чтобы не путался с текстом ─── */
input::placeholder,
textarea::placeholder {
  color: #b0b6bd;
  font-style: italic;
}
/* ─── Pre-check блоки (Confidence / UNKNOWN) ─── */
.precheck-section {
  margin: 24px 0;
}

.precheck-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.precheck-heading-critical {
  color: #b71c1c;
  border-bottom-color: #ffcdd2;
}

.precheck-heading-optional {
  color: #888;
}

.precheck-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.precheck-list li {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid #f5f5f5;
}

.precheck-mark {
  display: inline-block;
  width: 20px;
  font-weight: bold;
}

.precheck-known .precheck-mark {
  color: #2e7d32;
}

.precheck-critical .precheck-mark {
  color: #d32f2f;
}

.precheck-optional .precheck-mark {
  color: #999;
}

.precheck-hint {
  color: #888;
  font-size: 13px;
  margin: 4px 0 0 20px;
}

/* ─── Блок pre-checks на карточке дела ─── */
.case-precheck {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.case-precheck h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin: 0 0 10px 0;
}

.case-precheck ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.case-precheck li {
  padding: 2px 0;
}

.case-precheck .precheck-mark {
  width: 18px;
}
/* ─── Legal Trace: цепочка ─── */
.trace-chain {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
}

.trace-step {
  padding: 8px 0;
}

.trace-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 4px;
}

.trace-value {
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.5;
}

.trace-arrow {
  text-align: center;
  color: #ccc;
  font-size: 14px;
  padding: 2px 0;
}

.trace-norm {
  padding: 2px 0;
}

.trace-source-link {
  color: #2f6df5;
  text-decoration: none;
  font-size: 13px;
  word-break: break-all;
}

.trace-source-link:hover {
  text-decoration: underline;
}

/* ═══ Wizard (пошаговая форма) ═══ */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 32px 0;
  padding: 0 8px;
}

.wizard-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wizard-progress-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8edf3;
  color: #8892a0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
}

.wizard-progress-label {
  font-size: 12px;
  color: #8892a0;
  font-weight: 500;
  transition: color 0.2s;
}

.wizard-progress-step.active .wizard-progress-num {
  background: #2f6df5;
  color: #fff;
}

.wizard-progress-step.active .wizard-progress-label {
  color: #2f6df5;
}

.wizard-progress-step.done .wizard-progress-num {
  background: #2e7d32;
  color: #fff;
}

.wizard-progress-step.done .wizard-progress-label {
  color: #2e7d32;
}

.wizard-progress-line {
  flex: 1;
  height: 2px;
  background: #e8edf3;
  margin: 0 8px;
  align-self: flex-start;
  margin-top: 17px;
}

.wizard-step {
  animation: wizard-fade 0.2s ease;
}

@keyframes wizard-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  gap: 12px;
}

.wizard-nav button {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  width: auto;
  margin-top: 0;
}

.wizard-next,
.wizard-submit {
  background: #2f6df5;
  color: #fff;
  margin-left: auto;
}

.wizard-next:hover,
.wizard-submit:hover {
  background: #1f55d0;
}

.wizard-prev {
  background: #e8edf3;
  color: #555;
}

.wizard-prev:hover {
  background: #d4dce6;
}


/* ═══ Flatpickr — адаптация под мобильные ═══ */
.flatpickr-calendar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15) !important;
  border-radius: 10px !important;
  overflow: hidden;
}

.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowTop::before {
  display: none;
}

/* Заголовок месяца — статичный, не дропдаун */
.flatpickr-current-month {
  font-size: 16px !important;
  font-weight: 600 !important;
}

.flatpickr-current-month .numInputWrapper {
  width: 70px !important;
}

.flatpickr-current-month .numInputWrapper input.cur-year {
  font-weight: 600 !important;
  font-size: 16px !important;
}

/* Дни недели */
.flatpickr-weekdays {
  background: #f8f9fb;
}

.flatpickr-weekday {
  font-size: 12px !important;
  color: #888 !important;
  font-weight: 600 !important;
}

/* Ячейки дней — крупнее для тача */
.flatpickr-day {
  font-size: 14px !important;
  height: 40px !important;
  line-height: 40px !important;
  border-radius: 8px !important;
  max-width: 40px !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #2f6df5 !important;
  border-color: #2f6df5 !important;
  color: #fff !important;
}

.flatpickr-day.today {
  border-color: #2f6df5 !important;
  color: #2f6df5 !important;
  font-weight: 600 !important;
}

.flatpickr-day.today:hover {
  background: #e8f0ff !important;
  color: #2f6df5 !important;
}

/* Стрелки навигации — крупнее */
.flatpickr-prev-month,
.flatpickr-next-month {
  padding: 12px !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  width: 16px !important;
  height: 16px !important;
}

/* Кнопки Сегодня / Очистить */
.lm-cal-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.lm-today-btn {
  color: #2f6df5;
  border-right: 1px solid #eee;
}

.lm-today-btn:hover {
  background: #f0f5ff;
}

.lm-clear-btn {
  color: #888;
}

.lm-clear-btn:hover {
  background: #f5f5f5;
}

/* ═══ Мобильные — календарь на всю ширину ═══ */
@media (max-width: 480px) {
  .flatpickr-calendar {
    width: 100% !important;
    max-width: 340px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
  }

  .flatpickr-days,
  .dayContainer {
    width: 100% !important;
    max-width: 340px !important;
    min-width: 340px !important;
  }

  .flatpickr-day {
    max-width: 44px !important;
    height: 44px !important;
    line-height: 44px !important;
    font-size: 15px !important;
  }

  .flatpickr-innerContainer {
    justify-content: center !important;
  }

  .flatpickr-rContainer {
    width: 100% !important;
  }
}


/* ═══ Air Datepicker — пиздатая тема ═══ */
.air-datepicker {
  --adp-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --adp-font-size: 14px;
  --adp-width: 300px;
  --adp-accent-color: #2f6df5;
  --adp-color: #1a1a1a;
  --adp-color-secondary: #888;
  --adp-border-color: #e8edf3;
  --adp-border-radius: 12px;
  --adp-cell-border-radius: 8px;
  --adp-background-color: #fff;
  --adp-background-color-hover: #f0f5ff;
  --adp-background-color-active: #2f6df5;
  --adp-cell-size: 40px;
  --adp-pointer-size: 8px;
  --adp-nav-arrow-color: #2f6df5;
  --adp-day-name-color: #888;
  --adp-day-name-color-hover: #2f6df5;
  --adp-transition-duration: 0.15s;
  --adp-transition-ease: ease-out;

  box-shadow: 0 8px 32px rgba(47, 109, 245, 0.15), 0 2px 8px rgba(0,0,0,0.08) !important;
  border: 1px solid var(--adp-border-color) !important;
  padding: 12px !important;
}

.air-datepicker-nav {
  padding: 4px 0 10px 0 !important;
  border-bottom: 1px solid var(--adp-border-color) !important;
}

.air-datepicker-nav--title {
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  transition: background 0.15s !important;
}

.air-datepicker-nav--title:hover {
  background: var(--adp-background-color-hover) !important;
}

.air-datepicker-nav--title i {
  font-style: normal !important;
  color: var(--adp-color-secondary) !important;
  font-weight: 500 !important;
  margin-left: 4px !important;
}

.air-datepicker-nav--action {
  border-radius: 8px !important;
  transition: background 0.15s !important;
}

.air-datepicker-nav--action:hover {
  background: var(--adp-background-color-hover) !important;
}

.air-datepicker--content {
  padding: 8px 0 0 0 !important;
}

.air-datepicker-body--day-name {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--adp-day-name-color) !important;
}

.air-datepicker-cell {
  height: 40px !important;
  line-height: 40px !important;
  font-weight: 500 !important;
  transition: all 0.1s !important;
}

.air-datepicker-cell.-day-.-current- {
  color: var(--adp-accent-color) !important;
  font-weight: 700 !important;
  border: 1.5px solid var(--adp-accent-color) !important;
}

.air-datepicker-cell.-day-.-selected- {
  background: var(--adp-accent-color) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(47, 109, 245, 0.3) !important;
}

.air-datepicker-cell.-day-.-selected-.-current- {
  color: #fff !important;
}

.air-datepicker-cell.-day-.-focus- {
  background: var(--adp-background-color-hover) !important;
}

.air-datepicker-cell.-day-:hover {
  background: var(--adp-background-color-hover) !important;
  color: var(--adp-accent-color) !important;
}

.air-datepicker-cell.-disabled- {
  color: #d0d5dd !important;
}

/* Кнопки Сегодня / Очистить */
.air-datepicker-buttons {
  padding: 10px 0 0 0 !important;
  border-top: 1px solid var(--adp-border-color) !important;
  margin-top: 10px !important;
  display: flex !important;
  gap: 8px !important;
}

.air-datepicker-button {
  flex: 1 !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  border: none !important;
  background: #f0f5ff !important;
  color: var(--adp-accent-color) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  font-family: inherit !important;
}

.air-datepicker-button:hover {
  background: var(--adp-accent-color) !important;
  color: #fff !important;
}

/* Мобильная версия — bottom sheet (только если реально узкий экран) */
@media (max-width: 480px) {
  .air-datepicker.-is-mobile- {
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -4px 32px rgba(0,0,0,0.2) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* На десктопе — компактное окошко */
.air-datepicker {
  width: 300px !important;
}

@media (max-width: 480px) {
  .air-datepicker-cell {
    height: 44px !important;
    line-height: 44px !important;
    font-size: 15px !important;
  }

  .air-datepicker {
    --adp-cell-size: 44px;
  }
}

/* ─── Inline-ошибки под полями формы ─── */
.lm-field-error {
  display: block;
  color: #d32f2f;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 6px;
  margin-bottom: 4px;
}


/* ─── Согласие на обработку ПДн (152-ФЗ) ─── */
.privacy-consent {
  margin: 20px 0 8px 0;
  padding: 12px 14px;
  background: #f8f9fb;
  border-radius: 6px;
  border-left: 3px solid #2f6df5;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: #444;
  margin: 0;
  font-weight: 400;
}

.privacy-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}

.privacy-label a {
  color: #2f6df5;
  text-decoration: none;
}

.privacy-label a:hover {
  text-decoration: underline;
}

/* Красная рамка если не отмечен и юзер попытался сабмитнуть */
.privacy-consent.lm-error {
  border-left-color: #d32f2f;
  background: #fff5f5;
}


/* Fix: air-datepicker не должен быть прозрачным */
.air-datepicker {
  background: #fff !important;
  z-index: 9999 !important;
}

.air-datepicker-global-container {
  z-index: 9998 !important;
}

/* Убедимся что календарь поверх всего внутри карточки */
.air-datepicker.-active- {
  opacity: 1 !important;
}


/* ═══ Hero-секция ═══ */
.hero {
  text-align: center;
  margin: 8px 0 24px 0;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px 0;
  color: #0f1a2b;
}

.hero-accent {
  background: linear-gradient(135deg, #3f7bf7 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 16px;
  color: #5a6472;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5a6472;
  font-weight: 500;
}

.hero-feature-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

/* ═══ Карточки выбора типа проблемы ═══ */
.type-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  margin: 0 !important;
  position: relative;
}

.type-card:hover {
  border-color: #b9c9e8;
  background: #fbfcff;
  transform: translateY(-1px);
}

.type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card-active {
  border-color: #2f6df5;
  background: linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
  box-shadow: 0 4px 12px rgba(47,109,245,0.12);
}

.type-card-active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: #2f6df5;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-card-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}

.type-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.type-card-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
}

/* Три колонки на десктопе */
@media (min-width: 600px) {
  .type-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .type-card {
    padding: 20px 12px;
  }
}


/* ═══ Секции формы (шаг 2) ═══ */
.form-section {
  background: #fafbfd;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: border-color 0.15s;
}

.form-section:focus-within {
  border-color: #c9d8f5;
  background: #fbfcff;
}

.form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f6;
}

.form-section-icon {
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.form-section-sub {
  font-size: 12.5px;
  color: #7a8493;
  line-height: 1.4;
}

.form-section label {
  margin-top: 14px;
  font-size: 13.5px;
}

.form-section label:first-of-type {
  margin-top: 4px;
}

/* Двойная колонка для коротких полей */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.form-row label {
  margin-top: 0;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-row > div {
    margin-bottom: 8px;
  }
  .form-section {
    padding: 16px 16px;
  }
}

/* Hint и required в label */
.label-hint {
  color: #9aa3b2;
  font-weight: 400;
  font-size: 12.5px;
}

.label-required {
  color: #d32f2f;
  font-weight: 700;
}


/* ─── Авто-детект типа документа ─── */
.lm-detected {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #e8f5e9;
  border-left: 3px solid #2e7d32;
  border-radius: 6px;
  font-size: 13.5px;
  color: #1b5e20;
}

.lm-detected-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #2e7d32;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.lm-detected strong {
  font-weight: 700;
}

/* ═══ Карточки выбора требования ═══ */
.demand-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
}

.demand-card {
  display: block;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  margin: 0 !important;
  position: relative;
}

.demand-card:hover {
  border-color: #b9c9e8;
  background: #fbfcff;
}

.demand-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.demand-card-active {
  border-color: #2f6df5;
  background: linear-gradient(180deg, #f5f9ff 0%, #eef4ff 100%);
  box-shadow: 0 2px 8px rgba(47,109,245,0.10);
}

.demand-card-active::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 18px;
  height: 18px;
  background: #2f6df5;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demand-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  padding-right: 24px;
  line-height: 1.35;
}

.demand-card-meta {
  font-size: 12px;
  color: #7a8493;
  margin-top: 3px;
}

@media (min-width: 600px) {
  .demand-cards {
    grid-template-columns: 1fr 1fr;
  }
}
