.credifas-goals {
    --credifas-goals-accent: #5c51d1;
    --credifas-goals-overlap: 106px;
    overflow: clip;
    background: #fff;
    color: #000;
    font-family: "Open Sans", "Lato", sans-serif;
}

.credifas-goals *,
.credifas-goals *::before,
.credifas-goals *::after {
    box-sizing: border-box;
}

.credifas-goals__header {
    padding: 116px 24px 92px;
}

.credifas-goals__title {
    margin: 0;
    font-size: 50px;
    font-weight: 600;
    line-height: 54px;
    letter-spacing: -2.5px;
    text-align: center;
}

.credifas-goals__title strong {
    display: block;
    color: var(--credifas-goals-accent);
    font-weight: inherit;
}

.credifas-goals__track {
    position: relative;
}

.credifas-goals__sticky {
    width: 100%;
}

.credifas-goals__cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-bottom: 106px;
}

.credifas-goals.is-animated .credifas-goals__track {
    height: 400vh;
    min-height: 3200px;
}

.credifas-goals.is-animated .credifas-goals__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
}

.credifas-goals.is-animated .credifas-goals__cards {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
}

.credifas-goals.is-animated .credifas-goal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: calc(var(--credifas-goal-card-index) + 1);
    margin: 0;
    transform: translate3d(-50%, calc(-50% + var(--credifas-goal-card-y, 120vh)), 0);
}

@media (max-width: 767px) {
    .credifas-goals {
        --credifas-goals-overlap: 72px;
    }

    .credifas-goals__header {
        padding: 78px 20px 58px;
    }

    .credifas-goals__title {
        font-size: 36px;
        line-height: 40px;
        letter-spacing: -1.5px;
    }

    .credifas-goals__cards {
        gap: 16px;
        padding-bottom: 72px;
    }

    .credifas-goals.is-animated .credifas-goals__track {
        min-height: 2800px;
    }

    .credifas-goals.is-animated .credifas-goals__sticky {
        height: 100svh;
        min-height: 620px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .credifas-goals.is-animated .credifas-goals__track {
        height: auto;
        min-height: 0;
    }

    .credifas-goals.is-animated .credifas-goals__sticky {
        position: static;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .credifas-goals.is-animated .credifas-goals__cards {
        position: static;
        display: flex;
        height: auto;
        padding-bottom: var(--credifas-goals-overlap);
    }

    .credifas-goals.is-animated .credifas-goal-card {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
}
