/* Case Detail Page Styles */

body {
    background-color: rgba(242, 242, 251, 1);
    font-family: 'Unbounded', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Case Detail Hero Section - Now just header area */
.case-detail-hero {
    padding: 120px 0 40px 0;
    background: rgba(242, 242, 251, 1);
}

.case-detail-header {
    max-width: 1578px; /* Увеличено на 378px (100мм) */
    margin: 0 auto;
    padding: 0 20px;
}

/* Case Title Card */
.case-title-card {
    background-image: url('assets/rectangle-6736.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    margin-top: 1cm !important;
    padding: 30px 50px !important; /* Восстановлено стандартное значение padding */
    color: white;
    margin-bottom: 30px !important; /* Восстановлено стандартное значение margin-bottom */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

.back-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    display: inline-block;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #00BFFF;
}

.case-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.case-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 30px;
    margin-top: 40px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.case-header-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.case-header-text {
    flex: 1;
}

.case-header-icon {
    flex-shrink: 0;
    width: 240px; /* Увеличено в 3 раза от начальных 80px */
    height: 240px; /* Увеличено в 3 раза от начальных 80px */
    background: none; /* Убираем фон */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: none; /* Убираем эффект матового стекла */
}

.case-header-icon img {
    width: 150px; /* Увеличено в 3 раза от начальных 50px */
    height: 150px; /* Увеличено в 3 раза от начальных 50px */
    object-fit: contain;
}

.case-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

/* Case Content Section */
.case-content {
    padding: 0 0 100px 0;
    background: rgba(242, 242, 251, 1);
}

.case-layout {
    max-width: 1578px; /* Увеличено на 378px (100мм) */
    margin: 0 auto;
    padding: 0 20px;
}

/* Three Tiles Layout */
.case-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-tile {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.case-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.case-tile-title {
    font-size: 2rem;
    font-weight: 400;
    color: #2c4a6b;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

/* Убираем цветные линии под заголовками */

.case-tile-content {
    color: #555;
    line-height: 1.7;
}

.case-tile-content p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.case-tile-content ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.case-tile-content li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Простые стили для всех карточек */

/* Problem Tile - чисто белая с черным текстом */
.case-tile.problem-tile {
    background: white;
    color: #000;
}

.case-tile.problem-tile .case-tile-title {
    color: #000;
}

.case-tile.problem-tile .case-tile-content {
    color: #000;
}

/* Solution Tile - белая с черным текстом, заголовок "Solution" градиентный */
.case-tile.solution-tile {
    background: white;
    color: #000;
}

.case-tile.solution-tile .case-tile-title {
    background: linear-gradient(135deg, #0984e3 0%, #00BFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-tile.solution-tile .case-tile-content {
    color: #000;
}

/* Result Tile - с фоном Rectangle 6735 и белым текстом */
.case-tile.result-tile {
    background-image: url('assets/rectangle-6735.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    color: white !important; /* Устанавливаем белый цвет для всего содержимого плитки */
}

.case-tile.result-tile h2, .case-tile.result-tile h3, .case-tile.result-tile p, .case-tile.result-tile strong, .case-tile.result-tile li {
    color: white !important; /* Обеспечиваем, что заголовки и параграфы тоже белые */
}

.case-tile.result-tile .case-tile-title {
    color: white;
}

.case-tile.result-tile .case-tile-content {
    color: white;
}

.case-tile.result-tile .case-tile-content p,
.case-tile.result-tile .case-tile-content h3,
.case-tile.result-tile .case-tile-content .metric-label,
.case-tile.result-tile .case-tile-content .metric-number,
.case-tile.result-tile .results-metrics h3 {
    color: white;
}

/* Простые стили для метрик в Result карточке */
.case-tile.result-tile .metric-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.case-section {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.case-section .section-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #2c4a6b;
    margin-bottom: 30px;
}

.section-content {
    color: #555;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.section-content ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.section-content li {
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.6;
}

.section-content strong {
    color: #2c4a6b;
    font-weight: 500;
}

/* Убираем все цветные стили секций */

/* Metrics Grid */
.results-metrics h3,
.operational-improvements h3,
.additional-benefits h3 {
    font-size: 1.5rem;
    color: #2c4a6b;
    margin: 30px 0 25px 0;
    font-weight: 500;
}

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

.metric-item {
    background: linear-gradient(135deg, rgba(242, 242, 251, 1) 0%, #e9ecef 100%);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #00BFFF 0%, #1E90FF 100%);
}

.metric-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.2);
    border-color: rgba(0, 191, 255, 0.3);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c4a6b;
    margin-bottom: 10px;
    line-height: 1;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    line-height: 1.3;
}

/* Customer Feedback */
.customer-feedback blockquote {
    background: linear-gradient(135deg, rgba(242, 242, 251, 1) 0%, #e3f2fd 100%);
    border-left: 5px solid #00BFFF;
    padding: 30px;
    margin: 30px 0;
    border-radius: 10px;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c4a6b;
}

.customer-feedback cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

/* Убираем цветные стили технологий */

/* CTA Section */
.case-cta {
    background: linear-gradient(135deg, #2c4a6b 0%, #00BFFF 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content {
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-btn {
    background: white;
    color: #2c4a6b;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(242, 242, 251, 1);
}

/* Responsive Design */
@media (max-width: 1600px) {
    .case-detail-header,
    .case-layout {
        max-width: 95%;
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .case-section {
        padding: 40px;
    }
    
    .case-title {
        font-size: 2.5rem;
    }
    
    .case-tiles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .case-tile {
        padding: 35px;
    }
    
    .case-tile-title {
        font-size: 1.8rem;
    }
    
    .case-title-card {
        padding: 40px;
    }
    
    .case-detail-header,
    .case-layout {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .case-detail-hero {
        padding: 100px 0 30px 0;
    }
    
    .case-title {
        font-size: 2rem;
    }
    
    .case-subtitle {
        font-size: 1rem;
    }
    
    .case-title-card {
        padding: 30px;
        margin-bottom: 30px;
    }
    
    .case-tile {
        padding: 25px;
    }
    
    .case-tile-title {
        font-size: 1.5rem;
    }
    
    .case-section {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .case-section .section-title {
        font-size: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .metric-number {
        font-size: 2rem;
    }
    
    .tech-tags {
        gap: 8px;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .case-content {
        padding: 60px 0;
    }
    
    .case-section {
        padding: 25px 15px;
    }
    
    .case-title {
        font-size: 1.8rem;
    }
    
    .case-section .section-title {
        font-size: 1.5rem;
    }
    
    .section-content p,
    .section-content li {
        font-size: 0.95rem;
    }
    
    .customer-feedback blockquote {
        padding: 20px;
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    position: relative !important;
    padding: 40px 0 30px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    overflow: hidden !important;
    min-height: 500px !important; /* Возвращаем высоту футера как на главной странице */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    z-index: 1000 !important;
}

.footer-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: -1 !important;
    height: 100% !important;
    width: 100% !important;
    background: none !important; /* Убираем фоновую картинку */
}

.footer-bg::before {
    content: '';
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 20% !important; /* Высота градиента */
    background: linear-gradient(to bottom, 
        rgb(242, 242, 251) 0%, 
        rgb(242, 242, 251) 50%,
        transparent 100%) !important;
    z-index: 2 !important;
}

.footer-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.4;
}

.footer-content {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2 !important;
    background: rgba(60, 75, 111, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 40px !important;
    padding: 40px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 1600px !important;
    max-height: 400px !important;
}

.footer-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 40px !important;
    padding-bottom: 30px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.footer-logo .logo-text {
    font-size: 28px !important;
    font-weight: 400 !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.footer-menu {
    display: flex !important;
    gap: 70px !important;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    transition: all 0.3s ease !important;
    padding: 8px 0 !important;
    position: relative !important;
}

.footer-menu a:hover {
    color: #00BFFF !important;
}

.footer-menu a:after {
    content: '';
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 1px !important;
    background: #00BFFF !important;
    transition: width 0.3s ease !important;
}

.footer-menu a:hover:after {
    width: 100% !important;
}

.footer-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important; /* Reduced gap to match header buttons */
}

/* Common styles for footer buttons to match header buttons (excluding size) */
.footer-button-common {
    backdrop-filter: blur(10px) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    
    background: rgb(255, 255, 255) !important; /* Default transparent background */
    color: rgb(0, 0, 0) !important; /* Default white text color */
}

/* Specific styles for the outline-like footer button */
.footer-button-outline-style {
    font-weight: 450 !important; /* Matches header-button's font-weight */
}

/* Specific styles for the primary-like footer button */
.footer-button-primary-style {
    font-weight: 500 !important; /* Matches header2-button's font-weight */
}

/* Hover styles for all footer buttons (common) */
.footer-button-common:hover {
    background: transparent !important; /* Remains transparent on hover */
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important; /* Text remains white on hover */
}

/* Контакты без плиток */
.footer-contacts {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
    text-align: left !important;
    align-items: center !important;
}

.contact-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}

.contact-group:hover {
    background: transparent !important;
    transform: translateY(-2px) !important;
}

.contact-label {
    font-size: 14px !important;
    opacity: 0.7 !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 5px !important;
}

.contact-value {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: white !important;
}

.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.logo-img {
    height: 90px !important;
    width: auto !important;
    object-fit: contain !important;
    transition: all 0.4s ease !important;
}

.logo-text {
    font-size: 32px !important;
    font-weight: 400 !important;
    color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
    transition: all 0.4s ease !important;
}

.nav {
    display: flex !important;
    gap: 70px !important;
    align-items: center !important;
}

.nav-link {
    color: white !important;
    text-decoration: none !important;
    font-weight: 300 !important;
    font-size: 18px !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
    padding: 10px 0 !important;
}

.nav-link:hover {
    color: #00BFFF !important;
    transform: translateY(-2px) !important;
}

.header-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.header-button {
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 450 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    font-family: 'Unbounded', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 25px !important;
    border: 2px solid transparent !important;
}

.header2-button {
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    font-family: 'Unbounded', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 25px !important;
    border: 2px solid transparent !important;
}

.header-button:hover {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
}

.header2-button:hover {
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.98) 0%, 
        rgba(0, 0, 0, 0.96) 20%, 
        rgba(0, 0, 0, 0.94) 50%, 
        rgba(0, 0, 0, 0.90) 100%, 
        rgba(0, 0, 0, 0.80) 100%,
        rgba(0, 0, 0, 0.60) 100%,
        rgba(0, 0, 0, 0.30) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 5%;
    transition: all 0.4s ease;
    height: 110px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    height: 110px;
}