/* v1.3.27 — основной текст новой главной не является SEO-спойлером.
 * Родительский app.js содержит legacy-обработчик .seo-block/.seo-text,
 * поэтому новая главная использует собственные классы и всегда показывает контент. */
.main-test-page .main-test-copy,
.main-test-page .main-test-copy__content {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.main-test-page .main-test-copy__content::before {
  display: none !important;
  content: none !important;
}


/*
 * v1.3.25 — /main-test/ не должен зависеть от SAL родительской темы.
 * В родительском app.css любой [data-sal|="fade"] получает opacity:0 до
 * присвоения класса .sal-animate. При сбое/задержке SAL это скрывало основной
 * контент после полной загрузки страницы. На тестовой главной все секции
 * всегда остаются видимыми; анимации SAL здесь сознательно отключены.
 */
.main-test-page [data-sal],
.main-test-page [data-sal|="fade"],
.main-test-page [data-sal].sal-animate {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  -webkit-transform: none !important;
  transition-delay: 0s !important;
}

.main-test-content-section,
.main-test-content-section__container,
.main-test-projects,
.main-test-projects__container {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Новая главная. ВАЖНО: не скрываем overflow у <main>.
 * Родительская тема использует flex-layout для body, поэтому main может иметь
 * вычисленную высоту viewport. overflow:hidden в таком случае обрезает весь
 * контент ниже первого экрана после полной загрузки CSS. */
.main-test-page {
  overflow: visible !important;
}


/* Hero новой главной: убираем серый зазор между видео и преимуществами.
 * Нижний padding секции снят в шаблоне, а видео заполняет всю фактическую
 * высоту Hero без старого ограничения max-height: 660px. */
.main-test-hero {
  overflow: hidden;
  background: #0a2f63;
}

/* Убираем декоративный водяной знак на Hero */
.main-test-hero .one-block__overlay::after {
  display: none !important;
  content: none !important;
}

.main-test-hero .one-block__overlay video {
  max-height: none !important;
}

/* Hero новой главной использует исходную верстку текущей главной.
 * Здесь стилизуются только два добавленных текстовых блока. */
.main-test-hero__lead,
.main-test-hero__sublead {
  color: #fff;
  max-width: 800px;
}

/* Преимущества */
.main-test-advantages {
  background: #f4f7fb;
  padding: 44px 0 46px;
}

.main-test-advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(125px, .75fr)) minmax(215px, 1.1fr) minmax(250px, 1.25fr);
  align-items: center;
  gap: 0;
}

.main-test-advantages__stat,
.main-test-advantages__approach {
  min-height: 116px;
  padding: 4px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #dfe5ed;
}

.main-test-advantages__stat:first-child {
  padding-left: 0;
}

.main-test-advantages__value {
  color: #063a7c;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 13px;
  white-space: nowrap;
}

.main-test-advantages__value span {
  font-size: .45em;
  font-weight: 600;
  vertical-align: .22em;
  margin-right: 5px;
}

.main-test-advantages__stat p,
.main-test-advantages__approach p {
  margin: 0;
  color: #151d29;
  font-size: 13px;
  line-height: 1.45;
}

.main-test-advantages__approach {
  border-right: none;
  padding-left: 34px;
  padding-right: 18px;
}

.main-test-advantages__approach-title {
  font-weight: 700;
  margin-bottom: 18px !important;
}

.main-test-advantages__approach-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
}

.main-test-advantages__approach-link {
  color: inherit;
  text-decoration: none;
}

.main-test-advantages__approach-link span {
  color: #063a7c;
  font-size: 28px;
  line-height: 1;
  transition: transform .25s ease;
}

.main-test-advantages__approach-link:hover span {
  transform: translateX(8px);
}

.main-test-advantages__media {
  margin: 0;
  height: 165px;
  border-radius: 18px;
  background: #eaf0f6;
  overflow: hidden;
}

.main-test-advantages__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* Наши заказчики */
.main-test-customers {
  background: #f5f7fa;
  padding: 50px 0 54px;
}

.main-test-customers__title {
  margin: 0 0 28px;
  color: #111827;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.12;
}

.main-test-customers__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-top: 1px solid #dfe4ea;
}

.main-test-customers__logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  min-width: 0;
}

.main-test-customers__logo {
  min-width: 0;
  min-height: 92px;
  margin: 0;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-test-customers__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 118px;
  max-height: 46px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .2s ease, opacity .2s ease;
}

.main-test-customers__logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.main-test-customers__all {
  min-width: 154px;
  padding: 0 4px 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: #173d6d;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.main-test-customers__all:hover {
  color: #1f355f;
}

.main-test-customers__arrow {
  font-size: 25px;
  font-weight: 400;
  transform: translateY(-1px);
}

/* Команда */
.main-test-team {
  position: relative;
  padding: 46px 0 60px;
  background-color: #1f355f;
  overflow: hidden;
}

/* Фон полностью наследуем от стандартной секции .bottom-form__home родительской темы. */
.main-test-team::before,
.main-test-team::after {
  content: none;
  display: none;
}

.main-test-team .container {
  position: relative;
  z-index: 1;
}

.main-test-team__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.main-test-team__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.main-test-team__more {
  color: #fff;
  text-decoration: none;
  font-size: 44px;
  line-height: 1;
  transition: transform .2s ease, opacity .2s ease;
}

.main-test-team__more:hover {
  color: #fff;
  transform: translateX(6px);
  opacity: .8;
}

.main-test-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  justify-items: center;
  gap: 24px;
}

.main-test-team-card {
  width: 100%;
  max-width: 280px;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 25, 70, .18);
}

.main-test-team-card__media {
  height: 270px;
  margin: 0;
  background: #e8edf3;
  overflow: hidden;
}

.main-test-team-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.main-test-team-card__body {
  min-height: 92px;
  padding: 18px 18px 17px;
}

.main-test-team-card__body h3 {
  margin: 0 0 7px;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.main-test-team-card__body p {
  margin: 0;
  color: #5f6876;
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 1199px) {
  .main-test-advantages__grid {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 28px;
  }

  .main-test-advantages__approach {
    grid-column: span 2;
    border-top: 1px solid #dfe5ed;
    border-right: 1px solid #dfe5ed;
    padding-left: 0;
    min-height: 140px;
  }

  .main-test-advantages__media {
    grid-column: span 2;
    height: 180px;
  }
}


@media (max-width: 991px) {
  .main-test-customers__row {
    grid-template-columns: 1fr;
  }

  .main-test-customers__logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-test-customers__all {
    min-height: 62px;
    padding: 0;
    justify-content: flex-start;
    border-top: 1px solid #dfe4ea;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .main-test-team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .main-test-team-card {
    max-width: none;
  }

  .main-test-team-card__media {
    height: 225px;
  }
}

@media (max-width: 767px) {

  .main-test-customers {
    padding: 38px 0 42px;
  }

  .main-test-customers__title {
    margin-bottom: 22px;
  }

  .main-test-customers__logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-test-customers__logo {
    min-height: 82px;
    padding: 18px 12px;
  }

  .main-test-customers__logo img {
    max-width: 105px;
    max-height: 42px;
  }
  .main-test-hero__lead {
    margin-bottom: 12px;
  }

  .main-test-hero__sublead {
    margin-bottom: 42px;
  }

  .main-test-advantages {
    padding: 36px 0;
  }

  .main-test-advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .main-test-advantages__stat {
    min-height: 130px;
    padding: 20px 16px;
    border-bottom: 1px solid #dfe5ed;
  }

  .main-test-advantages__stat:nth-child(odd) {
    padding-left: 0;
  }

  .main-test-advantages__stat:nth-child(even) {
    border-right: 0;
  }

  .main-test-advantages__approach,
  .main-test-advantages__media {
    grid-column: 1 / -1;
  }

  .main-test-advantages__approach {
    border-right: 0;
    padding: 24px 0;
    min-height: auto;
  }

  .main-test-advantages__media {
    height: 210px;
  }

  .main-test-team {
    padding: 38px 0 46px;
  }

  .main-test-team__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .main-test-team-card {
    max-width: 320px;
  }

  .main-test-team-card__media {
    height: 300px;
  }
}

@media (max-width: 479px) {
  .main-test-advantages__grid {
    grid-template-columns: 1fr;
  }

  .main-test-advantages__stat,
  .main-test-advantages__stat:nth-child(odd) {
    padding: 20px 0;
    border-right: 0;
  }

  .main-test-advantages__approach,
  .main-test-advantages__media {
    grid-column: auto;
  }
}

/* =========================
   Команда на новой главной
   Использует родительский uslugi-sotudniki.php
   ========================= */

.main-test-team .main-test-team__carousel {
  position: relative;
}

/* Убираем внешнюю секцию и контейнер родительского блока */
.main-test-team .main-test-team__carousel > section {
  padding: 0;
}

.main-test-team .main-test-team__carousel > section > .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Заголовок "Наши сотрудники" из родительского partial здесь не нужен */
.main-test-team .main-test-team__carousel > section h2 {
  display: none;
}

/* Сетка родительской темы превращается в горизонтальную ленту */
.main-test-team #gallery-uslugi1.gal-uslugi {
  display: flex !important;
  gap: 16px;

  width: 100%;
  margin: 24px 0 0;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;

  -webkit-overflow-scrolling: touch;
}

.main-test-team #gallery-uslugi1.gal-uslugi::-webkit-scrollbar {
  display: none;
}

/* 5 сотрудников одновременно */
.main-test-team #gallery-uslugi1.gal-uslugi .gallery-item {
  flex: 0 0 calc((100% - 64px) / 5);
  min-width: 0;
  scroll-snap-align: start;
}

/* Навигация */
.main-test-team__nav {
  position: absolute;
  top: 50%;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  background: #fff;
  color: #1f355f;

  font-size: 28px;
  line-height: 1;

  transform: translateY(-50%);
  cursor: pointer;
}

.main-test-team__nav--prev {
  left: -21px;
}

.main-test-team__nav--next {
  right: -21px;
}

@media (max-width: 1199px) {
  .main-test-team #gallery-uslugi1.gal-uslugi .gallery-item {
    flex-basis: calc((100% - 48px) / 4);
  }
}

@media (max-width: 991px) {
  .main-test-team #gallery-uslugi1.gal-uslugi .gallery-item {
    flex-basis: calc((100% - 32px) / 3);
  }
}

@media (max-width: 767px) {
  .main-test-team #gallery-uslugi1.gal-uslugi .gallery-item {
    flex-basis: 72%;
  }

  /*
   * На мобильном листаем пальцем.
   * Кнопки там только мешают.
   */
  .main-test-team__nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .main-test-team #gallery-uslugi1.gal-uslugi .gallery-item {
    flex-basis: 84%;
  }
}
.main-test-customers__carousel {
  position: relative;
  min-width: 0;
}

.main-test-customers__logos {
  display: flex;
  gap: 0;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.main-test-customers__logos::-webkit-scrollbar {
  display: none;
}

.main-test-customers__logo {
  flex: 0 0 25%;
  min-width: 0;
  min-height: 92px;
  margin: 0;
  padding: 22px 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  scroll-snap-align: start;
}

.main-test-customers__nav {
  position: absolute;
  top: 50%;
  z-index: 5;

  width: 38px;
  height: 38px;
  padding: 0;

  border: 1px solid #dfe4ea;
  border-radius: 50%;

  background: #fff;
  color: #173d6d;

  font-size: 26px;
  line-height: 1;

  cursor: pointer;
  transform: translateY(-50%);
}

.main-test-customers__nav--prev {
  left: -19px;
}

.main-test-customers__nav--next {
  right: -19px;
}
/* =========================
   Hero — типографика Manrope
   ========================= */

.main-test-hero {
  font-family: 'Manrope', sans-serif;
}

.main-test-hero h1 {
  max-width: 900px;

  font-family: 'Manrope', sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;

  margin: 0;
}

.main-test-hero__lead {
  max-width: 620px;

  font-family: 'Manrope', sans-serif;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 700;
  line-height: 1.3;

  margin-bottom: 12px;
}

.main-test-hero__sublead {
  max-width: 620px;

  font-family: 'Manrope', sans-serif;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 400;
  line-height: 1.45;

  opacity: 0.9;
  margin-bottom: 32px;
}

.main-test-hero a,
.main-test-hero button {
  font-family: 'Manrope', sans-serif;
}