body.page-case {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.page-case header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.case-page {
    flex: 1 1 auto;
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 0 24px 48px;
}

.case-article {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.case-back {
    margin: 0;
    font-size: 0.9rem;
}

.case-back a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--link-underline);
    opacity: 0.7;
}

.case-back a:hover {
    color: #66b337;
    border-color: #66b337;
    opacity: 1;
}

.case-title {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.case-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #66b337;
    border-radius: 12px;
    background: #121218;
}

.case-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.case-body p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.9;
}

.case-contact {
    margin-top: 36px;
    padding: 24px;
    border: 1px solid #66b337;
    border-radius: 12px;
    background: rgba(102, 179, 55, 0.06);
}

.case-contact-title {
    margin: 0 0 18px;
    font-size: 1.4rem;
    font-weight: 800;
}

@media (max-width: 767px) {
    body.page-case header {
        padding: 18px 16px;
    }

    .case-page {
        padding: 0 16px 32px;
    }

    .case-title {
        font-size: 1.7rem;
    }

    .case-body p {
        font-size: 0.95rem;
    }

    .case-contact {
        padding: 16px;
    }
}
