/* ========================================
   NATIVE BRANDS CAROUSEL WITH DRAG
   ======================================== */
.brands-carousel-news {
    padding: 0px;
    background-color: #fff;
}
.brands-carousel-native {
    padding: 15px 0;
    background-color: #fff;
  /*  border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;*/
}

.brands-carousel-native h2 {
padding-top: 15px;
    margin-bottom: 10px;
    color: #000;
    font-size: 28px;
    font-weight: 600;
}

.brands-carousel-native .text-muted {
    margin-bottom: 30px;
    color: #787878;
}

.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Контейнер трека */
.carousel-track-container {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.carousel-track-container.dragging {
    cursor: grabbing;
}

/* Трек со слайдами */
.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.carousel-track.dragging {
    transition: none;
    scroll-behavior: auto;
}

/* Слайд бренда */
.brand-slide {
    flex: 0 0 20%; /* 5 элементов = 100% / 5 */
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px #0000001a;
    border: 1px solid #eee;
    border-radius: 10px;
    margin: 1px 10px;
}

.brands-carousel-native .brand-slide a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Чтобы изображения не мешали drag */
}

.brands-carousel-native .brand-slide img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
   /* filter: grayscale(100%);*/
    opacity: 0.9;
    transition: all 0.3s ease;
    pointer-events: none;
    margin: 0 auto;
}

.brand-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Кнопки навигации */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #18ab5a;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-btn:hover:not(:disabled) {
    background: #0f6937;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.brands-carousel-native .carousel-btn i {
    font-size: 14px;
    pointer-events: none;
}

/* Индикаторы (точки) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: #18ab5a;
    width: 12px;
    height: 12px;
}

.carousel-dot:hover {
    background: #0f6937;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .brand-slide { flex: 0 0 25%; } /* 4 элемента */
}

@media (max-width: 992px) {
    .brand-slide { flex: 0 0 33.333%; } /* 3 элемента */
    .carousel-wrapper { padding: 0 40px; }
}

@media (max-width: 768px) {
    .brands-carousel-native { padding: 30px 0; }
    .brands-carousel-native h2 { font-size: 24px; }
    .brand-slide { flex: 0 0 50%; } /* 2 элемента */
    .brand-slide img { max-height: 60px; }
    .carousel-wrapper { padding: 0 35px; }
    .carousel-btn { width: 36px; height: 36px; }
}

@media (max-width: 576px) {
    .brands-carousel-native h2 { font-size: 20px; }
    .brand-slide { flex: 0 0 50%; }
    .brand-slide img { max-height: 50px; }
    .carousel-wrapper { padding: 0 30px; }
    .carousel-btn { display: none; } /* Скрываем стрелки на мобильных */
}
/********/
/*.brands-carousel-news {
    padding: 40px 0;
    background-color: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}*/

.brands-carousel-news h2 {
    margin-bottom: 10px;
    color: #000;
    font-size: 28px;
    font-weight: 600;
}

.brands-carousel-news .text-muted {
    margin-bottom: 30px;
    color: #787878;
}

.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Контейнер трека */
.carousel-track-container {
    overflow: hidden;
    width: 100%;
    cursor: grab;
}

.carousel-track-container.dragging {
    cursor: grabbing;
}

/* Трек со слайдами */
.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
    will-change: transform;
}

.carousel-track.dragging {
    transition: none;
}

/* Слайд новости */
.news-slide {
    flex: 0 0 20%; /* 5 новостей = 100% / 5 */
    padding: 10px;
    box-sizing: border-box;
}

/* Карточка новости */
.news-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #31b896;
    transform: translateY(-3px);
}

/* Бейдж новости */
.news-badge {
    display: block;
    background-color: #31b896;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Ссылка новости */
.news-link {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Изображение новости */
.news-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

/* Заголовок новости */
.news-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Кнопки навигации */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #31b896;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-btn:hover:not(:disabled) {
    background: #0f6937;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.carousel-btn i {
    font-size: 14px;
    pointer-events: none;
}

/* Индикаторы (точки) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: #31b896;
    width: 12px;
    height: 12px;
}

.carousel-dot:hover {
    background: #0f6937;
}

/* Адаптивность - количество видимых новостей */
@media (max-width: 1200px) {
    .news-slide { flex: 0 0 25%; } /* 4 новости */
}

@media (max-width: 992px) {
    .news-slide { flex: 0 0 33.333%; } /* 3 новости */
    .carousel-wrapper { padding: 0 40px; }
}

@media (max-width: 768px) {
    .brands-carousel-news { padding: 30px 0; }
    .brands-carousel-news h2 { font-size: 24px; }
    .news-slide { flex: 0 0 50%; } /* 2 новости */
    .news-image { height: 100px; }
    .news-title { font-size: 13px; }
    .carousel-wrapper { padding: 0 35px; }
    .carousel-btn { width: 36px; height: 36px; }
    .carousel-btn { display: none; } /* Скрываем стрелки на мобильных */
}

@media (max-width: 576px) {
    .brands-carousel-news h2 { font-size: 20px; }
    .news-slide { flex: 0 0 100%; } /* 1 новость */
    .news-image { height: 150px; }
    .news-title { font-size: 14px; }
    .carousel-wrapper { padding: 0 30px; }
}
.brand-slide:first-child {
    margin-left: 0px !important;
}