/* ==============================================
   ЛОКАЛЬНЫЕ СТИЛИ ДЛЯ СТРАНИЦ КЕЙСОВ
   ============================================== */

/* Хлебные крошки */
.breadcrumbs-section {
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
    background: #fafafa;
}
.breadcrumbs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #888;
}
.breadcrumbs li a {
    color: var(--dark-blue);
    text-decoration: none;
}
.breadcrumbs li a:hover {
    color: var(--primary-orange);
}
.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 10px;
    color: #ccc;
}

/* Шапка кейса */
.case-hero-section {
    padding: 60px 0;
}
.case-hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.case-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.tag-orange {
    background: var(--primary-orange);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tag-outline {
    border: 1px solid #ddd;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.case-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 30px;
}
.case-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.meta-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}
.meta-value {
    font-size: 15px;
    color: var(--dark-blue);
}

/* Описание проекта */
.case-hero-desc {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
}
.case-hero-desc h3 {
    font-size: 20px;
    color: var(--dark-blue);
    margin-bottom: 20px;
}
.case-hero-desc p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}
.case-hero-desc p:last-child {
    margin-bottom: 0;
}

/* Галерея сетка */
.case-gallery-section {
    padding-bottom: 80px;
}
.case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.gallery-item {
    border-radius: 20px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.03);
}
.item-large {
    grid-column: span 2;
    height: 500px;
}
.item-half {
    grid-column: span 1;
    height: 400px;
}

/* Блок призыва к действию внизу */
.case-cta-section {
    padding: 0 0 80px 0;
}
.case-cta-box {
    background: var(--dark-blue);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    color: #fff;
}
.case-cta-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
}
.case-cta-box p {
    font-size: 16px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Адаптив для кейса */
@media (max-width: 992px) {
    .case-hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .item-large {
        height: 350px;
    }
    .item-half {
        height: 300px;
    }
}
@media (max-width: 768px) {
    .case-title {
        font-size: 28px;
    }
    .case-meta-grid {
        grid-template-columns: 1fr;
    }
    .case-hero-desc {
        padding: 25px;
    }
    .case-gallery-grid {
        grid-template-columns: 1fr; /* На мобильных все фото в один столбик */
    }
    .item-large, .item-half {
        grid-column: span 1;
        height: auto; /* Высота по контенту картинки */
    }
    .case-cta-box {
        padding: 40px 20px;
    }
    .case-cta-box h2 {
        font-size: 24px;
    }
}

