.steps { padding: 100px 0; }
.steps-heading { text-align: center; }
.steps-subheading {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
    font-size: var(--font-size);
    line-height: 1.3;
    color: var(--skin-black);
}
.steps-subheading p { margin: 0 0 1em; }
.steps-subheading p:last-child { margin-bottom: 0; }

.steps-grid { display: flex; flex-wrap: wrap; justify-content: center; }

.steps-grid--cols-2 .step-item { flex: 0 0 50%; }
.steps-grid--cols-3 .step-item { flex: 0 0 33.3333%; }
.steps-grid--cols-4 .step-item { flex: 0 0 25%; }
.steps-grid--cols-5 .step-item { flex: 0 0 20%; }

.step-item {
    position: relative;
    text-align: center;
    padding: 0 20px;
}

/* Connecting line through the centre of the number circle, drawn from each
   item to the next in its row. Hidden on the last item of every row (via
   :nth-child, one rule per column count) and on the true last item. */
.step-item::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--skin-grey-10);
    z-index: 0;
}
.steps-grid--cols-2 .step-item:nth-child(2n)::after,
.steps-grid--cols-3 .step-item:nth-child(3n)::after,
.steps-grid--cols-4 .step-item:nth-child(4n)::after,
.steps-grid--cols-5 .step-item:nth-child(5n)::after,
.step-item:last-child::after {
    display: none;
}

.step-number {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--skin-red);
    color: var(--skin-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 19px;
}

.step-title { font-size: 20px; line-height: 26px; margin-bottom: 12px; }
.step-description { font-size: var(--font-size); line-height: 24px; color: var(--skin-black); }

.steps-cta { text-align: center; margin-top: 56px; }

@media (max-width: 1024px) {
    .steps { padding: 60px 0; }

    .steps-grid--cols-3 .step-item,
    .steps-grid--cols-4 .step-item,
    .steps-grid--cols-5 .step-item {
        flex: 0 0 50%;
        margin-bottom: 40px;
    }

    .steps-grid--cols-3 .step-item:nth-child(2n)::after,
    .steps-grid--cols-4 .step-item:nth-child(2n)::after,
    .steps-grid--cols-5 .step-item:nth-child(2n)::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .steps-subheading { margin-bottom: 40px; }

    .steps-grid--cols-2 .step-item,
    .steps-grid--cols-3 .step-item,
    .steps-grid--cols-4 .step-item,
    .steps-grid--cols-5 .step-item {
        flex: 0 0 100%;
        margin-bottom: 32px;
    }

    .step-item:last-child { margin-bottom: 0; }
    .step-item::after { display: none; }
}
