/*
 * FAQ page (/faq/), design M. Loaded only on that page (plugin xxl-tools, includes/faq.php).
 * Hero with search, topic navigation (sticky sidebar on desktop, chips on mobile), accordions and a contact card.
 */

.xt-page-faq { --xq-blue: var(--xr-btn, #1F4E9C); --xq-navy: var(--xr-navy, #163B78); --xq-line: var(--xr-line, #EDE5D0); --xq-soft: var(--xr-soft, #FFF1C2); --xq-paper2: var(--xr-paper-2, #FFF6DA); --xq-ink: var(--xr-ink, #1D2330); --xq-ink2: var(--xr-ink-2, #3E4656); --xq-yellow: var(--xr-accent, #FFC613); }

/* ---------- Hero and search ---------- */
.xq-hero { padding-bottom: 34px !important; }
.xq-hero .xt-lead { max-width: 640px; }
.xq-search { position: relative; max-width: 680px; margin: 26px 0 0; }
.xq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xq-search-ic { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--xq-ink2); pointer-events: none; }
.xq-search #xq-q { width: 100% !important; height: 60px !important; margin: 0 !important; padding: 0 56px 0 54px !important; border: 2px solid var(--xq-line) !important; border-radius: 999px !important; background: #fff !important; color: var(--xq-ink); font: 500 17px/1.2 Inter, system-ui, sans-serif !important; box-shadow: 0 18px 40px -28px rgba(22, 59, 120, .45); -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.xq-search #xq-q::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.xq-search #xq-q::placeholder { color: #7A8090; }
.xq-search #xq-q:focus { outline: none; border-color: var(--xq-blue) !important; box-shadow: 0 0 0 4px rgba(255, 198, 19, .55), 0 18px 40px -28px rgba(22, 59, 120, .45); }
.xq-search .xq-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px !important; height: 40px; margin: 0 !important; padding: 0 !important; border: 0; border-radius: 50%; background: var(--xq-paper2) !important; color: var(--xq-ink) !important; font-size: 22px; line-height: 1; cursor: pointer; }
.xq-search .xq-clear:hover, .xq-search .xq-clear:focus-visible { background: var(--xq-soft) !important; }
.xq-search .xq-clear[hidden] { display: none !important; }
.xq-status { min-height: 22px; margin: 12px 0 0 !important; font-size: 14.5px; font-weight: 600; color: var(--xq-ink2); }

/* ---------- Layout ---------- */
.xq-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; padding-top: 8px !important; padding-bottom: 72px !important; }
.xq-main { min-width: 0; display: grid; gap: 28px; }

/* ---------- Topic navigation ---------- */
.xq-nav { position: sticky; top: calc(var(--xq-top, 88px) + 20px); }
.xq-cat { scroll-margin-top: calc(var(--xq-top, 88px) + 20px); }
.xq-item { scroll-margin-top: calc(var(--xq-top, 88px) + 24px); }
.xq-nav-h { margin: 0 0 10px !important; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--xq-ink2); }
.xq-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.xq-nav li { margin: 0; padding: 0; }
.xq-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--xq-ink); font-weight: 600; font-size: 15px; line-height: 1.25; text-decoration: none; transition: background .15s; }
.xq-nav a:hover { background: var(--xq-paper2); }
.xq-nav a:focus-visible { outline: 3px solid var(--xq-yellow); outline-offset: 1px; }
.xq-nav a[aria-current] { background: var(--xq-soft); }
.xq-nav-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--xq-line); font-size: 14px; color: var(--xq-blue); }
.xq-nav-l { flex: 1 1 auto; }
.xq-nav-n { flex: none; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--xq-line); font-size: 12.5px; font-weight: 700; text-align: center; color: var(--xq-ink2); }
.xq-nav li.is-empty a { opacity: .45; }

/* ---------- Topics and questions ---------- */
.xq-cat { scroll-margin-top: 24px; background: #fff; border: 1px solid var(--xq-line); border-radius: var(--xr-radius, 18px); padding: 26px 30px 10px; }
.xq-cat[hidden] { display: none; }
.xq-cat-head { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; }
.xq-cat-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--xq-soft); color: var(--xq-ink); font-size: 20px; font-weight: 800; }
.xq-cat-h { margin: 0 !important; font-family: var(--xr-head-font, 'Manrope', 'Inter', system-ui, sans-serif) !important; font-weight: var(--xr-head-weight, 800) !important; font-size: 26px !important; line-height: 1.15 !important; letter-spacing: -.01em; color: var(--xq-ink); }
.xq-item { scroll-margin-top: 24px; border-bottom: 1px solid var(--xq-line); }
.xq-item:last-child { border-bottom: 0; }
.xq-item[hidden] { display: none; }
.xq-item > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--xq-ink); cursor: pointer; border-radius: 8px; }
.xq-item > summary::-webkit-details-marker { display: none; }
.xq-item > summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--xq-soft); display: grid; place-items: center; font-size: 22px; font-weight: 500; color: var(--xq-ink); transition: background .15s, transform .2s; }
.xq-item > summary:hover::after { background: var(--xq-yellow); }
.xq-item > summary:focus-visible { outline: 3px solid var(--xq-yellow); outline-offset: 4px; }
.xq-item[open] > summary::after { content: "–"; background: var(--xq-yellow); }
.xq-a { padding: 0 52px 20px 0; }
.xq-a p { margin: 0 !important; font-size: 16px; line-height: 1.65; color: var(--xq-ink2); }
.xq-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--xq-blue) !important; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--xq-yellow); text-underline-offset: 4px; }
.xq-more::after { content: "→"; text-decoration: none; }
.xq-more:hover { text-decoration-color: var(--xq-blue); }
.xq-pay { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.xq-pay li { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px 6px 8px; border: 1px solid var(--xq-line); border-radius: 999px; background: var(--xr-paper, #FFFDF8); font-size: 13.5px; font-weight: 600; color: var(--xq-ink); }
.xq-pay img { height: 20px; width: auto; }

/* ---------- No results ---------- */
.xq-empty { padding: 30px; border: 2px dashed var(--xq-line); border-radius: var(--xr-radius, 18px); text-align: center; }
.xq-empty[hidden] { display: none; }
.xq-empty p { margin: 0 !important; color: var(--xq-ink2); }
.xq-empty .xq-empty-h { margin-bottom: 4px !important; font-weight: 800; font-size: 18px; color: var(--xq-ink); }

/* ---------- Contact card ---------- */
.xq-help { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-top: 12px; padding: 32px 34px; border-radius: 22px; background: var(--xq-navy); color: #fff; box-shadow: 0 30px 60px -40px rgba(22, 59, 120, .8); }
.xq-help-kick { margin: 0 0 6px !important; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--xq-yellow); }
.xq-help h2 { margin: 0 0 8px !important; font-family: var(--xr-head-font, 'Manrope', 'Inter', system-ui, sans-serif) !important; font-weight: 800 !important; font-size: 30px !important; line-height: 1.12 !important; color: #fff !important; }
.xq-help-txt p:last-child { margin: 0 !important; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.55; max-width: 520px; }
.xq-help-ways { display: grid; gap: 10px; justify-items: stretch; min-width: 250px; }
.xq-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--xq-yellow); color: var(--xq-ink) !important; font-weight: 800; font-size: 16px; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.xq-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .5); }
.xq-way { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important; }
.xq-way:hover { background: rgba(255, 255, 255, .1); }
.xq-btn:focus-visible, .xq-way:focus-visible { outline: 3px solid var(--xq-yellow); outline-offset: 3px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 960px) {
	.xq-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.xq-nav { position: sticky; top: var(--xq-top, 88px); z-index: 5; margin: 0 -16px; padding-top: 10px; background: var(--xr-paper, #FFFDF8); }
	.xq-cat { scroll-margin-top: calc(var(--xq-top, 88px) + 72px); }
	.xq-item { scroll-margin-top: calc(var(--xq-top, 88px) + 76px); }
	.xq-nav-h { display: none; }
	.xq-nav ul { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.xq-nav ul::-webkit-scrollbar { display: none; }
	.xq-nav li { flex: none; }
	.xq-nav a { padding: 8px 12px 8px 8px; border: 1px solid var(--xq-line); border-radius: 999px; background: #fff; font-size: 14px; white-space: nowrap; }
	.xq-nav-ic { width: 24px; height: 24px; border: 0; background: var(--xq-paper2); font-size: 12px; }
	.xq-nav-n { border: 0; background: var(--xq-paper2); padding: 1px 7px; }
	.xq-help { grid-template-columns: minmax(0, 1fr); }
	.xq-help-ways { min-width: 0; }
}
@media (max-width: 600px) {
	.xq-search { margin-top: 20px; }
	.xq-search #xq-q { height: 54px; font-size: 16px; padding-left: 48px; }
	.xq-search-ic { left: 17px; }
	.xq-cat { padding: 20px 18px 4px; border-radius: 16px; }
	.xq-cat-ic { width: 38px; height: 38px; font-size: 17px; }
	.xq-cat-h { font-size: 22px !important; }
	.xq-item > summary { font-size: 16px; padding: 16px 0; gap: 12px; }
	.xq-item > summary::after { width: 32px; height: 32px; font-size: 20px; }
	.xq-a { padding-right: 0; }
	.xq-a p { font-size: 15.5px; }
	.xq-help { padding: 26px 20px; border-radius: 18px; }
	.xq-help h2 { font-size: 25px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.xq-search #xq-q, .xq-btn, .xq-item > summary::after { transition: none; }
}
