/* ===== FAQ STYLES ===== */





.faq__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq__image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Стили для FAQ без изображения */
.faq--no-image {
    grid-template-columns: 1fr;
    max-width: 800px;
}

.faq--no-image .faq__content {
    max-width: 100%;
}





/* FAQ для карточки товара */
.product-faq {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    margin-top: 3rem;
}

.product-faq__title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
}

.product-faq__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* FAQ Items для товара */
.faq-item {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    margin-bottom: 1rem;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.faq-item:hover {
    border-color: #2d5016;
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.1);
    transform: translateY(-1px);
}

.faq-item.active {
    border-color: #2d5016;
    box-shadow: 0 4px 20px rgba(45, 80, 22, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.3s ease;
    user-select: none;
    min-height: 70px;
}

.faq-item.active .faq-question {
    background: #f8f9fa;
    color: #1a1a1a;
    border-bottom: 3px solid #2d5016;
}

.faq-question__text {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.4;
    flex: 1;
    padding-right: 1.5rem;
}

.faq-question__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(45, 80, 22, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.faq-item.active .faq-question__icon {
    background: #2d5016;
    color: #ffffff;
    transform: rotate(180deg);
}

.faq-question__icon svg {
    width: 20px;
    height: 20px;
    color: inherit;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #ffffff;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 1.5rem 2rem 2rem 2rem;
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
    font-size: 1.25rem;
    font-weight: 400;
}

/* FAQ секция */
.faq-section {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

/* Адаптивность */
@media (max-width: 1024px) {

}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .product-faq {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        min-height: 60px;
    }
    
    .faq-question__text {
        font-size: 1.25rem;
    }
    
    .faq-answer p {
        padding: 1.25rem 1.5rem 1.75rem 1.5rem;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .faq-list {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
        min-height: 50px;
    }
    
    .faq-question__text {
        font-size: 1.125rem;
        line-height: 1.4;
    }
    
    .product-faq {
        padding: 1.25rem;
        margin-top: 2rem;
    }
    
    .product-faq__title {
        font-size: 1.5rem;
    }
    
    .faq-answer p {
        padding: 1rem 1.25rem 1.5rem 1.25rem;
        font-size: 1.0625rem;
    }
}

/* Дополнительные стили для контейнера */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Улучшенные стили для FAQ на странице товара */
.faq-section .faq-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-section .faq-item:hover {
    border-color: #2d5016;
    box-shadow: 0 8px 32px rgba(45, 80, 22, 0.15);
    transform: translateY(-2px);
}

.faq-section .faq-item.active {
    border-color: #2d5016;
    box-shadow: 0 8px 32px rgba(45, 80, 22, 0.15);
}

.faq-section .faq-question h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
    color: inherit;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Плавные переходы для всех элементов */
* {
    box-sizing: border-box;
}

.faq-item {
    will-change: transform;
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 360px) {
    .faq-question__icon {
        width: 30px;
        height: 30px;
    }
}

/* Исправление для контейнеров */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
}

/* Дополнительные улучшения для читаемости */
.faq-answer p {
    text-align: left;
    word-wrap: break-word;
    hyphens: auto;
}

/* Улучшенные фокус-стили для доступности */
.faq-question:focus {
    outline: 3px solid rgba(45, 80, 22, 0.3);
    outline-offset: 2px;
}

/* Плавная прокрутка для длинных ответов */
.faq-answer {
    scroll-behavior: smooth;
}

/* Улучшенная типографика */
.faq-answer p strong {
    color: #2d5016;
    font-weight: 700;
}

.faq-answer p em {
    font-style: italic;
    color: #374151;
}