/* «Шаблоны ответов» and «Предложения о продлении». Canvas «DigiHelper — кабинет», page «Шаблоны и продление» v42 (approved 2026-11-25).
   Uses dha-, sk-, dx-/ac-, tf-, pf-, rw- (reviews-page), cn- (rivals-page), InfoTip. Prefixes: rp-, rn-. */
.rp-send label, .rp-sh span, .rp-sh b, .rp-i, .rp-m, .rp-c, .rp-e p, .rn td, .rn td *, .rn-li, .rn-li *, .rn-ol *, .rn-pk *, .rn-d button { font-family: var(--dhs-body); }
section.rp-send, section.rn-res, section.rp-e, section.rp, section.rn-card { margin: 0; }
section.rp-send { --c: #4fb6f5; padding: 32px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 14px; align-items: end; }
.rp-sh { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-bottom: 6px; } .rp-sh h2 { margin: 0; font: 600 26px/32px var(--dhs-display); letter-spacing: -.01em; color: var(--dhs-on-night); } .rp-sh span { font: 400 15px/21px var(--dhs-body); color: var(--dhs-on-night-muted); } .rp-sh b { color: var(--dhs-on-night); font-weight: 600; }
.rp-send label { display: block; margin-bottom: 8px; font: 400 14px/20px var(--dhs-body); color: var(--dhs-on-night-muted); } .rp-send .dha-inp, .rp-send .dha-sel { width: 100%; height: 52px; border-radius: 14px; text-overflow: ellipsis; } .rp-send .dha-btn { height: 52px; border-radius: 14px; }
.rp-no { grid-column: 1 / -1; margin: 4px 0 0; font: 400 14.5px/20px var(--dhs-body); color: var(--dhs-on-night-muted); } .rp-no a { font: inherit; color: #7fcbfa; }
.rw.rp { grid-template-columns: 380px minmax(0, 1fr); min-height: 520px; } .rp-s { padding: 16px; } .rp-s .dha-inp { width: 100%; height: 48px; border-radius: 14px; } .rp-scroll { max-height: 640px; overflow-y: auto; }
.rp-i { display: block; width: 100%; padding: 18px 20px; border: 0; border-top: 1px solid var(--dhs-line); background: transparent; color: var(--dhs-ink); text-align: left; font: 500 15.5px/22px var(--dhs-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; } .rp-i:hover { background: var(--dhs-surface-2); } .rp-i[aria-current="true"] { background: var(--dhs-surface); box-shadow: inset 3px 0 0 var(--dhs-brand); font-weight: 600; }
.rp-in { display: none; } .rp-out { min-width: 0; }
.rp-m { margin: 0; padding: 24px 28px; border-radius: 4px 22px 22px 22px; background: var(--dhs-bg); font: 400 16.5px/27px var(--dhs-body); color: var(--dhs-ink); white-space: pre-line; overflow-wrap: anywhere; max-width: 620px; }
section.rp-e { padding: 56px 40px; text-align: center; background: var(--dhs-surface); border: 1px solid var(--dhs-line); border-radius: 28px; } .rp-e h2 { margin: 0 0 10px; font: 600 28px/34px var(--dhs-display); color: var(--dhs-ink); } .rp-e p { margin: 0 auto 24px; max-width: 480px; font: 400 16px/24px var(--dhs-body); color: var(--dhs-muted); } .rp-e .dha-btn { height: 52px; border-radius: 14px; }
section.rn-res { --c: #ffb35a; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; padding: 36px 40px; } .rn-res .cn-f { grid-template-columns: auto; }
section.rn-card { overflow: hidden; } .rn .rn-q { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dhs-ink-2); font: 400 15px/21px var(--dhs-body); } .rn .r { text-align: right; } .rn-ls { display: none; }
.rn-li { padding: 18px 16px; border-top: 1px solid var(--dhs-line); color: var(--dhs-ink); } .rn-li:first-child { border: 0; } .rn-li .tf-n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; } .rn-li p { margin: 6px 0 10px; font: 400 14px/20px var(--dhs-body); color: var(--dhs-muted); } .rn-li > div { display: flex; justify-content: space-between; align-items: center; font: 500 14px/20px var(--dhs-body); }
.rn-d { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .rn-d .dha-inp { width: 88px; height: 48px; border-radius: 12px; } .rn-d button { height: 48px; min-width: 48px; padding: 0 12px; border: 1px solid var(--dhs-line); border-radius: 12px; background: var(--dhs-surface); color: var(--dhs-ink-2); font: 500 14.5px/20px var(--dhs-body); cursor: pointer; } .rn-d [aria-pressed="true"] { border-color: var(--dhs-brand); color: var(--dhs-ink); box-shadow: 0 0 0 1px var(--dhs-brand); }
.rp-w { max-height: calc(100vh - 32px); overflow-y: auto; } .rp-w .dha-inp, .rp-w .dha-ta { width: 100%; } .rp-w .rn-d .dha-inp { width: 88px; } .rp-w .dha-ta { min-height: 150px; } .rp-c { text-align: right; font: 400 13.5px/18px var(--dhs-body); color: var(--dhs-muted); }
.rn-pk { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--dhs-bg); font: 500 15px/21px var(--dhs-body); color: var(--dhs-ink); } .rn-pk span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-ol { max-height: 190px; overflow-y: auto; border: 1px solid var(--dhs-line); border-radius: 12px; } .rn-ol p { margin: 0; padding: 14px; font: 400 14.5px/20px var(--dhs-body); color: var(--dhs-muted); } .rn-ol button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-top: 1px solid var(--dhs-line); background: transparent; color: var(--dhs-ink); font: 400 15px/21px var(--dhs-body); text-align: left; cursor: pointer; } .rn-ol button:first-child { border-top: 0; } .rn-ol button:hover { background: var(--dhs-surface-2); } .rn-ol span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rn-ol small { font-size: 13.5px; color: var(--dhs-muted); }
@media (max-width: 1100px) { .rw.rp { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 860px) {
    section.rp-send, section.rn-res { grid-template-columns: minmax(0, 1fr); padding: 24px; border-radius: 24px; gap: 16px; } .rp-sh h2, .rp-w .dha-card-t { font-size: 22px !important; line-height: 28px !important; } .rn-res .cn-f dd small { display: inline; } .rn-d .dha-inp, .rp-w .rn-d .dha-inp { width: 100%; } .rn-d { gap: 8px; } .rn-d button { flex: 1; padding: 0 6px; }
    .rw.rp { display: block; min-height: 0; padding: 0 !important; } .rp-scroll { max-height: none; } .rp-out { display: none; } .rp-in { display: block; background: var(--dhs-surface); }
    .rw.rp .rw-d { display: flex; padding: 4px 16px 20px; gap: 12px; } .rp .rw-dh { justify-content: flex-end; } .rp .rw-dh > div { display: none; } .rp-m { padding: 18px 20px; font-size: 15.5px; line-height: 24px; }
    .rp-e h2 { text-align: center; } section.rp-e { padding: 40px 20px; border-radius: 24px; } .rp-e h2 { font-size: 24px !important; line-height: 30px !important; }
    table.tf.rn { display: none; } .rn-ls { display: block; } .rp-w { padding: 24px 18px; }
}

/* «Уведомления» (/inside/notifications). Canvas page «Уведомления» v43 (approved 2026-11-25). Prefix: nf-. */
.nf-bot p, .nf-on, .nf-day small, .nf-day b span, .nf-lg, .nf .nf-w, .nf .nf-go, .nf-li, .nf-li * { font-family: var(--dhs-body); }
section.nf-bot, section.nf-card, section.nf-list { margin: 0; }
section.nf-bot { --c: #4fb6f5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 32px 40px; } section.nf-bot--off { --c: #ff9f5a; }
.nf-tg { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: #2aabee; color: #fff; } .nf-tg svg { width: 38px; height: 38px; }
.nf-bot h2 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font: 600 28px/34px var(--dhs-display); letter-spacing: -.01em; color: var(--dhs-on-night); } .nf-bot p { margin: 8px 0 0; font: 400 15px/22px var(--dhs-body); color: var(--dhs-on-night-muted); max-width: 560px; } .nf-bot p b { color: var(--dhs-on-night); font-weight: 600; }
.nf-on { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(61,214,155,.16); color: #63e2b0; font: 600 13.5px/30px var(--dhs-body); letter-spacing: 0; } .nf-on i { width: 8px; height: 8px; border-radius: 50%; background: #3dd69b; } .nf-on--off { background: rgba(255,159,90,.16); color: #ffb27a; } .nf-on--off i { background: #ff9f5a; }
.nf-act { display: flex; gap: 10px; } .nf-act .dha-btn { height: 52px; border-radius: 14px; white-space: nowrap; } .nf-ghost { background: var(--dhs-night-2); color: var(--dhs-on-night); } .nf-ghost:hover { background: var(--dhs-night-3); color: var(--dhs-on-night); }
.nf-card { background: var(--dhs-surface); border: 1px solid var(--dhs-line); border-radius: 28px; padding: 32px; } .nf-card h2, .nf-list h2 { margin: 0; display: flex; align-items: center; gap: 12px; font: 600 22px/28px var(--dhs-display); color: var(--dhs-ink); }
.nf-hr { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); gap: 16px 20px; align-items: end; margin-top: 24px; } .nf-hr .dha-inp { width: 140px; height: 52px; border-radius: 14px; font-size: 17px; } .nf-hr .dha-btn { height: 52px; border-radius: 14px; }
.nf-day { position: relative; grid-column: 1 / -1; height: 12px; margin: 34px 0 30px; border-radius: 999px; background: var(--dhs-surface-2); } .nf-day > i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: color-mix(in srgb, var(--dhs-brand) 55%, var(--dhs-surface)); }
.nf-day b { position: absolute; top: -7px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--dhs-surface); box-shadow: 0 0 0 3px var(--dhs-brand); } .nf-day b span { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 13.5px/18px var(--dhs-body); color: var(--dhs-ink); }
.nf-day small { position: absolute; top: 22px; transform: translateX(-50%); font: 400 12.5px/16px var(--dhs-body); color: var(--dhs-muted); } .nf-day small:first-of-type { transform: none; } .nf-day small:last-of-type { transform: translateX(-100%); }
.nf-q { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--dhs-muted) 22%, transparent) 5px 7px); }
.nf-lg { grid-column: 1 / -1; display: flex; gap: 24px; flex-wrap: wrap; font: 400 13.5px/18px var(--dhs-body); color: var(--dhs-muted); } .nf-lg span { display: inline-flex; align-items: center; gap: 8px; } .nf-lg i { width: 18px; height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--dhs-brand) 55%, var(--dhs-surface)); } .nf-lg i.nf-dt { width: 14px; height: 14px; border-radius: 50%; background: var(--dhs-surface); box-shadow: 0 0 0 3px var(--dhs-brand); } .nf-lg i.nf-nq { background: repeating-linear-gradient(135deg, var(--dhs-surface-2) 0 5px, color-mix(in srgb, var(--dhs-muted) 35%, transparent) 5px 7px); }
.nf-card .ac-err { margin: 12px 0 0; } .nf-hr .dha-inp { width: 150px; }
section.nf-list { overflow: hidden; } table.tf.nf td { height: 72px; } .nf td { overflow: hidden; } .nf .tf-n, .nf .tf-id { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nf .nf-w { color: var(--dhs-ink-2); white-space: nowrap; } .nf .nf-go { color: var(--dhs-brand-strong); font-weight: 500; white-space: nowrap; text-decoration: none; } .nf .nf-go:hover { text-decoration: underline; }
.nf-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--dhs-surface-2); color: var(--dhs-ink-2); } .dha .nf-ic .dhs-ic { width: 20px; height: 20px; }
.nf-ls { display: none; }
.nf-li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--dhs-line); font: 400 14px/20px var(--dhs-body); color: var(--dhs-muted); } .nf-li:first-child { border-top: 0; } .nf-li .nf-ic { grid-row: span 3; } .nf-li b { font: 500 15px/21px var(--dhs-body); color: var(--dhs-ink); } .nf-li a { color: var(--dhs-brand-strong); font-weight: 500; text-decoration: none; }
@media (max-width: 1000px) { section.nf-bot { grid-template-columns: auto minmax(0, 1fr); } .nf-act { grid-column: 1 / -1; } }
@media (max-width: 860px) {
    section.nf-bot { grid-template-columns: minmax(0, 1fr); padding: 24px; border-radius: 24px; gap: 16px; } .nf-bot h2 { font-size: 24px !important; line-height: 30px !important; } .nf-act { flex-direction: column; } .nf-tg { width: 56px; height: 56px; border-radius: 18px; }
    .nf-card { padding: 24px 18px; border-radius: 24px; } .nf-card h2, .nf-list h2 { font-size: 22px !important; line-height: 28px !important; } .nf-hr { grid-template-columns: 1fr 1fr; } .nf-hr .dha-inp { width: 100%; } .nf-hr .dha-btn { grid-column: 1 / -1; } .nf-hr > span { display: none; }
    .nf-day { margin-top: 18px; } .nf-day b span, .nf-day small:nth-of-type(2), .nf-day small:nth-of-type(4) { display: none; } .nf-lg { flex-direction: column; gap: 10px; }
    table.tf.nf { display: none; } .nf-ls { display: block; padding: 0 18px 8px; } section.nf-list { border-radius: 24px; }
}

/* «Рефералы» (/inside/referral-program). Canvas page «Рефералы» v44 (approved 2026-11-25). Prefix: rf-. */
.rf-res p, .rf-aw p, .rf-aw small, .rf-need, .rf-st, .rf-li, .rf-li *, .rf-inv p, .rf-none, .rf td { font-family: var(--dhs-body); }
section.rf-res, section.rf-aw, section.rf-list, section.rf-inv { margin: 0; }
section.rf-res { --c: #a99bff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding: 36px 40px; } .rf-f { grid-template-columns: auto auto !important; }
.rf-code { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; } .rf-code b { font: 600 56px/60px "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: .06em; color: #fff; overflow-wrap: anywhere; } .rf-code .dha-btn { height: 48px; border-radius: 14px; }
.rf-res p { margin: 14px 0 0; font: 400 15px/22px var(--dhs-body); color: var(--dhs-on-night-muted); max-width: 520px; } .rf-res p b { color: var(--dhs-on-night); font-weight: 600; }
.rf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
section.rf-aw { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 28px; background: var(--dhs-surface); border: 1px solid var(--dhs-line); } section.rf-aw--pr { border-color: color-mix(in srgb, #7c6cf0 45%, var(--dhs-line)); box-shadow: 0 18px 40px -30px rgba(124,108,240,.7); }
.rf-aw small { font: 600 12px/16px var(--dhs-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dhs-muted); } .rf-aw h3 { margin: 0; font: 600 30px/36px var(--dhs-display); letter-spacing: -.01em; color: var(--dhs-ink); } .rf-aw--pr h3 { color: #5b4bd6; } html[data-theme="dark"] .rf-aw--pr h3 { color: #b3a8ff; } .rf-aw p { margin: 0; font: 400 15px/22px var(--dhs-body); color: var(--dhs-ink-2); }
.rf-dots { display: flex; gap: 8px; margin: 6px 0 4px; } .rf-dots i { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--dhs-line-strong); display: grid; place-items: center; } .rf-dots i.on { border: 0; background: var(--dhs-brand); } .rf-aw--pr .rf-dots i.on { background: #7c6cf0; } .rf-dots i.on::after { content: ""; width: 12px; height: 7px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: translateY(-2px) rotate(-45deg); }
.rf-aw .dha-btn { height: 52px; border-radius: 14px; margin-top: auto; } .rf-need { font: 500 14px/20px var(--dhs-body); color: var(--dhs-muted); text-align: center; }
section.rf-list { overflow: hidden; } .rf-list h2 { margin: 0; font: 600 22px/28px var(--dhs-display); color: var(--dhs-ink); } .rf-list .tf-cnt { margin-left: auto; } .rf td { overflow: hidden; } .rf .tf-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-none { margin: 0; padding: 4px 24px 28px; font: 400 15px/22px var(--dhs-body); color: var(--dhs-muted); }
.rf-st { display: inline-flex; align-items: center; gap: 8px; font: 500 14.5px/20px var(--dhs-body); white-space: nowrap; color: var(--dhs-ink); } .rf-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--dhs-success); } .rf-st--u { color: var(--dhs-muted); } .rf-st--u i { background: var(--dhs-line-strong); }
.rf-ls { display: none; } .rf-li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--dhs-line); font: 400 14px/20px var(--dhs-body); color: var(--dhs-muted); } .rf-li:first-child { border-top: 0; } .rf-li > div { min-width: 0; } .rf-li b { display: block; font: 500 15px/21px var(--dhs-body); color: var(--dhs-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
section.rf-inv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; } .rf-inv p { margin: 6px 0 0; font: 400 15px/22px var(--dhs-body); color: var(--dhs-muted); }
.rf-row { display: flex; gap: 10px; } .rf-row .dha-inp { width: 240px; height: 52px; border-radius: 14px; font: 600 17px/22px "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; } .rf-row .dha-btn { height: 52px; border-radius: 14px; }
.rf-ok { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 14px; background: var(--dhs-bg); font: 600 17px/22px "JetBrains Mono", ui-monospace, Consolas, monospace; letter-spacing: .06em; color: var(--dhs-ink); } .dha .rf-ok .dhs-ic { width: 18px; height: 18px; color: var(--dhs-success); }
@media (max-width: 860px) {
    section.rf-res { grid-template-columns: minmax(0, 1fr); padding: 24px; border-radius: 24px; gap: 20px; } .rf-code b { font-size: 40px; line-height: 44px; } .rf-code .dha-btn { width: 100%; } .rf-f dd { font-size: 22px !important; line-height: 28px !important; }
    .rf-2 { grid-template-columns: 1fr; } section.rf-aw { padding: 24px; border-radius: 24px; } .rf-aw h3 { font-size: 26px !important; line-height: 32px !important; }
    table.tf.rf { display: none; } .rf-ls { display: block; padding: 0 18px 8px; } section.rf-list { border-radius: 24px; } .rf-list h2 { font-size: 22px !important; line-height: 28px !important; }
    section.rf-inv { grid-template-columns: 1fr; } .rf-inv h2 { font-size: 22px !important; line-height: 28px !important; } .rf-row { flex-direction: column; } .rf-row .dha-inp { width: 100%; }
}

/* «Помощь» (/inside/help). Canvas page «Помощь» v45 (approved 2026-11-25). Prefix: hp-. */
.hp-res p, .hp-id, .hp-c p, .hp-go { font-family: var(--dhs-body); }
section.hp-res { --c: #4fb6f5; margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 36px 40px; }
.hp-res h2 { margin: 0; font: 600 30px/36px var(--dhs-display); letter-spacing: -.01em; color: var(--dhs-on-night); } .hp-res p { margin: 8px 0 0; font: 400 15px/22px var(--dhs-body); color: var(--dhs-on-night-muted); max-width: 560px; }
.hp-id { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; height: 44px; padding: 0 6px 0 16px; border-radius: 12px; background: var(--dhs-night-2); font: 400 14px/20px var(--dhs-body); color: var(--dhs-on-night-muted); } .hp-id b { font: 600 16px/20px "JetBrains Mono", ui-monospace, Consolas, monospace; color: var(--dhs-on-night); letter-spacing: .03em; }
.hp-id button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--dhs-on-night-muted); display: grid; place-items: center; cursor: pointer; } .hp-id button:hover { background: var(--dhs-night-3); color: var(--dhs-on-night); } .dha .hp-id .dhs-ic { width: 16px; height: 16px; }
.hp-res .dha-btn { height: 52px; border-radius: 14px; white-space: nowrap; }
.hp-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-c { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 28px; background: var(--dhs-surface); border: 1px solid var(--dhs-line); color: var(--dhs-ink); text-decoration: none; transition: transform .15s, box-shadow .15s; } a.hp-c:hover { color: var(--dhs-ink); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(10,17,24,.45); }
.hp-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--dhs-brand-soft); color: var(--dhs-brand-strong); } .dha .hp-ic .dhs-ic { width: 22px; height: 22px; }
.hp-c h3 { margin: 6px 0 0; font: 600 20px/26px var(--dhs-display); color: var(--dhs-ink); } .hp-c p { margin: 0; font: 400 15px/22px var(--dhs-body); color: var(--dhs-ink-2); }
.hp-go { margin-top: auto; padding-top: 8px; font: 600 15px/20px var(--dhs-body); color: var(--dhs-brand-strong); display: inline-flex; align-items: center; gap: 6px; } .dha .hp-go .dhs-ic { width: 16px; height: 16px; }
.hp-tipdemo { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--dhs-line-strong); font: 600 12px/1 var(--dhs-body); color: var(--dhs-ink-2); vertical-align: -5px; margin: 0 2px; }
@media (prefers-reduced-motion: reduce) { .hp-c { transition: none; } a.hp-c:hover { transform: none; } }
@media (max-width: 1000px) { .hp-3 { grid-template-columns: 1fr; } section.hp-res { grid-template-columns: auto minmax(0, 1fr); } .hp-res .dha-btn { grid-column: 1 / -1; } }
@media (max-width: 860px) { section.hp-res { grid-template-columns: minmax(0, 1fr); padding: 24px; border-radius: 24px; gap: 18px; } .hp-res h2 { font-size: 24px !important; line-height: 30px !important; } .hp-res .nf-tg { width: 56px; height: 56px; border-radius: 18px; } .hp-c { padding: 24px; border-radius: 24px; } .hp-res .dha-btn { white-space: normal; } }

/* «База знаний» (/inside/faq). Canvas page «База знаний» v47 (approved 2026-11-25). Prefix: fq-. Content: DigiHelper.Shared/Faq/Content. */
.fq-page *, .fq-chat * { font-family: var(--dhs-body); } .fq-page .dx-disp, .fq-h h2, .fq-ch b { font-family: var(--dhs-display); }
section.fq-hero, section.fq-q { margin: 0; }
section.fq-hero { --c: #4fb6f5; padding: 32px 40px; display: flex; flex-direction: column; gap: 18px; }
.fq-s { position: relative; } .dha .fq-s .dhs-ic { position: absolute; left: 20px; top: 19px; width: 22px; height: 22px; color: #6b7c8c; pointer-events: none; } .fq-s .dha-inp { width: 100%; height: 60px; padding-left: 56px; border-radius: 18px; font-size: 17px; }
.fq-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .fq-row .pf-seg { background: var(--dhs-night-2); } .fq-row .pf-seg button { color: var(--dhs-on-night-muted); } .fq-row .pf-seg [aria-pressed="true"] { background: var(--dhs-on-night); color: var(--dhs-night); }
.fq-ask { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border: 1px solid rgba(255,178,36,.45); border-radius: 14px; background: rgba(255,178,36,.1); color: #ffcf73; font: 600 15px/20px var(--dhs-body); cursor: pointer; } .fq-ask:hover { background: rgba(255,178,36,.18); } .dha .fq-ask .dhs-ic { width: 18px; height: 18px; }
.fq { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.fq-nav { position: sticky; top: 16px; display: flex; flex-direction: column; padding: 12px; border-radius: 24px; background: var(--dhs-surface); border: 1px solid var(--dhs-line); max-height: calc(100vh - 32px); overflow-y: auto; } .fq-nav small { padding: 12px 12px 6px; font: 600 11.5px/16px var(--dhs-body); letter-spacing: .1em; text-transform: uppercase; color: var(--dhs-muted); }
.fq-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 10px; color: var(--dhs-ink-2); font: 500 14.5px/20px var(--dhs-body); text-decoration: none; } .fq-nav a:hover { background: var(--dhs-surface-2); color: var(--dhs-ink); } .fq-nav a[aria-current] { background: var(--dhs-brand-soft); color: var(--dhs-brand-strong); font-weight: 600; } .fq-nav a span:last-child { font: 400 13px/18px var(--dhs-body); color: var(--dhs-muted); }
.fq-pick { display: none; }
.fq-art { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fq-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .fq-h h2 { margin: 0; font: 600 34px/40px var(--dhs-display); letter-spacing: -.02em; color: var(--dhs-ink); } .fq-h a { margin-left: auto; color: var(--dhs-brand-strong); font: 600 15px/20px var(--dhs-body); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; } .dha .fq-h a .dhs-ic { width: 16px; height: 16px; }
.fq-lead { margin: 0; font: 400 16px/25px var(--dhs-body); color: var(--dhs-ink-2); max-width: 760px; }
section.fq-q { background: var(--dhs-surface); border: 1px solid var(--dhs-line); border-radius: 20px; } .fq-q > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 20px 24px; border: 0; background: transparent; color: var(--dhs-ink); font: 600 17px/24px var(--dhs-body); text-align: left; cursor: pointer; border-radius: 20px; } .fq-q > button > span:first-child { min-width: 0; }
.dha .fq-q > button .dhs-ic { width: 20px; height: 20px; margin-left: auto; flex: none; color: var(--dhs-muted); transition: transform .15s; } .fq-q.op > button .dhs-ic { transform: rotate(180deg); }
.fq-b { padding: 0 24px 22px; font: 400 16px/26px var(--dhs-body); color: var(--dhs-ink-2); overflow-wrap: anywhere; } .fq-b p { margin: 0 0 10px; } .fq-b p:last-child, .fq-b ol:last-child, .fq-b ul:last-child { margin-bottom: 0; } .fq-b ol, .fq-b ul { margin: 0 0 10px; padding-left: 22px; } .fq-b b { color: var(--dhs-ink); } .fq-b a, .fq-m a { color: var(--dhs-brand-strong); font-weight: 500; } .fq-b code, .fq-m code { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--dhs-surface-2); color: var(--dhs-ink); }
.fq-pl { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font: 600 12px/24px var(--dhs-body); flex: none; } .fq-pl--ds { background: #e8f2ff; color: #0a5ea8; } .fq-pl--gg { background: #ecfbf3; color: #137a4c; } html[data-theme="dark"] .fq-pl--ds { background: #0f2b45; color: #8cc8ff; } html[data-theme="dark"] .fq-pl--gg { background: #0f3324; color: #7fe0b0; }
.fq-mark { background: color-mix(in srgb, #ffb224 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.fq-res { display: flex; flex-direction: column; gap: 10px; } .fq-res a { display: block; padding: 18px 22px; border-radius: 18px; background: var(--dhs-surface); border: 1px solid var(--dhs-line); color: var(--dhs-ink); text-decoration: none; } .fq-res a:hover { border-color: var(--dhs-line-strong); } .fq-res b { display: flex; gap: 10px; align-items: center; font: 600 16.5px/23px var(--dhs-body); } .fq-res b > span:first-child { min-width: 0; } .fq-res p { margin: 6px 0 0; font: 400 15px/22px var(--dhs-body); color: var(--dhs-ink-2); } .fq-res small { display: block; margin-top: 8px; font: 500 13px/18px var(--dhs-body); color: var(--dhs-muted); }
.fq-none { padding: 24px 28px; border-radius: 20px; background: var(--dhs-surface); border: 1px dashed var(--dhs-line-strong); font: 400 15.5px/24px var(--dhs-body); color: var(--dhs-ink-2); } .fq-none b { color: var(--dhs-ink); } .fq-none a, .fq-none .ac-link { color: var(--dhs-brand-strong); font: inherit; font-weight: 500; padding: 0; vertical-align: baseline; }
.fq-scrim { position: fixed; inset: 0; z-index: 1040; background: rgba(10,17,24,.35); }
.fq-chat { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1050; width: 460px; max-width: 100vw; background: var(--dhs-surface); border-left: 1px solid var(--dhs-line); box-shadow: var(--dhs-shadow-lg); display: flex; flex-direction: column; }
.fq-ch { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--dhs-line); } .fq-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--dhs-night); color: #ffb224; box-shadow: 0 0 0 1px rgba(255,178,36,.45); flex: none; } .fq-av .dhs-ic { width: 20px; height: 20px; } .fq-ch b { display: block; font: 600 17px/22px var(--dhs-display); color: var(--dhs-ink); } .fq-ch small { font: 400 13px/18px var(--dhs-body); color: var(--dhs-muted); } .fq-ch .sk-ib { margin-left: auto; }
.fq-msgs { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; background: var(--dhs-bg); }
.fq-m { max-width: 86%; padding: 14px 18px; border-radius: 18px; font: 400 15px/23px var(--dhs-body); overflow-wrap: anywhere; } .fq-m--u { align-self: flex-end; background: var(--dhs-brand); color: var(--dhs-on-brand, #04121d); border-bottom-right-radius: 6px; white-space: pre-line; } .fq-m--a { align-self: flex-start; background: var(--dhs-surface); border: 1px solid var(--dhs-line); color: var(--dhs-ink); border-bottom-left-radius: 6px; } .fq-m--a p { margin: 0 0 8px; } .fq-m--a p:last-of-type { margin-bottom: 0; } .fq-m--a ol, .fq-m--a ul { margin: 0 0 8px; padding-left: 20px; }
.fq-typing { color: var(--dhs-muted); font-style: italic; }
.fq-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .fq-src a { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 10px; border-radius: 8px; background: var(--dhs-surface-2); color: var(--dhs-brand-strong); font: 500 13px/18px var(--dhs-body); text-decoration: none; }
.fq-note { align-self: center; margin: 0; font: 400 12.5px/17px var(--dhs-body); color: var(--dhs-muted); text-align: center; max-width: 340px; }
.fq-lim { padding: 10px 24px 0; font: 400 12.5px/17px var(--dhs-body); color: var(--dhs-muted); }
.fq-in { display: flex; gap: 10px; padding: 12px 24px 20px; margin: 0; } .fq-in .dha-inp { flex: 1; height: 48px; border-radius: 14px; } .fq-in .dha-btn { height: 48px; width: 48px; padding: 0; border-radius: 14px; flex: none; } .dha-btn .dhs-ic { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .dha .fq-q > button .dhs-ic { transition: none; } }
@media (max-width: 860px) {
    section.fq-hero { padding: 20px; border-radius: 24px; } .fq-row .pf-seg { width: 100%; display: flex; } .fq-row .pf-seg button { flex: 1; padding: 0 6px; font-size: 13.5px; } .fq-ask { margin: 0; width: 100%; justify-content: center; }
    .fq { display: block; } .fq-nav { display: none; } .fq-pick { display: block; width: 100%; height: 52px; margin-bottom: 16px; border-radius: 16px; font-weight: 600; }
    .fq-h h2 { font-size: 26px !important; line-height: 32px !important; } .fq-q > button { padding: 18px; font-size: 16px; } .fq-b { padding: 0 18px 18px; font-size: 15.5px; } .fq-chat { width: 100vw; border-left: 0; }
}
