.case-rich {
    --case-rich-font-body: 'Montserrat', Arial, sans-serif;
    --case-rich-font-heading: 'Bounded', 'Montserrat', Arial, sans-serif;
    padding-top: calc(var(--header-height) + var(--main-gap));
    padding-bottom: 0;
    font-family: var(--case-rich-font-body);
    font-weight: 400;
}

.case-rich :where(p, li, a, span, small, em, strong) {
    font-family: var(--case-rich-font-body);
}

.case-rich h1,
.case-rich h2,
.case-rich h3,
.case-rich h4 {
    font-family: var(--case-rich-font-heading);
}

.case-rich__inner {
    max-width: 100%;
    margin: 0 auto;
}

.case-rich__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    color: #000;
    font-family: var(--case-rich-font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
}

.case-rich__breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.case-rich__breadcrumbs .case-rich__crumb-current,
.case-rich__breadcrumbs .case-rich__crumb-sep {
    color: #000;
}

.case-rich__title {
    margin: 0;
    color: #000;
    font-family: var(--case-rich-font-heading);
    font-size: 64px;
    font-weight: 700;
    line-height: 1.15;
    max-width: 1060px;
}

.case-rich__date {
    margin-top: 14px;
    margin-bottom: 24px;
    color: #666;
    font-family: var(--case-rich-font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.22;
}

.case-rich__hero {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #d9d9d9;
    aspect-ratio: 1353 / 491;
}

.case-rich__hero-image {
    display: block;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.case-rich__section {
    margin-top: 40px;
}

.case-rich__section-title {
    margin: 0 0 18px;
    color: #000;
    font-family: var(--case-rich-font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 0.93;
}

.case-rich__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.case-rich__section-head--line {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

.case-rich__section-head--line .case-rich__section-title {
    margin: 0;
}

.case-rich__section-arrow {
    position: relative;
    display: block;
    width: 26px;
    height: 12px;
    flex: 0 0 26px;
    margin-top: 12px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='12' viewBox='0 0 26 12' fill='none'%3E%3Cpath d='M0.5 6H24.5' stroke='black'/%3E%3Cpath d='M20.5 2L24.5 6L20.5 10' stroke='black' fill='none'/%3E%3C/svg%3E");
}

.case-rich__wysiwyg,
.case-rich-steps__item-text,
.case-rich__caption-text {
    color: #000;
    font-family: var(--case-rich-font-body);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.22;
}

.case-rich__caption-text {
    margin-top: 9px;
    margin-bottom: 14px;
    color: #666;
}

.case-rich__wysiwyg p,
.case-rich-steps__item-text p,
.case-rich__caption-text p {
    margin: 0 0 12px;
}

.case-rich__caption-text p:last-child {
    margin-bottom: 0;
}

.case-rich__wysiwyg h2,
.case-rich__wysiwyg h3,
.case-rich__wysiwyg h4 {
    margin: 0 0 18px;
    color: #000;
    font-family: var(--case-rich-font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 0.93;
}

.case-rich__wysiwyg h2:not(:first-child),
.case-rich__wysiwyg h3:not(:first-child),
.case-rich__wysiwyg h4:not(:first-child) {
    margin-top: 26px;
}

.case-rich__wysiwyg ul,
.case-rich__caption-text ul {
    margin: 8px 0 12px;
    padding-left: 0;
    list-style: none;
}

.case-rich__wysiwyg ul > li,
.case-rich__caption-text ul > li {
    position: relative;
    padding-left: 27px;
    margin-bottom: 6px;
}

.case-rich__wysiwyg ul > li:last-child,
.case-rich__caption-text ul > li:last-child {
    margin-bottom: 0;
}

.case-rich__wysiwyg ul > li::before,
.case-rich__caption-text ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(0.61em - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
}

.case-rich__wysiwyg ol,
.case-rich__caption-text ol {
    margin: 8px 0 12px;
    padding-left: 24px;
}

.case-rich__wysiwyg .yellow-brow {
    border-left: 9px solid #fdd525;
    border-radius: 4px;
    padding: 6px 0 6px 18px;
    margin: 14px 0;
    font-weight: 700;
    min-height: 58px;
    max-width: 1000px;
    display: block;
    line-height: 1.22;
}

.case-rich__wysiwyg .yellow-brow p {
    margin: 0;
}

.case-rich-steps__grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 802px) minmax(0, 1fr);
    column-gap: clamp(48px, 4vw, 96px);
    row-gap: 24px;
    align-items: stretch;
}

.case-rich-steps__image-box {
    width: 100%;
    max-width: 802px;
    justify-self: start;
    border-radius: 16px;
    overflow: hidden;
    background: #d9d9d9;
    aspect-ratio: 590 / 274;
}

.case-rich-steps__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-rich-steps__timeline {
    position: relative;
    --steps-dot-size: 31px;
    --steps-dot-border: 2px;
    --steps-line-width: 2px;
    --steps-axis-x: calc((var(--steps-dot-size) - var(--steps-line-width)) / 2);
    --steps-tail-dot-size: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding-bottom: 0;
}

.case-rich-steps__timeline::before {
    content: '';
    position: absolute;
    left: var(--steps-axis-x);
    top: 0;
    bottom: calc(var(--steps-tail-dot-size) / 2);
    width: var(--steps-line-width);
    background: #000;
}

.case-rich-steps__timeline::after {
    content: '';
    position: absolute;
    width: var(--steps-tail-dot-size);
    height: var(--steps-tail-dot-size);
    border-radius: 50%;
    background: #000;
    left: calc(var(--steps-axis-x) + (var(--steps-line-width) - var(--steps-tail-dot-size)) / 2);
    bottom: 0;
}

.case-rich-steps__item {
    position: relative;
    padding-left: 58px;
    margin-bottom: 0;
}

.case-rich-steps__item:last-child {
    margin-bottom: 0;
}

.case-rich-steps__num {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--steps-dot-size);
    height: var(--steps-dot-size);
    border: var(--steps-dot-border) solid #000;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: var(--case-rich-font-body);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.case-rich-steps__item-title {
    margin: 0 0 6px;
    color: #000;
    font-family: var(--case-rich-font-body);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.22;
}

.case-rich-steps__item-text p:last-child {
    margin-bottom: 0;
}

.case-rich__wide-image-box {
    margin-top: 14px;
    border-radius: 16px;
    overflow: hidden;
    background: #d9d9d9;
    aspect-ratio: 1355 / 491;
}

.case-rich__wide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-rich__double-image-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4%;
}

.case-rich__double-image-item {
    min-width: 0;
}

.case-rich__double-image-box {
    border-radius: 16px;
    overflow: hidden;
    background: #d9d9d9;
    aspect-ratio: 668 / 505;
}

.case-rich__double-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-rich-review {
    margin-top: 22px;
    background: #f3f3f3;
    border-radius: 16px;
    min-height: 767px;
    padding: 0 0 24px;
}

.case-rich-review__head {
    display: grid;
    grid-template-columns: 79px minmax(0, 1fr);
    align-items: start;
    column-gap: 27px;
    min-height: 101px;
    padding: 22px 30px 0 21px;
}

.case-rich-review__avatar-wrap {
    width: 79px;
    height: 79px;
    border-radius: 50%;
    background: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.case-rich-review__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1b1b1b;
}

.case-rich-review__avatar-fallback {
    color: #000;
    font-family: var(--case-rich-font-body);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.case-rich-review__name {
    margin: 0;
    color: #000;
    font-family: var(--case-rich-font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.case-rich-review__company {
    margin-top: 16px;
    color: #000;
    font-family: var(--case-rich-font-body);
    font-size: 16px;
    font-style: italic;
    font-weight: 400;
    line-height: 20px;
}

.case-rich-review__author {
    margin-top: -2px;
}

.case-rich-review__text {
    margin-top: 0;
    margin-left: 127px;
    max-width: none;
    padding-right: 30px;
    color: #000;
    font-family: var(--case-rich-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.case-rich-review__text p {
    margin: 0;
}

.case-rich-review__gallery {
    margin-top: 56px;
    margin-left: 117px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 35px;
    row-gap: 20px;
    padding-right: 30px;
}

.case-rich-review__gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: #d9d9d9;
    aspect-ratio: 561 / 505;
}

.case-rich-review__gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
