.flow-hero {
    padding: 58px 0 28px;
}

.flow-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: 52px;
    line-height: 1.05;
}

.flow-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.flow-map {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.flow-stage {
    display: grid;
    grid-template-columns: 74px 220px minmax(0, 1fr) 260px;
    gap: 14px;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
}

.flow-num {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: var(--surface-green);
    color: var(--coin-green);
    font-size: 22px;
    font-weight: 950;
}

.flow-title strong {
    display: block;
    font-size: 20px;
}

.flow-title span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.flow-stage p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.flow-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: start;
}

.flow-tags span,
.flow-safe-card span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.flow-safe-grid,
.flow-current-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.flow-safe-card,
.flow-current-grid article {
    min-height: 176px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
}

.flow-safe-card strong,
.flow-current-grid strong {
    display: block;
    margin-top: 12px;
    font-size: 20px;
}

.flow-safe-card p,
.flow-current-grid p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.48;
}

.flow-back {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 24px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--coin-green);
    text-decoration: none;
    font-weight: 900;
}

@media (max-width: 980px) {
    .flow-stage {
        grid-template-columns: 56px 1fr;
    }

    .flow-stage p,
    .flow-tags {
        grid-column: 2;
    }

    .flow-safe-grid,
    .flow-current-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .flow-hero h1 {
        font-size: 38px;
    }

    .flow-stage,
    .flow-safe-grid,
    .flow-current-grid {
        grid-template-columns: 1fr;
    }

    .flow-stage p,
    .flow-tags {
        grid-column: auto;
    }
}
