/*
 * TrendMap — исправление страницы «Нейросети».
 * Классы назначаются только внутри маршрута #neural-networks.
 */

.tm-neural-page-title {
  position: relative !important;
  display: inline-block !important;
  width: auto !important;
  margin-bottom: 38px !important;
}

.tm-neural-page-title::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 74px;
  height: 3px;
  border-radius: 999px;
  background: #68d453;
}

.tm-neural-hidden {
  display: none !important;
}

/*
 * Родитель карточки больше не ограничивает ее узкой колонкой.
 */
.tm-neural-card-host {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  align-items: stretch !important;
}

/*
 * Зеленый блок занимает всю ширину рабочей области.
 */
.tm-neural-wide-card {
  display: block !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 32px 36px !important;
}

/*
 * Убираем старые ограничения ширины внутренних контейнеров.
 */
.tm-neural-wide-card > *,
.tm-neural-wide-card p,
.tm-neural-wide-card div {
  max-width: none !important;
}

.tm-neural-wide-card p {
  width: 100% !important;
  line-height: 1.65 !important;
}

.tm-neural-card-title {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: 1.15 !important;
}

@media (max-width: 820px) {
  .tm-neural-page-title {
    margin-bottom: 32px !important;
  }

  .tm-neural-wide-card {
    padding: 24px 20px !important;
  }

  .tm-neural-card-title {
    font-size: 28px !important;
  }
}

/* TM NEURAL REEL TYPOGRAPHY START */

/*
 * Название раздела слева уже выбрано,
 * поэтому верхний дубль и зеленая линия не нужны.
 */
.tm-neural-page-title {
  display: none !important;
}

/* Убираем освободившийся верхний промежуток. */
.tm-neural-card-host {
  margin-top: 0 !important;
}

/*
 * Типографика как в разделах карточки Reel:
 * заголовок 18 px, основной текст 14 px.
 */
.tm-neural-wide-card {
  padding: 24px 28px !important;
}

.tm-neural-card-title {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 11px !important;
  color: var(--tm-text, #f4f7f3) !important;
  font-family: "Manrope", "Rubik", Arial, sans-serif !important;
  font-size: 18px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}

.tm-neural-wide-card p {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
}

.tm-neural-wide-card p + p {
  margin-top: 12px !important;
}

@media (max-width: 820px) {
  .tm-neural-wide-card {
    padding: 20px !important;
  }

  .tm-neural-card-title {
    font-size: 18px !important;
  }

  .tm-neural-wide-card p {
    font-size: 14px !important;
  }
}

/* TM NEURAL REEL TYPOGRAPHY END */
