/* /assets/css/cases.css */

/* Hero секция */
.cases-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.95) 0%, rgba(26, 35, 126, 0.98) 100%);
    color: white;
    padding: 100px 0;
    overflow: hidden;
}

.cases-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/cases-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
    mix-blend-mode: overlay;
    animation: slowZoom 30s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.cases-hero .container {
    position: relative;
    z-index: 1;
}

.cases-hero .page-hero__title {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cases-hero .page-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Фильтр кейсов */
.cases-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.cases-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
    justify-content: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 40px;
    background: white;
    color: #1a237e;
    border: 1px solid rgba(26, 35, 126, 0.2);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.2);
}

.filter-btn.active {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

.filter-btn__icon {
    font-size: 1.2rem;
}

.filter-btn__count {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-left: 4px;
}

/* Сетка кейсов */
.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    transition: transform 0.3s ease;
}

.case-card--large {
    grid-column: span 2;
    grid-row: span 2;
}

.case-card__inner {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.case-card__inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.15);
}

.case-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-card--large .case-card__image {
    height: 300px;
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card__inner:hover .case-card__image img {
    transform: scale(1.05);
}

.case-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-card__inner:hover .case-card__overlay {
    opacity: 1;
}

.case-card__more {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 25px;
    border: 2px solid white;
    border-radius: 30px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.case-card__inner:hover .case-card__more {
    transform: translateY(0);
}

.case-card__content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.case-card__industry {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8eaf6;
    color: #1a237e;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-card__date {
    font-size: 0.8rem;
    color: #666;
}

.case-card__client {
    font-size: 1.3rem;
    color: #1a237e;
    margin-bottom: 15px;
    line-height: 1.3;
}

.case-card__stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeef2;
}

.stat {
    text-align: center;
}

.stat__value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.2;
}

.stat__label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-card__problem {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.case-card__problem strong {
    color: #1a237e;
}

.case-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a237e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.case-card__link:hover {
    color: #0d47a1;
    gap: 12px;
}

.case-card__link svg {
    transition: transform 0.3s ease;
}

.case-card__link:hover svg {
    transform: translateX(3px);
}

/* Детальная страница кейса */
.breadcrumbs {
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid #eaeef2;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #1a237e;
}

.breadcrumbs__separator {
    color: #ccc;
    margin: 0 8px;
}

.breadcrumbs__current {
    color: #1a237e;
    font-weight: 500;
}

.case-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
}

.case-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.case-hero__industry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a237e;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.case-hero__title {
    font-size: 2.5rem;
    color: #1a237e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.case-hero__description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.case-hero__stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-badge {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    min-width: 120px;
    transition: transform 0.3s ease;
}

.stat-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.1);
}

.stat-badge__value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-badge__label {
    font-size: 0.85rem;
    color: #666;
}

.case-hero__image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Детальный контент */
.case-detail {
    padding: 60px 0;
    background: white;
}

.case-detail__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
}

.case-detail__content {
    max-width: 800px;
}

.case-block {
    margin-bottom: 50px;
}

.case-block__title {
    font-size: 1.8rem;
    color: #1a237e;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 4px solid #1a237e;
}

.case-block__content {
    color: #333;
    line-height: 1.8;
}

.case-block__content p {
    margin-bottom: 20px;
}

.case-block--highlight {
    background: linear-gradient(135deg, #f5f7fa, #ffffff);
    padding: 30px;
    border-radius: 20px;
}

/* Оборудование */
.equipment-used {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eaeef2;
}

.equipment-used__title {
    font-size: 1.2rem;
    color: #1a237e;
    margin-bottom: 15px;
}

.equipment-used__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.equipment-used__item {
    background: #f5f7fa;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.equipment-used__item:hover {
    background: #1a237e;
    transform: translateY(-2px);
}

.equipment-used__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.equipment-used__item:hover .equipment-used__link {
    color: white;
}

/* Результаты */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.result-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 35, 126, 0.1);
}

.result-item__number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.2;
    margin-bottom: 5px;
}

.result-item__label {
    color: #666;
    font-size: 0.9rem;
}

/* Отзыв */
.testimonial {
    background: #f5f7fa;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    margin-top: 30px;
}

.testimonial__icon {
    font-size: 4rem;
    color: #1a237e;
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial__text {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial__author {
    text-align: right;
    color: #1a237e;
    font-weight: 500;
}

/* Сайдбар */
.sidebar-widget--sticky {
    position: sticky;
    top: 30px;
}

.sidebar-widget__form {
    background: linear-gradient(135deg, #f5f7fa, #ffffff);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-widget__title {
    font-size: 1.2rem;
    color: #1a237e;
    margin-bottom: 15px;
}

.sidebar-widget__text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Скачивание */
.sidebar-widget__download {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1a237e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 12px 20px;
    background: #f5f7fa;
    border-radius: 12px;
    width: 100%;
}

.download-link:hover {
    background: #1a237e;
    color: white;
    transform: translateY(-2px);
}

/* Похожие кейсы */
.related-cases {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-case__link {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f5f7fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-case__link:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(26, 35, 126, 0.1);
    transform: translateX(3px);
}

.related-case__image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-case__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-case__content {
    flex: 1;
}

.related-case__title {
    font-size: 1rem;
    color: #1a237e;
    margin-bottom: 5px;

}

.related-case__industry {
    font-size: 0.8rem;
    color: #666;
}

/* CTA секция */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
}

.cta__inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta__text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.cta__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn--large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn--outline.btn--large {
    border-color: white;
    color: white;
}

.btn--outline.btn--large:hover {
    background: white;
    color: #1a237e;
}

/* Нет результатов */
.no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.no-results__icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #1a237e;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.pagination__prev,
.pagination__next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #1a237e;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pagination__prev:hover,
.pagination__next:hover {
    background: #1a237e;
    color: white;
    transform: translateY(-2px);
}

.pagination__pages {
    display: flex;
    gap: 8px;
}

.pagination__page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #1a237e;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pagination__page:hover {
    background: #1a237e;
    color: white;
}

.pagination__page.active {
    background: #1a237e;
    color: white;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-card--large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .case-card--large .case-card__image {
        height: 200px;
    }
}

@media (max-width: 992px) {
    .cases-hero .page-hero__title {
        font-size: 2.5rem;
    }
    
    .case-detail__grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-widget--sticky {
        position: static;
    }
    
    .case-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-hero__image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cases-hero {
        padding: 60px 0;
    }
    
    .cases-hero .page-hero__title {
        font-size: 2rem;
    }
    
    .cases-hero .page-hero__subtitle {
        font-size: 1rem;
    }
    
    .cases__grid {
        grid-template-columns: 1fr;
    }
    
    .cases-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        justify-content: center;
    }
    
    .case-hero__title {
        font-size: 2rem;
    }
    
    .case-hero__stats {
        justify-content: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cta__title {
        font-size: 2rem;
    }
    
    .cta__buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination__pages {
        order: -1;
    }
}

@media (max-width: 480px) {
    .cases-hero .page-hero__title {
        font-size: 1.75rem;
    }
    
    .case-hero__title {
        font-size: 1.75rem;
    }
    
    .case-card__stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-badge {
        min-width: 100%;
    }
    
    .testimonial {
        padding: 25px;
    }
    
    .related-case__link {
        flex-direction: column;
    }
    
    .related-case__image {
        width: 100%;
        height: 120px;
    }
}