/* Блок «Как это работает»: иллюстрации + нумерованные шаги */

.how_steps__title {
    text-align: center;
}

.how_steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
}

.how_steps__illu {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 560 / 488;
}

.how_steps__pic {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.how_steps__pic.is_active {
    opacity: 1;
}

.how_steps__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: start;
}

.how_steps__card {
    display: flex;
    gap: 24px;
    border: 1px solid var(--black5);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.how_steps__card:hover,
.how_steps__card.is_active {
    background: var(--blue3);
    border-color: transparent;
}

.how_steps__card:focus-visible {
    outline: 2px solid var(--blue1);
    outline-offset: 2px;
}

.how_steps__body {
    min-width: 0;
}

.how_steps__num {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--blue1);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.how_steps__card h3 {
    font-family: var(--font_roboto_slab);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    color: var(--black1);
    margin: 0 0 8px;
}

.how_steps__card p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--black2);
    margin: 0;
}

@media (min-width: 992px) {
    .how_steps__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 40px 64px;
        align-items: start;
    }

    .how_steps__card {
        min-height: 142px;
    }
}

@media (min-width: 1100px) {
    .how_steps__illu {
        position: sticky;
        top: 48px;
    }
}
