.nubranch-step-process {
    --nubranch-marker-size: 76px;
    --nubranch-line-color: #d9d2c8;
    --nubranch-line-width: 2px;
    position: relative;
    width: 100%;
}

.nubranch-step-process__step {
    position: relative;
    z-index: 1;
}

.nubranch-step-process__marker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--nubranch-marker-size);
    height: var(--nubranch-marker-size);
    border-radius: 50%;
    flex: 0 0 var(--nubranch-marker-size);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.nubranch-step-process__title {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.nubranch-step-process__text,
.nubranch-step-process__text p {
    margin: 0;
}

.nubranch-step-process--horizontal {
    --nubranch-horizontal-gap: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--nubranch-horizontal-gap);
}

.nubranch-step-process--horizontal .nubranch-step-process__step::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: calc(var(--nubranch-marker-size) / 2 - var(--nubranch-line-width) / 2);
    left: 50%;
    width: calc(100% + var(--nubranch-horizontal-gap));
    height: var(--nubranch-line-width);
    background: var(--nubranch-line-color);
}

.nubranch-step-process--horizontal .nubranch-step-process__step:last-child::after {
    content: none;
}

.nubranch-step-process--horizontal .nubranch-step-process__step {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.nubranch-step-process--horizontal .nubranch-step-process__marker {
    margin: 0 auto 24px;
}

.nubranch-step-process--vertical {
    --nubranch-step-gap: 70px;
    display: flex;
    flex-direction: column;
    gap: var(--nubranch-step-gap);
}

.nubranch-step-process--vertical::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: calc(var(--nubranch-marker-size) / 2);
    bottom: calc(var(--nubranch-marker-size) / 2);
    left: calc(var(--nubranch-marker-size) / 2 - var(--nubranch-line-width) / 2);
    width: var(--nubranch-line-width);
    background: var(--nubranch-line-color);
}

.nubranch-step-process--vertical .nubranch-step-process__step {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.nubranch-step-process--vertical .nubranch-step-process__content {
    padding-top: 5px;
}

@media (max-width: 767px) {
    .nubranch-step-process--horizontal {
        flex-direction: column;
        gap: 42px;
    }

    .nubranch-step-process--horizontal::before {
        content: "";
        position: absolute;
        z-index: 0;
        top: calc(var(--nubranch-marker-size) / 2);
        bottom: calc(var(--nubranch-marker-size) / 2);
        left: calc(var(--nubranch-marker-size) / 2 - var(--nubranch-line-width) / 2);
        right: auto;
        width: var(--nubranch-line-width);
        height: auto;
        background: var(--nubranch-line-color);
    }

    .nubranch-step-process--horizontal .nubranch-step-process__step::after {
        content: none;
    }

    .nubranch-step-process--horizontal .nubranch-step-process__step {
        display: flex;
        align-items: flex-start;
        gap: 22px;
        width: 100%;
        text-align: left;
    }

    .nubranch-step-process--horizontal .nubranch-step-process__marker {
        margin: 0;
    }
}
