/* ==========================================================================
  @@4  ВНУТРЕННИЕ СТРАНИЦЫ: хлебные крошки, первый экран, текст, таблица, плашка-призыв
  Подключается после blocks.css. Остальные блоки (steps, audience, plan, faq)
  переиспользуются из page.css, blocks.css и faq.css
  ========================================================================== */

/* ===== Хлебные крошки ===== */
.breadcrumbs { font-size: 0.875rem; color: var(--text-muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-placeholder); }
.breadcrumbs a { font-weight: 400; }
.breadcrumbs [aria-current="page"] { color: var(--text); }

/* ===== Первый экран внутренней страницы ===== */
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.page-hero--media { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.page-hero__title {
  max-width: 28ch;
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.page-hero__lead { max-width: 68ch; margin-top: 1rem; font-size: 1.125rem; color: var(--text-muted); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
/* Слайдер на внутренней странице: ширина задаётся здесь, а не через .hero */
.page-hero--media .hero__media { --slider-w: 360px; }

.page-hero__figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.page-hero__figure figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--text-muted); }

/* ===== Текстовые блоки ===== */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1rem; }
.prose h3 { margin-top: 1.75rem; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.375rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }


/* Пример диалога: реплики клиента и бота */
.dialog { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.dialog__msg { max-width: 85%; padding: 0.75rem 1rem; font-size: 0.9375rem; border-radius: var(--radius-md); }
.dialog__msg--bot { align-self: flex-start; background: var(--bg); }
.dialog__msg--client { align-self: flex-end; color: var(--text-inverse); background: var(--primary); }

/* Ссылки «Читайте также» в виде чипсов */
.chips--links { margin-top: 0; gap: 0.75rem; }
.chips--links li { padding: 0; font-size: 0.9375rem; white-space: normal; }
.chips--links a { display: block; padding: 0.5rem 1rem; font-weight: 600; }
.chips--links a:hover { text-decoration: none; }
.chips--links li:hover { color: var(--primary-soft); background: var(--primary); }
.chips--links li:hover a { color: var(--primary-soft); }

/* Группы вопросов на странице FAQ */
.faq-groups { display: flex; flex-direction: column; gap: 2rem; }
.faq-groups__title { margin-bottom: 0.75rem; font-size: 1.25rem; font-weight: 700; }

/* Три шага в ряд */
.steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ===== Сравнение тарифов ===== */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { padding: 0.875rem 1.25rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font-weight: 700; background: var(--bg); }
.compare tbody th { font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* ===== Плашка-призыв в конце страницы ===== */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding: 2.5rem 3.5rem;
  color: var(--text-inverse);
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cta-band__title { color: var(--text-inverse); font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 800; line-height: 1.2; }
.cta-band__text p { max-width: 60ch; margin-top: 0.5rem; color: var(--text-on-dark-muted); }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.cta-band__link { color: var(--text-on-dark-muted); }
.cta-band__link:hover { color: var(--text-inverse); }

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
  .steps--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero--media { grid-template-columns: minmax(0, 1fr); }
  .page-hero__figure { max-width: 360px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .cta-band { padding: 2.5rem; }
}

@media (max-width: 640px) {
  .steps--three { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 2rem 1.25rem; }
  .cta-band__actions .btn { width: 100%; }

  .dialog__msg { max-width: 100%; }
}
