/*
 * GANTSEV DIRECTIONS HEADING V159
 *
 * Точное центрирование заголовка и подзаголовка блока
 * «Наши направления» относительно всей секции.
 */

.services > .shell > .section-head.centered,
.services .section-head.centered.gsv142-directions-heading,
.services .gsv142-directions-heading {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 38px !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  box-sizing: border-box !important;
  text-align: center !important;

  position: relative !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/*
 * Каждый текстовый элемент получает одну и ту же центральную ось.
 * Убираются возможные старые смещения, индивидуальная ширина и transform.
 */
.services > .shell > .section-head.centered > *,
.services .section-head.centered.gsv142-directions-heading > *,
.services .gsv142-directions-heading > * {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding-left: 0 !important;
  padding-right: 0 !important;

  box-sizing: border-box !important;
  text-align: center !important;

  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.services > .shell > .section-head.centered h2,
.services .section-head.centered.gsv142-directions-heading h2,
.services .gsv142-directions-heading h2 {
  width: 100% !important;
  max-width: none !important;

  margin-top: 0 !important;
  margin-bottom: 20px !important;

  text-align: center !important;
  text-indent: 0 !important;
}

.services > .shell > .section-head.centered p,
.services .section-head.centered.gsv142-directions-heading p,
.services .gsv142-directions-heading p {
  width: 100% !important;
  max-width: 920px !important;

  margin-top: 0 !important;
  margin-bottom: 0 !important;

  text-align: center !important;
  text-indent: 0 !important;
}

/*
 * На мобильных сохраняем центрирование и аккуратные боковые поля.
 */
@media (max-width: 760px) {
  .services > .shell > .section-head.centered,
  .services .section-head.centered.gsv142-directions-heading,
  .services .gsv142-directions-heading {
    padding-left: 14px !important;
    padding-right: 14px !important;
    margin-bottom: 30px !important;
  }

  .services > .shell > .section-head.centered h2,
  .services .section-head.centered.gsv142-directions-heading h2,
  .services .gsv142-directions-heading h2 {
    margin-bottom: 14px !important;
  }

  .services > .shell > .section-head.centered p,
  .services .section-head.centered.gsv142-directions-heading p,
  .services .gsv142-directions-heading p {
    max-width: 620px !important;
  }
}
