/* =============================================
   FAQ Component Styles
   Лаконичный и современный дизайн (Сине-голубая гамма)
   ============================================= */

.pool-faq {
    padding: 60px 0;
    background: transparent;
    font-family: 'Inter', 'Gilroy', sans-serif;
}

.pool-faq__wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

/* ── Top Header (Title & Buttons) ── */

.pool-faq__left {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    gap: 20px;
}

.pm-section__headline-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pm-badge {
    display: inline-flex;
    align-items: center;
    background: #f4f7fa;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #002f5d;
    align-self: flex-start;
}

.pm-badge__rectangle {
    width: 8px;
    height: 8px;
    background: #00a3e0;
    margin-right: 10px;
    border-radius: 2px;
}

.pm-section-title.pool-faq__title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #002f5d;
    line-height: 1.2;
}

.pool-faq__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pool-faq__buttons.pool-faq__buttons--mobile {
    display: none;
}

.pm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.pm-btn--primary {
    background: #00a3e0;
    color: #fff;
    border: 1px solid #00a3e0;
}

.pm-btn--primary:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.pm-btn--secondary {
    background: #fff;
    color: #002f5d;
    border: 1px solid #e0e6ed;
}

.pm-btn--secondary:hover {
    background: #f4f7fa;
    border-color: #cbd5e1;
}

.pm-btn-icon {
    margin-left: 8px;
}

/* ── Bottom column (Accordion List) ── */

.pool-faq__right {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pool-faq__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* ── Accordion item ── */

.pool-faq__item {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.pool-faq__item:hover {
    box-shadow: 0 4px 12px rgba(0, 47, 93, 0.05);
}

.pool-faq__item.is-open {
    border-color: #00a3e0;
}

.pool-faq__item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.pool-faq__item-question {
    color: #002f5d;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.pool-faq__item-toggle {
    display: flex;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #f4f7fa;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s, color 0.3s;
    color: #002f5d;
    padding: 0;
}

.pool-faq__item:hover .pool-faq__item-toggle {
    background: #e0e6ed;
}

.pool-faq__item.is-open .pool-faq__item-toggle {
    background: #00a3e0;
    color: #fff;
}

.pool-faq__icon-minus {
    display: none;
}

.pool-faq__item.is-open .pool-faq__icon-plus {
    display: none;
}

.pool-faq__item.is-open .pool-faq__icon-minus {
    display: block;
}

.pool-faq__item-toggle svg {
    width: 20px;
    height: 20px;
}

.pool-faq__item-toggle svg path,
.pool-faq__item-toggle svg rect {
    fill: currentColor !important;
}

/* ── Accordion body ── */

.pool-faq__item-body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    padding: 0 24px;
}

.pool-faq__item.is-open .pool-faq__item-body {
    max-height: 800px;
    opacity: 1;
    padding-bottom: 24px;
}

.pool-faq__item-answer {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    border-top: 1px solid #e0e6ed;
    padding-top: 16px;
}

/* =============================================
   Responsive Styles
   ============================================= */

@media (max-width: 992px) {
    .pool-faq__left {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .pool-faq__left .pool-faq__buttons {
        display: none !important;
    }

    .pool-faq__buttons.pool-faq__buttons--mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .pool-faq__buttons {
        flex-direction: column;
    }

    .pm-btn {
        width: 100%;
    }

    .pool-faq__item-header {
        padding: 16px;
    }

    .pool-faq__item-question {
        font-size: 16px;
    }

    .pool-faq__item-body {
        padding: 0 16px;
    }

    .pool-faq__item.is-open .pool-faq__item-body {
        padding-bottom: 16px;
    }
}