.ma-main-points {
    display: flex;
    gap: 20px;
    position: relative;
    top: -200px;
    z-index: 1;
    justify-content: center;
}

/* Список карточек (доступность: ul/li) */
.ma-main-points-list,
.ms-container-flip .swiper-wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ma-main-points-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.ms-flip-top-negative {
    margin-top: -120px;
}

/* Заголовки карточек (доступность: семантический h3) */
.ms-container-flip .ms-title,
.ms-container-flip h3.ms-title {
    margin: 0;
    /* font-size: inherit;
    font-weight: inherit;
    line-height: inherit; */
}

.swiper-slide .ma-main-points-card {
    display: flex;
    width: auto;
    max-width: 100%;
    height: 100%;
    flex: 1;
}

.ma-main-points-card {
    width: 100%;
    text-align: center;
    max-width: 250px;
}

.ma-main-points-card .ma-flip-wrapper {
    border-radius: 22px;
    height: 100%;
}

.ma-main-points-card .ma-flip-front,
.ma-main-points-card .ma-flip-back {
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: start;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 25px 20px 20px;
    border-radius: 22px;
    box-sizing: border-box;
}


.ma-main-points-card .ma-flip-front {
    background: #fff;
}

.ma-main-points-card .ma-flip-back {
    background: var(--ms-primary);
}

.ma-main-points-card-svg {
    max-width: 125px;
    flex-shrink: 0;
}

.ma-main-fast-nav {
    position: relative;
}

.ma-main-fast-nav-back {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
}

.ma-main-fast-nav > div {
    position: relative;
    z-index: 1;
}

.ms-section:has( .ma-main-points ) {
    overflow: visible;
    overflow-x: clip;
}

.ma-main-points .swiper {
    max-width: 100%;
    overflow: visible;
}

.ma-main-points .swiper-wrapper {
    align-items: stretch;
    margin: 0;

}

.ma-main-points .swiper-slide {
    height: auto;
    display: flex;
}

/* Контейнер для иконок (аналогично ms-staff-img-container) */
.ms-flip-icon-container {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Статичная иконка (фон) */
.ma-static-icon {
    position: absolute;
    width: 110%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.ms-dynamic-icon-wrapper {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    background-color: white;
    z-index: 2;
}

/* Динамические иконки поверх статичных */
.ms-flip-icon-container svg:not(.ma-static-icon) {
    position: absolute;
    max-width: 60px;
    max-height: 60px;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Стили для fill-иконок (заливка) на лицевой стороне */
.ma-flip-front .ms-dynamic-icon-wrapper svg[data-icon-type="fill"] path {
    stroke: var(--ms-primary);
    fill: var(--ms-primary);
    stroke-width: 0;
}

/* Стили для stroke-иконок (контур) на лицевой стороне */
.ma-flip-front .ms-dynamic-icon-wrapper svg[data-icon-type="stroke"] path {
    stroke: var(--ms-primary);
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Универсальный стиль для всех иконок на лицевой стороне (fallback) */
.ma-flip-front .ms-dynamic-icon-wrapper path {
    stroke: var(--ms-primary);
    fill: var(--ms-primary);
    stroke-width: 0;
}

/* Стили для fill-иконок (заливка) на обратной стороне */
.ma-flip-back .ms-dynamic-icon-wrapper svg[data-icon-type="fill"] path {
    stroke: white;
    fill: white;
    opacity: 0.8;
    stroke-width: 0;
}

/* Стили для stroke-иконок (контур) на обратной стороне */
.ma-flip-back .ms-dynamic-icon-wrapper svg[data-icon-type="stroke"] path {
    stroke: white;
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.8;
}

/* Универсальный стиль для всех иконок на обратной стороне (fallback) */
.ma-flip-back .ms-dynamic-icon-wrapper path {
    stroke: white;
    fill: white;
    opacity: 0.8;
    stroke-width: 0;
}

.ma-flip-back .ms-dynamic-icon-wrapper {
    background-color: var(--ms-primary);
}

.ms-flip-back-title {
    color: white;
    font-weight: 500;
    font-size: 16px;
}


@media only screen and (max-width: 921px) {
    .ma-main-points-card-svg {
        max-width: 60px;
    }

    .ma-main-points-card .ma-flip-front,
    .ma-main-points-card .ma-flip-back {
        padding: 15px 10px;
    }

    .ms-flip-icon-container {
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .ms-flip-icon-container svg:not(.ma-static-icon) {
        max-width: 30px;
        max-height: 30px;
        width: 30px;
        height: 30px;
    }

    .ma-main-points {
        column-gap: 10px;
    }

    .ms-flip-top-negative {
        margin-top: -80px;
    }

    .ms-container-flip .ms-title.ms-title-small {
        font-size: 14px;
    }
}


@media (width < 768px) {
    .ma-main-points {
        max-width: 75%;
        margin: 0 auto;
    }
}