/* PAGE FAQ - Частые вопросы в стиле мессенджера с почти прозрачными цветами */
#faq-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: var(--font-family);
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
}

.faq-title {
    font-size: var(--font-size-4xl);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Контейнер FAQ в стиле мессенджера */
.faq-messenger {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

/* Убрал линию времени полностью */
.faq-timeline {
    display: none;
}

/* Контейнер для сообщений */
.faq-messages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    margin-bottom: 2rem; /* Добавил отступ снизу */
}

/* Общий стиль для всех сообщений */
.faq-message {
    max-width: 85%;
    padding: 1.25rem;
    border-radius: 16px;
    line-height: 1.5;
    position: relative;
    animation: messageAppear 0.4s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Вопросы (слева) - почти прозрачный голубой */
.faq-question {
    align-self: flex-start;
    background-color: rgba(219, 234, 254, 0.15);
    border: 1px solid rgba(147, 197, 253, 0.2);
    border-bottom-left-radius: 8px;
    color: var(--text-primary);
    margin-right: auto;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent rgba(147, 197, 253, 0.2) transparent transparent;
}

/* Ответы (справа) - почти прозрачный сиреневый */
.faq-answer {
    align-self: flex-end;
    background-color: rgba(233, 213, 255, 0.15);
    border: 1px solid rgba(196, 181, 253, 0.2);
    border-bottom-right-radius: 8px;
    color: var(--text-primary);
    margin-left: auto;
}

.faq-answer::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent rgba(196, 181, 253, 0.2);
}

/* Заголовок вопроса */
.faq-message-title {
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: 0.75rem;
    color: rgba(30, 64, 175, 0.7);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-message-title::before {
    content: '❓';
    font-size: 1rem;
    opacity: 0.6;
}

.faq-answer .faq-message-title {
    color: rgba(109, 40, 217, 0.7);
}

.faq-answer .faq-message-title::before {
    content: '💡';
}

/* Содержимое ответа */
.faq-message-content {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    line-height: 1.6;
}

.faq-message-content p {
    margin-bottom: 0.75rem;
}

.faq-message-content p:last-child {
    margin-bottom: 0;
}

.faq-message-content ul, 
.faq-message-content ol {
    margin: 0.75rem 0 0.75rem 1.5rem;
}

.faq-message-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Маркеры списков */
.faq-message-content ul li::before {
    content: '•';
    color: rgba(59, 130, 246, 0.4);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.faq-answer .faq-message-content ul li::before {
    color: rgba(168, 85, 247, 0.4);
}

/* Индикатор времени */
.faq-message-time {
    text-align: right;
    font-size: var(--font-size-xs);
    color: rgba(107, 114, 128, 0.4);
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Анимация при прокрутке */
.faq-message.visible {
    animation: messageSlideIn 0.5s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.faq-answer.visible {
    animation: answerSlideIn 0.5s ease;
}

@keyframes answerSlideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Легкий эффект при наведении */
.faq-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .faq-title {
        font-size: var(--font-size-3xl);
    }
    
    .faq-subtitle {
        font-size: var(--font-size-base);
    }
    
    .faq-message {
        max-width: 92%;
        padding: 1rem;
    }
    
    .faq-question::before,
    .faq-answer::after {
        display: none;
    }
}

@media (max-width: 576px) {
    #faq-page {
        padding: 0 0.5rem;
    }
    
    .faq-messages {
        gap: 1rem;
    }
    
    .faq-message {
        max-width: 100%;
        border-radius: 12px;
        padding: 0.875rem;
    }
}
/* Дополнительные стили для FAQ */
.faq-footer {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--border-radius);
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.faq-footer h2 {
    font-size: var(--font-size-2xl);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.faq-footer p {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-footer strong {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .faq-footer {
        margin-top: 3rem;
        padding: 1.5rem;
    }
    
    .faq-footer h2 {
        font-size: var(--font-size-xl);
    }
}

/* ======================================== */
/* ТЁМНАЯ ТЕМА ДЛЯ FAQ                     */
/* ======================================== */
[data-theme="dark"] .faq-title,
[data-theme="dark"] .faq-subtitle {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-left-color: var(--primary-color) !important;
}

[data-theme="dark"] .faq-footer h2,
[data-theme="dark"] .faq-footer p {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-footer strong {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .faq-question {
    background: rgba(30, 58, 138, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-answer {
    background: rgba(55, 48, 163, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-message-title {
    color: var(--primary-color) !important;
}

/* ======================================== */
/* ТЁМНАЯ ТЕМА ДЛЯ FAQ                     */
/* ======================================== */
[data-theme="dark"] .faq-title,
[data-theme="dark"] .faq-subtitle {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border-left-color: var(--primary-color) !important;
}

[data-theme="dark"] .faq-footer h2 {
    color: #f9fafb !important;
}

[data-theme="dark"] .faq-footer p {
    color: #d1d5db !important;
}

[data-theme="dark"] .faq-footer strong {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .faq-question {
    background: rgba(30, 58, 138, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-answer {
    background: rgba(55, 48, 163, 0.2) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .faq-message-title {
    color: var(--primary-color) !important;
}