:root {
    --brand-purple: #8A2BE2;
}
body {
    background-color: white;
}

.categories-list-page {
    color: #fff;
    padding: 100px 0;
    font-family: 'Inter', sans-serif;
}
.categories-list-page * {
    color: black;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-intro {
    margin-bottom: 80px;
    text-align: left;
}

.eyebrow {
    color: var(--brand-purple);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.8rem;
    display: block;
}

.huge-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-top: 10px;
}

/* FAQ Style List */
.faq-category-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #222;
}

.faq-item {
    position: relative;
    text-decoration: none;
    color: white;
    border-bottom: 1px solid #222;
    padding: 40px 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.faq-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 30px;
}

.category-meta {
    display: flex;
    align-items: center;
    gap: 40px;
}

.index {
    font-size: 40px;
    color: #444;
    font-family: serif;
    font-style: italic;
    transition: 0.3s;
}
.faq-item:hover .index {
    color: var(--brand-purple) !important;
}

.title-group h2 {
    font-size: 2.5rem;
    margin: 0;
    transition: transform 0.4s ease;
}

.product-count {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Эффект превью */
.category-preview {
    display: flex;
    align-items: center;
    gap: 30px;
}

.preview-img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    opacity: 0;
    transform: translateX(20px) scale(0.8);
    transition: all 0.4s ease;
}

.arrow-circle {
    width: 60px;
    height: 60px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}

/* Hover Effects */
.faq-item:hover {
    padding: 60px 0; /* Раскрывается как аккордеон */
}

.faq-item:hover .preview-img {
    opacity: 1;
    transform: translateX(0) scale(1.2);
}

.faq-item:hover .title-group h2 {
    color: var(--brand-purple);
}

.faq-item:hover .arrow-circle {
    background: white;
    color: black;
    border-color: white;
    transform: rotate(-45deg);
}

.faq-hover-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, #111 0%, #000 100%);
    z-index: 1;
    opacity: 0;
    transition: 0.4s;
}

.faq-item:hover .faq-hover-bg {
    opacity: 1;
}

@media (max-width: 768px) {
    .category-meta { gap: 20px; }
    .title-group h2 { font-size: 1.5rem; }
    .preview-img { display: none; }
}

.gradient-text {
    /* Обязательно для блочных/строчно-блочных элементов */
    display: inline-block;

    /* Сам градиент */
    background: linear-gradient(180deg, var(--brand-purple) 0%, #4b0082 100%) !important;

    /* Обрезка фона по тексту */
    -webkit-background-clip: text !important;
    background-clip: text !important; /* Для лучшей поддержки */

    /* Делаем сам текст прозрачным, чтобы проявился фон */
    -webkit-text-fill-color: transparent !important;
    color: transparent !important; /* Запасной вариант */
}

@media (max-width: 768px) {
    .categories-list-page {
        padding: 60px 0;
    }

    .page-intro {
        margin-bottom: 40px;
        text-align: center; /* Центрируем заголовок на мобилках */
    }

    .faq-item {
        padding: 25px 0; /* Уменьшаем базовый отступ */
    }

    .faq-content {
        padding: 0 10px;
    }

    .category-meta {
        gap: 15px;
    }

    .index {
        font-size: 24px; /* Уменьшаем индекс */
        min-width: 30px;
    }

    .title-group h2 {
        font-size: 1.4rem;
        letter-spacing: -1px;
    }

    .product-count {
        font-size: 0.8rem;
    }

    /* На телефонах вместо ховера делаем акцент на иконке */
    .faq-item:hover {
        padding: 35px 0; /* Не такое сильное раскрытие */
    }

    .arrow-circle {
        width: 45px;
        height: 45px;
    }

    /* Прячем превью-картинку, чтобы не ломать строку,
       но можно оставить её маленькой, если хочешь */
    .preview-img {
        display: none;
    }
}

@media (hover: none) {
    .faq-item:active {
        background: #111;
    }
    .faq-item:active .arrow-circle {
        background: var(--brand-purple);
        color: white;
    }
}