/* FAQ Стили */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    text-align: center;
}

.faq-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-search {
    max-width: 500px;
    margin: 0 auto 50px;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 16px 20px;
    padding-right: 60px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.faq-search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.faq-category-btn {
    padding: 10px 20px;
    background: linear-gradient(180deg, var(--primary), var(--primary-600));
    border: none;
    border-radius: 8px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-category-btn:hover {
    background: var(--primary-600);
}

.faq-category-btn.active {
    background: linear-gradient(180deg, var(--primary), var(--primary-600));
    color: white;
}

.faq-section {
    margin-bottom: 50px;
}

.faq-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
}

.faq-question {
    padding: 20px;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--surface-2);
}

.faq-question-icon {
    color: var(--primary);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-item.active .faq-question-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-contact {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    border-radius: 15px;
    padding: 40px;
    margin-top: 60px;
    color: white;
    text-align: center;
}

.faq-contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.faq-contact-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-contact-button {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.faq-contact-button.primary {
    background: white;
    color: var(--primary);
    border: none;
}

.faq-contact-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.faq-contact-button:hover {
    transform: translateY(-2px);
}

.faq-contact-button.primary:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-contact-button.secondary:hover {
    border-color: white;
}

/* Адаптивность FAQ */

/* Темная тема */
body.theme-dark .faq-title,
body.theme-dark .faq-subtitle,
body.theme-dark .faq-section-title {
    color: #e5e7eb;
}

body.theme-dark .faq-search-input {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

body.theme-dark .faq-search-input::placeholder {
    color: #9ca3af;
}

body.theme-dark .faq-category-btn {
    background: linear-gradient(180deg, var(--primary), var(--primary-600));
}

body.theme-dark .faq-item {
    background: var(--surface);
    border-color: var(--border);
}

body.theme-dark .faq-question {
    color: var(--text);
}

body.theme-dark .faq-answer {
    color: var(--muted);
}

body.theme-dark .faq-section-title {
    border-color: var(--border);
}

body.theme-dark .faq-contact {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-subtitle {
        font-size: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 16px;
    }
    
    .faq-contact {
        padding: 30px 20px;
    }
    
    .faq-contact-title {
        font-size: 1.75rem;
    }
    
    .faq-contact-text {
        font-size: 1rem;
    }
    
    .faq-contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-contact-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 1.75rem;
    }
    
    .faq-categories {
        gap: 10px;
    }
    
    .faq-category-btn {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .faq-section-title {
        font-size: 1.25rem;
    }
}