/* =====================================================================
   AI-Кадры — лид-магнит «Чек-лист КЭДО 12 шагов» (GMT-632)
   Стили инлайн-блока, формы приёма email, лендинга, thank-you и политики.
   Использует токены темы (--accent, --bg-card, --border, --text*), поэтому
   работает и в тёмной (body.theme-dark), и в светлой теме.
   Подключается после /assets/style.css и /assets/style-dark.css.
   ===================================================================== */

/* ---------- инлайн-CTA-блок в статье ---------- */
.lead-cta {
  margin: 40px 0;
  padding: 28px 28px 24px;
  text-align: left;
  background: var(--bg-card, #141c28);
  border: 1px solid var(--border, #22303f);
  border-left: 3px solid var(--accent, #e85d3c);
  border-radius: var(--radius, 4px);
  box-shadow: var(--shadow, 0 2px 8px rgba(0, 0, 0, 0.08));
}
.lead-cta--end { margin-bottom: 8px; }
.lead-cta__eyebrow {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #e85d3c);
  margin: 0 0 10px;
}
.lead-cta__title {
  font-family: var(--display, var(--serif, sans-serif));
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text, #e8eef5);
  margin: 0 0 10px;
}
.lead-cta__sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2, #93a4b8);
  margin: 0 0 16px;
}
.lead-cta__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.lead-cta__list li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text, #e8eef5);
}
.lead-cta__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--accent, #e85d3c);
  border-radius: 3px;
}
.lead-cta__list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--accent, #e85d3c);
  border-bottom: 2px solid var(--accent, #e85d3c);
  transform: rotate(40deg);
}

/* ---------- форма ---------- */
.lead-form { margin: 0; }
.lead-form__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2, #93a4b8);
  margin-bottom: 6px;
}
.lead-form__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--sans, sans-serif);
  color: var(--text, #e8eef5);
  background: var(--bg, #0a0e13);
  border: 1px solid var(--border, #22303f);
  border-radius: var(--radius, 4px);
  margin-bottom: 12px;
}
.lead-form__input::placeholder { color: var(--text-3, #8b9bb0); opacity: 1; }
.lead-form__input:focus {
  outline: none;
  border-color: var(--accent, #e85d3c);
  box-shadow: 0 0 0 3px var(--accent-light, rgba(232, 93, 60, 0.12));
}
.lead-form__input[aria-invalid="true"] { border-color: #e5484d; }
.lead-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2, #93a4b8);
  margin: 0 0 16px;
  cursor: pointer;
}
.lead-form__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent, #e85d3c);
}
.lead-form__consent a { color: var(--accent, #e85d3c); }
.lead-form__btn {
  display: inline-block;
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--sans, sans-serif);
  color: #fff;
  background: var(--accent, #e85d3c);
  border: none;
  border-radius: var(--radius, 4px);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.lead-form__btn:hover { opacity: 0.9; }
.lead-form__btn:active { transform: translateY(1px); }
.lead-form__btn[disabled] { opacity: 0.6; cursor: progress; }
.lead-form__status {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2, #93a4b8);
}
.lead-form__status--error { color: #ff7a7d; }
.lead-form__note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3, #8b9bb0);
}

/* ---------- лендинг ---------- */
.lead-hero {
  padding: 40px 0 8px;
}
.lead-hero__badge {
  display: inline-block;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, #e85d3c);
  border: 1px solid var(--accent, #e85d3c);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 18px;
}
.lead-hero h1 {
  font-family: var(--display, var(--serif, sans-serif));
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lead-hero .lead-hero__sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-2, #93a4b8);
  margin: 0 0 22px;
}
.lead-hero .lead-cta { margin-top: 8px; }

.lead-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 0;
}
.lead-point {
  padding: 18px;
  background: var(--bg-card, #141c28);
  border: 1px solid var(--border, #22303f);
  border-radius: var(--radius, 4px);
}
.lead-point__num {
  display: block;
  font-family: var(--display, var(--serif, sans-serif));
  font-size: 26px;
  font-weight: 700;
  color: var(--accent, #e85d3c);
  margin-bottom: 6px;
}
.lead-point p { font-size: 14px; line-height: 1.5; color: var(--text-2, #93a4b8); margin: 0; }

/* ---------- thank-you ---------- */
.lead-thanks { text-align: center; padding: 24px 0 8px; }
.lead-thanks__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent-light, rgba(232, 93, 60, 0.12));
  border: 1px solid var(--accent, #e85d3c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--accent, #e85d3c);
}
.lead-thanks h1 {
  font-family: var(--display, var(--serif, sans-serif));
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 14px;
}
.lead-thanks p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2, #93a4b8);
  max-width: 520px;
  margin: 0 auto 24px;
}
.lead-thanks__btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--accent, #e85d3c);
  border-radius: var(--radius, 4px);
  text-decoration: none;
}
.lead-thanks__btn:hover { opacity: 0.9; }
.lead-thanks__meta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-3, #8b9bb0);
}

/* ---------- политика ---------- */
.lead-policy h2 { margin-top: 36px; }
.lead-policy h2:first-of-type { margin-top: 24px; }
.lead-policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
}
.lead-policy th,
.lead-policy td {
  border: 1px solid var(--border, #22303f);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.lead-policy th { background: var(--accent-light, rgba(232, 93, 60, 0.12)); font-weight: 600; }

/* ---------- адаптив ---------- */
@media (max-width: 768px) {
  .lead-cta { padding: 22px 18px 20px; margin: 32px 0; }
  .lead-cta__title { font-size: 21px; }
  .lead-cta__sub { font-size: 15px; }
  .lead-hero h1 { font-size: 28px; }
  .lead-hero .lead-hero__sub { font-size: 17px; }
  .lead-points { grid-template-columns: 1fr; }
  .lead-thanks h1 { font-size: 26px; }
}
