/* Справочники happ-sub.at и incy.at. Подключается после site.css: цвета и кнопки — оттуда. */

/* шапка: метка «справочник», полоса разделов на телефоне */
.brand em { font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.top .top-cta { display: inline-flex; }
.top nav a.on, .subnav a.on { color: var(--text); font-weight: 650; }
.subnav { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav::-webkit-scrollbar { display: none; }
.subnav .wrap { display: flex; gap: 22px; min-height: 44px; align-items: center; white-space: nowrap; font-size: 15px; color: var(--muted); width: max-content; max-width: none; margin: 0; }
.subnav a { text-decoration: none; padding: 10px 0; }

/* путь */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { color: var(--text); }

/* статья */
.doc-wrap { padding: 26px 0 64px; }
.doc { min-width: 0; }
.doc h1 { font-size: clamp(32px, 8.4vw, 50px); }
.doc .meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.doc .lead { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--text); max-width: 40em; }
.doc h2 { font-size: clamp(24px, 6vw, 31px); margin-top: 46px; letter-spacing: -0.02em; line-height: 1.15; }
.doc h3 { margin-top: 28px; }
.doc p { margin-top: 14px; line-height: 1.65; max-width: 44em; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 1.3em; max-width: 44em; }
.doc li { margin-top: 8px; line-height: 1.6; }
.doc li::marker { color: var(--link); font-weight: 700; }
.doc li ul { margin-top: 4px; }
.doc a { color: var(--link); text-underline-offset: 3px; }
.doc a.btn { color: var(--accent-ink); }
.doc a.card, .doc .related a, .doc .install a { text-decoration: none; }
.doc code { font: 600 .88em ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace; padding: 2px 6px; border-radius: 6px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); overflow-wrap: anywhere; }
.doc pre.code { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.doc pre.code code { padding: 0; background: none; box-shadow: none; font-weight: 500; white-space: pre; overflow-wrap: normal; }
.note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); max-width: 44em; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.tbl { margin-top: 18px; overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; min-width: 9em; }
.tbl tbody tr:first-child td { border-top: 0; }
.doc .faq { margin-top: 14px; }
.doc .faq details p { margin-top: 0; }
.doc .install { max-width: 820px; }
.doc-plain > :first-child { margin-top: 0; }
.doc-plain h2:first-child { margin-top: 0; }

/* предложение подписки в тексте */
.cta-inline { margin-top: 24px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); display: grid; gap: 12px; max-width: 44em; }
.cta-inline b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.cta-inline span { display: block; margin-top: 3px; font-size: 15px; color: var(--muted); }
.cta-inline .btn { justify-self: start; }
.ticks-row { border-top: 0; padding-top: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.final .wrap > .ticks-row { max-width: none; }

/* блок загрузки */
.dl { margin-top: 24px; padding: 18px; border-radius: 18px; background: var(--accent-soft); max-width: 44em; }
.dl-h { margin: 0 !important; font-weight: 700; font-size: 17px; }
.dl-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.dl-note { margin-top: 12px !important; font-size: 13px; color: var(--muted); }

/* сбоку на широком экране */
.side { display: none; }
.toc { display: grid; gap: 2px; }
.toc-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.toc a { text-decoration: none; font-size: 15px; color: var(--muted); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.side-cta { margin-top: 26px; padding: 16px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.side-cta span { font-size: 14px; color: var(--muted); }
.side-cta .btn { justify-self: start; margin-top: 4px; }

/* смотрите также */
.related { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 2px; max-width: 44em; }
.related .mini { margin: 0 0 8px; }
.related a { padding: 9px 0; font-weight: 600; color: var(--text); }
.related a::after { content: " →"; color: var(--link); }
.related a:hover { color: var(--link); }

/* карточки страниц */
.cards { margin-top: 22px; display: grid; gap: 12px; }
.card { display: block; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--text); }
.card:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.card b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.card b::after { content: " →"; color: var(--link); font-weight: 600; }
.card span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.hub-h { margin-top: 46px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.sec-head .sub { margin-top: 8px; }
.more { flex: none; font-size: 15px; font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; }

/* главная справочника */
.home-cta { justify-items: stretch; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.start { padding-top: 34px; }
.steps a { color: inherit; text-decoration-color: var(--line); }
.steps a:hover { color: var(--link); }

@media (min-width: 560px) {
  .cta-inline { grid-template-columns: 1fr auto; align-items: center; }
  .cards { grid-template-columns: 1fr 1fr; }
  .ticks-row { justify-content: start; }
}
@media (min-width: 900px) {
  .subnav { display: none; }
  .brand em { font-size: 11px; }
  .doc-wrap { padding: 40px 0 96px; }
  .doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; }
  .side { display: block; position: sticky; top: 24px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
  .foot4 { grid-template-columns: repeat(4, 1fr); }
  .start { padding-top: 56px; }
  .hero .crumbs { margin-bottom: 22px; }
}
