.cases-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(199, 167, 125, 0.12), transparent 28%),
        linear-gradient(180deg, #050504 0%, #0d0b08 44%, #070604 100%);
    color-scheme: dark;
}

.cases-main {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 118px 0 74px;
}

.cases-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 64px;
    align-items: end;
    margin-bottom: 34px;
}

.cases-hero .section-kicker {
    grid-column: 1 / -1;
}

.cases-hero h1 {
    margin: 0;
    color: var(--gold-soft);
    font-family: Georgia, "Songti SC", serif;
    font-size: 96px;
    line-height: 0.96;
    font-weight: 500;
}

.cases-hero p:last-child {
    margin: 0 0 12px;
    color: rgba(245, 238, 230, 0.72);
    font-size: 17px;
}

.case-tabs {
    display: flex;
    justify-content: center;
    gap: 72px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.case-tabs button {
    position: relative;
    min-height: 56px;
    border: 0;
    background: transparent;
    color: rgba(245, 238, 230, 0.48);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.case-tabs button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.case-tabs button.is-active {
    color: var(--gold-soft);
}

.case-tabs button.is-active::after,
.case-tabs button:hover::after {
    transform: scaleX(1);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    min-height: 680px;
}

.case-card {
    position: relative;
    min-height: 318px;
    overflow: hidden;
    border: 1px solid rgba(199, 167, 125, 0.16);
    background: #11100d;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(199, 167, 125, 0.62);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38);
}

.case-card img {
    width: 100%;
    height: 100%;
    min-height: 318px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.case-card:hover img {
    transform: scale(1.06);
}

.case-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.86) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 45%);
}

.case-card__body {
    position: absolute;
    z-index: 1;
    left: 28px;
    right: 28px;
    bottom: 24px;
}

.case-card__tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 3px 11px;
    border: 1px solid rgba(199, 167, 125, 0.36);
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

.case-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 800;
}

.case-card time {
    color: rgba(245, 238, 230, 0.72);
    font-size: 15px;
}

.case-empty {
    grid-column: 1 / -1;
    min-height: 360px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
}

.case-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 52px;
}

.case-pagination button {
    min-width: 46px;
    height: 46px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--gold-soft);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.case-pagination .page-arrow {
    width: 72px;
    height: 72px;
    border-color: rgba(199, 167, 125, 0.38);
    background: rgba(199, 167, 125, 0.12);
    font-size: 26px;
}

.case-pagination button.is-active,
.case-pagination button:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: #17110a;
}

.case-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.case-detail {
    width: min(1280px, calc(100% - 64px));
    margin: 0 auto;
    padding: 122px 0 88px;
}

.case-detail-hero {
    display: grid;
    gap: 22px;
    padding: 48px 0 38px;
    border-bottom: 1px solid var(--line);
}

.case-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(245, 238, 230, 0.5);
    font-size: 14px;
}

.case-breadcrumb a {
    color: var(--gold);
    font-weight: 800;
}

.case-detail-hero h1 {
    max-width: 1040px;
    margin: 0;
    color: var(--gold-soft);
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(42px, 5.6vw, 82px);
    line-height: 1.12;
    font-weight: 500;
}

.case-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.case-detail-meta span,
.case-detail-meta time {
    padding: 7px 14px;
    border: 1px solid rgba(199, 167, 125, 0.26);
    color: rgba(245, 238, 230, 0.72);
    font-size: 14px;
}

.case-detail-cover {
    margin: 46px 0 0;
    border: 1px solid rgba(199, 167, 125, 0.18);
    background: #0b0a08;
    overflow: hidden;
}

.case-detail-cover img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    display: block;
}

.case-detail-content {
    padding: 70px 0 74px;
    border-bottom: 1px solid var(--line);
}

.case-article {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 70px;
}

.case-article .case-summary {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 24px 32px;
    border: 1px solid rgba(199, 167, 125, 0.22);
    background: rgba(199, 167, 125, 0.06);
    color: rgba(245, 238, 230, 0.82);
    font-size: 18px;
    line-height: 2;
    text-align: center;
}

.case-content-section {
    display: grid;
    gap: 28px;
}

.case-content-section h2 {
    width: fit-content;
    margin: 0 auto;
    padding: 12px 28px;
    border: 1px solid rgba(199, 167, 125, 0.36);
    color: var(--gold-soft);
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1.25;
    text-align: center;
}

.case-content-section p {
    width: min(980px, 100%);
    margin: 0 auto;
    color: rgba(245, 238, 230, 0.78);
    font-size: 18px;
    line-height: 2;
    text-align: center;
}

.case-content-section figure {
    margin: 8px auto 0;
    width: min(980px, 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(199, 167, 125, 0.18);
    background: rgba(255, 255, 255, 0.026);
}

.case-content-section img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    display: block;
}

.case-detail-nav {
    padding: 58px 0 0;
}

.case-detail-end {
    display: grid;
    grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 54px;
    color: rgba(234, 215, 189, 0.2);
    font-size: 18px;
    font-weight: 800;
    text-transform: lowercase;
}

.case-detail-end::before,
.case-detail-end::after {
    content: "";
    height: 1px;
    background: rgba(199, 167, 125, 0.22);
}

.case-detail-nav__row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: clamp(24px, 6vw, 90px);
}

.case-detail-nav__row.is-first {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
}

.case-detail-nav__row.is-first .case-nav-back {
    justify-self: start;
}

.case-detail-nav__row.is-first .case-nav-link--next {
    justify-self: end;
}

.case-detail-nav__row.is-last {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
}

.case-detail-nav__row.is-last .case-nav-link--prev {
    justify-self: start;
}

.case-detail-nav__row.is-last .case-nav-back {
    justify-self: end;
}

.case-detail-nav__row.is-first.is-last {
    grid-template-columns: 1fr;
}

.case-detail-nav__row.is-first.is-last .case-nav-back {
    justify-self: center;
}

.case-nav-link,
.case-nav-back {
    min-height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.case-nav-link {
    min-width: 210px;
    gap: 18px;
    border: 2px solid rgba(199, 167, 125, 0.86);
    color: var(--gold-soft);
    background: rgba(199, 167, 125, 0.05);
    font-size: 28px;
}

.case-nav-link span {
    font-size: 34px;
    line-height: 1;
}

.case-nav-link:hover {
    transform: translateY(-2px);
    border-color: var(--gold-soft);
    background: rgba(199, 167, 125, 0.13);
}

.case-nav-back {
    min-width: 210px;
    padding: 0 34px;
    border: 1px solid rgba(234, 215, 189, 0.16);
    color: var(--gold-soft);
    background: rgba(234, 215, 189, 0.08);
    font-size: 24px;
}

.case-nav-back:hover {
    transform: translateY(-2px);
    background: rgba(199, 167, 125, 0.16);
}

.case-nav-placeholder {
    min-width: 210px;
    min-height: 74px;
    display: block;
}

.case-detail-nav__row.is-first .case-nav-placeholder,
.case-detail-nav__row.is-last .case-nav-placeholder {
    display: none;
}

@media (max-width: 1100px) and (pointer: coarse) {
    .cases-main {
        width: calc(100% - 64px);
    }

    .cases-hero {
        gap: 36px;
    }

    .cases-hero h1 {
        font-size: 72px;
    }

    .case-tabs {
        gap: 42px;
    }

    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: auto;
    }

}

@media (max-width: 760px) and (pointer: coarse) {
    .cases-main {
        width: min(100% - 32px, 1400px);
        padding-top: 98px;
    }

    .cases-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .cases-hero h1 {
        font-size: 48px;
    }

    .case-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 26px;
    }

    .case-tabs button {
        white-space: nowrap;
    }

    .case-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .case-detail {
        width: min(100% - 32px, 1280px);
        padding-top: 98px;
    }

    .case-detail-content {
        padding: 42px 0;
    }

    .case-detail-nav {
        padding-top: 36px;
    }

    .case-detail-end {
        gap: 12px;
        margin-bottom: 28px;
        font-size: 13px;
    }

    .case-detail-nav__row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .case-detail-nav__row.is-first,
    .case-detail-nav__row.is-last,
    .case-detail-nav__row.is-first.is-last {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .case-nav-link,
    .case-nav-back {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .case-nav-link {
        gap: 6px;
        border-width: 2px;
        font-size: 15px;
    }

    .case-nav-link span {
        font-size: 18px;
    }

    .case-nav-back {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        padding: 0 22px;
        font-size: 14px;
    }

    .case-nav-link--prev {
        grid-column: 1;
        grid-row: 1;
    }

    .case-nav-link--next {
        grid-column: 3;
        grid-row: 1;
    }

    .case-detail-nav__row.is-first .case-nav-back,
    .case-detail-nav__row.is-last .case-nav-back,
    .case-detail-nav__row.is-first.is-last .case-nav-back {
        justify-self: stretch;
    }

    .case-detail-nav__row.is-first .case-nav-link--next {
        grid-column: 3;
        grid-row: 1;
        justify-self: stretch;
    }

    .case-detail-nav__row.is-last .case-nav-link--prev {
        grid-column: 1;
        grid-row: 1;
        justify-self: stretch;
    }

    .case-nav-placeholder {
        min-width: 0;
        min-height: 44px;
        display: block;
    }

    .case-pagination {
        gap: 10px;
        margin-top: 34px;
    }

    .case-pagination .page-arrow {
        width: 56px;
        height: 56px;
    }
}
