/* ============================================================
   ГЛАВНАЯ СТРАНИЦА — 5 карточек направлений
   Оформление — как в wt2/main.php (коллаж, 2 карточки в ряду);
   5-я карточка — по центру отдельного ряда.
   26.08.2026
   ============================================================ */

/* 5-й фон карточки */
.main-container__bg.bg5 {
  -webkit-background-size: cover;
     -moz-background-size: cover;
      -o-background-size: cover;
         background-size: cover;
  background-image: url(../img/main11.png);
  background-repeat: no-repeat; }
  .main-container__bg.bg5 .main-container__description {
    padding-right: 4rem;
    margin-top: 10.1rem; }

/* 5-я карточка — отдельный ряд, по центру */
.main-container__item:nth-of-type(5) {
  position: relative;
  top: 9rem;
  margin-left: 25%; }

/* Секция не обрезается по высоте (5 карточек выше, чем 4) */
.main .second-container__wrapper {
  max-height: none; }

/* «Основные преимущества» — под карточками, без наложения на 5-ю */
.main .main-container__bottom {
  margin-top: 3rem; }
.main .main-bottom__list {
  margin-top: 0; }

/* Список услуг внутри белой карточки */
.main-services {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 1rem;
  padding: 0.4rem 0 0.6rem; }
.main-services__link {
  color: #0288fe;
  font-family: "Gotham Pro";
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  transition: color 0.2s; }
.main-services__link::before {
  content: '';
  display: block;
  width: 1rem;
  height: 0.2rem;
  background: #0288fe;
  margin-right: 0.9rem;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto; }
.main-services__link:hover {
  color: #100da9;
  text-decoration: underline; }
.main-services__link:hover::before {
  background: #100da9; }

/* Планшет ≤1023px — убрать смещение 5-й карточки */
@media screen and (max-width: 1023px) {
  .main-container__item:nth-of-type(5) {
    top: 0; } }

/* Мобильные ≤650px — 5-я карточка на всю ширину */
@media screen and (max-width: 650px) {
  .main-container__item:nth-of-type(5) {
    top: 0;
    margin-left: 0; } }

/* ============================================================
   Секция «ОТЛИЧНАЯ КОМАНДА» (27.08) — вёрстка как в wt2/about-company.php:
   ряд 1: [заголовок, сотрудник, сотрудник (синяя)]
   ряд 2: [текстовый блок, сотрудник, сотрудник]
   ряд 3: [сотрудник (синяя), сотрудник, сотрудник]
   ряд 4: [сотрудник, сотрудник, сотрудник (синяя)]
   1) Фото — строго в пределах карточки (без вылезающих краёв)
   2) Текстовый блок — полноценная ячейка (4-я позиция), без смещений
   ============================================================ */

/* 1. Фото: на всю ширину карточки, единая высота, аккуратная обрезка */
.team .command-container__img {
  width: 100%;
  left: 0;
  bottom: 0; }
  .team .command-container__img img {
    width: 100%;
    height: 30rem;
    display: block;
    -o-object-fit: cover;
       object-fit: cover;
    border-bottom-left-radius: 1.3rem;
    border-bottom-right-radius: 1.3rem; }

/* 3. Текстовый блок — обычная ячейка ряда, без центрального смещения */
.team .command-container__item.team-command__item2 {
  padding-top: 0; }
.team .command-container__item.team-command__center {
  margin-left: 0; }
  .team .command-container__item.team-command__center .team-command__box {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    padding: 5rem 4.5rem; }
    .team .command-container__item.team-command__center .team-command__box .team-command__img {
      margin-bottom: 4rem; }
    .team .command-container__item.team-command__center .team-command__box .team-command__text2 {
      padding-left: 0;
      padding-right: 0;
      line-height: 2.9rem; }

