.case-card__media {
    position: relative;
}

.case-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    min-width: 171px;
    height: 46px;
    padding: 0 18px 0 28px;
    background: transparent url("../images/who-helped/badge-closed.svg") center / 100% 100% no-repeat;
    color: var(--color-white);
    font-size: var(--fs-body-sm);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.helped-hero {
    display: grid;
    grid-template-columns: minmax(0, 896px) minmax(280px, 472px);
    gap: 48px;
    align-items: start;
    margin-bottom: 80px;
}

.helped-hero__title {
    margin: 0;
    max-width: 896px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--fs-display);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--color-navy);
}

.helped-hero__lead {
    margin: 36px 0 0;
    max-width: 896px;
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 30px;
    color: var(--color-navy);
}

.helped-hero__link {
    margin-top: 40px;
}

.helped-hero__stats {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 8px;
}

.helped-hero__stars {
    position: relative;
    width: 100%;
    max-width: 472px;
    aspect-ratio: 472 / 357;
}

.helped-hero__stars-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.helped-hero__stars-img--mobile {
    display: none;
}

.helped-hero__count {
    position: absolute;
    left: 53.1%;
    top: 55.6%;
    margin: 0;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 80px;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-navy);
    white-space: nowrap;
}

.helped-hero__stats-label {
    margin: 12px 0 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--fs-subtitle);
    line-height: 45px;
    color: var(--color-navy);
}

.helped-hero__stats-sub {
    margin: 0;
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 30px;
    color: var(--color-navy);
}

.helped-reports {
    position: relative;
    z-index: 1;
    margin: 120px 0 0;
    padding: 56px 0 48px;
    overflow: hidden;
}

.helped-reports__bg {
    position: absolute;
    left: 50%;
    top: -40px;
    width: 1926px;
    height: 633px;
    transform: translateX(-50%) rotate(180deg);
    background: linear-gradient(180deg, rgba(215, 239, 242, 0.95) 0%, rgba(215, 239, 242, 0.35) 55%, rgba(215, 239, 242, 0) 100%);
    border-radius: 50% 50% 0 0 / 28% 28% 0 0;
    pointer-events: none;
    z-index: 0;
}

.helped-reports__spark {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.helped-reports__spark--1 {
    left: calc(50% - 445px);
    top: 311px;
    width: 80px;
    height: 80px;
}

.helped-reports__spark--2 {
    left: calc(50% - 198px);
    top: 48px;
    width: 60px;
    height: 60px;
}

.helped-reports__inner {
    position: relative;
    z-index: 1;
    width: var(--container);
    max-width: 1616px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 494px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.helped-reports__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fs-display);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    color: var(--color-navy);
}

.helped-reports__lead {
    margin: 36px 0 0;
    font-family: var(--font-display);
    font-size: var(--fs-subtitle);
    font-weight: 500;
    line-height: 45px;
    color: var(--color-navy);
}

.helped-reports__text {
    margin: 24px 0 40px;
    max-width: 494px;
    font-size: var(--fs-body);
    line-height: 30px;
    color: var(--color-navy);
}

.helped-reports__rail-wrap {
    min-width: 0;
    padding-top: 66px;
}

.helped-reports__controls {
    display: flex;
    justify-content: flex-end;
    gap: 32px;
    margin-top: 32px;
}

.helped-reports__arrow {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.helped-reports__arrow:hover {
    background: var(--color-yellow);
    opacity: 1;
}

.helped-reports__arrow:hover img {
    filter: brightness(0);
}

.helped-reports__arrow--prev {
    opacity: 0.5;
}

.helped-reports__arrow--prev img {
    transform: scaleY(-1) rotate(180deg);
}

.helped-reports__arrow img {
    width: 40px;
    height: 30px;
    transition: filter 0.25s var(--ease);
}

.whom-page--helped .whom-wrap--bottom {
    margin-top: 60px;
}

@media (max-width: 1400px) {
    .helped-hero {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
        gap: 32px;
    }

    .helped-hero__title {
        font-size: var(--fs-display);
    }

    .helped-hero__count {
        font-size: clamp(48px, 4.17vw, 80px);
    }

    .helped-hero__stats-label {
        font-size: var(--fs-subtitle);
        line-height: 1.3;
    }

    .helped-reports__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .helped-reports__rail-wrap {
        padding-top: 0;
    }

    .helped-reports__spark--1,
    .helped-reports__spark--2 {
        display: none;
    }
}

@media (max-width: 1023px) {
    .case-card__badge {
        min-width: 118px;
        height: 32px;
        padding: 0 10px 0 16px;
        font-size: 12px;
    }

    .helped-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-bottom: 28px;
        text-align: center;
    }

    .helped-hero__title {
        max-width: 390px;
        margin: 0 auto;
        font-size: 32px;
        line-height: 1.38;
    }

    .helped-hero__lead {
        max-width: 386px;
        margin: 16px auto 0;
        font-size: 16px;
        line-height: 22px;
        text-align: left;
    }

    .helped-hero__link {
        display: inline-flex;
        margin: 40px auto 0;
    }

    .helped-hero__stats {
        order: 2;
        margin-top: 5px;
        padding-top: 0;
    }

    .helped-hero__copy {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .helped-hero__stars {
        max-width: 430px;
        aspect-ratio: 430 / 344;
    }

    .helped-hero__stars-img--desktop {
        display: none;
    }

    .helped-hero__stars-img--mobile {
        display: block;
    }

    .helped-hero__count {
        left: 53.1%;
        top: 55.6%;
        font-size: 70px;
        line-height: 1;
    }

    .helped-hero__stats-label {
        margin-top: 8px;
        font-size: 24px;
        line-height: 1.2;
    }

    .helped-hero__stats-sub {
        font-size: 20px;
        line-height: 1.2;
    }

    .helped-reports {
        margin: 40px 0 0;
        padding: 85px 0 24px;
    }

    .helped-reports__bg {
        top: 0;
        width: 140%;
        height: 100%;
        border-radius: 0;
        transform: translateX(-50%);
        background: linear-gradient(180deg, rgba(215, 239, 242, 0.9) 0%, rgba(242, 242, 242, 0.15) 100%);
    }

    .helped-reports__inner {
        gap: 24px;
        text-align: left;
    }

    .helped-reports__title {
        font-size: 32px;
        line-height: 1.38;
        text-align: center;
    }

    .helped-reports__lead {
        margin-top: 16px;
        font-size: 24px;
        line-height: 1.2;
        text-align: left;
    }

    .helped-reports__text {
        margin: 10px 0 28px;
        max-width: none;
        font-size: 16px;
        line-height: 22px;
        text-align: left;
    }

    .helped-reports__copy .star-link {
        margin-left: auto;
        margin-right: auto;
    }

    .helped-reports__rail-wrap {
        padding-top: 8px;
    }

    .helped-reports__controls {
        display: none;
    }

    .whom-page--helped .report-rail {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-columns: unset;
        gap: 12px;
        overflow: visible;
    }

    .whom-page--helped .report-card {
        width: 100%;
        height: 272px;
    }

    .whom-page--helped .report-card__avatar {
        width: 140px;
        height: 140px;
        margin-top: 20px;
        padding: 6px;
    }

    .whom-page--helped .report-card__date {
        width: auto;
        margin-top: 10px;
        padding: 0 8px;
    }

    .whom-page--helped .report-card__range {
        font-size: 20px;
    }

    .whom-page--helped .report-card__month {
        font-size: 14px;
    }

    .whom-page--helped .whom-wrap--bottom {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .helped-hero__title {
        font-size: 28px;
    }

    .helped-hero__count {
        font-size: 56px;
    }

    .helped-hero__stats-label {
        font-size: 20px;
    }

    .helped-hero__stats-sub {
        font-size: 16px;
        max-width: 280px;
    }
}
