body.page-case .case-page .container {
    max-width: 1440px;
}

body.page-case .main-footer,
body.page-article-single .main-footer {
    max-width: none;
    width: 100%;
}

.case-page {
    padding-bottom: 3em;
}

.case-page__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 64px;
    width: 100%;
}

.case-hero {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    min-height: 320px;
    padding: 40px;
    border-radius: 10px;
    background-color: #F7F1E8;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    overflow: hidden;
    box-sizing: border-box;
}

.case-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 640px;
    padding: 24px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.65);
    box-sizing: border-box;
}

.case-hero__country {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #8F8681;
}

.case-hero__title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #4C3425;
}

.case-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
}

.case-section__title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #4C3425;
}

.case-section__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    max-width: 900px;
}

.case-section__body p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #4C3425;
}

.case-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.case-actions__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 900px;
    padding-top: 16px;
    border-top: 1px solid #FEF1D3;
    align-self: stretch;
}

.case-actions__item:first-child {
    padding-top: 0;
    border-top: none;
}

.case-actions__title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
    color: #4C3425;
}

.case-actions__text {
    margin: 0;
    max-width: 850px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #4C3425;
}

.case-result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    padding: 24px;
    background: #FEF9EF;
    border-radius: 10px;
    box-sizing: border-box;
}

.case-result .case-section__title {
    align-self: stretch;
}

.case-result__stats {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 56px;
    align-self: stretch;
}

.case-result__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 229px;
}

.case-result__value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 130%;
    color: #D5B075;
}

.case-result__caption {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 145%;
    color: #4C3425;
}

.case-related {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
}

.case-related__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

.case-related__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 calc(50% - 12px);
    min-width: 260px;
    max-width: 551px;
    min-height: 152px;
    padding: 14px;
    background: #FFFFFF;
    box-shadow: 0 4px 34px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: color 0.3s;
}

.case-related__card:hover {
    color: #D5B075;
}

.case-related__card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    color: #4C3425;
}

.case-related__card:hover .case-related__card-title {
    color: #D5B075;
}

.case-related__card-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #4C3425;
}

@media (max-width: 1024px) {
    .case-page__content {
        gap: 48px;
    }

    .case-hero {
        min-height: 260px;
        padding: 28px;
        background-position: center right;
    }

    .case-hero__inner {
        max-width: 100%;
    }

    .case-result__stats {
        gap: 28px 40px;
    }
}

@media (max-width: 767px) {
    .case-page__content {
        gap: 36px;
    }

    .case-hero {
        min-height: 220px;
        padding: 20px;
        background-size: cover;
        background-position: center center;
    }

    .case-hero__title {
        font-size: 18px;
        line-height: 22px;
    }

    .case-hero__inner {
        padding: 16px;
    }

    .case-result {
        padding: 20px;
    }

    .case-result__stats {
        flex-direction: column;
        gap: 20px;
    }

    .case-related__card {
        flex: 1 1 100%;
        max-width: none;
        min-height: 0;
    }
}
