.flow-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    margin-top: 30px;
}

.flow-plan {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #c9d7d1;
    border-radius: 4px;
    box-shadow: 0 6px 14px rgba(26, 51, 39, 0.05);
}

.flow-plan__summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 18px 18px 16px;
    border-bottom: 1px solid #e6eeeb;
    list-style: none;
    cursor: default;
}

.flow-plan__summary::-webkit-details-marker {
    display: none;
}

.flow-plan__title {
    min-width: 0;
    color: #137333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.flow-plan__toggle {
    display: none;
}

.flow-plan__summary-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #b6eec7;
    border-radius: 50%;
    background: #eefaf3;
    color: #137333;
    font-size: 24px;
    font-variation-settings:
        "FILL" 0,
        "wght" 200,
        "GRAD" 0,
        "opsz" 24;
}

.flow-plan__body {
    padding: 4px 18px 18px;
}

.flow-plan__steps {
    display: grid;
}

.flow-plan__step {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
}

.flow-plan__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    bottom: -10px;
    left: 19px;
    width: 2px;
    background: #e6eeeb;
}

.flow-plan__icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #b6eec7;
    border-radius: 50%;
    background: #eefaf3;
    color: #1e8e3e;
    font-size: 25px;
    font-variation-settings:
        "FILL" 0,
        "wght" 200,
        "GRAD" 0,
        "opsz" 24;
}

.flow-plan__meta {
    display: block;
    min-width: 0;
}

.flow-plan__number {
    display: block;
    margin-bottom: 2px;
    color: #1e8e3e;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.flow-plan__label {
    display: block;
    min-width: 0;
    color: #10231b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
    .flow-plan__summary {
        pointer-events: none;
    }
}

@media screen and (max-width: 960px) {
    .flow-plans {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .flow-plans {
        gap: 10px;
        margin-top: 24px;
    }

    .flow-plan__summary {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        padding: 14px;
        border-bottom: 0;
        cursor: pointer;
    }

    .flow-plan[open] > .flow-plan__summary {
        border-bottom: 1px solid #e6eeeb;
    }

    .flow-plan__title {
        font-size: 16px;
    }

    .flow-plan__summary-icon {
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .flow-plan__toggle {
        display: block;
        color: #2f5a4a;
        transition: transform 0.2s ease;
    }

    .flow-plan[open] .flow-plan__toggle {
        transform: rotate(180deg);
    }

    .flow-plan__body {
        padding: 2px 14px 14px;
    }

    .flow-plan__label {
        font-size: 14px;
    }

    .flow-plan__step {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .flow-plan__icon {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .flow-plan__number {
        font-size: 11px;
    }
}
