/* Ритм главной: услуги → клиенты → блог → отзывы. */
body.sa-home-page{--home-section-heading-gap:54px}
body.sa-home-page .clients-mainstr .swiper-container{padding-bottom:0!important}
body.sa-home-page .clients-mainstr .clients-new.home-ledge{margin-bottom:var(--home-section-heading-gap)!important}
body.sa-home-page .clients-mainstr .clients-new-section.home-between{padding-top:var(--home-between)!important}
body.sa-home-page .blog-block-mainstr.isNewContent .services__text.home-ledge.home-between{padding-bottom:var(--home-section-heading-gap)!important}
body.sa-home-page .blog-block-mainstr .blog-block__swiper-container{padding-top:0!important}
body.sa-home-page .home-reviews-section .service-reviews__title{margin-bottom:var(--home-section-heading-gap)!important}
body.sa-home-page .home-reviews-section .service-reviews__slider{padding-top:0!important}
@media(max-width:1024px){body.sa-home-page{--home-section-heading-gap:40px}}
body.sa-home-page .services-unified .services-section{padding-bottom:0!important;margin-bottom:0!important}
@media(max-width:719px){body.sa-home-page .services-unified .services__context-slider{margin-bottom:-80px!important}}

/* Адаптив: высота относится к колонке, включая пару небольших карточек. */
@media (max-width: 1024px) {
  body.sa-home-page {
    --home-service-column-height: 500px;
  }

  body.sa-home-page .services-unified .services__context-slider .swiper-slide {
    height: var(--home-service-column-height) !important;
    min-height: 0;
  }

  body.sa-home-page .services-unified .services__slide {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 20px;
  }

  body.sa-home-page .services-unified .services__slide:has(> div + div) {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  body.sa-home-page .services-unified .services__slide > div {
    min-height: 0;
    height: 100%;
  }

  body.sa-home-page .services-unified .services__context-slider .services__card,
  body.sa-home-page .services-unified .services__context-slider .services__card-ccccc,
  body.sa-home-page .services-unified .services__context-slider .services__card-container,
  body.sa-home-page .services-unified .services__context-slider .services-box__last {
    height: 100% !important;
    min-height: 0;
    box-sizing: border-box;
  }

  /* Буфер свечения не должен добавляться к видимому промежутку между секциями. */
  body.sa-home-page .services-unified .services__context-slider {
    padding-top: 0 !important;
    padding-bottom: 40px !important;
    margin-top: 0 !important;
    margin-bottom: -40px !important;
  }

  body.sa-home-page .services-unified .services__context-wrapper {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    margin-top: -40px !important;
    margin-bottom: -40px !important;
  }

  body.sa-home-page .blog-block-mainstr .services__title {
    margin-bottom: 0 !important;
  }

  body.sa-home-page .blog-block-mainstr .services__description {
    margin-top: 13px !important;
  }
}

@media (max-width: 719px) {
  body.sa-home-page {
    --home-service-column-height: 490px;
    --home-between: 60px;
  }
}

/* Центрированная секция ограничена сеткой, но сама лента — шириной экрана. */
body.sa-home-page #sa-home-awards-mounted .swiper-container-clients-new[data-clients-strip="1"] {
  width: 100vw !important;
  width: 100dvw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50dvw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50dvw) !important;
}

/* Заголовок наград следует общей сетке, а не дополнительному узкому контейнеру. */
@media (min-width: 1577px) {
  body.sa-home-page .home-awards-block .awards {
    max-width: none;
    padding-left: var(--page-inline-start, var(--page-gutter-x, 78px));
    padding-right: var(--page-inline-end, var(--page-gutter-x, 78px));
  }
}
