main {
    position: relative;
    padding: 5rem var(--padding-horizontal) 3rem;
}

main .header_text {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.faq-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 15px;
    width: 80%;
}

.faq-item {
    background-color: var(--gray-light);
    border-radius: 12px;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.faq-item.active {
    background-color: #E0E8F9;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    font-size: 1.1rem;
    font-weight: 500;
}

.question-text {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    margin-right: 20px;
    line-height: 1.4;
}

.arrow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    min-width: 24px;
    height: 24px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.faq-item.active .arrow {
    -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
            transform: rotate(180deg);
}

.faq-item.active .arrow svg path {
    stroke: #2c5aa0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    color: #676767;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px 25px;
}

.faq-answer p {
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid rgba(76, 76, 76, 0.1);
}

.no-faq {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.2rem;
    background-color: var(--gray-light);
    border-radius: 12px;
}

main .pyramid {
    position: absolute;
    height: 320px;
    width: 290px;
    -webkit-transform: rotate(-126deg);
        -ms-transform: rotate(-126deg);
            transform: rotate(-126deg);
    right: -100px;
    opacity: 0.7;
    z-index: 1;
}


/* Анимация стрелки */
.arrow svg {
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

/* Дополнительные стили для интерактивности */
.faq-question:hover {
    background-color: rgba(224, 232, 249, 0.3);
}

.faq-item.active .faq-question:hover {
    background-color: transparent;
}


/* media */

@media (max-width: 800px) {
    main .header_text {
        font-size: 1.9rem;
    }

    main .faq-container {
        width: 100%;
    }
    
    main .pyramid {
        display: none;
    }
}