/* FAQ (/faq): аккордеон на нативных <details>, навигация по разделам якорями — одинаково в JS и TOR No-JS версиях. */
.faq-page .kyc-page-head { margin-bottom: 12px; }

.faq-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.faq-toc-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 9px; border: 1px solid var(--kn-border); border-radius: 999px; background: var(--kn-panel); color: var(--kn-text-2); font-size: .78rem; font-weight: 600; line-height: 1.2; text-decoration: none; transition: color .15s, border-color .15s, background-color .15s; }
.faq-toc-link .bi { color: var(--kn-blue); font-size: .9em; }
.faq-toc-link:hover { color: #fff; border-color: rgba(147,197,253,.45); background: rgba(59,130,246,.1); }
.faq-toc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--kn-muted); font-size: .68rem; font-weight: 700; }

.faq-section { scroll-margin-top: 92px; }
.faq-section + .faq-section, .faq-section + .faq-contact { margin-top: 16px; }
.faq-section .kn-panel-head { min-height: 44px; }
.faq-section .kn-panel-title { font-size: .92rem; }

.faq-list { padding: 4px 0; }
.faq-item { border-top: 1px solid var(--kn-border); scroll-margin-top: 92px; }
.faq-item:first-child { border-top: 0; }
.faq-question { list-style: none; display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: var(--kn-text); font-size: .88rem; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background-color .15s, color .15s; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }
.faq-question:hover { background: rgba(255,255,255,.025); }
.faq-question:focus-visible { outline: 2px solid rgba(147,197,253,.6); outline-offset: -2px; }
.faq-question-text { flex: 1 1 auto; min-width: 0; }
.faq-chevron { flex: 0 0 auto; color: var(--kn-muted); font-size: .8rem; transition: transform .2s, color .15s; }
.faq-item[open] > .faq-question { color: var(--kn-blue); }
.faq-item[open] > .faq-question .faq-chevron { transform: rotate(180deg); color: var(--kn-blue); }
.faq-answer { padding: 0 14px 14px 14px; font-size: .86rem; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { margin-bottom: .6rem; }
.faq-answer li { margin-bottom: .2rem; }

.faq-contact-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 12px 24px; align-items: center; }
.faq-contact-text p { margin: 8px 0 0; color: var(--kn-muted); font-size: .84rem; line-height: 1.55; }
.faq-contact-links .contact-item { padding: 8px 12px; }
.faq-contact-links .contact-value { font-size: .86rem; }

@media (max-width: 767.98px) {
    .faq-section, .faq-item { scroll-margin-top: 76px; }
    .faq-toc-link { font-size: .74rem; padding: 4px 9px 4px 8px; }
    .faq-question { padding: 10px 12px; font-size: .85rem; }
    .faq-answer { padding: 0 12px 12px; }
    .faq-contact-body { grid-template-columns: minmax(0, 1fr); }
}
