/* ============================================================
   GHOSTEA — FAQ PAGE REDESIGN
   Warm Artisanal Style
   ============================================================ */

.q_glav {
    width: 100%;
    max-width: 840px;
    margin: 110px auto 100px;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

body.ghosteaapp .q_glav {
    margin-top: 30px;
}

.q_cont {
    width: 100%;
    background: #0E221E;
    border: 1px solid rgba(230, 197, 148, 0.12);
    border-radius: 12px;
    padding: 4px 22px;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease;
}

.q_cont:hover {
    border-color: rgba(230, 197, 148, 0.24);
}

.q_button {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.q_title {
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 700;
    color: #F7EAD8;
    font-family: Comfortaa, sans-serif;
    line-height: 1.3;
}

.q_arrow {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.q_arrow img {
    width: 14px;
    height: 14px;
    filter: brightness(0) invert(0.9);
    transition: transform 0.3s ease;
}

.q_button.active .q_arrow img,
.q_cont.active .q_arrow img {
    transform: rotate(180deg);
}

.q_cont .line {
    display: none; /* скрываем грубый старый разделитель */
}

.q_text_block {
    display: none;
    color: rgba(247, 234, 216, 0.8);
    padding: 6px 0 22px;
    font-family: Nunito, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    border-top: 1px solid rgba(230, 197, 148, 0.1);
    margin-top: 6px;
}

.link_ref {
    color: #EED9BE;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}

.link_ref:hover {
    color: #F7EAD8;
}

@media (max-width: 680px) {
    .q_glav {
        margin-top: calc(120px + env(safe-area-inset-top, 0px));
    }

    .q_cont {
        padding: 4px 16px;
        border-radius: 10px;
    }

    .q_title {
        font-size: 15px;
    }

    .q_text_block {
        font-size: 13.5px;
        line-height: 1.6;
    }
}