#services-formula {
    padding: 50px 0;
    position: relative;
    background-color: var(--dark-grey);
}

#services-steps {
   padding: 50px 0;
    position: relative;
    background-color: var(--dark-grey);
    overflow-x: hidden;
}

#services-steps .row {
    margin-left: -45px;
    margin-right: -45px;
}

.step-counter-wrapper {
    width: 20%;
    flex-basis: 20%;
    max-width: 20%;
    padding: 10px 40px;
}

.step-counter-1 {
    padding-left: 0;
}

.step-counter-5 {
    padding-right: 0;
}

.step-counter-number {
    position: relative;
    margin-bottom: 40px;
    height: 50px;
}

.step-number {
    font-size: 50px;
    letter-spacing: -1px;
    line-height: 52px;
    color: #b0b0b0;
    font-weight: 300;
    text-align: center;
}

.formula-step-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.formula-step-text {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.step-number {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    background-color: var(--dark-grey);
}

.number-wrapper-1 .step-number,
.number-wrapper-5 .step-number {
    top: -30px;
}

.number-wrapper-2 .step-number,
.number-wrapper-4 .step-number {
    top: -5px;
}


.before-steps {
    width: 100%;
}

.before-steps:before {
    content: "";
    display: block;
    width: 200%;
    height: 1500px;
    border-bottom: 2px solid rgba(175, 175, 175, .2);
    border-radius: 50%;
    position: absolute;
    top: -1413px;
    left: -50%;
}

@media (max-width: 1600px) {
    .before-steps:before {
        content: "";
        display: block;
        width: 200%;
        height: 1200px;
        border-bottom: 2px solid rgba(175, 175, 175, .2);
        border-radius: 50%;
        position: absolute;
        top: -1110px;
        left: -50%;
    }
}

@media (max-width: 1400px) {
    .step-counter-wrapper {
        padding: 10px 20px;
    }
}

@media (max-width: 1280px) {
    #services-steps .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .before-steps:before {
        content: "";
        display: block;
        width: 200%;
        height: 938px;
        border-bottom: 2px solid rgba(175, 175, 175, .2);
        border-radius: 50%;
        position: absolute;
        top: -850px;
        left: -50%;
    }
}

@media (max-width: 1199.9px) {
    .step-counter-wrapper {
        padding: 10px;
    }

    #services-steps .row {
        margin-left: -45px;
        margin-right: -45px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991.8px) {
    #services-steps .container {
        max-width: 100%;
    }

    #services-steps .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .formula-step-title {
        font-size: 16px;
    }
}

@media (max-width: 767.8px) {
    .before-steps-wrapper {
        display: none;
    }

    #services-formula {
        padding: 80px 0 0 0;
    }

    #services-steps {
        padding-top: 0;
        overflow-x: hidden;
    }

    #services-steps .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .step-counter-wrapper {
        width: 100%;
        flex-basis: 100%;
        max-width: 100%;
        padding: 30px 15px;

    }

    .step-counter-inner {
        width: 400px;
        flex-basis: 400px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .step-counter-number {
        height: auto;
        margin-bottom: 30px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 0 60px;
        background-color: var(--dark-grey);
        position: relative;

    }

    .step-counter-number::after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--dark-grey);
        z-index: 2;
    }

    .step-counter-number:before {
        content: "";
        display: block;
        position: absolute;
        top: 50%;
        width: 150vw;
        left: -25vw;
        height: 1px;
        background-color: rgba(255, 255, 255, .23);
        z-index: 1; /* to be below the parent element */
    }

    .step-number-wrapper {
        width: 109px;
        height: 109px;
        border-radius: 50%;
        border: 1px solid var(--lighter-grey);
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        background-color: var(--dark-grey);
        z-index: 9;

    }

    .step-number {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-bottom: 0;
        background-color: rgba(255, 255, 255, 0);
    }

    .number-wrapper-1 .step-number, .number-wrapper-5 .step-number {
        top: auto;
    }

    .number-wrapper-2 .step-number, .number-wrapper-4 .step-number {
        top: auto;
    }
}

@media (max-width: 575.8px) {
    .step-number-wrapper {
        width: 80px;
        height: 80px;
    }

    .step-number {
        font-size: 40px;
        line-height: 40px;
    }

    .step-counter-number::after {
        width: 60%;
        left: 20%;
    }
}