/* [admax_gyik] — gyakori kérdések accordion. */

.am-faq {
    border-bottom: 1px solid #dbeae3;
}

.am-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 4px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
}

.am-faq-q__text {
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: #16332e;
}

.am-faq-icon {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #2c8b74;
    color: #2c8b74;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
    transition: transform 0.4s cubic-bezier(0.16, 0.84, 0.3, 1), background 0.3s, color 0.3s;
}

.am-faq.is-open .am-faq-icon {
    transform: rotate(45deg);
    background: #2c8b74;
    color: #fff;
}

.am-faq-a-wrap {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.55s cubic-bezier(0.16, 0.84, 0.3, 1), opacity 0.4s ease;
}

.am-faq.is-open .am-faq-a-wrap {
    grid-template-rows: 1fr;
    opacity: 1;
}

.am-faq-a {
    min-height: 0;
    overflow: hidden;
}

.am-faq.is-open .am-faq-a {
    padding: 0 55px 25px 4px;
}

.am-faq-a p {
    margin: 0;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #5c7b73;
    font-weight: 500;
}

@media (max-width: 767px) {
    .am-faq-q {
        padding: 18px 2px;
        gap: 12px;
    }

    .am-faq-q__text {
        font-size: 17px;
    }

    .am-faq-icon {
        width: 26px;
        height: 26px;
        font-size: 16px;
    }

    .am-faq.is-open .am-faq-a {
        padding: 0 4px 18px 2px;
    }
}
