.medweb-case-showcase {
    position: relative;
    isolation: isolate;
    width: auto;
    max-width: none;
    margin: 24px 24px;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg, #10251f 0%, #365c3c 55%, #0b1715 100%);
    color: #14252b;
}

.medweb-case-showcase__background,
.medweb-case-showcase__background-image,
.medweb-case-showcase__wash {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.medweb-case-showcase__background {
    z-index: 0;
    overflow: hidden;
}

.medweb-case-showcase__background-image {
    display: block;
    object-fit: cover;
    object-position: 50% 42%;
}

.medweb-case-showcase__wash {
    z-index: 1;
    background: rgba(0, 0, 0, .2);
}

.medweb-case-showcase__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1200px);
    margin-inline: auto;
    padding: clamp(24px, 5vw, 95px) 0;
}

.medweb-case-showcase__tab {
    position: absolute;
    left: 50%;
    z-index: 4;
    display: flex;
    width: 140px;
    height: 38px;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: lowercase;
}

.medweb-case-showcase__tab--top {
    top: 0;
}

.medweb-case-showcase__tab--bottom {
    bottom: 0;
}

.medweb-case-showcase__tab:focus-visible {
    outline: 2px solid #9ce154;
    outline-offset: 3px;
}

.medweb-case-showcase__header {
    max-width: 760px;
    margin: 0 auto clamp(24px, 4vw, 48px);
    color: #fff;
    text-align: center;
}

.medweb-case-showcase__heading {
    margin: 0;
    color: currentColor;
    font-size: clamp(32px, 4.5vw, 58px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .98;
}

.medweb-case-showcase__subtitle {
    max-width: 62ch;
    margin: 16px auto 0;
    color: currentColor;
    font-size: clamp(14px, 1.45vw, 17px);
    line-height: 1.45;
    opacity: .78;
}

.medweb-case-showcase__title-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.medweb-case-showcase__category {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    padding: 7px 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #9ce154b8;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0;
}

.medweb-case-showcase__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.medweb-case-showcase__grid::before {
    position: absolute;
    z-index: -1;
    inset: -20px;
    border-radius: 36px;
    background: rgba(21, 48, 49, .13);
    content: '';
    filter: blur(22px);
}

.medweb-case-showcase__card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 300px;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
    border: 1px solid transparent;
    border-radius: 28px;
    color: #13262d;
    text-decoration: none;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background-color .24s ease;
}

.medweb-case-showcase__card::after {
    display: none;
}

.medweb-case-showcase__card:hover,
.medweb-case-showcase__card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 38px rgba(24, 52, 59, .2), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.medweb-case-showcase__card:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .9);
    outline-offset: 3px;
}

.medweb-case-showcase__card.is-opaque {
    background: rgba(255, 255, 255, .94);
    border-color: rgba(255, 255, 255, 1);
}

.medweb-case-showcase__card.is-transparent {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.medweb-case-showcase__card.is-blue {
    background: rgba(75, 126, 148, .54);
    border-color: rgba(255, 255, 255, .38);
    color: #fff;
}

.medweb-case-showcase__card.is-dark {
    background: rgba(0, 0, 0, .35);
    border-color: rgba(255, 255, 255, .15);
    color: #fff;
}

.medweb-case-showcase__card-background,
.medweb-case-showcase__card-background-image,
.medweb-case-showcase__card-background-wash {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.medweb-case-showcase__card-background {
    z-index: 0;
    overflow: hidden;
}

.medweb-case-showcase__card-background-image {
    display: block;
    object-fit: cover;
    object-position: center;
}

.medweb-case-showcase__card-background-wash {
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .64));
}

.medweb-case-showcase__card.has-card-background {
    color: #fff;
}

.medweb-case-showcase__card.has-card-background.is-opaque {
    background: rgba(255, 255, 255, .28);
    border-color: rgba(255, 255, 255, .72);
}

.medweb-case-showcase__card.has-card-background > :not(.medweb-case-showcase__card-background):not(.medweb-case-showcase__card-background-wash) {
    position: relative;
    z-index: 2;
}

.medweb-case-showcase__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    margin-bottom: 16px;
}

.medweb-case-showcase__logo-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 40px;
    min-height: 40px;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    color: #1d6b82;
    box-sizing: border-box;
}

.medweb-case-showcase__logo-badge-image {
    display: block;
    max-width: 140px;
    max-height: 30px;
    width: auto;
    height: 30px;
    object-fit: contain;
}

.medweb-case-showcase__signal {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 3px;
    width: 18px;
    height: 14px;
}

.medweb-case-showcase__signal i {
    display: block;
    width: 4px;
    height: 7px;
    border-radius: 99px;
    background: currentColor;
    opacity: .32;
    transition: height .24s ease, opacity .24s ease;
}

.medweb-case-showcase__signal i:nth-child(2) {
    height: 12px;
    opacity: .52;
}

.medweb-case-showcase__signal i:nth-child(3) {
    height: 9px;
    opacity: .38;
}

.medweb-case-showcase__card:hover .medweb-case-showcase__signal i,
.medweb-case-showcase__card:focus-visible .medweb-case-showcase__signal i {
    height: 13px;
    opacity: .78;
}


.medweb-case-showcase__title {
    display: block;
    max-width: none;
    margin-top: 0;
    color: currentColor;
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.medweb-case-showcase__description {
    display: block;
    margin-top: 14px;
    padding-top: 0;
}

.medweb-case-showcase__variation {
    display: block;
    margin-top: auto;
    padding-top: 24px;
}

.medweb-case-showcase__result strong,
.medweb-case-showcase__variation--metric strong {
    display: block;
    color: currentColor;
    font-size: 36px;
    font-weight: 650;
    letter-spacing: -.06em;
    line-height: .95;
}

.medweb-case-showcase__result > span,
.medweb-case-showcase__variation--metric > span {
    display: block;
    max-width: 18ch;
    margin-top: 6px;
    color: currentColor;
    font-size: 12px;
    line-height: 1.3;
    opacity: .68;
}

.medweb-case-showcase__description {
    max-width: 29ch;
    color: currentColor;
    font-size: 14px;
    line-height: 1.42;
    opacity: .75;
}

.medweb-case-showcase__variation--text {
    max-width: 29ch;
    color: currentColor;
    font-size: 14px;
    line-height: 1.42;
    opacity: .78;
}

.medweb-case-showcase__variation--double {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.medweb-case-showcase__variation-double-item {
    display: block;
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid currentColor;
    border-radius: 16px;
    color: currentColor;
    opacity: .84;
}

.medweb-case-showcase__variation-double-item strong {
    display: block;
    overflow: hidden;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.055em;
    line-height: .95;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.medweb-case-showcase__variation-double-item > span {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.25;
    opacity: .72;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.medweb-case-showcase__variation--line {
    overflow: hidden;
}

.medweb-case-showcase__variation--line svg {
    display: block;
    width: 100%;
    height: 64px;
    overflow: visible;
}

.medweb-case-showcase__line-fill {
    fill: #9ce154;
    opacity: .12;
}

.medweb-case-showcase__line-path {
    fill: none;
    stroke: #9ce154;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.medweb-case-showcase__variation-line-meta,
.medweb-case-showcase__variation-bars-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.medweb-case-showcase__variation-line-meta strong,
.medweb-case-showcase__variation-bars-meta strong {
    color: currentColor;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -.05em;
    line-height: 1;
}

.medweb-case-showcase__variation-line-meta > span,
.medweb-case-showcase__variation-bars-meta > span {
    overflow: hidden;
    color: currentColor;
    font-size: 10px;
    line-height: 1.25;
    opacity: .68;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.medweb-case-showcase__variation--bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.medweb-case-showcase__bar-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 5px;
    height: 68px;
    padding: 0 2px;
    color: currentColor;
    opacity: .82;
}

.medweb-case-showcase__bar-chart i {
    display: block;
    flex: 1 1 0;
    min-width: 4px;
    height: var(--bar-height, 40%);
    border-radius: 15px 15px 0 0;
    background: #9ce154;
    opacity: .9;
}

.medweb-case-showcase__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 0;
}

.medweb-case-showcase__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: currentColor;
    font-size: 10px;
    line-height: 1;
    opacity: .68;
}

.medweb-case-showcase__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    width: 42px;
    height: 42px;
    margin-top: 20px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: currentColor;
    opacity: .72;
    transition: transform .24s ease, opacity .24s ease, background-color .24s ease;
}

.medweb-case-showcase__card:not(.medweb-case-showcase__archive-card) .medweb-case-showcase__arrow {
    display: none;
}

.medweb-case-showcase__arrow svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.medweb-case-showcase__card:hover .medweb-case-showcase__arrow,
.medweb-case-showcase__card:focus-visible .medweb-case-showcase__arrow {
    transform: translate(3px, -3px);
    background: rgba(255, 255, 255, .18);
    opacity: 1;
}

.medweb-case-showcase__archive-card {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.medweb-case-showcase__archive-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #fff;
    color: #172126;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.medweb-case-showcase__archive-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.medweb-case-showcase__archive-card .medweb-case-showcase__title {
    max-width: 15ch;
}

.medweb-case-showcase__archive-caption {
    max-width: 24ch;
    margin-top: 8px;
    color: currentColor;
    font-size: 12px;
    line-height: 1.3;
    opacity: .7;
}

.medweb-case-showcase__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: min(100%, 760px);
    margin: 48px auto 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 100px;
    background: rgba(0, 0, 0, .4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.medweb-case-showcase__logo-list {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.medweb-case-showcase__logos-divider {
    display: block;
    width: 1px;
    height: 28px;
    margin: 0 4px;
    background: rgba(255, 255, 255, .2);
}

.medweb-case-showcase__cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid #9ce154;
    border-radius: 999px;
    background: #9ce154;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .24s ease, background-color .24s ease, box-shadow .24s ease;
}

.medweb-case-showcase__cta:hover,
.medweb-case-showcase__cta:focus-visible {
    background: #8bd048;
    box-shadow: 0 0 16px rgba(156, 225, 84, .45);
    transform: translateY(-2px);
}

.medweb-case-showcase__logo,
.medweb-case-showcase__logo-link,
.medweb-case-showcase__logo-surface {
    display: inline-flex;
}

.medweb-case-showcase__logo {
    flex: 0 0 auto;
}

.medweb-case-showcase__logo-link {
    color: inherit;
    text-decoration: none;
}

.medweb-case-showcase__logo-surface {
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 5px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    transition: border-color .24s ease, background-color .24s ease, transform .24s ease;
}

.medweb-case-showcase__logo-surface--example {
    padding: 0;
}

.medweb-case-showcase__logo-mark {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
}

.medweb-case-showcase__logo-mark--one {
    background: #e5f4ef;
    color: #3c8b73;
}

.medweb-case-showcase__logo-mark--two {
    background: #eaf0fb;
    color: #5574b5;
}

.medweb-case-showcase__logo-mark--three {
    background: #f5eee1;
    color: #a8783e;
}

.medweb-case-showcase__logo-image {
    display: block;
    max-width: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    transition: filter .24s ease, transform .24s ease;
}

.medweb-case-showcase__logo-link:hover .medweb-case-showcase__logo-surface,
.medweb-case-showcase__logo-link:focus-visible .medweb-case-showcase__logo-surface {
    border-color: rgba(255, 255, 255, .98);
    background: rgba(255, 255, 255, .96);
    transform: translateY(-2px);
}

.medweb-case-showcase__logo-link:hover .medweb-case-showcase__logo-image,
.medweb-case-showcase__logo-link:focus-visible .medweb-case-showcase__logo-image {
    filter: grayscale(0) opacity(1);
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .medweb-case-showcase {
        border-radius: 48px;
    }
}

@media (max-width: 1199px) {
    .medweb-case-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {
    .medweb-case-showcase__background-image {
        object-position: 50% 56%;
    }

    .medweb-case-showcase__inner {
        padding: 80px 16px 80px;
    }

    .medweb-case-showcase__tab {
        width: 128px;
        height: 36px;
    }

    .medweb-case-showcase__header {
        margin-bottom: 24px;
    }

    .medweb-case-showcase__heading {
        font-size: clamp(32px, 10vw, 44px);
    }

    .medweb-case-showcase__subtitle {
        margin-top: 12px;
        font-size: 14px;
    }

    .medweb-case-showcase__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .medweb-case-showcase__card {
        padding: 20px;
        border-radius: 21px;
        min-height: 260px;
    }

    .medweb-case-showcase__logos {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        border-radius: 28px;
    }

    .medweb-case-showcase__logo-list,
    .medweb-case-showcase__cta {
        flex: 0 0 auto;
    }

    .medweb-case-showcase__logo-list {
        flex-wrap: nowrap;
    }

    .medweb-case-showcase__title {
        max-width: 17ch;
        font-size: 22px;
    }

    .medweb-case-showcase__description {
        max-width: 34ch;
    }

    .medweb-case-showcase__logos {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        border-radius: 28px;
        padding: 20px;
    }
    .medweb-case-showcase__logos-divider{display: none}
}

@media (prefers-reduced-motion: reduce) {
    .medweb-case-showcase__card,
    .medweb-case-showcase__arrow,
    .medweb-case-showcase__signal i,
    .medweb-case-showcase__logo-surface,
    .medweb-case-showcase__logo-image {
        transition: none;
    }
}
