.credifas-steps {
    --credifas-steps-accent: #5c51d1;
    --credifas-steps-copy: #737373;
    min-height: 300vh;
    background: linear-gradient(180deg, #f4f6fb 0%, #fff 100%);
    color: #000;
    font-family: "Open Sans", "Lato", sans-serif;
}

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

.credifas-steps__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 760px;
    overflow: hidden;
    padding: clamp(52px, 8vh, 104px) 24px 42px;
}

.credifas-steps__title {
    margin: 0;
    font: 600 50px/1.16 "Open Sans", "Lato", sans-serif;
    letter-spacing: -2.5px;
    text-align: center;
}

.credifas-steps__title strong {
    color: var(--credifas-steps-accent);
    font-weight: inherit;
}

.credifas-steps__layout {
    display: grid;
    grid-template-columns: 470px 582px;
    gap: 92px;
    align-items: center;
    width: min(1144px, 100%);
    margin: clamp(48px, 7vh, 72px) auto 0;
}

.credifas-steps__navigation {
    align-self: center;
}

.credifas-steps__navigation nav {
    display: flex;
    flex-direction: column;
}

.credifas-steps__step {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 33px;
    align-items: start;
    min-height: 128px;
    margin: 0;
    padding: 0;
    border: 0;
    color: #000;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.credifas-steps__step:focus-visible {
    outline: 2px solid var(--credifas-steps-accent);
    outline-offset: 8px;
    border-radius: 3px;
}

.credifas-steps__indicator {
    display: block;
    width: 8px;
    height: 98px;
    border-radius: 4px;
    background: #e6e8ed;
    transform: scaleY(.46);
    transform-origin: top center;
    will-change: transform;
    transition:
        transform 800ms cubic-bezier(.4, 0, .2, 1),
        background-color 800ms cubic-bezier(.4, 0, .2, 1);
}

.credifas-steps__step.is-active {
    min-height: 128px;
}

.credifas-steps__step.is-active .credifas-steps__indicator {
    height: 98px;
    background: var(--credifas-steps-accent);
    transform: scaleY(1);
}

.credifas-steps__step-copy {
    display: block;
}

.credifas-steps__step-copy strong {
    display: block;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -2px;
}

.credifas-steps__step-copy > span {
    display: block;
    max-width: 375px;
    max-height: 48px;
    margin-top: 6px;
    overflow: hidden;
    color: var(--credifas-steps-copy);
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -.9px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    will-change: transform, opacity;
    transition:
        opacity 800ms cubic-bezier(.4, 0, .2, 1),
        transform 800ms cubic-bezier(.4, 0, .2, 1),
        visibility 0s linear 800ms;
}

.credifas-steps__step.is-active .credifas-steps__step-copy > span {
    max-height: 48px;
    margin-top: 6px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.credifas-steps__cta {
    display: inline-flex;
    gap: 18px;
    align-items: center;
    margin: 24px 0 0 41px;
    color: var(--credifas-steps-accent);
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    text-decoration: none;
}

.credifas-steps__cta img {
    width: 13px;
    height: 8px;
    filter: brightness(0) saturate(100%) invert(40%) sepia(69%) saturate(1328%) hue-rotate(213deg) brightness(85%) contrast(91%);
    transition: transform 180ms ease;
}

.credifas-steps__cta:hover img,
.credifas-steps__cta:focus-visible img {
    transform: translateX(4px);
}

.credifas-steps__panels {
    position: relative;
    isolation: isolate;
    width: 582px;
    height: 596px;
    perspective: 1200px;
}

.credifas-steps__panel {
    position: absolute;
    z-index: 0;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    filter: blur(8px) saturate(.9);
    transform: translate3d(0, 52px, 0) scale(.955);
    transform-origin: center 70%;
    backface-visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity, filter;
    transition:
        opacity 480ms cubic-bezier(.4, 0, .2, 1),
        transform 760ms cubic-bezier(.22, 1, .36, 1),
        filter 620ms cubic-bezier(.4, 0, .2, 1),
        visibility 0s linear 760ms;
}

.credifas-steps__panel.is-before {
    filter: blur(6px) saturate(.94);
    transform: translate3d(0, -32px, 0) scale(.975);
}

.credifas-steps__panel.is-after {
    filter: blur(8px) saturate(.9);
    transform: translate3d(0, 52px, 0) scale(.955);
}

.credifas-steps__panel.is-active {
    z-index: 2;
    visibility: visible;
    opacity: 1;
    filter: blur(0) saturate(1);
    transform: translate3d(0, 0, 0) scale(1);
    pointer-events: auto;
    transition-delay: 0s;
}

.credifas-steps__panel--image {
    height: 591px;
    overflow: hidden;
    border-radius: 33px;
}

.credifas-steps__panel--image > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.credifas-steps__device {
    width: 582px;
    height: 596px;
    padding: 29px 30px 31px;
    border: 3px solid #dde3ed;
    border-radius: 36px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(22, 29, 42, .08);
}

.credifas-steps__device-surface {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 29px;
    background: #f5f5fe;
}

.credifas-steps-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 443px;
    min-height: 435px;
    padding: 18px 22px;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 60px rgba(0, 0, 0, .1);
}

.credifas-steps-form__field {
    display: block;
    margin: 0;
}

.credifas-steps-form__name-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.credifas-steps-form__field-label {
    display: block;
    margin-bottom: 4px;
    color: #161d2a;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -1px;
}

.credifas-steps-form input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 2px solid #dedfe2;
    border-radius: 10px;
    outline: 0;
    color: #161d2a;
    background: #fff;
    font: 400 18px/1.3 "Open Sans", "Lato", sans-serif;
    letter-spacing: -1px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.credifas-steps-form__phone-control {
    width: 100%;
    height: 50px;
    overflow: hidden;
    border: 2px solid #dedfe2;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.credifas-steps-form__phone-prefix {
    height: 100%;
    padding-left: 15px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    color: var(--credifas-steps-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.credifas-steps-form__phone-prefix::after {
    width: 1px;
    height: 28px;
    margin-left: 12px;
    background: #d9d9d9;
    content: "";
}

.credifas-steps-form__phone-control input {
    min-width: 0;
    height: 100%;
    padding: 0 15px 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.credifas-steps-form input::placeholder {
    color: #80848e;
    opacity: 1;
}

.credifas-steps-form__field > input:focus,
.credifas-steps-form__phone-control:focus-within {
    border-color: var(--credifas-steps-accent);
    box-shadow: 0 0 0 3px rgba(92, 81, 209, .12);
}

.credifas-steps-form__phone-control input:focus {
    border: 0;
    box-shadow: none;
}

.credifas-steps-form__field .inline-field-error {
    min-height: 18px;
    margin-top: 2px;
    color: #db2e42;
    font-size: 11px;
    font-weight: 600;
    line-height: 124.7%;
    visibility: hidden;
}

.credifas-steps-form__field.has-below-inline-error .inline-field-error {
    visibility: visible;
}

.credifas-steps-form__field.has-inline-error > input,
.credifas-steps-form__field.has-inline-error .credifas-steps-form__phone-control {
    border-color: #db2e42;
    background: rgba(219, 46, 66, 0.1);
    color: #db2e42;
}

.credifas-steps-form__field.has-inline-error input,
.credifas-steps-form__field.has-inline-error input::placeholder,
.credifas-steps-form__field.has-inline-error .credifas-steps-form__phone-prefix {
    color: #db2e42;
}

.credifas-steps-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 56px;
    margin-top: 0;
    border: 0;
    border-radius: 33px;
    color: #fff;
    background: var(--credifas-steps-accent);
    font: 700 16px/1 "Open Sans", "Lato", sans-serif;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.credifas-steps-form button:hover,
.credifas-steps-form button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(92, 81, 209, .25);
}

.credifas-steps-form button img {
    width: 17px;
    height: 10px;
}

.credifas-steps__device-surface--products {
    padding: 39px 36px;
}

.credifas-steps__products {
    position: relative;
    width: 446px;
    min-height: 464px;
    padding-top: 12px;
    overflow: hidden;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 12px 60px rgba(0, 0, 0, .1);
}

.credifas-steps-product {
    display: grid;
    grid-template-columns: 113px minmax(0, 1fr);
    gap: 23px;
    align-items: center;
    width: 374px;
    min-height: 144px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: 21.829px;
    background: transparent;
}

.credifas-steps-product:nth-child(2) {
    background: #f9f9fb;
}

.credifas-steps-product__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 113px;
    height: 107px;
    overflow: hidden;
    border: 2.729px solid #e6e8ed;
    border-radius: 13.643px;
    background: #fff;
}

.credifas-steps-product__logo img {
    display: block;
    width: 82%;
    height: 74%;
    object-fit: contain;
}

.credifas-steps-product__content {
    display: block;
    min-width: 0;
}

.credifas-steps-product__content strong {
    display: block;
    overflow: hidden;
    color: #4c5557;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1.4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.credifas-steps-product__content > span {
    display: block;
    width: min(100%, 180px);
    height: 33px;
    margin-top: 12px;
    border-radius: 17px;
    background: #ebebeb;
}

.credifas-steps-product:nth-child(2) .credifas-steps-product__content > span {
    width: min(100%, 190px);
}

.credifas-steps__cursor {
    position: absolute;
    z-index: 2;
    top: 230px;
    left: 320px;
    display: block;
    width: 62px;
    height: 75px;
    transform: rotate(-45deg);
    transform-origin: center;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .credifas-steps__layout {
        grid-template-columns: minmax(330px, 420px) minmax(480px, 582px);
        gap: 42px;
    }

    .credifas-steps__step-copy strong {
        font-size: 34px;
    }
}

@media (max-width: 900px) {
    .credifas-steps {
        min-height: 280svh;
    }

    .credifas-steps__sticky {
        height: 100svh;
        min-height: 650px;
        padding: 32px 16px 20px;
    }

    .credifas-steps__title {
        font-size: clamp(30px, 7vw, 38px);
        line-height: 1.08;
        letter-spacing: -1.7px;
    }

    .credifas-steps__layout {
        display: flex;
        flex-direction: column;
        width: min(100%, 582px);
        margin-top: 24px;
    }

    .credifas-steps__navigation {
        display: contents;
    }

    .credifas-steps__navigation nav {
        order: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .credifas-steps__step,
    .credifas-steps__step.is-active {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-height: 56px;
    }

    .credifas-steps__indicator,
    .credifas-steps__step.is-active .credifas-steps__indicator {
        order: 2;
        width: 100%;
        height: 5px;
        transform: none;
    }

    .credifas-steps__step-copy strong {
        font-size: clamp(13px, 3.5vw, 17px);
        line-height: 1.15;
        letter-spacing: -.5px;
    }

    .credifas-steps__step-copy > span,
    .credifas-steps__step.is-active .credifas-steps__step-copy > span {
        display: none;
    }

    .credifas-steps__cta {
        order: 3;
        align-self: center;
        justify-content: center;
        margin: 14px auto 0;
        font-size: 14px;
        text-align: center;
    }

    .credifas-steps__panels {
        order: 2;
        width: min(100%, 440px);
        height: min(57svh, 500px);
        margin: 18px auto 0;
    }

    .credifas-steps__panel,
    .credifas-steps__panel.is-after {
        filter: blur(5px) saturate(.92);
        transform: translate3d(0, 28px, 0) scale(.975);
    }

    .credifas-steps__panel.is-before {
        filter: blur(4px) saturate(.96);
        transform: translate3d(0, -18px, 0) scale(.985);
    }

    .credifas-steps__panel.is-active {
        filter: blur(0) saturate(1);
        transform: translate3d(0, 0, 0) scale(1);
    }

    .credifas-steps__panel--image {
        height: 100%;
        border-radius: 24px;
    }

    .credifas-steps__device {
        width: 100%;
        height: 100%;
        padding: 18px;
        border-width: 2px;
        border-radius: 26px;
    }

    .credifas-steps__device-surface {
        border-radius: 21px;
    }

    .credifas-steps-form {
        gap: 6px;
        width: calc(100% - 28px);
        min-height: 0;
        padding: 12px;
        border-radius: 14px;
    }

    .credifas-steps-form__field-label {
        margin-bottom: 2px;
        font-size: 14px;
        letter-spacing: -.5px;
    }

    .credifas-steps-form__name-row {
        gap: 6px;
    }

    .credifas-steps-form__phone-control {
        height: 42px;
    }

    .credifas-steps-form input {
        height: 42px;
        font-size: 14px;
        letter-spacing: -.5px;
    }

    .credifas-steps-form__field .inline-field-error {
        min-height: 16px;
        margin-top: 2px;
        font-size: 10px;
    }

    .credifas-steps-form button {
        min-height: 46px;
        margin-top: 0;
    }

    .credifas-steps__device-surface--products {
        padding: 22px;
    }

    .credifas-steps__products {
        width: 100%;
        min-height: 0;
        padding-top: 0;
        border-radius: 22px;
    }

    .credifas-steps-product {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 18px;
        width: 100%;
        min-height: 116px;
        margin: 0;
        padding: 12px 16px;
        border-radius: 16px;
    }

    .credifas-steps-product__logo {
        width: 74px;
        height: 74px;
        border-width: 2px;
        border-radius: 11px;
    }

    .credifas-steps-product__content strong {
        font-size: 21px;
        letter-spacing: -.8px;
    }

    .credifas-steps-product__content > span {
        height: 24px;
        margin-top: 8px;
    }

    .credifas-steps__cursor {
        top: 179px;
        left: auto;
        right: 18px;
        width: 48px;
        height: 58px;
    }
}

@media (min-width: 380px) and (max-width: 560px) {
    .credifas-steps__panel[data-credifas-panel="2"] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .credifas-steps__panel[data-credifas-panel="2"] .credifas-steps__device {
        height: auto;
        aspect-ratio: 582 / 596;
    }
}

@media (max-width: 560px) {
    .credifas-steps__device-surface--products {
        padding: 12px;
    }

    .credifas-steps__products {
        width: min(100%, 340px);
        margin: 0 auto;
        border-radius: 18px;
    }

    .credifas-steps-product {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
        min-height: 90px;
        padding: 8px 10px;
        border-radius: 13px;
    }

    .credifas-steps-product__logo {
        width: 58px;
        height: 58px;
        border-width: 1.5px;
        border-radius: 9px;
    }

    .credifas-steps-product__content strong {
        font-size: 17px;
        letter-spacing: -.5px;
    }

    .credifas-steps-product__content > span {
        height: 19px;
        margin-top: 6px;
    }

    .credifas-steps__cursor {
        top: 137px;
        right: 11px;
        width: 38px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .credifas-steps__panel,
    .credifas-steps__indicator,
    .credifas-steps__step-copy > span {
        transition: none;
    }
}
