/* ===== Alternativa Huntflow — локальные стили ===== */
/* Структурно идентично alternativa-sberpodbor.css —
   переиспользуем те же классы и сетки для консистентности. */

/* Hero двухколоночный: текст слева, summary-card справа */
.alt-hero {
  padding-top: 4.5rem;
  padding-bottom: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}
.alt-hero__text { min-width: 0; }
.alt-hero .breadcrumbs {
  display: flex;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.alt-hero .breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.alt-hero .breadcrumbs a:hover { color: var(--text); }
.alt-hero .breadcrumbs span[aria-current] { color: var(--text); }
.alt-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-top: 0.2rem;
}
.alt-hero .lead {
  font-size: 1rem;
  max-width: 52ch;
  margin-top: 1rem;
}

/* Summary-card справа в hero */
.alt-hero__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 12px 40px -24px rgba(15, 23, 42, 0.18);
  min-width: 0;
}
.alt-hero__card-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.alt-hero__card-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 0.85fr);
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  align-items: center;
}
.alt-hero__card-row:last-child { border-bottom: none; padding-bottom: 0; }
.alt-hero__card-row:first-child { padding-top: 0; }
.alt-hero__card-label {
  color: var(--text);
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.25;
}
/* Колонка конкурента (Huntflow) */
.alt-hero__card-vendor {
  color: #94a3b8;
  font-size: 0.78rem;
  text-align: right;
  line-height: 1.25;
}
.alt-hero__card-treex {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-align: right;
  line-height: 1.25;
}
.alt-hero__card-row--header {
  padding: 0 0 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 880px) {
  .alt-hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .alt-hero__card { padding: 1.25rem 1.25rem 1rem; }
}

/* ===== Таблица сравнения ===== */
.compare-wrap {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table thead th {
  text-align: left;
  font-weight: 700;
  padding: 0.95rem 1.25rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 0.88rem;
}
.compare-table thead th:nth-child(2),
.compare-table thead th:nth-child(3) {
  width: 22%;
  text-align: center;
}
.compare-table thead th .vendor {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}
.compare-table thead th .vendor--treex { color: var(--accent-dark); }
.compare-table tbody td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:nth-child(2),
.compare-table tbody td:nth-child(3) {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--text);
}
.compare-table .row-feature__hint {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.compare-cell--treex {
  background: rgba(16, 185, 129, 0.04);
}

/* Иконки в ячейках */
.compare-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.compare-mark--yes {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-dark);
}
.compare-mark--no {
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
}
.compare-cell-text {
  display: inline-block;
  font-size: 0.85rem;
}
.compare-cell-text strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}
.compare-cell-text em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

/* Дисклеймер под таблицей */
.compare-disclaimer {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 70ch;
}
.compare-disclaimer a {
  color: var(--muted);
  text-decoration: underline;
}

/* ===== Блок «Почему приходят к Treex с других CRM» ===== */
.bridge-list {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
}
.bridge-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.bridge-item__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}
.bridge-item p { margin: 0; color: var(--text); font-size: 0.92rem; line-height: 1.5; }
.bridge-item p strong { display: block; margin-bottom: 0.2rem; }

/* ===== Inline CTA-врезка между секциями ===== */
.inline-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
.inline-cta p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 600;
  max-width: 50ch;
}

/* ===== Блок «Что даёт Treex» — простые карточки c H3 ===== */
.value-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
}
.value-card h3 {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.value-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* ===== Карточка «В чём Huntflow сильнее» — отдельный визуальный акцент ===== */
.fairness-block {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: var(--radius-sm);
}
.fairness-block h3 {
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.fairness-block p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.fairness-block ul {
  margin: 0.4rem 0 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.fairness-block li { margin-bottom: 0.25rem; }

/* ===== Блок «Как перейти» — расширение walkthrough-grid под этот контекст ===== */
.migration-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.migration-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
}
.migration-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}
.migration-step h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.migration-step p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

.migration-notes {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.migration-notes article {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}
.migration-notes h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.migration-notes p { color: var(--muted); font-size: 0.85rem; line-height: 1.55; }

/* ===== Подзаголовки H3 над группами таблицы ===== */
.compare-group-title {
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text);
}
.compare-group-title:first-of-type { margin-top: 1.2rem; }

/* ===== Final CTA — компенсация отступа ===== */
.cta-final {
  margin-top: 5rem;
}

/* ===== Альт-страница: дисклеймер в футере ===== */
.alt-footer-disclaimer {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}

/* ===== Адаптивность таблицы для мобильного ===== */
@media (max-width: 720px) {
  .compare-table { font-size: 0.82rem; }
  .compare-table thead th,
  .compare-table tbody td { padding: 0.65rem 0.75rem; }
  .compare-table thead th .vendor { font-size: 0.85rem; }
  .compare-cell-text { font-size: 0.78rem; }
  .compare-cell-text em { font-size: 0.72rem; }
  .alt-hero { padding-top: 3rem; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
  .fairness-block { padding: 1.2rem 1.25rem; }
}

@media (max-width: 480px) {
  .compare-table thead th:nth-child(2),
  .compare-table thead th:nth-child(3) { width: 28%; }
  .compare-table tbody td:first-child { font-size: 0.82rem; }
}
