.stories-item.swiper-slide {
    background: var(--white);
    border-radius: 10px;
    padding: 8px 8px 30px;
    display: flex;
    flex-direction: column;
    row-gap: 16px;
    align-items: flex-start;
    position: relative;
    justify-content: space-between;
    height: auto;
}
.section-stories-wards .swiper {
    text-align: left;
}
.section-stories-wards>.container {
    max-width: 1400px;
    padding: 0 58px;
    text-align: center;
    position: relative;
}
.stories-item>a {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.stories-item .billet {
    position: absolute;
    left: 20px;
    top: 20px;
}

.stories__img {
    width: 100%;
}

.stories__img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;
}

.stories__title {
    font-size: var(--size18);
    line-height: var(--size20);
    padding: 0 22px;
    flex: 1 1 auto;
}

.stories__date {
    font-size: var(--size14);
    line-height: var(--size15);
    color: var(--gray-font-60);
    padding: 0 22px;
}

.section-stories-wards.section-page {
    background: #F4F4F4;
    padding-top: 0;
    position: relative;
    padding-bottom: 120px;
}
.section-stories__svg-top {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}
.section-stories__svg-bottom {
    top: auto;
    left: -20px;
    position: absolute;
    bottom: -230px;
    translate: 0;
    z-index: 3;
}
.section-stories-wards .section-setting-vector__cloud.top {
    position: static;
    width: 100%;
    height: 100%;
}
.section-stories-wards .section-setting-vector__cloud.bottom>span {
    padding-right: 0;
    padding-top: 16px;
    padding-left: 41px;
}
.section-stories-wards .section-setting-vector__cloud.bottom {
    left: calc(50% - 15.9rem);
    bottom: -5.2rem;
    top: auto
}
.section-stories-wards .section-setting-vector__cloud>span {
    padding-right: 0;
    padding-top: 17px;
    padding-left: 24px;
}
.section-stories-wards h2 {
    margin-bottom: 53px;
    margin-top: -20px;
}
.section-stories-wards .section-slogan__text>div {
    max-width: 516px;
}
.section-stories-wards .section-slogan__text {
    margin-bottom: 47px;
}
.section-stories-wards>.container>a.btn {
    margin: 40px 0 0;
    padding: 0 46px;
}
.stories-button-prev.swiper-btn-prev,
.stories-button-next.swiper-btn-next {
    left: -58px;
    top: 50%;
    translate: 0 -50%;
    position: absolute;
    z-index: 1;
}
.section-stories__svg-top foreignObject {
    height: 144px;
    width: 254px;
}

.stories-button-next.swiper-btn-next {
    left: auto;
    right: -58px;
}
.section-stories__svg-bottom foreignObject {
    height: 144px;
    width: 254px;
}
.section-stories__svg-bottom foreignObject .section-setting-vector__cloud {
    position: static;
    width: 100%;
    height: 100%;
}
.section-stories-wards .swiper-block {
    z-index: 4;
}

@media (max-width: 1420px) {
    .section-stories-wards>.container {
        max-width: 1420px;
        padding: 0 var(--66-50);
    }
    .stories-button-prev.swiper-btn-prev {
        left: -54px;
    }
    .stories-button-next.swiper-btn-next {
        right: -54px;
    }
    .section-stories__svg-bottom {
        left: 0;
    }
}
@media (max-width: 1400px) {
    .section-stories-wards foreignObject .section-setting-vector__cloud.bottom>span {
        padding-right: 22px;
        padding-top: 15px;
        padding-left: 0;
    }
    .section-stories-wards .section-setting-vector__cloud>span {
        padding-top: 17px;
        padding-right: 13px;
        max-width: 100%;
        display: block;
        padding-left: 0;
    }
    .section-stories__svg-top {
        margin-top: var(--1-20);
    }
    .section-stories__svg-top foreignObject {
        height: var(--144-168);
        width: var(--254-287);
    }
    .section-stories-wards .section-setting-vector__cloud.top {
        font-size: var(--26-28);
    }
    .section-stories-wards h2 {
        margin-top: var(--20-50);
        margin-bottom: var(--53-30);
    }
    .section-stories-wards .section-slogan__text>div {
        max-width: var(--516-415);
    }
    .section-stories-wards .section-slogan__text {
        margin-bottom: var(--47-30);
    }
    .stories-button-prev.swiper-btn-prev {
        left: -40px;
    }
    .stories-button-next.swiper-btn-next {
        right: -40px;
    }
    .stories-item.swiper-slide {
        padding: 4px 4px 20px;
        row-gap: 14px;
    }
    .stories__title {
        padding: 0 16px;
    }
    .stories__img img,
    .stories__img {
        height: var(--240-170);
    }
    .section-stories-wards>.container>a.btn {
        margin-top: var(--40-30);
    }
    .stories-item .billet {
        left: 10px;
        top: 10px;
    }
    .section-stories__svg-bottom {
        width: var(--680-450);
    }
    .section-stories__svg-bottom foreignObject {
        height: 193px;
        width: 328px;
        x: 369px;
        y: 271px;
    }
    .section-stories-wards .section-setting-vector__cloud.bottom {
        font-size: 32px;
    }
    .section-stories-wards.section-page {
        padding-bottom: var(--120-71);
    }
}

@media (max-width:991px) {
    .section-stories-wards.section-page {
        overflow: hidden;
        padding-bottom: 48px;
    }
    .section-stories__svg-top,
    .section-stories__svg-top-mob,
    .section-stories__svg-bottom,
    .section-stories__svg-bottom.d-none.m-none {
        display: none !important;
    }
    .section-stories__svg-top {
        width: 991px;
        max-width: none;
    }
    .section-stories-wards .section-setting-vector__cloud.top,
    .section-stories-wards .section-setting-vector__cloud.bottom {
        translate: none;
    }
    .section-stories__svg-top foreignObject {
        y: 124px;
        x: 32px;
    }
    .section-stories__svg-top {
        margin-top: -55px;
    }
    .section-stories-wards h2 {
        margin-top: -40px;
        margin-bottom: 30px;
    }
    .stories__title {
        font-size: var(--size16);
        line-height: var(--size18);
    }
    .stories__date {
        font-size: var(--size12);
        line-height: var(--size13);
        padding: 6px 16px 0;
    }
    .section-stories-wards>.container {
        padding: 0 78px;
    }
    .section-stories-wards>.container>a.btn {
        margin-top: 30px;
    }
    .section-stories__svg-bottom {
        width: 440px;
        bottom: -215px;
    }
    .section-stories__svg-bottom foreignObject {
        height: 153px;
        width: 264px;
        x: 357px;
        y: 300px;
    }
    .section-stories-wards .section-setting-vector__cloud.bottom {
        font-size: var(--size26);
    }
}

@media (max-width:760px) {
    .section-stories-wards.section-page {
        padding-bottom: 48px;
    }
}
@media (min-width: 756px) {
    .section-stories__svg-top-mob {
        display: none;
    }
}
@media (max-width: 755px) {
    .section-stories__svg-top,
    .section-stories__svg-top-mob,
    .section-stories__svg-bottom,
    .section-stories__svg-bottom.d-none.m-none {
        display: none !important;
    }
    .section-stories-wards h2 {
        margin-top: 0;
        padding-right: 20px;
    }
    .section-stories-wards .section-slogan__text {
        padding-right: 20px;
    }
    .section-stories-wards .section-slogan__text>div {
        max-width: 317px;
    }
    .stories-button-prev.swiper-btn-prev,
    .stories-button-next.swiper-btn-next {
        display: none;
    }
    .section-stories-wards>.container {
        padding: 0 0 0 20px;
    }
}
@media (max-width:450px) {
    .section-stories__svg-bottom,
    .section-stories__svg-bottom.d-none.m-none {
        display: none !important;
    }
}

/* Истории подопечных по макету Draft (Copy), фрейм 2005:61, y 6285–7086.
   Только десктоп от 1401px. */
@media (min-width: 1401px) {
    .section-stories-wards.section-page {
        background: #fff;
        /* Макет: 133px от карточки «Вы можете помочь» до заголовка, 128px от кнопки до следующего заголовка (его даёт padding следующего блока). */
        padding-top: 133px;
        padding-bottom: 0;
    }

    .section-stories__svg-top,
    .section-stories__svg-top-mob,
    .section-stories__svg-bottom,
    .section-stories__svg-bottom.d-none.m-none {
        display: none !important;
    }

    .section-stories-wards > .container {
        max-width: 1440px;
        padding: 0 10px;
    }

    .section-stories-wards h2 {
        margin: 0 0 43px;
        color: #4D4D4D;
        font-size: 66px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: -1.32px;
    }

    .section-stories-wards h2 span {
        color: #3EA74F;
    }

    .section-stories-wards .section-slogan__text {
        margin: 0 0 66px;
        color: #4D4D4D;
        font-size: 28px;
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: -0.56px;
    }

    .section-stories-wards .section-slogan__text > div {
        max-width: 725px;
    }

    .section-stories-wards .section-slogan__text span,
    .section-stories-wards .section-slogan__text span:nth-of-type(2) {
        display: block;
        text-align: center;
        color: #4D4D4D;
    }

    .section-stories-wards .swiper-block {
        margin: 0 50px;
        overflow: visible;
    }

    .section-stories-wards .swiper {
        /* иначе overflow:hidden у Swiper режет box-shadow сверху и по бокам */
        overflow: visible;
    }

    .stories-item.swiper-slide {
        height: 436px;
        padding: 12px 14px 25px;
        border-radius: 20px;
        row-gap: 0;
        background: #fff;
        box-shadow: 0 6px 44px 0 rgba(62, 167, 79, 0.14);
    }

    .stories-item .billet {
        display: none;
    }

    .stories__img img {
        height: 270px;
        border-radius: 12px;
    }

    .stories__title {
        flex: 0 0 auto;
        margin-top: 29px;
        padding: 0;
        color: #4D4D4D;
        font-size: 22px;
        font-weight: 500;
        line-height: 1.1;
        letter-spacing: -0.22px;
    }

    .stories__date {
        margin-top: auto;
        padding: 0;
        color: rgba(77, 77, 77, 0.5);
        font-size: 16px;
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: -0.16px;
    }

    .section-stories-wards .stories-button-prev.swiper-btn-prev,
    .section-stories-wards .stories-button-next.swiper-btn-next {
        top: 50%;
        bottom: auto;
        width: 45px;
        height: 26px;
        margin: 0;
        padding: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='45' height='26' viewBox='0 0 45 26' fill='none'%3E%3Cpath d='M24.4 0.755108C24.7955 0.0542989 25.7068 -0.205287 26.4346 0.175365C31.2169 2.67793 33.2038 3.5549 34.9659 4.3718C36.7821 5.21378 38.3408 5.98443 42.192 8.24239C43.1588 8.80925 43.929 9.42833 44.4186 10.1424C44.9431 10.9076 45.1201 11.7514 44.9195 12.5954C44.7352 13.3713 44.2658 14.0045 43.7989 14.494C43.3237 14.9923 42.7475 15.448 42.1964 15.8538L42.1774 15.8679L42.1568 15.882C36.2991 19.9132 33.2423 21.8632 27.4717 25.7405C26.7925 26.1964 25.8583 26.036 25.3843 25.3822C24.9103 24.728 25.077 23.8272 25.7564 23.3707C31.5726 19.4628 34.5593 17.557 40.3902 13.5447C40.5337 13.4388 40.6691 13.3366 40.796 13.2372C25.1433 13.7008 17.3571 13.4826 1.5 13.4826C0.671661 13.4826 0.000139915 12.8358 0 12.0382C0 11.2405 0.671575 10.5938 1.5 10.5938C17.1852 10.5938 24.8963 10.8058 40.046 10.3695C36.6917 8.41671 35.2871 7.72625 33.6651 6.97429C31.8972 6.1547 29.8533 5.25305 25.002 2.71438C24.2743 2.33348 24.0046 1.45595 24.4 0.755108Z' fill='%233EA74F'/%3E%3C/svg%3E") center / 45px 26px no-repeat;
        translate: 0 -50%;
        z-index: 5;
    }

    .section-stories-wards .stories-button-next.swiper-btn-next {
        left: auto;
        right: -56px;
    }

    .section-stories-wards .stories-button-prev.swiper-btn-prev {
        left: -56px;
        right: auto;
        scale: -1 1;
    }

    .section-stories-wards .stories-button-prev.swiper-button-disabled,
    .section-stories-wards .stories-button-next.swiper-button-disabled {
        display: none;
    }

    .section-stories-wards > .container > a.btn {
        width: 260px;
        height: 50px;
        margin: 48px auto 0;
        padding: 0 20px;
        border-radius: 25px;
        background: #3EA74F;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: -0.36px;
    }
}