.section-casestudy-overview {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.section-casestudy-overview__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid #d7e4e4;
    border-radius: 14px;
    background: #f7fbfb;
}

.section-casestudy-overview__filter,
.section-casestudy-overview__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid #d7e4e4;
    border-radius: 12px;
    background: #fff;
    color: #006068;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}

.section-casestudy-overview__reset {
    width: 42px;
    height: 42px;
    margin-left: auto;
    border-color: #f59b10;
    border-radius: 8px;
    background: #f59b10;
    color: #fff;
}

.section-casestudy-overview__reset[hidden] {
    display: none;
}

.section-casestudy-overview__reset svg {
    width: 20px;
    height: 20px;
}

.section-casestudy-overview__filter:hover,
.section-casestudy-overview__filter.is-active {
    border-color: #fa891b;
    background: #fff8f1;
    transform: translateY(-1px);
}

.section-casestudy-overview__reset:hover,
.section-casestudy-overview__reset:focus-visible {
    background: #fff;
    color: #f59b10;
    outline: none;
}

.section-casestudy-overview__filter img {
    display: block;
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
}

.section-casestudy-overview__filter-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #006068;
    color: #fff;
    font-weight: 700;
}

.section-casestudy-overview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 376px));
    gap: 24px;
}

.casestudy-card.is-filter-hidden,
.section-casestudy-overview__empty[hidden] {
    display: none;
}

.casestudy-card {
    min-width: 0;
}

.casestudy-card__link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 292px;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.casestudy-card__link:hover {
    border-color: #fa891b;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
    text-decoration: none;
}

.casestudy-card__link:focus,
.casestudy-card__link:focus-visible,
.section-casestudy-overview__filter:focus,
.section-casestudy-overview__filter:focus-visible,
.section-casestudy-overview__reset:focus,
.section-casestudy-overview__reset:focus-visible {
    outline: none;
    box-shadow: none;
}

.casestudy-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 98px;
    padding: 18px 14px 12px;
    background: #fff;
}

.casestudy-card__logo img {
    display: block;
    max-width: 94%;
    max-height: 86px;
    object-fit: contain;
}

.casestudy-card__visual {
    position: relative;
    display: block;
    flex: 1;
    min-height: 190px;
    background: #f3f3f3;
    overflow: hidden;
}

.casestudy-card__image {
    display: block;
    width: 100%;
    height: 100%;
}

.casestudy-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.casestudy-card__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 18px 74px 18px 18px;
    background: rgba(255, 255, 255, .97);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity .22s ease, transform .22s ease, background-color .22s ease;
    z-index: 2;
}

.casestudy-card__link:hover .casestudy-card__body,
.casestudy-card__link:focus-visible .casestudy-card__body {
    background: rgba(255, 255, 255, .98);
    opacity: 1;
    transform: translateY(0);
}

.casestudy-card__quote {
    color: #333;
    line-height: 1.45;
}

.casestudy-card__author {
    color: #666;
    font-size: .9rem;
    line-height: 1.35;
}

.casestudy-card__arrow {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #fa891b;
    background: #fa891b;
    color: #fff;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}

.casestudy-card__arrow svg {
    width: 22px;
    height: 22px;
}

.casestudy-card__link:hover .casestudy-card__arrow,
.casestudy-card__link:focus-visible .casestudy-card__arrow {
    background: #fff;
    color: #fa891b;
    transform: translateX(2px);
}

.section-casestudy-overview__empty {
    margin: 24px 0 0;
    color: #666;
}

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

@media (max-width: 640px) {
    .section-casestudy-overview__filters {
        gap: 8px;
        padding: 10px;
    }

    .section-casestudy-overview__filter {
        width: 46px;
        height: 46px;
    }

    .casestudy-card__link {
        min-height: 0;
    }

    .casestudy-card__visual {
        min-height: 190px;
    }

    .casestudy-card__body {
        position: static;
        height: auto;
        min-height: 0;
        padding: 18px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}
