/* components/products/products.css */
.products {
    background: rgba(44, 44, 44, 0.3);
    backdrop-filter: blur(15px);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(90, 108, 120, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(90, 108, 120, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.products__container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.products__header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 16px;
}

/* Строки продукции */
.product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    padding: 40px;
    background: rgba(44, 44, 44, 0.4);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(90, 108, 120, 0.2);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.product-row:nth-child(even) {
    direction: rtl;
}

.product-row:nth-child(even) > * {
    direction: ltr;
}

.product-info {
    padding: 20px;
}

.product-info__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.product-info__description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 24px;
}

/* Карусель продукта */
.product-carousel {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.product-carousel__container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.product-carousel__track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    will-change: transform;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.product-carousel__track:active {
    cursor: grabbing;
}

.product-carousel__slide {
    height: 100%;
    flex-shrink: 0;
}

.product-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter: sepia(10%) saturate(80%) brightness(90%);
    transition: filter 0.3s ease;
}

.product-carousel:hover .product-carousel__image {
    filter: sepia(5%) saturate(90%) brightness(100%);
}

/* Кнопки навигации карусели */
.product-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(44, 44, 44, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(90, 108, 120, 0.3);
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.product-carousel__btn:hover {
    background: rgba(90, 108, 120, 0.9);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.product-carousel__btn--prev {
    left: 16px;
}

.product-carousel__btn--next {
    right: 16px;
}

/* Индикаторы карусели */
.product-carousel__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.product-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.product-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.product-carousel__dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* Адаптивность */
@media (max-width: 992px) {
    .products {
        padding: 80px 0;
    }
    
    .products__container {
        padding: 0 16px;
    }
    
    .product-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
        padding: 30px;
    }
    
    .product-row:nth-child(even) {
        direction: ltr;
    }
    
    .product-carousel__container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 60px 0;
    }
    
    .product-row {
        padding: 24px;
        margin-bottom: 40px;
    }
    
    .product-info__title {
        font-size: 1.6rem;
    }
    
    .product-info__description {
        font-size: 15px;
    }
    
    .product-carousel__container {
        height: 250px;
    }
    
    .product-carousel__btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .product-row {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .product-carousel__container {
        height: 200px;
    }
    
    .product-carousel__btn {
        width: 36px;
        height: 36px;
    }
}