.faq-section {
    padding: 40px 0;
}

.faq-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: inherit;
}

.faq-icon {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s ease;
}

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

/* Ключевое изменение — grid вместо max-height */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    font-size: 15px;
    font-weight: 400;
}

.faq-answer > div {
    overflow: hidden;
    padding: 0 22px;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-answer > div {
    padding: 0 22px 20px;
}