/* ==========================================================================
   Питання та відповіді (спільний блок, template-parts/faq.php)
   Макет зі старого сайту: заголовок і дві підводки по центру; під ними
   ліворуч акордеон (829px) на сірій картці, праворуч картка «Зв'язатися з нами»
   (394px), проміжок 24px. Відкрите питання підсвічене, +/× справа.
   ========================================================================== */
.faq {
    padding-block: 100px 120px;
    background: var(--color-bg-soft);
    color: var(--color-dark);
}

.faq__head {
    text-align: center;
}

.faq__title {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: var(--tracking-heading);
}

.faq__lead {
    max-width: 780px;
    margin: 24px auto 0;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: var(--tracking-heading);
}

.faq__subtitle {
    max-width: 780px;
    margin: 16px auto 0;
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: var(--tracking-heading);
}

.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 829fr) minmax(0, 394fr);
    gap: 24px;
    align-items: start;
    margin-top: 48px;
}

/* Сіра картка з акордеоном */
.faq__list {
    overflow: hidden;
    border: 1px solid rgba(24, 29, 31, .12);
    border-radius: 20px;
    background: #EFEFEF;
    box-shadow: 0 0 60px rgba(0, 0, 0, .08) inset;
}

.faq__question {
    position: relative;
    display: block;
    padding: 24px 64px 24px 36px;
    font-size: 16px;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.faq__question::-webkit-details-marker {
    display: none;
}

/* Плюс: дві смужки; на відкритому питанні повертаються в хрестик */
.faq__question::before,
.faq__question::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 36px;
    width: 14px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform .25s ease;
}

.faq__question::before {
    transform: translateY(-50%);
}

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

.faq__item[open] > .faq__question::before {
    transform: translateY(-50%) rotate(45deg);
}

.faq__item[open] > .faq__question::after {
    transform: translateY(-50%) rotate(-45deg);
}

.faq__question:focus-visible {
    outline: 2px solid var(--color-dark);
    outline-offset: -2px;
}

/* Відкрите питання: підсвітка разом із відповіддю */
.faq__item[open] {
    border-radius: 20px;
    background: #C5D0CD;
}

.faq__answer {
    padding: 0 36px 28px;
    font-size: 16px;
    line-height: 1.3;
}

/* Картка «Зв'язатися з нами» */
.faq__contact {
    padding: 40px;
    border-radius: 20px;
    background: #EFEFEF;
    box-shadow: 0 0 60px rgba(0, 0, 0, .08) inset;
}

.faq__contact-title {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: var(--tracking-heading);
}

.faq__contact-text {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -.04em;
}

.faq__messengers {
    display: flex;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.faq__messenger {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-dark);
    color: var(--color-light);
    transition: transform .2s ease, background-color .2s ease;
}

.faq__messenger:hover,
.faq__messenger:focus-visible {
    background: #2d3538;
    transform: translateY(-2px);
}

.faq__messenger .icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 991px) {
    .faq {
        padding-block: 72px 88px;
    }

    .faq__grid {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 36px;
    }
}

@media (max-width: 767px) {
    .faq {
        padding-block: 56px 64px;
    }

    .faq__lead {
        margin-top: 16px;
    }

    .faq__list,
    .faq__item[open],
    .faq__contact {
        border-radius: 16px;
    }

    .faq__question {
        padding: 18px 52px 18px 20px;
    }

    .faq__question::before,
    .faq__question::after {
        right: 20px;
    }

    .faq__answer {
        padding: 0 20px 22px;
        font-size: 15px;
    }

    .faq__contact {
        padding: 28px 24px;
    }
}
