/* Steps — numbered process row. 4 across on desktop, stacks on mobile.
   Heading/titles use shared .circla-* classes (see style.css). */

.steps-block {
    padding: 80px 0;
    background-color: #f3f8ea;
}

.steps-block__inner {
    max-width: 1264px;
    margin: 0 auto;
    padding: 0 32px;
}

.steps-block__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 64px;
}

.steps-block__list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.steps-block__item {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}

.steps-block__number {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #688d78;
    color: #fff;
    border-radius: 50%;
    font-family: "Neue Augenblick Bold", "Neue Augenblick", sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
}

.steps-block__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.steps-block__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}

.steps-block__text {
    margin: 0;
    font-family: "Open Sans";
    font-size: 14px;
    line-height: 24px;
    color: #444;
}

@media (max-width: 900px) {
    .steps-block__list {
        flex-wrap: wrap;
    }
    .steps-block__item {
        flex: 1 1 40%;
    }
}

@media (max-width: 768px) {
    /* Tighter vertical rhythm + 16px side gutter on mobile. */
    .steps-block {
        padding: 40px 0;
    }
    .steps-block__inner {
        padding: 0 16px;
    }
    .steps-block__header {
        margin-bottom: 32px;
    }
    .steps-block__list {
        gap: 20px; /* desktop 24px, mobile 20px */
    }
}

@media (max-width: 600px) {
    /* Number badge and title share the top row; icon + text sit underneath
       (matches the mobile design). display:contents lifts the body's children
       into the item grid so they can be placed individually. */
    .steps-block__item {
        flex: 1 1 100%;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 16px;
        row-gap: 12px;
        align-items: center;
    }
    .steps-block__number {
        grid-column: 1;
        grid-row: 1;
    }
    .steps-block__body {
        display: contents;
    }
    .steps-block__title {
        grid-column: 2;
        grid-row: 1;
        margin: 0 !important; /* beat the legacy h3 margin-top:38px */
    }
    .steps-block__icon {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        justify-self: center;
    }
    .steps-block__text {
        grid-column: 2;
        grid-row: 2;
    }
}
