/* Справочный центр. Продолжение aisse.css: своих цветов, шрифтов и скруглений
   здесь нет — только переменные общей системы. Всё, что ниже, это раскладка
   страниц справки и компоненты, которых в общем файле не было:
   плитка разделов, подсказки поиска, оглавление статьи, врезки, переписка. */

/* ── Хлебные крошки и общая рамка ─────────────────────────────────────── */
.hc-crumbs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:13px;color:var(--muted);padding:18px 0 0}
.hc-crumbs a{color:var(--muted)}
.hc-crumbs a:hover{color:var(--accent)}
.hc-crumbs .sep{opacity:.5}
.hc-crumbs .now{color:var(--ink);font-weight:600}

.hc-page{padding:10px 0 56px}
.hc-h1{font-family:var(--font);font-size:34px;font-weight:700;letter-spacing:-.015em;margin:0}
.hc-lead{font-size:17px;color:var(--muted);line-height:1.6;margin:8px 0 0;max-width:660px}
.hc-sec{padding:34px 0 0}
.hc-sec-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.hc-sec-head h2{font-family:var(--font);font-size:22px;font-weight:700;letter-spacing:-.01em;margin:0}
.hc-sec-head .more{margin-left:auto;font-size:14px;font-weight:600;color:var(--accent)}

/* ── Шапка главной: заголовок и поиск ─────────────────────────────────── */
.hc-hero{background:var(--hero);color:var(--hero-ink);padding:58px 0 62px;position:relative;overflow:hidden}
.hc-hero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(90% 120% at 82% -20%,rgba(37,99,235,.38),transparent 60%)}
.hc-hero .in{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
.hc-hero h1{font-family:var(--font);font-size:40px;font-weight:700;letter-spacing:-.02em;margin:0;color:var(--hero-ink)}
.hc-hero p{font-size:17px;color:var(--hero-muted);line-height:1.6;margin:0;max-width:560px}
.hc-hero .quick{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:4px}
.hc-hero .quick a{display:inline-flex;align-items:center;height:32px;padding:0 14px;border-radius:999px;font-size:13.5px;
  font-weight:600;background:rgba(255,255,255,.08);border:1px solid var(--hero-line);color:var(--hero-muted)}
.hc-hero .quick a:hover{color:#fff;border-color:var(--accent)}

/* ── Поле поиска с подсказками ────────────────────────────────────────── */
.hc-search{position:relative;width:100%;max-width:640px;margin:6px auto 0}
.hc-search form{display:flex;gap:10px}
.hc-search .field{position:relative;flex:1 1 auto}
.hc-search input{width:100%;height:56px;border:1px solid var(--line);border-radius:14px;background:var(--surface);
  padding:0 46px 0 48px;font:inherit;font-size:16px;color:var(--ink);outline:none}
.hc-search input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.hc-search .ico{position:absolute;left:17px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.hc-search .clear{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:26px;height:26px;border:none;
  background:#EEF3FA;color:var(--muted);border-radius:999px;font-size:16px;line-height:1;cursor:pointer;display:none}
.hc-search .clear:hover{background:var(--accent-soft);color:var(--accent-hover)}
.hc-search .clear.on{display:block}
.hc-search .hint{font-size:13px;color:var(--hero-muted);margin:10px 0 0;text-align:center}
.hc-page .hc-search .hint{color:var(--muted);text-align:left}
.hc-search .btn{flex:0 0 auto}

/* Выпадающие подсказки. Список — роль listbox, ходим по нему стрелками. */
.hc-sug{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--line);
  border-radius:14px;box-shadow:var(--shadow);padding:6px;z-index:40;display:none;text-align:left;max-height:60vh;overflow:auto}
.hc-sug.on{display:block}
.hc-sug a{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border-radius:10px;color:var(--ink)}
.hc-sug a:hover,.hc-sug a.on{background:#F3F7FD;color:var(--ink)}
.hc-sug .t{font-size:14.5px;font-weight:600;line-height:1.35}
.hc-sug .n{font-size:12.5px;color:var(--muted)}
.hc-sug .none{padding:12px;font-size:13.5px;color:var(--muted)}

/* ── Плитка разделов ──────────────────────────────────────────────────── */
.hc-cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hc-cat{display:flex;gap:14px;padding:20px;color:inherit;transition:.15s}
.hc-cat:hover{border-color:var(--accent);box-shadow:var(--shadow);color:inherit}
.hc-cat .ic{flex:0 0 auto;width:42px;height:42px;border-radius:12px;background:var(--accent-soft);color:var(--accent-hover);
  display:flex;align-items:center;justify-content:center}
.hc-cat .t{font-size:16px;font-weight:800;line-height:1.3;margin:0 0 5px}
.hc-cat .n{font-size:13.5px;color:var(--muted);line-height:1.55;margin:0}
.hc-cat .k{font-size:12.5px;color:var(--muted);margin-top:8px;display:block}

/* ── Список статей ────────────────────────────────────────────────────── */
.hc-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hc-item{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;color:inherit;transition:.15s}
.hc-item:hover{border-color:var(--accent);box-shadow:var(--shadow);color:inherit}
.hc-item .mk{flex:0 0 auto;color:var(--accent);margin-top:2px}
.hc-item .t,.hc-item .n,.hc-notice .t,.hc-notice .n{display:block}
.hc-item .t{font-size:15.5px;font-weight:700;line-height:1.4;margin:0}
.hc-item .n{font-size:13.5px;color:var(--muted);line-height:1.55;margin:5px 0 0}
.hc-item .m{font-size:12.5px;color:var(--muted);margin-top:8px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hc-item mark{background:#FEF3C7;color:inherit;border-radius:3px;padding:0 2px}

/* ── Заметные плашки: что нового, «не нашли ответ» ────────────────────── */
.hc-notices{display:flex;flex-direction:column;gap:10px}
.hc-notice{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;background:#FFF8EC;
  border:1px solid #F5E2BF;color:var(--ink)}
.hc-notice .d{font-size:12.5px;color:var(--muted);white-space:nowrap}
.hc-notice .t{font-size:14.5px;font-weight:700;margin:0}
.hc-notice .n{font-size:13.5px;color:var(--muted);margin:4px 0 0;line-height:1.55}

.hc-cta{display:flex;gap:22px;align-items:center;flex-wrap:wrap;padding:26px;background:var(--hero);border-radius:18px;margin-top:38px}
.hc-cta .t{font-size:21px;font-weight:800;color:var(--hero-ink);letter-spacing:-.01em;margin:0}
.hc-cta .d{font-size:14.5px;color:var(--hero-muted);line-height:1.55;margin:6px 0 0;max-width:520px}
.hc-cta .acts{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap}

/* ── Статья ───────────────────────────────────────────────────────────── */
.hc-art{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:40px;align-items:start;padding-top:8px}
.hc-art-head{display:flex;flex-direction:column;gap:12px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.hc-art-head .meta{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.hc-art-head h1{font-family:var(--font);font-size:32px;font-weight:700;line-height:1.22;letter-spacing:-.015em;margin:0}
.hc-art-head .lead{font-size:17px;color:var(--muted);line-height:1.6;margin:0}

/* Оглавление липнет к экрану: длинная инструкция читается кусками. */
.hc-toc{position:sticky;top:22px;padding:18px;font-size:14px}
.hc-toc .h{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 10px}
.hc-toc a{display:block;padding:6px 0;color:var(--muted);line-height:1.45}
.hc-toc a:hover{color:var(--accent)}
.hc-side-help{margin-top:14px;padding:18px;font-size:13.5px;color:var(--muted);line-height:1.55}
.hc-side-help .t{font-size:14.5px;font-weight:800;color:var(--ink);margin:0 0 6px}

/* Врезки: важно / совет / примечание. Цвета — общие ok/warn/bad. */
.callout{display:flex;gap:12px;padding:16px 18px;border-radius:14px;margin:0 0 20px;font-size:15.5px;line-height:1.62}
.callout .body{flex:1 1 auto;min-width:0}
.callout p{margin:0 0 10px}
.callout p:last-child{margin:0}
.callout .cap{display:block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}
.callout.warn{background:#FFF6EC;border:1px solid #F6DDBB}
.callout.warn .cap{color:#B45309}
.callout.tip{background:#EDF8F1;border:1px solid #C6E6D2}
.callout.tip .cap{color:#15803D}
.callout.note{background:#F2F6FD;border:1px solid #D7E3F7}
.callout.note .cap{color:var(--accent-hover)}

/* Место под снимок экрана. Картинок в репозитории нет намеренно: рамка
   показывает, что именно человек увидит, и не врёт устаревшим скриншотом. */
.shot{margin:0 0 22px}
.shot-frame{height:210px;border:1px dashed var(--line);border-radius:14px;background:
  repeating-linear-gradient(135deg,#F7FAFE,#F7FAFE 12px,#F1F5FB 12px,#F1F5FB 24px);
  display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13.5px;text-align:center;padding:20px}
.shot figcaption{font-size:13px;color:var(--muted);margin-top:8px;line-height:1.5}

/* Полезна ли статья */
.hc-vote{margin-top:32px;padding:22px;text-align:center}
.hc-vote .t{font-size:16px;font-weight:800;margin:0 0 12px}
.hc-vote .acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.hc-vote .thanks{font-size:14.5px;color:var(--muted);line-height:1.6;margin:0}
.hc-vote button[aria-pressed="true"]{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.hc-vote form{margin-top:14px;display:flex;flex-direction:column;gap:10px;align-items:center}
.hc-vote textarea{width:100%;max-width:460px}

.hc-art-foot{margin-top:26px;display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:13.5px;color:var(--muted)}

/* ── Частые вопросы ───────────────────────────────────────────────────── */
.hc-faq{display:flex;flex-direction:column;gap:10px}
.hc-faq details{padding:0 18px;transition:.15s}
.hc-faq details[open]{border-color:var(--accent)}
.hc-faq summary{cursor:pointer;list-style:none;padding:16px 0;font-size:15.5px;font-weight:700;line-height:1.45;
  display:flex;align-items:flex-start;gap:12px}
.hc-faq summary::-webkit-details-marker{display:none}
.hc-faq summary::after{content:"+";margin-left:auto;font-size:20px;font-weight:600;color:var(--muted);line-height:1}
.hc-faq details[open] summary::after{content:"\2212"}
.hc-faq .a{font-size:15px;line-height:1.65;color:var(--muted);padding:0 0 18px;margin:0;max-width:760px}
.hc-faq .a a{color:var(--accent);font-weight:600}

/* ── Форма обращения и переписка ──────────────────────────────────────── */
.hc-form{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:34px;align-items:start}
.hc-field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}
.hc-field label{font-size:14px;font-weight:700}
.hc-field .note{font-size:13px;color:var(--muted);line-height:1.5}
.hc-field .err{font-size:13px;color:var(--bad);font-weight:600}
.hc-field .inp[aria-invalid="true"],.hc-field textarea[aria-invalid="true"]{border-color:var(--bad)}
textarea.inp{height:auto;min-height:150px;padding:13px 15px;line-height:1.6;resize:vertical}
select.inp{appearance:none;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235D6C82' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 15px center;padding-right:40px}

.hc-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hc-topics label{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface);font-size:14px;font-weight:600;cursor:pointer;line-height:1.4}
.hc-topics label:hover{border-color:var(--accent)}
.hc-topics input{margin:2px 0 0}
.hc-topics input:checked + span{color:var(--accent-hover)}
.hc-topics label:has(input:checked){border-color:var(--accent);background:#F5F9FF}

.hc-file{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;border:1px dashed var(--line);border-radius:12px;
  background:#F8FAFD;font-size:13.5px;color:var(--muted)}
.hc-file input[type=file]{font:inherit;font-size:13.5px;max-width:100%}
.hc-check{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--muted);line-height:1.55}
.hc-check input{margin-top:3px}

.hc-thread{display:flex;flex-direction:column;gap:14px}
.hc-msg{padding:16px 18px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.hc-msg.support{background:#F5F9FF;border-color:#D7E3F7}
.hc-msg .who{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted);margin-bottom:8px;flex-wrap:wrap}
.hc-msg .who b{font-size:13.5px;color:var(--ink)}
.hc-msg .txt{font-size:15px;line-height:1.65;white-space:pre-wrap;word-wrap:break-word}
.hc-msg .file{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:8px 12px;border-radius:10px;
  background:#EEF3FA;font-size:13.5px;font-weight:600;color:var(--accent-hover)}

.hc-status{display:inline-flex;align-items:center;gap:7px;height:28px;padding:0 12px;border-radius:999px;font-size:12.5px;font-weight:700}
.hc-status .dot{width:7px;height:7px;border-radius:999px;background:currentColor}
.hc-status.new{background:var(--accent-soft);color:var(--accent-hover)}
.hc-status.work{background:#FFF3E0;color:#B45309}
.hc-status.answered{background:#E6F6EC;color:#15803D}
.hc-status.closed{background:#EEF1F6;color:var(--muted)}

.hc-steps{display:flex;gap:0;margin:18px 0 26px;flex-wrap:wrap}
.hc-steps .s{flex:1 1 120px;padding:12px 14px;border-top:3px solid var(--line);font-size:13px;color:var(--muted);line-height:1.45}
.hc-steps .s b{display:block;font-size:13.5px;color:var(--ink)}
.hc-steps .s.on{border-top-color:var(--accent)}
.hc-steps .s.on b{color:var(--accent-hover)}
.hc-steps .s.done{border-top-color:var(--ok)}

/* ── Общие мелочи: пусто, загрузка, состояния кнопок ──────────────────── */
.hc-empty{padding:46px 24px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.hc-empty .t{font-size:18px;font-weight:800}
.hc-empty .d{font-size:14.5px;color:var(--muted);max-width:440px;line-height:1.6}
.hc-empty .acts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}

.btn[disabled],.btn[aria-busy="true"]{opacity:.65;cursor:default;pointer-events:none}
.hc-spin{width:15px;height:15px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:999px;
  animation:hc-turn .7s linear infinite;display:inline-block}
@keyframes hc-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hc-spin{animation-duration:2.4s}}

:where(.hc-item,.hc-cat,.hc-sug a,.hc-toc a,.hc-faq summary):focus-visible,
.hc-search input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hc-skip{position:absolute;left:-9999px}
.hc-skip:focus{left:20px;top:12px;z-index:60;background:var(--surface);border:1px solid var(--accent);
  border-radius:10px;padding:8px 14px;font-weight:700}

/* ── Мобильные ────────────────────────────────────────────────────────── */
@media(max-width:980px){
  .hc-cats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hc-art{grid-template-columns:minmax(0,1fr)}
  /* Оглавление переезжает из боковой колонки под заголовок статьи */
  #hc-toc-mobile{display:block !important}
  .hc-art aside .hc-toc{display:none}
  .hc-toc{position:static}
  .hc-form{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:620px){
  .hc-hero{padding:38px 0 42px}
  .hc-hero h1{font-size:29px}
  .hc-h1{font-size:26px}
  .hc-cats,.hc-list,.hc-topics{grid-template-columns:1fr}
  .hc-search form{flex-direction:column}
  .hc-search .btn{width:100%}
  .hc-cta{padding:22px}
  .hc-cta .acts{margin-left:0;width:100%}
  .hc-cta .acts .btn{flex:1 1 100%}
  .hc-art-head h1{font-size:25px}
  .shot-frame{height:150px}
}
@media(max-width:900px){
  /* Пальцу нужна цель повыше, чем строчная ссылка. */
  .hc-sec-head .more{min-height:40px;display:inline-flex;align-items:center}
  .hc-item,.hc-cat{min-height:48px}
}
