.rich-text {
    padding: 40px 0 40px;
    position: relative;
}

.rich-text strong {
    position: relative;
}

.rich-text h1 strong::before,
.rich-text h2 strong::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 406px;
    height: 26px;
    pointer-events: none;
    transform: translateX(-50%) translateY(100%);
    background: url(../../assets/images/rich-text-title-line.svg);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 100%;
}

.rich-text h3 {
    position: relative;
}

.rich-text h3::before {
    content: '';
    position: absolute;
    left: -64px;
    top: 0;
    transform: translateX(-100%);
    width: 48px;
    height: 48px;
    background-image: url(../../assets/images/block-title-before.svg);
    background-repeat: no-repeat;
    background-size: cover;
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 {
    margin: 40px 0;
}

.rich-text .rich-text-wrapper>*:first-child {
    margin-top: 0;
}

.rich-text,
.rich-text ul,
.rich-text ol,
.rich-text p {
    font-size: 20px;
    color: #1F2B51;
    line-height: 1.23;
}

.rich-text ul,
.rich-text ol,
.rich-text p {
    margin: 15px 0 25px;
}

.rich-text li::marker {
    font-size: 16px;
}

.rich-text h2 {
    font-size: 64px;
}

.rich-text h3 {
    font-size: 40px;
}

.rich-text .aligncenter{
    display: block;
    margin: 40px auto;
}

@media (max-width:1199px) {

    .rich-text h1,
    .rich-text h2 {
        font-size: 36px;
    }
}

@media (max-width:991px) {

    .rich-text h1,
    .rich-text h2,
    .rich-text h3 {
        font-size: 24px;
    }

    .rich-text h1 strong::before,
    .rich-text h2 strong::before {
        content: '';
        width: 315px;
        height: 16px;
    }

    .rich-text,
    .rich-text ul,
    .rich-text ol,
    .rich-text p {
        font-size: 16px;
    }

    .rich-text h3::before {
        width: 16px;
        height: 16px;
        left: 0;
        transform: translateY(-100%) translateX(-100%);
    }
}