/* TE700 — выравнивание карточек и кнопок, фикс съехавшего описания
   Блок: #rec1407307961 */

/* 1) Возвращаем нормальное поведение шапки (заголовок/описание по центру) */
#rec1407307961 .t-section__topwrapper .t-col { display: block !important; }
#rec1407307961 .t-section__topwrapper { text-align: center; }
#rec1407307961 .t-section__title  { text-align: center; }
#rec1407307961 .t-section__descr  { text-align: center; margin-left: auto; margin-right: auto; }

/* 2) Flex включаем только для сетки карточек, а не для всей секции */
#rec1407307961 .te700__container .t-col { display: flex; }
#rec1407307961 .te700__container .t-col > div { display: flex; flex-direction: column; width: 100%; }

/* 3) Карточка растягивается по высоте, кнопка прижата вниз */
#rec1407307961 .te700__item,
#rec1407307961 .t-card__wrap,
#rec1407307961 .te700__content { display: flex; flex-direction: column; height: 100%; }

#rec1407307961 .t-card__textwrapper,
#rec1407307961 .te700__text { flex: 1 1 auto; }

#rec1407307961 .t-card__btn-container,
#rec1407307961 .t-btnwrapper,
#rec1407307961 .te700__btn-wrapper { margin-top: auto; }

/* 4) Небольшая унификация высот на десктопе, чтобы исключить «лесенку» */
@media (min-width: 961px){
  #rec1407307961 .t-card__uptitle { min-height: 24px; }  /* ~1 строка */
  #rec1407307961 .t-card__title   { min-height: 56px; }  /* ~2 строки */
  #rec1407307961 .t-card__descr   { min-height: 88px; }  /* ~3–4 строки */
}

/* 5) На мобилках отпускаем высоты, чтобы не было лишних пустот */
@media (max-width: 960px){
  #rec1407307961 .t-card__uptitle,
  #rec1407307961 .t-card__title,
  #rec1407307961 .t-card__descr { min-height: 0; }
}
