.credifas-goal-card {
    position: relative;
    width: min(1532px, calc(100vw - 48px));
    aspect-ratio: 1532 / 685;
    overflow: hidden;
    border-radius: 28px;
    background: #5b6470;
    color: #fff;
    font-family: "Open Sans", "Lato", sans-serif;
    transform: translate3d(0, var(--credifas-goal-card-y, 0), 0);
    will-change: transform;
}

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

.credifas-goal-card__image,
.credifas-goal-card__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.credifas-goal-card__image {
    display: block;
    object-fit: cover;
}

.credifas-goal-card__overlay {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .5) 2.422%,
        rgba(102, 102, 102, 0) 71.584%
    );
    pointer-events: none;
}

.credifas-goal-card--dark-soft .credifas-goal-card__overlay {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, .4) 2.422%,
        rgba(102, 102, 102, 0) 71.584%
    );
}

.credifas-goal-card--purple .credifas-goal-card__overlay {
    background: linear-gradient(
        90deg,
        rgba(92, 81, 209, .4) 2.422%,
        rgba(102, 102, 102, 0) 71.584%
    );
}

.credifas-goal-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: clamp(38px, 4.5vw, 68px) clamp(40px, 5.3vw, 81px) clamp(38px, 4vw, 61px);
}

.credifas-goal-card__category,
.credifas-goal-card__title,
.credifas-goal-card__description {
    margin: 0;
}

.credifas-goal-card__category {
    font-size: clamp(16px, 1.25vw, 24px);
    font-weight: 600;
    line-height: 1.35;
}

.credifas-goal-card__title {
    margin-top: clamp(17px, 1.55vw, 24px);
    font-size: clamp(44px, 3.65vw, 70px);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -.05em;
}

.credifas-goal-card__description {
    margin-top: clamp(9px, 1vw, 15px);
    font-size: clamp(17px, 1.25vw, 24px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.05em;
}

.credifas-goal-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    align-self: flex-start;
    min-width: 192px;
    height: 56px;
    margin-top: auto;
    padding: 0 28px;
    border-radius: 28px;
    background: #5c51d1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 19px;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease;
}

.credifas-goal-card__cta:hover,
.credifas-goal-card__cta:focus-visible {
    background: #4b41be;
    color: #fff;
    transform: translateY(-1px);
}

.credifas-goal-card__cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.credifas-goal-card__cta img {
    display: block;
    flex: 0 0 auto;
    width: 15px;
    height: 9px;
    margin-left: 20px;
}

@media (max-width: 767px) {
    .credifas-goal-card {
        width: calc(100vw - 32px);
        height: clamp(520px, calc(100svh - 96px), 620px);
        aspect-ratio: auto;
        border-radius: 22px;
    }

    .credifas-goal-card__image {
        object-position: 69% center;
    }

    .credifas-goal-card:nth-child(1) .credifas-goal-card__image {
        object-position: 82% center;
    }

    .credifas-goal-card:nth-child(2) .credifas-goal-card__image {
        object-position: 90% center;
    }

    .credifas-goal-card:nth-child(3) .credifas-goal-card__image {
        object-position: 86% center;
    }

    .credifas-goal-card__overlay,
    .credifas-goal-card--dark-soft .credifas-goal-card__overlay,
    .credifas-goal-card--purple .credifas-goal-card__overlay {
        background: linear-gradient(
            90deg,
            rgba(14, 14, 20, .72) 0%,
            rgba(14, 14, 20, .34) 72%,
            rgba(14, 14, 20, .08) 100%
        );
    }

    .credifas-goal-card__content {
        height: 100%;
        padding: 34px 26px 30px;
    }

    .credifas-goal-card__category {
        font-size: 14px;
    }

    .credifas-goal-card__title {
        margin-top: 20px;
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.04;
    }

    .credifas-goal-card__description {
        max-width: 280px;
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.35;
        letter-spacing: -.03em;
    }

    .credifas-goal-card__cta {
        height: 52px;
        padding: 0 24px;
    }
}
