.block-programme-formation-primelis {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-block: 24px;
    scroll-margin-top: 150px;

    @media (width > 768px) {
        margin-block: 48px;
    }

    h2 {
        color: var(--_bg-color, #1e3e5d);
        margin-bottom: 0;
    }

    h4::before {
        display: none;
    }

    .text {
        color: #0D1A22;
        font-size: 16px;
        font-family: 'Lexend';
        font-weight: 300;
        line-height: 150%;
    }

    .subblock {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .subh {
        font-weight: 700;
        font-size: 18px;
        color: var(--_bg-color, #1e3e5d);
        margin: 5px;

        @media (width > 768px) {
            font-size: 24px;
        }
    }

    .progblocks {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: stretch;

        @media (width > 780px) {
            grid-template-columns: repeat(3, 1fr);
        }

        .pblock {
            background: #fff;
            border: 1px solid #e3e9ec;
            border-radius: 14px;
            padding: 22px 20px;
            display: flex;
            flex-direction: column;
            height: 100%;
            box-sizing: border-box;

            .ep {
                font-weight: 800;
                font-size: 13px;
                color: #fff;
                background: var(--_bg-color, #1e3e5d);
                border-radius: 99px;
                padding: 5px 14px;
                align-self: flex-start;
                margin-bottom: 8px;
                letter-spacing: .03em;
            }

            h4 {
                margin-top: 0;
                margin-bottom: 9px;
                font-size: 18px;
                color: #0D1A22;
                font-weight: 700;
                line-height: 1.25;
            }

            .setting {
                font-size: 13px;
                color: #0070b8;
                font-weight: 600;
                margin-bottom: 13px;

                @media (width > 768px) {
                    font-size: 14px;
                }
            }

            ul {
                list-style: none;
                padding: 0;
                margin: 0;
                display: grid;
                gap: 9px;
            }

            li {
                position: relative;
                padding-left: 20px;
                font-size: 14px;
                color: #0D1A22;
                font-weight: 400;

                @media (width > 768px) {
                    font-size: 16px;
                }

                &::before {
                    content: "\203A";
                    position: absolute;
                    left: 5px;
                    color: var(--_bg-color, #1e3e5d);
                    font-weight: 800;
                }
            }
        }
    }

    .mods {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;

        @media (width > 780px) {
            grid-template-columns: repeat(3, 1fr);
        }

        @media (max-width: 480px) {
            grid-template-columns: 1fr;
        }

        .mod {
            display: flex;
            gap: 12px;
            align-items: center;
            background: #fff;
            border: 1px solid #e3e9ec;
            border-radius: 11px;
            padding: 13px 15px;

            .mi {
                flex: 0 0 36px;
                height: 36px;
                border-radius: 9px;
                background: #f4f7f8;
                display: grid;
                place-items: center;
                font-size: 18px;
                font-weight: 700;
                color: #1e3e5d;
            }

            b {
                font-size: 16px;
                font-weight: 800;
                display: block;
                line-height: 1.25;
                color: #0D1A22;

                @media (width > 768px) {
                    font-size: 18px;
                }
            }

            span {
                font-size: 14px;
                color: #0D1A22;
                font-weight: 400;

                @media (width > 768px) {
                    font-size: 16px;
                }
            }
        }
    }

    .prog-gen {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        background: #e2f3ff;
        border: 1px solid #e3e9ec;
        border-radius: 12px;
        padding: 16px 20px;

        .gi {
            font-size: 22px;
            line-height: 1.2;
        }

        p {
            margin: 0;
            font-size: 16px;
            color: #0D1A22;

            strong {
                color: #1e3e5d;
            }
        }
    }

    .bonus-h {
        display: flex;
        align-items: center;
        gap: 0px;
        flex-wrap: wrap;

        @media (width > 768px) {
            gap: 10px;
        }

        h3 {
            font-weight: 700;
            font-size: 18px;
            color: var(--_bg-color, #1e3e5d);
            margin: 5px;

            @media (width > 768px) {
                font-size: 24px;
            }
        }

        .tag {
            font-size: 12px;
            font-weight: 700;
            color: var(--_bg-color, #8aa233);
            background: #f1f6e4;
            border-radius: 99px;
            padding: 4px 12px;

            @media (width > 768px) {
                font-size: 16px;
            }
        }
    }

    .axes {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        align-items: stretch;

        @media (width > 780px) {
            grid-template-columns: repeat(3, 1fr);
        }

        .axe {
            background: #fff;
            border: 1px solid #e3e9ec;
            border-radius: 14px;
            padding: 20px;
            height: 100%;
            box-sizing: border-box;

            .ai {
                width: 42px;
                height: 42px;
                border-radius: 12px;
                display: grid;
                place-items: center;
                font-size: 21px;
                margin-bottom: 13px;
                background: #f1f6e4;
            }

            &.b .ai {
                background: #e3f0fb;
            }

            &.r .ai {
                background: #fdeef0;
            }

            h4 {
                margin-top: 0;
                margin-bottom: 9px;
                font-size: 18px;
                color: #0D1A22;
                font-weight: 700;
                line-height: 1.25;
            }

            p {
                font-size: 14px;
                color: #0D1A22;
                font-weight: 300;
                margin: 0;

                @media (width > 768px) {
                    font-size: 16px;
                }

                strong {
                    color: #16242c;
                }
            }
        }
    }
}

@media (max-width: 768px) {
    .block-programme-formation-primelis {
        gap: 12px !important;
        margin-bottom: 0px;
    }
}
