.faq-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.faq-container h1 {
    text-align: center;
    color: #0066CC;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    background-color: var(--card-bg, white);
    color: var(--text-color, #333);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.search-box button {
    background-color: #0066CC;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.faq-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    background: var(--light-gray, #f0f0f0);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.5s;
    color: var(--text-color, #333);
}

.category-btn.active {
    background: #0066CC;
    color: white;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color, #eee);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-question {
    padding: 15px 20px;
    background: var(--light-gray, #f9f9f9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.faq-copy-link {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: var(--card-bg, #fff);
    color: var(--text-color, #333);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.faq-copy-link:hover {
    background: #0066CC;
    color: white;
}

.faq-copy-link:focus {
    outline: 2px solid #0066CC;
    outline-offset: 2px;
}

.faq-question h3 {
    color: var(--text-color, #333);
    transition: color 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
}

.toggle-icon {
    font-size: 24px;
    font-weight: bold;
}

.faq-answer {
    padding-right: 20px;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, background-color 0.3s ease, color 0.3s ease;
    background: var(--light-gray, #f9f9f9);
    color: var(--text-color, #333);
}

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

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.video-wrapper video {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
    max-height: 300px;
    background: #000;
}

/* Для адаптивности */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .faq-container {
        padding: 15px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 4px;
        padding: 12px;
    }
    
    .faq-question {
        padding: 12px 15px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
}