.rwb-history {
    --rwb-history-background: #ffffff;
    --rwb-history-padding-top: 106rem;
    --rwb-history-padding-bottom: 100rem;
    position: relative;
    width: 100%;
    padding: var(--rwb-history-padding-top) 0 var(--rwb-history-padding-bottom);
    overflow: hidden;
    color: #555555;
    background: var(--rwb-history-background);
    isolation: isolate;
}

.rwb-history__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.rwb-history__background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.rwb-history__inner {
    width: 1460rem;
    margin: 0 auto;
}

.rwb-history__title {
    width: 100%;
    margin: 0 0 40rem;
    color: #333333;
    font-family: "Inter", Arial, sans-serif;
    font-size: 48rem;
    font-weight: 700;
    line-height: 1.2;
}

.rwb-history__editor {
    color: #555555;
    font-family: "Inter", Arial, sans-serif;
    font-size: 18rem;
    font-weight: 400;
    line-height: 1.4;
}

.rwb-history__editor::after {
    display: table;
    clear: both;
    content: "";
}

.rwb-history__editor > :first-child {
    margin-top: 0;
}

.rwb-history__editor > :last-child {
    margin-bottom: 0;
}

.rwb-history__editor p,
.rwb-history__editor ul,
.rwb-history__editor ol,
.rwb-history__editor blockquote {
    margin: 0 0 20rem;
}

.rwb-history__editor h2,
.rwb-history__editor h3,
.rwb-history__editor h4 {
    margin: 40rem 0 20rem;
    color: #333333;
    line-height: 1.2;
}

.rwb-history__editor h2 {
    font-size: 40rem;
}

.rwb-history__editor h3 {
    font-size: 32rem;
}

.rwb-history__editor h4 {
    font-size: 26rem;
}

.rwb-history__editor ul,
.rwb-history__editor ol {
    padding-left: 28rem;
}

.rwb-history__editor li + li {
    margin-top: 8rem;
}

.rwb-history__editor a {
    color: #0b447f;
    text-decoration: underline;
    text-underline-offset: 3rem;
}

.rwb-history__editor img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.rwb-history__editor > img,
.rwb-history__editor > p > img,
.rwb-history__editor .wp-block-image,
.rwb-history__editor figure.wp-caption {
    display: block;
    width: 100%;
    margin: 40rem 0;
}

.rwb-history__editor > p > img,
.rwb-history__editor .wp-block-image img,
.rwb-history__editor figure.wp-caption img {
    width: 100%;
}

.rwb-history__editor .wp-caption-text,
.rwb-history__editor figcaption,
.rwb-history__editor .gallery-caption {
    margin-top: 10rem;
    color: #777777;
    font-size: 14rem;
    line-height: 1.4;
}

.rwb-history__editor .gallery,
.rwb-history__editor .wp-block-gallery {
    display: grid !important;
    width: 100% !important;
    margin: 40rem 0 !important;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40rem;
}

.rwb-history__editor .gallery-item,
.rwb-history__editor .wp-block-gallery > .wp-block-image,
.rwb-history__editor .wp-block-gallery > figure {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.rwb-history__editor .gallery br {
    display: none;
}

.rwb-history__editor .gallery-icon,
.rwb-history__editor .gallery-icon a,
.rwb-history__editor .gallery-item img,
.rwb-history__editor .wp-block-gallery img {
    display: block;
    width: 100% !important;
    height: auto !important;
    border: 0 !important;
}

.rwb-history__cards {
    display: grid;
    width: 100%;
    margin-top: 66rem;
    grid-template-columns: 615rem minmax(0, 1fr);
    gap: 41rem;
}

.rwb-history__cards--count-1 {
    grid-template-columns: minmax(0, 802rem);
}

.rwb-history__card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 384rem;
    padding: 37rem 72rem;
    align-items: flex-start;
    overflow: hidden;
    color: #ffffff;
}

.rwb-history__card--orange {
    background: linear-gradient(180deg, #fb9e28 0%, #fa7a22 100%);
}

.rwb-history__card--blue {
    background: linear-gradient(180deg, #1f3063 0%, #3b84bf 100%);
}

.rwb-history__card-content {
    position: relative;
    z-index: 1;
    max-width: 470rem;
}

.rwb-history__card-title {
    font-family: "Inter", Arial, sans-serif;
    font-size: 116rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.rwb-history__card-text {
    max-width: 384rem;
    margin-top: 8rem;
    font-family: "Inter", Arial, sans-serif;
    font-size: 34rem;
    font-weight: 400;
    line-height: 1.4;
}

.rwb-history__card-image {
    position: absolute;
    right: -25rem;
    bottom: -18rem;
    width: 274rem;
    height: 274rem;
    opacity: .22;
    pointer-events: none;
}

.rwb-history__card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1199px) and (min-width: 768px) {
    .rwb-history__inner {
        width: 1120rem;
    }

    .rwb-history__title {
        font-size: 44rem;
    }

    .rwb-history__cards {
        grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
        gap: 30rem;
    }

    .rwb-history__card {
        min-height: 320rem;
        padding: 34rem 44rem;
    }

    .rwb-history__card-title {
        font-size: 86rem;
    }

    .rwb-history__card-text {
        font-size: 27rem;
    }

    .rwb-history__card-image {
        width: 220rem;
        height: 220rem;
    }
}

@media (max-width: 767px) {
    .rwb-history {
        padding-top: min(var(--rwb-history-padding-top), 64rem);
        padding-bottom: min(var(--rwb-history-padding-bottom), 64rem);
    }

    .rwb-history__inner {
        width: calc(100% - 32rem);
    }

    .rwb-history__title {
        margin-bottom: 26rem;
        font-size: 28rem;
        line-height: 1.16;
    }

    .rwb-history__editor {
        font-size: 16rem;
        line-height: 1.48;
    }

    .rwb-history__editor p,
    .rwb-history__editor ul,
    .rwb-history__editor ol,
    .rwb-history__editor blockquote {
        margin-bottom: 14rem;
    }

    .rwb-history__editor h2 {
        font-size: 28rem;
    }

    .rwb-history__editor h3 {
        font-size: 24rem;
    }

    .rwb-history__editor h4 {
        font-size: 20rem;
    }

    .rwb-history__editor > img,
    .rwb-history__editor > p > img,
    .rwb-history__editor .wp-block-image,
    .rwb-history__editor figure.wp-caption,
    .rwb-history__editor .gallery,
    .rwb-history__editor .wp-block-gallery {
        margin-top: 26rem !important;
        margin-bottom: 26rem !important;
    }

    .rwb-history__editor .gallery,
    .rwb-history__editor .wp-block-gallery {
        grid-template-columns: minmax(0, 1fr);
        gap: 16rem;
    }

    .rwb-history__cards,
    .rwb-history__cards--count-1 {
        margin-top: 42rem;
        grid-template-columns: minmax(0, 1fr);
        gap: 16rem;
    }

    .rwb-history__card {
        min-height: 210rem;
        padding: 28rem 24rem;
    }

    .rwb-history__card-content {
        max-width: 230rem;
    }

    .rwb-history__card-title {
        font-size: 58rem;
    }

    .rwb-history__card-text {
        max-width: 225rem;
        margin-top: 8rem;
        font-size: 19rem;
        line-height: 1.35;
    }

    .rwb-history__card-image {
        right: -18rem;
        bottom: -18rem;
        width: 150rem;
        height: 150rem;
    }
}
