.pay-steps {
    --step-num-bg: #fff;
    --step-num-bg-active: #5462e6;
    --step-num-color: #141516;
    --step-num-color-active: #fff;
    padding: 40px 48px 48px;
    border-radius: 20px;
    /* background: #f9f9ff; */
}

.pay-steps__tabs {
    display: flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin: 0 0 28px;
    padding: 5px;
    border: 0;
    border-radius: 60px;
    background: #f0f0f0;
    gap: 0;
}

.pay-steps__tab {
    border: 0;
    border-radius: 60px;
    padding: 8px 28px;
    background: transparent;
    color: #141516;
    font-size: 25px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.2px;
    cursor: pointer;
}

.pay-steps__tab.is-active {
    background: #fff;
    color: #5462e6;
}

.pay-steps--large-tabs {
    --tab-border-active: #5462e6;
    --tab-bg-active: #fff;
    --tab-bg: #f3f0ff;
}

.pay-steps--large-tabs .pay-steps__tabs {
    align-items: stretch;
    width: 100%;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    gap: 16px;
}

.pay-steps--large-tabs .pay-steps__tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 0;
    min-width: 0;
    padding: 18px 22px 16px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: var(--tab-bg);
    color: #141516;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.pay-steps--large-tabs .pay-steps__tab:hover,
.pay-steps--large-tabs .pay-steps__tab.is-active {
    background: var(--tab-bg-active);
    border-color: var(--tab-border-active);
    color: #141516;
}

.pay-steps__tab-label {
    margin: 0 0 10px;
    color: var(--tab-border-active, #5462e6);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pay-steps__tab-title {
    margin: 0;
    color: #141516;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.pay-steps__tab-count {
    margin-top: auto;
    padding-top: 10px;
    color: #9a9aa8;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.pay-steps__panel {
    display: none;
    align-items: center;
    gap: 48px;
}

.pay-steps__panel.is-active {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
}

.pay-steps__copy {
    flex: 1 1 52%;
    min-width: 0;
}

.pay-steps__title {
    margin: 0 0 28px;
    color: #141516;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.pay-steps__desc,
.pay-steps__step-text {
    color: rgba(20, 21, 22, 0.7);
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.8px;
}

.pay-steps__desc {
    margin: 0 0 24px;
}

.pay-steps__note {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: 25px;
    align-items: start;
    margin-top: 8px;
    border-radius: 20px;
    background: #f9f9ff;
    padding: 25px;
}

.pay-steps__note-head {
    display: contents;
}

.pay-steps__note-icon {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
}

.pay-steps__note-title {
    margin: 0 0 5px;
    text-align: left;
    color: #0b0d13;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.16px;
}

.pay-steps__note-text {
    color: rgba(11, 13, 19, 0.7);
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.16px;
}

.pay-steps__note-text p {
    margin: 0;
}

.pay-steps__note-text p+p {
    margin-top: 5px;
}

.pay-steps__note-text strong {
    display: block;
    margin-top: 22px;
    color: #0b0d13;
    font-weight: 700;
}

.pay-steps__note-chevron {
    display: none;
}

.pay-steps__desc p,
.pay-steps__step-text p {
    margin: 0;
}

.pay-steps__list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 47px;
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
}

.pay-steps__list::before,
.pay-steps__list::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 25px;
    bottom: 25px;
    width: 1px;
}

.pay-steps__list::before {
    z-index: 1;
    bottom: auto;
    height: calc(var(--current) / max(var(--count) - 1, 1) * var(--track, 0px));
    background: var(--step-num-bg-active);
    transform: scaleY(var(--scale, 0));
    transform-origin: top center;
    transition: none;
}

.pay-steps__list.is-playing::before {
    transition: transform var(--interval, 5s) linear;
}

.pay-steps__list.is-last::before {
    height: var(--track, 0px);
    transform: scaleY(1);
}

.pay-steps__list::after {
    z-index: 0;
    top: 25px;
    bottom: auto;
    height: var(--track, 0px);
    background: #e9e9e9;
}

.pay-steps__step {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 50px;
    cursor: pointer;
}

.pay-steps__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: var(--step-num-bg);
    box-shadow: 0 2px 22px 8px rgba(199, 199, 199, 0.22);
    color: var(--step-num-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.pay-steps__step.is-active .pay-steps__num,
.pay-steps__step.is-done .pay-steps__num {
    background: var(--step-num-bg-active);
    color: var(--step-num-color-active);
}

.pay-steps__step-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding-top: 8px;
}

.pay-steps__step-title {
    margin: 0;
    color: #141516;
    font-size: 25px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: -0.1px;
}

.pay-steps__step-text {
    max-width: 420px;
}

.pay-steps__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.pay-steps__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 27px;
    border-radius: 20px;
    border: 1px solid #141516;
    color: #141516;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.72px;
    text-decoration: none;
}

.pay-steps__button.is-black {
    border-color: #070707;
    background: #070707;
    color: #fff;
}

.pay-steps__visual {
    position: relative;
    flex: 0 1 46%;
    align-self: stretch;
    min-height: 640px;
    border-radius: 20px;
    background: #a6aeff center / cover no-repeat;
    overflow: hidden;
}

.pay-steps__shot {
    position: absolute;
    inset: 48px 40px;
    width: calc(100% - 80px);
    height: calc(100% - 96px);
    object-fit: contain;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.pay-steps__shot.is-active {
    opacity: 1;
}

.pay-steps__slider-nav {
    display: none;
}

@media (max-width: 1023px) {
    .pay-steps {
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .pay-steps__tabs {
        height: 42px;
        margin-bottom: 15px;
        padding: 3px 6px;
    }

    .pay-steps__tab {
        padding: 5px 27px;
        font-size: 18px;
        letter-spacing: -0.144px;
    }

    .pay-steps__panel.is-active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .pay-steps__title {
        margin-bottom: 0;
        font-size: 28px;
    }

    .pay-steps__visual {
        order: 1;
        flex: none;
        width: 100%;
        min-height: 355px;
        border-radius: 28px;
    }

    .pay-steps__shot {
        inset: 16px 28px 18px;
        width: calc(100% - 56px);
        height: calc(100% - 34px);
    }

    .pay-steps__copy {
        display: contents;
    }

    .pay-steps__title,
    .pay-steps__desc {
        order: 0;
    }

    .pay-steps__note {
        order: 5;
        display: block;
        grid-template-columns: none;
        margin-top: 4px;
        border-radius: 12px;
        background: #f9f9ff;
        padding: 0;
    }

    .pay-steps__note-head {
        display: flex;
        align-items: center;
        gap: 17px;
        width: 100%;
        margin: 0;
        padding: 20px 16px;
        border: 0;
        background: transparent;
        cursor: pointer;
        text-align: left;
    }

    .pay-steps__note-icon {
        grid-row: auto;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
    }

    .pay-steps__note-icon svg {
        width: 19px;
        height: 19px;
    }

    .pay-steps__note-title {
        flex: 1 1 auto;
        margin: 0;
    }

    .pay-steps__note-chevron {
        display: flex;
        flex: 0 0 20px;
        transition: transform .2s ease;
    }

    .pay-steps__note.is-open .pay-steps__note-chevron {
        transform: rotate(180deg);
    }

    .pay-steps__note-text {
        display: none;
        padding: 0 16px 20px 16px;
        font-size: 16px;
        letter-spacing: -0.4px;
    }

    .pay-steps__note.is-open .pay-steps__note-text {
        display: block;
    }

    .pay-steps__list {
        order: 2;
        gap: 0;
    }

    .pay-steps__list::before,
    .pay-steps__list::after {
        display: none;
    }

    .pay-steps__step {
        display: none;
        gap: 20px;
        cursor: default;
    }

    .pay-steps__step.is-active {
        display: flex;
        align-items: center;
    }

    .pay-steps__num {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        border-radius: 14px;
        background: var(--step-num-bg-active);
        box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--step-num-bg-active) 25%, transparent);
        color: var(--step-num-color-active);
        font-size: 18px;
    }

    .pay-steps__step-body {
        gap: 0;
        padding-top: 0;
    }

    .pay-steps__step-title {
        font-size: 18px;
        line-height: 1.1;
        letter-spacing: -0.8px;
    }

    .pay-steps__step-text {
        margin-top: 6px;
        font-size: 14px;
        letter-spacing: -0.4px;
    }

    .pay-steps__slider-nav {
        order: 3;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        margin-top: 20px;
    }

    .pay-steps__arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        padding: 0;
        border: 1px solid #0b0d13;
        border-radius: 50%;
        background: transparent;
        color: #0b0d13;
        cursor: pointer;
    }

    .pay-steps__arrow:disabled {
        border-color: #f0f0f0;
        color: #646473;
        cursor: default;
    }

    .pay-steps__counter {
        min-width: 36px;
        color: rgba(11, 13, 19, 0.7);
        font-size: 14px;
        letter-spacing: -0.8px;
        text-align: center;
    }

    .pay-steps__buttons {
        order: 4;
        margin-top: 8px;
    }

    .pay-steps--large-tabs .pay-steps__tabs {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        margin-bottom: 16px;
        padding: 0;
        overflow: visible;
        gap: 10px;
    }

    .pay-steps--large-tabs .pay-steps__tab {
        flex: none;
        width: 100%;
        padding: 14px 16px;
    }

    .pay-steps__tab-title {
        font-size: 16px;
    }

    .pay-steps__tab-label {
        margin: 0 0 2px;
    }

    .pay-steps__tab-count {
        padding-top: 0;
    }
}