:root {
    --faq-bg: #f7f8fb;
    --faq-surface: #ffffff;
    --faq-text: #0f172a;
    --faq-muted: #475569;
    --faq-line: #e2e8f0;
    --faq-accent: #0b63f6;
    --faq-accent-soft: rgba(11, 99, 246, 0.08);
    --faq-radius: 14px;
    --faq-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.faq-page {
    background: var(--faq-bg);
    min-height: 60vh;
}

.faq-page__hero {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3rem) 1.5rem;
    text-align: center;
}

.faq-page__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--faq-muted);
}

.faq-page__breadcrumb a {
    color: var(--faq-accent);
    text-decoration: none;
}

.faq-page__breadcrumb a:hover {
    text-decoration: underline;
}

.faq-page__breadcrumb-sep {
    color: var(--faq-line);
}

.faq-page__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faq-accent);
}

.faq-page__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
    color: var(--faq-text);
}

.faq-page__lead {
    margin: 0 0 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--faq-muted);
}

.faq-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto 1rem;
}

.faq-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.faq-search__field {
    position: relative;
    display: flex;
    align-items: center;
}

.faq-search__icon {
    position: absolute;
    left: 1rem;
    color: var(--faq-muted);
    pointer-events: none;
}

.faq-search__input {
    width: 100%;
    padding: 0.875rem 2.75rem 0.875rem 2.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--faq-text);
    background: var(--faq-surface);
    border: 1px solid var(--faq-line);
    border-radius: 999px;
    box-shadow: var(--faq-shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-search__input:focus {
    outline: none;
    border-color: var(--faq-accent);
    box-shadow: 0 0 0 3px var(--faq-accent-soft);
}

.faq-search__clear {
    position: absolute;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--faq-muted);
    text-decoration: none;
    border-radius: 50%;
}

.faq-search__clear:hover {
    background: var(--faq-bg);
    color: var(--faq-text);
}

.faq-search__submit {
    align-self: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--faq-accent);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.faq-search__submit:hover {
    background: #0952d4;
}

.faq-search__submit:active {
    transform: scale(0.98);
}

.faq-page__stats {
    margin: 0;
    font-size: 0.875rem;
    color: var(--faq-muted);
}

.faq-page__body {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--faq-surface);
    border: 1px solid var(--faq-line);
    border-radius: var(--faq-radius);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item:hover {
    border-color: rgba(11, 99, 246, 0.25);
}

.faq-item.is-open {
    border-color: rgba(11, 99, 246, 0.35);
    box-shadow: var(--faq-shadow);
}

.faq-item.is-hidden {
    display: none;
}

.faq-item.is-highlight .faq-item__question {
    background: linear-gradient(120deg, rgba(11, 99, 246, 0.12), transparent);
    background-size: 100% 2em;
    background-repeat: no-repeat;
}

.faq-item__heading {
    margin: 0;
}

.faq-item__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.125rem 1.25rem;
    font: inherit;
    text-align: left;
    color: var(--faq-text);
    background: transparent;
    border: none;
    cursor: pointer;
}

.faq-item__trigger:hover {
    background: var(--faq-accent-soft);
}

.faq-item__question {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item__chevron {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--faq-muted);
    border-bottom: 2px solid var(--faq-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.15s ease;
}

.faq-item.is-open .faq-item__chevron {
    transform: rotate(-135deg);
    border-color: var(--faq-accent);
    margin-top: 0.25rem;
}

.faq-item__panel {
    border-top: 1px solid var(--faq-line);
}

.faq-item__panel[hidden] {
    display: none;
}

.faq-item__answer {
    padding: 0 1.25rem 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--faq-muted);
}

.faq-item__answer p {
    margin: 0 0 0.75rem;
}

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

.faq-page__empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--faq-surface);
    border: 1px dashed var(--faq-line);
    border-radius: var(--faq-radius);
    color: var(--faq-muted);
}

.faq-page__empty a {
    color: var(--faq-accent);
}

.faq-page__empty--filter {
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .faq-search {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .faq-search__field {
        flex: 1 1 320px;
    }

    .faq-search__submit {
        flex: 0 0 auto;
    }
}
