/* Обертка для позиционирования теней */
.newskit-v2-wrapper {
    position: relative;
}

/* Общие стили для динамических теней */
.newskit-v2-fade {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease-in-out;
}

.newskit-v2-fade--left {
    left: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    opacity: 0;
}

.newskit-v2-fade--right {
    right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
    opacity: 1;
}

/* Контейнер карусели */
.newskit-v2-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 20px;
    scrollbar-width: none;
    cursor: grab;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.newskit-v2-slider::-webkit-scrollbar {
    display: none;
}

.newskit-v2-slider.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

/* Стили карточки (десктоп) */
.newskit-v2-card {
    flex: 0 0 auto;
    width: 440px;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform 0.2s ease-in-out;
    -webkit-user-drag: none;
    color: inherit;
}

.newskit-v2-card:hover {
    text-decoration: none;
}

/* Блок 1 (тег и дата) */
.newskit-v2-card__block-1 {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
}

/* Белый фон для тега */
.newskit-v2-card__tag {
    border-radius: 8px;
    padding: 6px 12px;
    background-color: #FFFFFF;
}

/* Блок 2 (Заголовок и текст) */
.newskit-v2-card__block-2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Адаптив (мобилки) */
@media (max-width: 768px) {
    .newskit-v2-fade {
        width: 80px;
    }

    .newskit-v2-fade--left {
        background: none;
        opacity: 0;
    }

    .newskit-v2-slider {
        gap: 16px;
        scroll-snap-type: x mandatory;
    }

    /* Стили карточки (мобилка из фигмы) */
    .newskit-v2-card {
        width: 230px;
        border-radius: 20px;
        padding: 16px;
        gap: 16px;
    }
}