/* Блок "Наши бренды" */
.brands-section {
    padding: 60px 0;
    background: #ffffff;
}

.container--full {
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

/* Заголовок */
.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
}

.brands-header-left h2 {
    color: #2c3e50;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.brands-header-left p {
    color: #7f8c8d;
    font-size: 18px;
    margin: 0;
}

.brands-header-right {
    flex-shrink: 0;
}

/* Кнопка "Все бренды" в фирменном стиле */
.brands-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8f9fa;
    border-radius: 40px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.brands-all-link:hover {
    background: #fff300;
    color: #000000;
    border-color: #fff300;
}

.brands-all-link svg {
    transition: transform 0.3s ease;
}

.brands-all-link:hover svg {
    transform: translateX(5px);
    stroke: #000000;
}

/* Обёртка для скролла */
.brands-scroll-wrapper {
    position: relative;
    padding-bottom: 20px;
    width: 100%;
}

/* Контейнер с горизонтальным скроллом */
.brands-scroll-container {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    width: 100%;
    padding: 10px 0 20px 0;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    user-select: none;
}

.brands-scroll-container.active {
    cursor: grabbing;
    scroll-behavior: auto;
}

.brands-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Трек с карточками */
.brands-track {
    display: flex;
    gap: 25px;
    padding: 0 5px;
    width: max-content;
    min-width: 100%;
}

/* Карточка бренда */
.brands-item {
    flex: 0 0 auto;
    width: 180px;
}

.brands-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.brands-image {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.brands-link:hover .brands-image {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #dee2e6;
}

.brands-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brands-link:hover .brands-image img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Кнопка листания (только десктоп) */
.brands-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.brands-scroll-btn:hover {
    background: #fff300;
    color: #000000;
    border-color: #fff300;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.brands-scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.brands-scroll-right {
    right: -10px;
}

/* Показываем кнопку только на десктопе */
@media (min-width: 769px) {
    .brands-scroll-btn {
        display: flex;
    }
}

/* Индикатор прокрутки */
.brands-scroll-indicator {
    width: 100%;
    height: 3px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 25px;
    position: relative;
}

.brands-scroll-progress {
    height: 3px;
    background: #fff300;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
    position: absolute;
    top: 0;
    left: 0;
}

/* Подсказка о листании (только мобильные) */
.brands-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: #adb5bd;
    font-size: 14px;
}

.brands-scroll-hint svg {
    animation: hintSwipe 1.5s ease-in-out infinite;
}

/* На десктопе скрываем подсказку */
@media (min-width: 769px) {
    .brands-scroll-hint {
        display: none;
    }
}

@keyframes hintSwipe {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 992px) {
    .brands-section {
        padding: 45px 0;
    }
    
    .container--full {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .brands-header-left h2 {
        font-size: 30px;
    }
    
    .brands-header-left p {
        font-size: 16px;
    }
    
    .brands-item {
        width: 160px;
    }
    
    .brands-image {
        width: 160px;
        height: 110px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .brands-section {
        padding: 35px 0;
    }
    
    .container--full {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .brands-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .brands-header-left h2 {
        font-size: 26px;
    }
    
    .brands-all-link {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .brands-item {
        width: 140px;
    }
    
    .brands-image {
        width: 140px;
        height: 100px;
        padding: 12px;
    }
    
    .brands-scroll-hint {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .brands-section {
        padding: 30px 0;
    }
    
    .brands-header-left h2 {
        font-size: 24px;
    }
    
    .brands-track {
        gap: 15px;
    }
    
    .brands-item {
        width: 120px;
    }
    
    .brands-image {
        width: 120px;
        height: 90px;
        padding: 10px;
        border-radius: 12px;
    }
    
    .brands-scroll-hint {
        font-size: 12px;
    }
}