/* ==========================================================================
   CLIENTS HERO
   ========================================================================== */

.clients-hero {
    background: linear-gradient(160deg, var(--navy) 0%, #0d2147 50%, #0f3070 100%);
    color: var(--white);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.clients-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 140, 240, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 140, 240, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
}

.clients-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.clients-hero h1 {
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 800;
    margin-bottom: 16px;
}

.clients-hero > .container > .clients-hero-content > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.72);
    max-width: 700px;
    margin: 0 auto;
}

/* Industries List */
.industries-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 48px 0;
}

.industry-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s;
}

.industry-item:hover {
    border-color: var(--sky);
    box-shadow: 0 4px 20px rgba(30, 95, 194, 0.1);
    transform: translateY(-2px);
}

.industry-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.industry-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

/* Carousel */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 240px;
    height: 140px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.carousel-slide:hover {
    border-color: var(--sky);
    box-shadow: 0 8px 30px rgba(30, 95, 194, 0.12);
    transform: translateY(-4px);
}

.carousel-slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.carousel-slide:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--mid-blue);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--mid-blue);
    color: var(--white);
    border-color: var(--mid-blue);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: var(--mid-blue);
    transform: scale(1.2);
}

/* Testimonials Carousel */
.testimonials-carousel .carousel-slide {
    height: 200px;
    cursor: zoom-in;
}

/* Image Popup */
.image-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.image-popup.open {
    display: flex;
}

.image-popup img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.image-popup-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

/* Mission */
.mission-block {
    background: linear-gradient(160deg, var(--navy), #0f3070);
    color: var(--white);
    padding: 80px 40px;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-block::before {
    content: '"';
    position: absolute;
    top: -40px;
    left: 40px;
    font-size: 280px;
    opacity: 0.05;
    font-family: Georgia, serif;
}

.mission-block p {
    font-size: 20px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.mission-block strong {
    color: var(--light-sky);
}

/* ==========================================================================
   STATS
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.stat-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--sky);
    box-shadow: 0 12px 40px rgba(30, 95, 194, 0.12);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.stat-number {
    font-size: 36px;  /* Было 48px → стало 36px */
    font-weight: 800;
    color: var(--mid-blue);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .clients-hero {
        padding: 120px 0 60px;
    }

    .carousel-wrapper {
        padding: 0 50px;
    }

    .carousel-slide {
        flex: 0 0 200px;
        height: 120px;
    }

    .industries-list {
        grid-template-columns: 1fr;
    }

    .mission-block {
        padding: 60px 24px;
    }

    .mission-block p {
        font-size: 17px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 28px;  /* Было 40px → стало 28px */
    }

    .stat-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 40px;
    }

    .carousel-slide {
        flex: 0 0 160px;
        height: 100px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .stat-number {
        font-size: 24px;  /* Дополнительно уменьшено для мобильных */
    }

    .stat-label {
        font-size: 13px;
    }
}