/**
 * Только /audit-plan.html (этап 2 + корректировка 2026-10-08).
 */

.audit-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 720px;
  width: 100%;
  margin-inline: 0;
}

.audit-hero__lead {
  margin-bottom: 16px;
}

.audit-hero__list {
  margin-top: 20px;
}

.audit-hero__actions {
  margin: 0 0 8px;
}

.lead__form .checkbox--review {
  align-items: flex-start;
}

.lead__form .checkbox--review input {
  margin-top: 2px;
}

.audit-hero__secondary {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.45;
}

.audit-hero__secondary a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: var(--touch-min, 44px);
  display: inline-flex;
  align-items: center;
}

.audit-hero__secondary a:hover {
  color: var(--text);
}

.audit-hero__max {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.audit-hero__max-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.audit-hero__max-link:hover {
  color: var(--text);
}

.audit-hero__max-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--text-tertiary);
  user-select: none;
}

.lead__form-trust {
  margin: -4px 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* 1440: портрет инженера не шире ~270px */
@media (min-width: 901px) {
  body[data-page="audit-plan"] .upload-section .lead__visual--founder {
    max-width: 270px;
    width: 270px;
  }

  body[data-page="audit-plan"] .upload-section .lead__text {
    grid-template-columns: minmax(0, 270px) minmax(13rem, 1fr);
  }
}

body[data-page="audit-plan"] .contextual-ai__chip {
  min-height: 44px;
}

@media (max-width: 767px) {
  /* Надзаголовок — ниже кнопки, рядом со строкой MAX */
  body[data-page="audit-plan"] .audit-hero__qualify {
    order: 6;
    margin: 12px 0 0;
    font-size: 13px;
  }

  body[data-page="audit-plan"] .audit-hero__list {
    order: 5;
  }

  body[data-page="audit-plan"] .audit-hero__max {
    order: 7;
    margin-top: 12px;
  }
}

@media (max-width: 768px) {
  body[data-page="audit-plan"] .audit-hero__lead {
    margin-bottom: 12px;
  }

  body[data-page="audit-plan"] .audit-hero__max {
    margin-top: 16px;
  }

  body[data-page="audit-plan"] .contextual-ai {
    padding-block: clamp(16px, 4vw, 24px);
  }

  /* Форма выше блока с фото — ближе к hero на mobile */
  body[data-page="audit-plan"] .lead__inner {
    display: flex;
    flex-direction: column;
  }

  body[data-page="audit-plan"] .lead__inner > .lead__form {
    order: -1;
  }

  body[data-page="audit-plan"] .lead__visual {
    margin-bottom: 12px;
  }

  body[data-page="audit-plan"] .lead__visual--scheme img {
    max-height: 140px;
    width: 100%;
    object-fit: cover;
  }

  body[data-page="audit-plan"] .lead__visual--founder {
    max-width: min(160px, 48vw);
    margin-inline: auto;
  }

  body[data-page="audit-plan"] .lead__visual--founder img {
    max-height: 180px;
    object-fit: cover;
  }
}
