.steps {
    position: relative;
    padding: 64px 0 72px;
    background-color: #fff;
    background-image:
        repeating-linear-gradient(45deg, rgba(47, 147, 198, 0.05) 0, rgba(47, 147, 198, 0.05) 1px, transparent 1px, transparent 26px),
        repeating-linear-gradient(-45deg, rgba(47, 147, 198, 0.05) 0, rgba(47, 147, 198, 0.05) 1px, transparent 1px, transparent 26px);
    overflow: hidden;
}

.steps__heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.steps__rule {
    flex: 1;
    max-width: 220px;
    height: 1px;
    background: var(--color-border);
}

.steps__title {
    margin: 0;
    text-align: center;
    font-size: clamp(18px, 2.1vw, 26px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--color-primary-dark);
    max-width: 900px;
}

.steps__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.steps__item {
    flex: 1 1 180px;
    max-width: 220px;
}

.steps__card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary-dark);
    display: flex;
    align-items: flex-end;
    padding: 14px;
}
.steps__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 30, 45, 0) 40%, rgba(15, 23, 35, 0.85) 100%);
}

.steps__number {
    position: absolute;
    top: 4px;
    right: 12px;
    font-size: 64px;
    font-weight: 800;
    color: rgb(255 249 0 / 61%);
    line-height: 1;
}

.steps__text {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.steps__arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    color: var(--color-primary);
    opacity: 0.6;
}
.steps__arrow svg {
    width: 22px;
    height: 22px;
}

.steps__paragraph {
    margin: 40px auto 0;
    max-width: 1200px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 991px) {
    .steps__row {
        flex-wrap: wrap;
        row-gap: 20px;
    }
    .steps__item {
        flex: 1 1 130px;
        max-width: 150px;
    }
    .steps__arrow {
        width: 24px;
    }
}

@media (max-width: 640px) {
    .steps__row {
        flex-direction: column;
        align-items: stretch;
    }
    .steps__item {
        max-width: none;
        width: 100%;
    }
    .steps__card {
        aspect-ratio: 16 / 9;
    }
    .steps__arrow {
        width: 100%;
        transform: rotate(90deg);
        margin: -4px 0;
    }
    .steps__heading {
        flex-direction: column;
        gap: 12px;
    }
    .steps__rule {
        max-width: 80px;
    }
}
