/* ================= faq ================= */

.faq,
.faq *,
.faq *::before,
.faq *::after {
    box-sizing: border-box;
}

.faq {
    position: relative;
    overflow: hidden;
    padding: 78px 0 96px;
    background: #5e0a22;
    background-image: linear-gradient(115deg, #4f0619 0%, #6d0c28 55%, #560a1f 100%);
    color: #fff;
    isolation: isolate;
}

.faq__decor {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.faq__decor-shape {
    position: absolute;
    border-radius: 50%;
}

.faq__decor-shape--tr {
    top: -220px;
    right: -140px;
    width: 460px;
    height: 460px;
    background: rgba(255, 255, 255, .05);
}

.faq__decor-shape--tr-ring {
    top: -300px;
    right: -250px;
    width: 640px;
    height: 640px;
    border: 1px solid rgba(255, 255, 255, .18);
}

.faq__decor-shape--bl {
    left: -190px;
    bottom: -250px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, .055);
}

.faq__decor-shape--bl-ring {
    left: -300px;
    bottom: -330px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(255, 255, 255, .16);
}

.faq__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
    align-items: start;
    gap: 60px;
}

.faq__head {
    position: relative;
    padding-top: 34px;
}

.faq__head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 96px;
    height: 3px;
    background: #fff;
}

.faq__title {
    margin: 0 0 22px;
    /* font-family: 'PT Serif', Georgia, serif; */
    font-size: 44px;
    line-height: 1.12;
    font-weight: 700;
    color: #fff;
}

.faq__text {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .84);
}

.faq__list {
    display: grid;
    gap: 16px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    transition: background-color .3s ease, border-color .3s ease;
}

.faq-item--open {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .4);
}

.faq-item__button {
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    padding: 18px 26px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

.faq-item__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    transition: background-color .3s ease, transform .3s ease;
}

.faq-item--open .faq-item__badge {
    background: rgba(255, 255, 255, .22);
}

.faq-item__button:hover .faq-item__badge {
    transform: scale(1.06);
}

.faq-item__text {
    flex: 1;
    min-width: 0;
}

.faq-sign {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-sign::before,
.faq-sign::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: translateY(-50%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .3s ease;
}

.faq-sign::after {
    transform: translateY(-50%) rotate(90deg);
}

.faq-item--open .faq-sign::after {
    transform: translateY(-50%) rotate(0deg);
    opacity: 0;
}

.faq-sign--big {
    width: 20px;
    height: 20px;
}

.faq-item__panel {
    height: 0;
    overflow: hidden;
    transition: height .4s cubic-bezier(.4, 0, .2, 1);
}

.faq-item__inner {
    margin: 0 26px;
    padding: 20px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, .26);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .35s ease .05s, transform .35s ease .05s;
}

.faq-item--open .faq-item__inner {
    opacity: 1;
    transform: none;
}

.faq-item__answer {
    margin: 0;
    padding-left: 68px;
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .88);
}

.faq-item__answer p {
    margin: 0 0 14px;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

.faq-item__answer a {
    color: #fff;
}

/* ================= adaptive ================= */

@media (max-width: 1500px) {
    .faq__inner {
        gap: 48px;
    }

    .faq__title {
        font-size: 40px;
    }
}

@media (max-width: 1200px) {
    .faq {
        padding: 62px 0 72px;
    }

    .faq__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    .faq__title {
        font-size: 34px;
    }

    .faq-item__button {
        font-size: 17px;
    }
}

@media (max-width: 1024px) {
    .faq__title {
        font-size: 30px;
    }

    .faq__text {
        font-size: 16px;
    }

    .faq-item__answer {
        padding-left: 58px;
        font-size: 16px;
    }

    .faq-item__badge {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 768px) {
    .faq {
        padding: 48px 0 56px;
    }

    .faq-item__button {
        gap: 16px;
        padding: 16px 18px;
        font-size: 16px;
    }

    .faq-item__inner {
        margin: 0 18px;
    }

    .faq-item__answer {
        padding-left: 0;
    }
}

@media (max-width: 576px) {
    .faq {
        padding: 36px 0 44px;
    }

    .faq__head {
        padding-top: 26px;
    }

    .faq__head::before {
        width: 64px;
    }

    .faq__title {
        font-size: 25px;
        margin-bottom: 16px;
    }

    .faq__text {
        font-size: 15px;
    }

    .faq__list {
        gap: 12px;
    }

    .faq-item__badge {
        width: 36px;
        height: 36px;
    }

    .faq-sign {
        width: 13px;
        height: 13px;
    }

    .faq-sign--big {
        width: 16px;
        height: 16px;
    }

    .faq-item__button {
        gap: 12px;
        padding: 14px;
        font-size: 15px;
    }

    .faq-item__inner {
        margin: 0 14px;
        padding: 16px 0 18px;
    }

    .faq-item__answer {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item__panel,
    .faq-item__inner,
    .faq-sign::before,
    .faq-sign::after {
        transition-duration: .01ms;
    }
}