.faq-page {
    --navigator-purple: #704bb1;
    --navigator-ink: #4d3379;
    padding-block: 24px 40px;
}

.faq-page .faq__surface {
    padding: 30px 26px 38px;
    border: 0;
    background: #fff;
    box-shadow: none;
}

.faq-page .faq__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: none;
    margin: 0 0 10px;
}

.faq-page .faq__header h1 {
    margin: 0 0 8px;
    font-size: 38px !important;
    line-height: 1.2 !important;
}

.faq__header p {
    max-width: 550px;
    margin: 0;
}

.faq__header img {
    width: clamp(70px, 17%, 150px);
    height: auto;
    margin-inline-end: 8%;
}

.faq__search input::-webkit-search-cancel-button {
    display: none;
}

.faq-page .faq__search .faq__reset {
    display: grid;
    place-items: center;
    min-width: 34px;
    padding: 0;
    background: transparent;
    color: #fff;
}

.faq__reset span {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8a60b4;
    line-height: 1;
}

.faq-page .faq__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin: 24px 0;
    padding: 0;
    overflow: visible;
}

.faq-page .faq__filters button {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #cdb8e7;
    border-radius: 8px;
    background: #fff;
    font-size: 16px !important;
    font-weight: 700;
    transform: none;
}

.faq-page .faq__filters button:hover {
    background: #f3eefc;
}

body .faq-page .faq__filters button.is-active {
    background: var(--navigator-purple);
    border-color: var(--navigator-purple);
    color: #fff !important;
}

.faq__filter-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: currentColor;
    mask: var(--faq-icon) center / contain no-repeat;
}

.faq-page .faq__grid {
    gap: 24px;
}

.faq-page .faq__section {
    min-width: 0;
    padding: 12px 14px 14px;
    border: 0;
    border-radius: 12px;
    background: #f1ebfa;
}

.faq-page .faq__section h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 8px;
    font-size: clamp(20px, 2vw, 26px) !important;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.faq__section h2 img {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.faq-page .faq__items {
    gap: 6px;
}

.faq-page .faq__item {
    border-color: #d3c6e5;
    box-shadow: 0 1px 4px #d3c6e5;
}

.faq-page .faq__item summary {
    min-height: 64px;
    padding: 9px 16px;
    font-size: 16px !important;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.faq__chevron {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.faq__item[open] .faq__chevron {
    transform: rotate(180deg);
}

.faq-page .faq__contact {
    gap: 20px;
    padding: 18px 22px;
    background: #543d92;
}

.faq__contact > img {
    width: 65px;
    height: auto;
}

.faq__contact-copy {
    flex: 1;
}

body .faq-page .faq__contact :is(h2,p) {
    color: #fff !important;
}

.faq-page .faq__contact p {
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.3;
}

.faq-page .faq__contact .button {
    white-space: normal;
}

@media (max-width: 1200px) {
    .faq-page .faq__surface { padding: 24px 20px; }
}

@media (max-width: 680px) {
    .faq-page { padding-block: 12px 24px; }
    .faq-page .faq__surface { padding: 20px 16px; }
    .faq-page .faq__header { gap: 8px; }
    .faq-page .faq__header h1 { font-size: 34px !important; }
    .faq__header img { margin-inline-end: 0; }
    .faq-page .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .faq-page .faq__filters { gap: 8px; }
    .faq-page .faq__contact { flex-wrap: wrap; padding: 16px; }
    .faq-page .faq__contact .button { width: 100%; }
}
