/* Обзор услуг: Figma 3317:333. Закрепление через $.fn.stickyElement из main.js. */
.servicesOverviewLayout {
    background: #f5f5f8;
}

/* Исправление только для этого лендинга: фон крошек должен быть выше фонового изображения. */
body:has(.servicesOverviewPresentation) .breadcrumbs .breadcrumbs__background {
    z-index: 1;
}

.servicesOverviewNavigation {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #f5f5f8;
    border: 0;
    box-shadow: none;
}

.servicesOverviewNavigation__inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    min-height: 50px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.servicesOverviewNavigation__inner::-webkit-scrollbar {
    display: none;
}

.servicesOverviewNavigation__link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: flex-start;
    min-height: 50px;
    padding: 10px 0 16px;
    border: 0;
    color: #7f7f7f;
    font-family: "Exo 2", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s ease;
}

/* В макете подчёркнут только активный пункт; длинной нижней полосы нет. */
.servicesOverviewNavigation__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 2px;
    background: #2d408b;
    opacity: 0;
    pointer-events: none;
}

.servicesOverviewNavigation__link:hover,
.servicesOverviewNavigation__link:focus-visible,
.servicesOverviewNavigation__link.is-active {
    color: #2d408b;
    text-decoration: none;
}

.servicesOverviewNavigation__link.is-active::after {
    opacity: 1;
}

.servicesOverviewNavigation__link:focus-visible {
    outline: 2px solid #2d408b;
    outline-offset: -2px;
}

/* Якоря учитывают высоту закреплённой шапки плюс 50px навигации. */
.servicesOverview__item,
.servicesOverview {
    scroll-margin-top: calc(var(--services-overview-header-offset, 0px) + 70px);
}

.servicesOverviewLayout .servicesOverview {
    padding-top: 70px;
}

@media (max-width: 1199px) {
    .servicesOverviewNavigation__inner { justify-content: flex-start; }
}

@media (max-width: 767px) {
    .servicesOverviewNavigation__inner { gap: 24px; }
    .servicesOverviewNavigation__link { font-size: 15px; }
    .servicesOverviewLayout .servicesOverview { padding-top: 45px; }
}

@media (prefers-reduced-motion: no-preference) {
    .servicesOverviewLayout { scroll-behavior: smooth; }
}

/* Hero uses the shared presentationBlock layout and its MAIN_BACKGROUND property. */
.servicesOverviewPresentation {
    background-color: #2d408b;
}

.servicesOverview {
    background: #f5f5f8;
    padding-top: 70px;
    scroll-margin-top: calc(var(--services-overview-header-offset, 0px) + 70px);
}

.servicesOverview__heading {
    margin: 0 0 45px;
    color: #29292b;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
}

.servicesOverview__list {
    display: flex;
    flex-direction: column;
    gap: 54px;
}

.servicesOverview__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 55px;
    scroll-margin-top: calc(var(--services-overview-header-offset, 0px) + 70px);
}

.servicesOverview__item:nth-child(even) .servicesOverview__visual {
    order: -1;
}

.servicesOverview__content {
    min-width: 0;
}

.servicesOverview__title {
    font-size: 30px;
    line-height: 1.22;
    font-weight: 400;
    color: #29292b;
    margin: 0 0 10px;
}

.servicesOverview__description {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.35;
    color: #29292b;
}

.servicesOverview__features {
    list-style: none;
    margin: 0 0 17px;
    padding: 0;
}

.servicesOverview__feature {
    display: grid;
    grid-template-columns: 30px minmax(140px, .78fr) minmax(0, 1fr);
    align-items: center;
    gap: 9px 10px;
    min-height: 30px;
    margin: 0;
    padding: 2px 0;
}

.servicesOverview__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.servicesOverview__featureLabel {
    font-size: 15px;
    font-weight: 300;
    color: #29292b;
    line-height: 1.25;
}

.servicesOverview__featureValue {
    font-size: 15px;
    font-weight: 700;
    color: #2d408b;
    line-height: 1.25;
    border-left: 2px solid #abb3d1;
    padding-left: 10px;
}

.servicesOverview__visual img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 3px;
}

.servicesOverview__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    margin-top: 13px;
}

.servicesOverview__buttons .button {
    min-width: 173px;
}


@media (max-width: 1199px) {
    .servicesOverview__item { gap: 32px; }
    .servicesOverview__feature {
        grid-template-columns: 24px minmax(110px, .8fr) minmax(0, 1fr);
        column-gap: 6px;
    }
    .servicesOverview__icon { width: 22px; height: 22px; }
}

@media (max-width: 991px) {
    .servicesOverview__item { grid-template-columns: 1fr; gap: 24px; }
    .servicesOverview__item:nth-child(even) .servicesOverview__visual { order: initial; }
    .servicesOverview__visual img { height: auto; aspect-ratio: 611 / 300; }
    .servicesOverview__features .servicesOverview__feature { grid-template-columns: 30px minmax(160px, 1fr) minmax(0, 1.4fr); }
    .servicesOverviewPresentation .presentationBlockText,
    .servicesOverviewPresentation .presentationBlock__wrap { min-height: 530px; }
}

@media (max-width: 767px) {
    .servicesOverview { padding-top: 45px; }
    .servicesOverview__heading { font-size: 30px; margin-bottom: 30px; }
    .servicesOverview__title { font-size: 25px; }
    .servicesOverview__list { gap: 50px; }
    .servicesOverviewPresentation .presentationBlockText,
    .servicesOverviewPresentation .presentationBlock__wrap { min-height: 430px; }
    .servicesOverviewPresentation .presentationBlockText { padding: 80px 0 45px; }
    .servicesOverviewPresentation .presentationBlockText__header { font-size: 34px; }
    .servicesOverviewPresentation .presentationBlock__buttons { gap: 10px; }
    .servicesOverview__feature { grid-template-columns: 24px minmax(90px, .8fr) minmax(0, 1fr) !important; }
    .servicesOverview__icon { width: 22px; height: 22px; }
    .servicesOverview__featureLabel, .servicesOverview__featureValue { font-size: 13px; }
    .servicesOverview__buttons .button { flex: 1 1 135px; min-width: 0; }
}

/* После окончания списка услуг навигация скрывается, чтобы не перекрывать другие секции. */
.servicesOverviewNavigation.is-outside-overview {
    visibility: hidden;
    pointer-events: none;
}
