﻿/* --- INDUSTRIES SECTION --- */
.industries-section {
    padding: 80px 0;
    background-color: #fff;
}

.industries-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--b700, #1a1a1a);
    margin-bottom: 40px;
    text-align: left;
}

.industries-wrapper {
    position: relative;
    width: 100%;
}

.industries-slider {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

    .industries-slider::-webkit-scrollbar {
        display: none;
    }

    .industries-slider.active-drag {
        scroll-behavior: auto !important;
        scroll-snap-type: none !important;
        cursor: grabbing !important;
    }

/* --- КАРТОЧКА --- */
.industry-card {
    text-align: left;
    width: calc((100% - 80px) / 3);
    min-width: calc((100% - 80px) / 3);
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    user-select: none;
    text-decoration: none;
    color: inherit;
    outline: none;
    border-radius: 12px;
}

    .industry-card:focus-visible {
        box-shadow: 0 0 0 3px var(--p700, #0056b3);
    }

.industry-img-wrapper {
    width: 100%;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

    .industry-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
        -webkit-user-drag: none;
    }

.industry-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--b700, #1a1a1a);
    margin-bottom: 12px;
}

.industry-card-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--b600, #4a4a4a);
    margin-bottom: 24px;
    flex-grow: 1;
}

.industry-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--b700, #1a1a1a);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
    width: fit-content;
}

    .industry-card-link svg {
        transition: transform 0.2s ease;
    }

.industry-card:focus-visible .industry-card-link {
    color: var(--p700, #0056b3);
}

    .industry-card:focus-visible .industry-card-link svg {
        transform: translateX(4px);
    }

/* --- ТОЧКИ ПАГИНАЦИИ --- */
.industries-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.ind-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--b300, #d1d5db);
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

    .ind-dot:focus-visible {
        background-color: var(--b500, #6c757d);
    }

    .ind-dot.active {
        background-color: var(--p700, #0056b3);
        transform: scale(1.2);
    }

/* ИСПРАВЛЕНО: Безопасные hover-эффекты для мыши (без залипаний на телефонах) */
@media (hover: hover) {
    .industry-card:hover .industry-card-link {
        color: var(--p700, #0056b3);
    }

        .industry-card:hover .industry-card-link svg {
            transform: translateX(4px);
        }

    .ind-dot:hover {
        background-color: var(--b500, #6c757d);
    }
}

/* --- MOBILE ADAPTATION --- */
@media (max-width: 992px) {
    .industries-section {
        padding: 60px 0;
    }

    .industries-slider {
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .industry-card {
        width: 100%;
        min-width: 100%;
        scroll-snap-align: center;
        align-items: center;
        text-align: center;
    }

        .industry-card > * {
            width: 100%;
            max-width: 320px;
        }

    .industry-card-link {
        margin: 0 auto;
    }
}
