/**
 * Справочный центр (/help/) - Модуль 5. Дизайн по макету HelpCenter (tusovka-ds), пиксель-в-пиксель.
 * Полноширинный hero + контент в .site-container (единая ширина с хедером/футером).
 */

.ibd-hc-main { padding: 0; background: transparent; }

/* ── HERO (полноширинный) ──
   Система макетов (qa/restyle/SPEC.md): ровная подложка #F3F8FC вместо градиента и «свечения». */
.ibd-hc-hero {
    position: relative;
    overflow: hidden;
    background: #F3F8FC;
    border-bottom: 1px solid #E3ECF2;
    padding: 52px 0 60px;
}
.ibd-hc-hero-glow { display: none; }
.ibd-hc-hero-inner { position: relative; text-align: center; }
.ibd-hc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #E3ECF2;
    color:#b45309;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 13px;
    border-radius: 999px;
    box-shadow: none;
    margin-bottom: 16px;
}
.ibd-hc-title {
    font-size: clamp(26px, 2vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 10px;
    color: #1E2A32;
}
.ibd-hc-sub {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    color: #39505E;
    margin: 0 auto 26px;
    max-width: 46ch;
}
.ibd-hc-search-wrap { max-width: 600px; margin: 0 auto; }
.ibd-hc-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    background: #fff;
    border: 1px solid #E3ECF2;
    border-radius: 12px;
    padding: 0 14px;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
/* Кольцо фокуса - на всём поле. !important + специфичность 0,2,0: sunday-unify.css
   ставит .ibd-hc-search { border-color: #E3ECF2 !important } и иначе гасит фокус. */
.ibd-hc-search:focus-within { border-color: #1F6FA6 !important; box-shadow: 0 0 0 3px #D9EBF9; }
.ibd-hc-search-ic { color: #5B7385; flex: none; }
.ibd-hc-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    outline: none;
    padding: 0;
    font-size: 16px;
    font-family: inherit;
    color: #1E2A32;
}
.ibd-hc-input::-webkit-search-cancel-button,
.ibd-hc-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.ibd-hc-clear {
    width: 30px; height: 30px; flex: none;
    border-radius: 50%;
    border: 0;
    background: #F3F8FC;
    color: #39505E;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.ibd-hc-clear[hidden] { display: none; }

/* ── Контент ── */
/* Специфичность 0,2,0: .site-container темы (style.css, грузится позже) обнуляет padding-top/bottom. */
.ibd-hc-main .ibd-hc-content { padding-top: 36px; padding-bottom: 60px; }

/* ── Карточки категорий ── */
.ibd-hc-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 40px;
}
.ibd-hc-cats[hidden] { display: none; }
.ibd-hc-cat {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #E3ECF2;
    border-radius: 16px;
    padding: 20px;
    box-shadow: none;
    transition: border-color 0.16s ease;
}
.ibd-hc-cat:hover { border-color: #F5820A; color: inherit; }
.ibd-hc-cat:focus-visible { outline: 2px solid #2E86C1; outline-offset: 2px; }
.ibd-hc-cat-ic { width: 48px; height: 48px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.ibd-hc-cat-body { min-width: 0; flex: 1; }
.ibd-hc-cat-head { display: flex; align-items: center; gap: 8px; }
.ibd-hc-cat-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #1E2A32; }
.ibd-hc-cat-count { font-size: 12px; font-weight: 700; color: #39505E; background: #F3F8FC; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ibd-hc-cat-desc { font-size: 14px; color: #5B7385; margin: 5px 0 0; }
.ibd-hc-cat-chev { color: #9DB2C2; flex: none; margin-inline-start: auto; align-self: center; }

/* ── Счётчик результатов ── */
.ibd-hc-count { margin: 0 0 16px; font-size: 15px; color: #5B7385; }
.ibd-hc-count[hidden] { display: none; }
.ibd-hc-count b { color: #1E2A32; font-size: 16px; }

/* ── FAQ-аккордеон: строки с разделителем в рамке-карточке, без пилюль ── */
.ibd-hc-groups { display: flex; flex-direction: column; gap: 32px; }
.ibd-hc-group { scroll-margin-top: 96px; }
.ibd-hc-group[hidden] { display: none; }
.ibd-hc-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ibd-hc-group-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ibd-hc-group-title { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: #1E2A32; }
.ibd-hc-card {
    background: #fff;
    border: 1px solid #E3ECF2;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
}
.ibd-hc-row { border-bottom: 1px solid #E3ECF2; }
.ibd-hc-row:last-child { border-bottom-color: transparent; }
.ibd-hc-row[hidden] { display: none; }
.ibd-hc-q {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: start;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-family: inherit;
    background: #fff;
    padding: 14px 20px;
    transition: background 0.16s ease;
}
.ibd-hc-q:hover { background: #F3F8FC; }
.ibd-hc-q:focus-visible { outline: 2px solid #2E86C1; outline-offset: -2px; }
.ibd-hc-q-text { flex: 1; font-weight: 600; font-size: 16px; line-height: 1.4; color: #1E2A32; }
.ibd-hc-q-chev {
    width: 28px; height: 28px; flex: none;
    border-radius: 8px;
    background: transparent;
    color: #5B7385;
    display: flex; align-items: center; justify-content: center;
}
.ibd-hc-q-chev svg { transition: transform 0.24s ease; }
.ibd-hc-row.is-open .ibd-hc-q { background: #fff; }
.ibd-hc-row.is-open .ibd-hc-q-text { color: #1E2A32; font-weight: 700; }
.ibd-hc-row.is-open .ibd-hc-q-chev { color: #DC7000; }
.ibd-hc-row.is-open .ibd-hc-q-chev svg { transform: rotate(180deg); }
.ibd-hc-a {
    padding: 0 20px 18px;
    animation: ibdHcAcc 0.24s ease both;
}
.ibd-hc-a[hidden] { display: none; }
.ibd-hc-a p { margin: 0; font-size: 15px; line-height: 1.6; color: #39505E; padding-top: 2px; }

/* ── Ничего не нашлось ── */
.ibd-hc-noresults {
    background: #fff;
    border: 1px solid #E3ECF2;
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    box-shadow: none;
}
.ibd-hc-noresults[hidden] { display: none; }
.ibd-hc-nr-ic {
    width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 16px;
    background: #FFF7EC;
    color:#b45309;
    display: flex; align-items: center; justify-content: center;
}
.ibd-hc-nr-title { font-size: 18px; font-weight: 700; margin: 0 0 5px; color: #1E2A32; }
.ibd-hc-nr-sub { font-size: 15px; color: #5B7385; margin: 0 auto 18px; max-width: 34ch; }

/* ── Кнопки: прямоугольные 12px, высота 48, без тени и подпрыгивания ── */
.ibd-hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease;
}
.ibd-hc-btn:hover, .ibd-hc-btn:active { transform: none; filter: none; }
.ibd-hc-btn:focus-visible { outline: 2px solid #2E86C1; outline-offset: 2px; }
.ibd-hc-btn--grad {
    color: #fff;
    background: #F5820A;
    padding: 0 24px;
    box-shadow: none;
}
/* Текст на оранжевом: 16px 800 + тёмная тень букв (решение владельца 20.10 - размеры как в
   макетах, прежние 19px сняты). color в :hover - глобальный a:hover темы иначе красит текст. */
.ibd-hc-btn--grad { font-size: 16px; font-weight: 800; text-shadow: 0 1px 1px rgba(120, 50, 0, .35); }
.ibd-hc-btn--grad:hover { background: #DC7000; color: #fff; }
.ibd-hc-btn--ghost {
    background: #fff;
    border: 1px solid #F5820A;
    color: #1E2A32;
    font-weight: 700;
    padding: 0 20px;
}
.ibd-hc-btn--ghost:hover { background: #FFF7EC; color: #1E2A32; }

/* ── Блок «Не нашли ответ?» - подложка #F3F8FC вместо градиента ── */
.ibd-hc-contact {
    margin-top: 40px;
    background: #F3F8FC;
    border: 1px solid #E3ECF2;
    border-radius: 16px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
}
.ibd-hc-contact-title { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; color: #1E2A32; }
.ibd-hc-contact-sub { font-size: 15px; color: #39505E; margin: 0; }
.ibd-hc-contact-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── Футер-ссылки ── */
.ibd-hc-flinks {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 22px;
    flex-wrap: wrap;
    font-size: 14px;
}
.ibd-hc-flinks a { color: #39505E; text-decoration: none; font-weight: 600; }
.ibd-hc-flinks a:hover { color: #1F6FA6; text-decoration: underline; }
.ibd-hc-dot { width: 4px; height: 4px; border-radius: 50%; background: #9DB2C2; flex: none; }

@keyframes ibdHcAcc { from { opacity: 0; } to { opacity: 1; } }

/* ── Адаптив ── */
@media (max-width: 768px) {
    .ibd-hc-cats { grid-template-columns: 1fr; }
    .ibd-hc-contact { grid-template-columns: 1fr; text-align: center; }
    .ibd-hc-contact-actions { justify-content: center; }
}
@media (max-width: 480px) {
    .ibd-hc-hero { padding: 36px 0 40px; }
    /* «Открыть чат поддержки» на узком экране: поля поуже, чтобы надпись шла в одну строку */
    .ibd-hc-btn--grad { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ibd-hc-cat, .ibd-hc-btn, .ibd-hc-q, .ibd-hc-a, .ibd-hc-q-chev svg, .ibd-hc-search { transition: none !important; animation: none !important; }
}
