/* Стили для страниц кейсов */

/* Hero секция кейса */
.case-hero {
    position: relative;
    background: radial-gradient(1200px 400px at 20% 0%, rgba(96, 144, 240, 0.15), transparent 50%),
        radial-gradient(800px 300px at 80% 20%, rgba(255, 0, 48, 0.1), transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 120px 0 80px 0;
    margin-bottom: 60px;
    overflow: hidden;
}

.case-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.case-subtitle {
    font-size: 20px;
    color: #b0b0b0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.case-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.case-category,
.case-duration,
.case-team {
    background: linear-gradient(135deg, rgba(96, 144, 240, 0.15) 0%, rgba(96, 144, 240, 0.25) 100%);
    color: #6090f0;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(96, 144, 240, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(96, 144, 240, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-category::before,
.case-duration::before,
.case-team::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.case-category:hover::before,
.case-duration:hover::before,
.case-team:hover::before {
    left: 100%;
}

.case-category:hover,
.case-duration:hover,
.case-team:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(96, 144, 240, 0.25);
    border-color: rgba(96, 144, 240, 0.5);
}

.case-category {
    background: linear-gradient(135deg, rgba(96, 144, 240, 0.15) 0%, rgba(96, 144, 240, 0.25) 100%);
    color: #6090f0;
}

.case-duration {
    background: linear-gradient(135deg, rgba(255, 0, 48, 0.15) 0%, rgba(255, 0, 48, 0.25) 100%);
    color: #ff0030;
    border-color: rgba(255, 0, 48, 0.3);
}

.case-duration:hover {
    box-shadow: 0 8px 30px rgba(255, 0, 48, 0.25);
    border-color: rgba(255, 0, 48, 0.5);
}

.case-team {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15) 0%, rgba(0, 200, 83, 0.25) 100%);
    color: #00c853;
    border-color: rgba(0, 200, 83, 0.3);
}

.case-team:hover {
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.25);
    border-color: rgba(0, 200, 83, 0.5);
}

/* Hero decorative elements */
.hero-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-decor-grid::before {
    content: '';
    position: absolute;
    inset: -50px;
    background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(500px 300px at 50% 10%, black, transparent 70%);
}

.hero-decor-glow::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(closest-side, rgba(96,144,240,0.25), rgba(96,144,240,0) 70%);
    filter: blur(10px);
}

.case-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 26px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(96, 144, 240, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(96, 144, 240, 0.4);
    background: linear-gradient(135deg, #7ba3f2 0%, #6090f0 100%);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.12) 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 28px;
    border-radius: 26px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.2) 100%);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.case-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
}

.filter-pill {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.12) 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.filter-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-pill:hover::before {
    left: 100%;
}

.filter-pill:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.2) 100%);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.filter-pill.is-active {
    background: linear-gradient(135deg, rgba(96,144,240,0.3) 0%, rgba(96,144,240,0.4) 100%);
    border-color: rgba(96,144,240,0.5);
    box-shadow: 0 8px 25px rgba(96, 144, 240, 0.2);
    transform: translateY(-2px);
}

/* Детальная страница кейса */
.case-details {
    padding: 80px 0;
    background: #ffffff;
}

.case-details .container {
    max-width: 900px;
}

.case-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(96, 144, 240, 0.1);
}

.case-section {
    margin-bottom: 50px;
}

.case-section:last-child {
    margin-bottom: 0;
}

.case-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1b1e21;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.case-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    margin-top: 30px;
}

.case-section p {
    font-size: 18px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
}

.case-section ul,
.case-section ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.case-section li {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 12px;
}

.case-section strong {
    color: #1b1e21;
    font-weight: 600;
}

/* Обзор проекта */
.case-overview {
    padding: 60px 0;
    background: #f8f9fa;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.overview-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-5px);
}

.overview-item h3 {
    color: #1b1e21;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.overview-item p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Таймлайн */
.case-timeline {
    padding: 80px 0;
}

.case-timeline h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1b1e21;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(96, 144, 240, 0.3);
}

.timeline-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin: 0 40px;
    flex: 1;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-left-color: #ffffff;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-right-color: #ffffff;
}

.timeline-content h4 {
    color: #1b1e21;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Технологии */
.case-tech {
    padding: 80px 0;
    background: #f8f9fa;
}

.case-tech h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1b1e21;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tech-category {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
}

.tech-category h4 {
    color: #6090f0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.tech-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-category li {
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.tech-category li:last-child {
    border-bottom: none;
}

/* Команда */
.case-team {
    padding: 80px 0;
}

.case-team h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1b1e21;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
}

.member-icon svg {
    width: 28px;
    height: 28px;
}

.team-member h4 {
    color: #1b1e21;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.team-member p {
    color: #666;
    font-size: 14px;
}

/* Особенности */
.case-features {
    padding: 80px 0;
    background: #f8f9fa;
}

.case-features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1b1e21;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #ffffff;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
}

.feature-item h4 {
    color: #1b1e21;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* CTA секция */
.case-cta {
    padding: 100px 0;
    background: radial-gradient(1200px 400px at 80% 0%, rgba(96, 144, 240, 0.15), transparent 60%),
        radial-gradient(800px 300px at 20% 100%, rgba(255, 0, 48, 0.1), transparent 60%),
        linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.case-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px 200px at 50% 50%, rgba(96, 144, 240, 0.08), transparent 70%);
    pointer-events: none;
}

.case-cta h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.case-cta p {
    font-size: 20px;
    color: #cbd5e0;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.case-cta button {
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    color: #ffffff;
    border: none;
    padding: 18px 48px;
    border-radius: 28px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 40px rgba(96, 144, 240, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.case-cta button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.case-cta button:hover::before {
    left: 100%;
}

.case-cta button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 60px rgba(96, 144, 240, 0.4);
    background: linear-gradient(135deg, #7ba3f2 0%, #6090f0 100%);
}

/* Адаптивность */
@media (max-width: 780px) {
    .case-header h1 {
        font-size: 36px;
    }
    
    .case-subtitle {
        font-size: 18px;
    }
    
    .case-meta {
        justify-content: center;
    }
    .case-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    .case-filters {
        justify-content: center;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-date {
        margin-bottom: 20px;
    }
    
    .timeline-content {
        margin: 0;
        width: 100%;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 520px) {
    .case-hero {
        padding: 80px 0 50px 0;
    }
    
    .case-header h1 {
        font-size: 28px;
    }
    
    .case-subtitle {
        font-size: 16px;
    }
    
    .case-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .case-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .overview-item,
    .tech-category,
    .team-member,
    .feature-item {
        padding: 25px 20px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .case-timeline h2,
    .case-tech h2,
    .case-team h2,
    .case-features h2,
    .case-cta h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .case-cta {
        padding: 60px 0;
    }
    
    .case-cta button {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* Стили для главной страницы кейсов */
.cases-grid-section {
    padding: 80px 0;
}

/* Global smooth scroll for modern browsers */
html {
    scroll-behavior: smooth;
}

.cases-grid-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #1b1e21;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.case-card-large {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(96, 144, 240, 0.1);
    position: relative;
}

.case-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6090f0, #7ba3f2, #6090f0);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.case-card-large:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 80px rgba(96, 144, 240, 0.15);
    border-color: rgba(96, 144, 240, 0.3);
}

.case-card-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.case-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 144, 240, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.case-card-large:hover .case-card-image::before {
    opacity: 1;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.95);
}

.case-card-large:hover .case-card-image img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.case-card-content {
    padding: 30px;
}

.case-card-content h3 {
    color: #1b1e21;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.3;
    background: linear-gradient(135deg, #1b1e21 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.case-card-large:hover .case-card-content h3 {
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-card-content p {
    color: #4a5568;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.case-card-large:hover .case-card-content p {
    color: #2d3748;
}

.case-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.case-tech-tag {
    background: linear-gradient(135deg, rgba(96, 144, 240, 0.08) 0%, rgba(96, 144, 240, 0.15) 100%);
    color: #6090f0;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(96, 144, 240, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 144, 240, 0.1), transparent);
    transition: left 0.5s ease;
}

.case-tech-tag:hover::before {
    left: 100%;
}

.case-tech-tag:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(96, 144, 240, 0.15) 0%, rgba(96, 144, 240, 0.25) 100%);
    border-color: rgba(96, 144, 240, 0.4);
    box-shadow: 0 4px 16px rgba(96, 144, 240, 0.2);
}

.case-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-duration-tag {
    background: linear-gradient(135deg, rgba(255, 0, 48, 0.08) 0%, rgba(255, 0, 48, 0.15) 100%);
    color: #ff0030;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 0, 48, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-duration-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 48, 0.1), transparent);
    transition: left 0.5s ease;
}

.case-duration-tag:hover::before {
    left: 100%;
}

.case-duration-tag:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(255, 0, 48, 0.15) 0%, rgba(255, 0, 48, 0.25) 100%);
    border-color: rgba(255, 0, 48, 0.4);
    box-shadow: 0 4px 16px rgba(255, 0, 48, 0.2);
}

.case-link-btn {
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(96, 144, 240, 0.3);
    position: relative;
    overflow: hidden;
}

.case-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.case-link-btn:hover::before {
    left: 100%;
}

.case-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(96, 144, 240, 0.4);
    background: linear-gradient(135deg, #7ba3f2 0%, #6090f0 100%);
}

.case-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 144, 240, 0.3);
}

/* Статистика */
.case-stats {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.case-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px 400px at 50% 50%, rgba(96, 144, 240, 0.05), transparent 70%);
    pointer-events: none;
}

.case-stats h2 {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 80px;
    color: #1b1e21;
    background: linear-gradient(135deg, #1b1e21 0%, #2d3748 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(96, 144, 240, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6090f0, #7ba3f2, #6090f0);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 60px rgba(96, 144, 240, 0.15);
    border-color: rgba(96, 144, 240, 0.3);
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, #6090f0 0%, #7ba3f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    background: linear-gradient(135deg, #7ba3f2 0%, #6090f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #4a5568;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #2d3748;
}

/* Адаптивность для главной страницы кейсов */
@media (max-width: 780px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-card-large {
        margin: 0 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 30px 15px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 520px) {
    .cases-grid-section h2,
    .case-stats h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .case-card-content {
        padding: 20px;
    }
    
    .case-card-content h3 {
        font-size: 20px;
    }
    
    .case-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    /* Адаптивность для детальных страниц */
    .case-content {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .case-section h2 {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .case-section h3 {
        font-size: 20px;
    }
    
        .case-section p {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 32px;
    }
} 