/* ==============================
   МОДАЛЬНОЕ ОКНО КЕЙСА
   ============================== */
.case-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.case-modal.open {
    visibility: visible;
    opacity: 1;
}

.case-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 17, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.case-modal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: min(900px, calc(100vw - 40px));
    max-height: 90vh;
    background: var(--emerald-dark);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow-y: auto;
    transition: transform 0.4s ease;
}

.case-modal.open .case-modal-window {
    transform: translate(-50%, -50%);
}

/* Скроллбар внутри модалки */
.case-modal-window::-webkit-scrollbar {
    width: 8px;
}
.case-modal-window::-webkit-scrollbar-track {
    background: var(--emerald-deep);
}
.case-modal-window::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
    opacity: 0.5;
}

.case-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(10, 38, 32, 0.9);
    border: 1px solid var(--gold);
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.case-modal-close:hover {
    background: var(--gold);
    transform: rotate(90deg);
}

.case-modal-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1.5px;
    background: var(--gold);
    transition: background 0.3s ease;
}

.case-modal-close:hover span {
    background: var(--emerald-deep);
}

.case-modal-close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}
.case-modal-close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.case-content {
    display: none;
}

.case-content.active {
    display: block;
}

.case-hero {
    width: 100%;
    height: 220px;
    position: relative;
}

.case-body {
    padding: 50px 60px 60px;
}

.case-body .section-eyebrow {
    margin-bottom: 12px;
}

.case-content-title {
    font-size: clamp(28px, 4vw, 44px);
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 20px;
}

.case-content-lead {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
    line-height: 1.7;
}

.case-block {
    margin-bottom: 32px;
}

.case-block h3 {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.case-block h3::before {
    content: '◆';
    color: var(--gold);
    font-size: 14px;
    opacity: 0.8;
}

.case-block p {
    color: var(--text-mute);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 12px;
}

.case-block strong {
    color: var(--cream);
    font-weight: 500;
}

.case-features {
    list-style: none;
    margin-top: 16px;
}

.case-features li {
    color: var(--text-mute);
    font-size: 15px;
    line-height: 1.65;
    padding: 12px 0 12px 28px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.case-features li:last-child {
    border-bottom: none;
}

.case-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--gold);
    font-weight: bold;
}

.case-features li strong {
    color: var(--cream);
    font-weight: 500;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.case-tags span {
    padding: 7px 14px;
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 12px;
    color: var(--cream);
    letter-spacing: 0.05em;
}
