.cases-page {
    background: #f7f5f5;
}

.cases-container {
    max-width: 1104px;
    margin: 0 auto;
    padding: 42px 14px 64px;
    box-sizing: border-box;
}

.cases-page__head {
    max-width: 820px;
    margin-bottom: 26px;
}

.cases-page__title {
    color: #111;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 600;
    margin: 0 0 14px;
}

.cases-page__lead {
    color: #333;
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
}

.cases-filter-nav.header-menu-articles-page {
    justify-content: flex-start;
    margin: 0 0 28px;
    padding: 0;
}

.cases-filter-nav .button-article a[href] {
    min-height: 44px;
    box-sizing: border-box;
}

.cases-filter-nav .button-article.is-active a[href] {
    background: #111;
    border-color: #111;
    color: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

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

.case-card__link,
.case-card__link[href],
.case-card__link:visited {
    display: block;
    height: 100%;
    color: #111;
    text-decoration: none;
    font-weight: 400;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(17, 17, 17, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.case-card__link:hover,
.case-card__link:focus {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(17, 17, 17, .12);
}

.case-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #ece8df;
    overflow: hidden;
}

.case-card__media picture,
.case-hero-cover picture {
    display: block;
    width: 100%;
    height: 100%;
}

.case-card__image,
.case-card__image--empty {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c6a36;
    background:
        linear-gradient(135deg, #f7f1dc 0%, #ffffff 58%, #e8eef4 100%);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
}

.case-card__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    box-sizing: border-box;
    border-radius: 999px;
    background: rgba(17, 17, 17, .82);
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.case-card__body {
    padding: 17px 18px 20px;
}

.case-card__title {
    margin: 0;
    color: #111;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.cases-empty {
    padding: 28px 24px;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 18px;
    line-height: 1.5;
}

.case-detail-hero.service-landing-hero {
    background: #f7f5f5;
}

.case-preview-section {
    padding: 10px 14px 0;
}

.case-preview-banner {
    max-width: 1104px;
    margin: 0 auto;
    padding: 10px 14px;
    box-sizing: border-box;
    border: 1px solid #d7b044;
    border-radius: 8px;
    background: #fff7d6;
    color: #5d4300;
    font-size: 14px;
    line-height: 1.4;
}

.case-detail-hero .service-landing-hero__lead {
    max-width: 720px;
}

.case-detail-people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 720px;
    margin: 28px 0 0;
}

.case-detail-hero .service-landing-hero__actions + .case-detail-people {
    margin-top: 0;
}

.case-detail-people__section {
    min-width: 0;
}

.case-detail-people__title {
    margin: 0 0 8px;
    color: #333;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.case-detail-people .service-landing-expert-card {
    height: 100%;
    background: #fff;
}

.case-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.case-detail-hero__pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff;
    color: #1f2f3f;
    border: 1px solid #e1dfd8;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.case-hero-cover {
    margin: -20px -20px 16px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: #ece8df;
    aspect-ratio: 16 / 9;
}

.case-hero-cover__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-hero-cover__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c6a36;
    background: linear-gradient(135deg, #f7f1dc 0%, #ffffff 58%, #e8eef4 100%);
    font-size: 15px;
    font-weight: 700;
}

.case-hero-facts {
    display: grid;
    gap: 14px;
}

.case-hero-card .article-landing-hero-card__section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
}

.case-hero-card .article-landing-hero-card__title {
    margin: 0 0 10px;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

.case-hero-fact {
    margin: 0;
    color: #333;
    font-size: 17px;
    line-height: 1.45;
}

.case-hero-fact span {
    display: block;
    color: #737373;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 4px;
}

.case-page-main .article-cards-container {
    padding-top: 18px;
}

.case-page-content {
    max-width: 840px;
}

.case-page-content h2 {
    margin: 36px 0 14px;
    font-size: 30px;
    line-height: 1.25;
}

.case-page-content h3 {
    margin: 28px 0 12px;
    font-size: 23px;
    line-height: 1.3;
}

.case-page-content p,
.case-page-content ul,
.case-page-content ol {
    margin-bottom: 18px;
}

.case-page-content ul,
.case-page-content ol {
    padding-left: 26px;
}

.case-page-content ul {
    list-style: disc outside;
}

.case-page-content ol {
    list-style: decimal outside;
}

.case-page-content li {
    display: list-item;
    margin-bottom: 9px;
}

.case-page-content ul > li {
    list-style-type: disc;
}

.case-page-content ol > li {
    list-style-type: decimal;
}

.case-media {
    margin: 30px 0;
}

.case-media picture {
    display: block;
}

.case-media__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #ece8df;
}

.case-media figcaption {
    margin-top: 9px;
    color: #6b6b6b;
    font-size: 14px;
    line-height: 1.45;
}

.case-related {
    padding-bottom: 70px;
}

.case-related .article-cards-container {
    padding-top: 20px;
}

.case-related__title.article-cards-container-title {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .cases-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cases-page__title {
        font-size: 34px;
    }

    .cases-page__lead {
        font-size: 18px;
    }

    .case-detail-people {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    .cases-container {
        padding: 32px 14px 46px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .cases-page__title {
        font-size: 28px;
    }

    .case-card__title {
        font-size: 18px;
    }

    .case-page-content h2 {
        font-size: 24px;
    }

    .case-page-content h3 {
        font-size: 20px;
    }

    .case-related__title.article-cards-container-title {
        font-size: 26px;
    }
}
