/**
 * FAQ Block Styles
 * Modern FAQ design with dark theme and smooth animations
 */

.faq-block {
    margin: 40px 0;
    padding: 40px 20px;
    color: white;
    min-height: auto;
}

.faq-block .container {
    max-width: 1200px;
    width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.faq-block--title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.faq-block--subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    color: #b0b0b0;
    line-height: 1.6;
}

.faq-block--items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-block--items__item {
    background-color: rgb(59,35,75);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.faq-block--items__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.faq-block--items__item--header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 500;
    user-select: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    border-radius: 0;
}

.faq-block--items__item--header:hover {
    background-color: rgba(255,255,255,0.05);
}

.faq-block--items__item--header:focus {
    outline: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    line-height: 1.5;
    flex: 1;
    margin-right: 16px;
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    opacity: 0.8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.faq-block--items__item.-toggle .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-block--items__item--content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
}

.faq-block--items__item.-toggle .faq-block--items__item--content {
    padding: 20px;
    max-height: 500px;
    opacity: 1;
}

.faq-answer {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.faq-answer-inner {
    background-color: rgb(19,18,20);
    padding: 20px;
    border-radius: 8px;
    margin: 0 5px 5px 5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer-inner p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner a {
    color: #8b5cf6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-answer-inner a:hover {
    color: rgb(192, 56, 243);
    text-decoration: underline;
}

.faq-answer-inner .highlight {
    color: #8b5cf6;
    font-weight: 500;
}

.faq-answer ul,
.faq-answer ol {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 6px;
}

/* Стили для предпросмотра в редакторе */
.acf-block-placeholder {
    padding: 40px;
    text-align: center;
    background: rgba(59, 35, 75, 0.1);
    border: 2px dashed rgba(59, 35, 75, 0.3);
    border-radius: 8px;
    color: #666;
}

.acf-block-placeholder h3 {
    margin: 0 0 10px 0;
    color: rgb(59, 35, 75);
}

/* Responsive design */
@media (max-width: 768px) {
    .faq-block {
        padding: 30px 15px;
    }
    
    .faq-block--title {
        font-size: 1.5rem;
    }
    
    .faq-block--items__item--header {
        padding: 18px 20px;
    }
    
    .faq-question {
        font-size: 1rem;
    }
    
    .faq-block--items__item.-toggle .faq-block--items__item--content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .faq-block {
        padding: 20px 10px;
    }
    
    .faq-block--title {
        font-size: 1.3rem;
    }
    
    .faq-block--items__item--header {
        padding: 16px 18px;
    }
    
    .faq-question {
        font-size: 0.95rem;
    }
} 