/* Pigles — база знаний /howto/. Оформление в стиле основного сайта. */
*{box-sizing:border-box}
body{margin:0;background:#f7f6f2;color:#14161c;font-family:Manrope,system-ui,sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:#0ea472;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
h1,h2,h3{margin:0}

/* ===== Липкая шапка (как на сайте) ===== */
.pg-topbar{position:sticky;top:0;z-index:100;min-height:58px;background:#0b0e14;box-shadow:0 1px 0 rgba(255,255,255,.06)}
.pg-topbar-in{position:relative;max-width:900px;margin:0 auto;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.pg-brand{display:flex;align-items:center;gap:10px;color:#f4f6fb}
.pg-brand span{font-family:Unbounded,sans-serif;font-weight:600;font-size:18px;letter-spacing:.02em}
.pg-brand:hover{text-decoration:none}
.ht-langs{display:flex;gap:2px;padding:4px;border:1px solid rgba(255,255,255,.14);border-radius:999px}
.ht-langs a{color:rgba(255,255,255,.45);font-weight:700;font-size:12px;line-height:1;padding:5px 12px;border-radius:999px}
.ht-langs a:hover{color:#f4f6fb;text-decoration:none}
.ht-langs a.active{background:rgba(255,255,255,.14);color:#f4f6fb}

/* ===== Документ ===== */
.ht-doc{max-width:760px;margin:0 auto;padding:30px 20px 44px}
.ht-doc .eyebrow{font-size:12.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:linear-gradient(100deg,#0ea472,#7c5cf0);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;display:inline-block;margin-bottom:6px}
.ht-doc h1{font-family:Unbounded,sans-serif;font-weight:800;font-size:clamp(28px,5.5vw,36px);line-height:1.15;letter-spacing:-.01em;margin:0 0 16px}
.ht-doc h2{font-family:Unbounded,sans-serif;font-weight:600;font-size:22px;line-height:1.3;margin:42px 0 12px}
.ht-doc h3{font-family:Unbounded,sans-serif;font-weight:600;font-size:18px;margin:28px 0 8px}
.ht-doc p{font-size:16.5px;line-height:1.7;margin:0 0 16px;color:#2a2f3a}
.ht-doc .lead{font-size:18.5px;line-height:1.6;color:rgba(20,22,28,.62)}
.ht-doc ul,.ht-doc ol{margin:0 0 18px;padding-left:24px}
.ht-doc li{font-size:16.5px;line-height:1.65;margin:8px 0;color:#2a2f3a}
.ht-doc strong,.ht-doc b{font-weight:700;color:#14161c}
.ht-doc kbd{display:inline-block;background:#0b0e14;color:#f4f6fb;border-radius:7px;padding:1px 8px;font:inherit;font-size:.82em;font-weight:700;white-space:nowrap;vertical-align:baseline}

/* Подсказка */
.ht-doc .hint{background:#fff;border:1px solid rgba(0,0,0,.06);border-left:3px solid #7c5cf0;border-radius:12px;padding:14px 16px;margin:22px 0;color:rgba(20,22,28,.72);font-size:15.5px;line-height:1.6}
.ht-doc .hint b{color:#14161c}

/* Скриншоты (кликабельные, лайтбокс на тап) */
.ht-doc figure{margin:24px 0;text-align:center}
.ht-doc figure img{width:100%;max-width:264px;height:auto;border-radius:26px;border:5px solid #fff;box-shadow:0 20px 44px rgba(20,22,28,.16);cursor:zoom-in}
.ht-doc figure.wide img{max-width:296px}
.ht-doc figcaption{margin-top:10px;font-size:14px;color:rgba(20,22,28,.55)}
.ht-doc .shots{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;margin:24px 0}
.ht-doc .shots figure{margin:0;flex:0 1 224px}
.ht-doc .shots figure img{max-width:224px}

/* Оглавление */
.ht-doc .toc{list-style:none;padding:0;margin:26px 0;display:flex;flex-direction:column;gap:10px}
.ht-doc .toc li{margin:0}
.ht-doc .toc a{display:block;color:#14161c;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:16px 18px;transition:border-color .2s,box-shadow .2s,transform .2s}
.ht-doc .toc a:hover{border-color:rgba(124,92,240,.45);box-shadow:0 12px 30px -16px rgba(20,22,28,.3);text-decoration:none;transform:translateY(-1px)}
.ht-doc .toc .num{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 7px;border-radius:8px;background:linear-gradient(120deg,#0ea472,#7c5cf0);color:#fff;font-weight:800;font-size:13px;margin-right:10px;vertical-align:middle}
.ht-doc .toc .sub{display:block;color:rgba(20,22,28,.55);font-size:14.5px;margin-top:5px;padding-left:36px}

/* Пейджер */
.ht-doc .pager{display:flex;justify-content:space-between;gap:12px;margin-top:46px;padding-top:22px;border-top:1px solid rgba(0,0,0,.08);font-size:15.5px;font-weight:600}
.ht-doc .pager .next{margin-left:auto;text-align:right}

/* Футер */
.ht-footer{border-top:1px solid rgba(0,0,0,.08)}
.ht-footer-in{max-width:760px;margin:0 auto;padding:22px 20px;display:flex;gap:22px;flex-wrap:wrap;align-items:center;font-size:14px;color:rgba(20,22,28,.55)}
.ht-footer-in a{color:rgba(20,22,28,.6)}

/* ===== Лайтбокс (карусель, как на главной) ===== */
.pg-lb{position:fixed;inset:0;z-index:1000;background:rgba(11,14,20,.92);opacity:0;transition:opacity .3s ease;-webkit-tap-highlight-color:transparent;touch-action:none;overflow:hidden}
.pg-lb.pg-lb-open{opacity:1}
.pg-lb-track{position:fixed;inset:0;z-index:1;will-change:transform}
.pg-lb-track.pg-lb-anim{transition:transform .32s cubic-bezier(.22,.61,.36,1)}
.pg-lb-img{position:absolute;margin:0;border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.6);object-fit:contain;transform-origin:0 0;cursor:zoom-out}
.pg-lb-img.pg-lb-anim{transition:transform .42s cubic-bezier(.22,.61,.36,1)}
@media (prefers-reduced-motion:reduce){ .pg-lb,.pg-lb-track.pg-lb-anim,.pg-lb-img.pg-lb-anim{transition:none} }

@media (max-width:480px){
  .ht-doc figure img,.ht-doc .shots figure img{max-width:78%}
}

/* ===== Хлебные крошки + верхний пейджер ===== */
.ht-doc .ht-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;font-size:13px;font-weight:700}
.ht-doc .ht-crumbs a{color:#0ea472}
.ht-doc .ht-crumbs .sep{color:rgba(20,22,28,.28)}
.ht-doc .ht-crumbs .cur{color:#7c5cf0;text-transform:uppercase;font-size:12px;letter-spacing:.06em}
.ht-doc .pager-top{margin-top:0;margin-bottom:24px;padding-top:0;border-top:0;padding-bottom:18px;border-bottom:1px solid rgba(0,0,0,.08)}

/* ===== Бургер-меню в шапке ===== */
.ht-left{display:flex;align-items:center;gap:10px}
/* SITE-NAV-BURGER (23.09.2026): раскрытие бургера — нативное, на <details>/<summary>, без JS.
   display у summary не трогаем (в WebKit это ломает раскрытие) — полоски во вложенном боксе. */
summary.ht-burger{list-style:none;cursor:pointer}
summary.ht-burger::-webkit-details-marker{display:none}
summary.ht-burger::marker{content:""}
.ht-burger-box{display:inline-flex;flex-direction:column;justify-content:center;gap:4px;width:36px;height:36px;padding:9px 8px;border-radius:9px;vertical-align:middle}
.ht-burger-box span{display:block;height:2px;border-radius:2px;background:#f4f6fb;transition:transform .2s,opacity .2s}
summary.ht-burger:hover .ht-burger-box{background:rgba(255,255,255,.08)}
.ht-nav[open] .ht-burger-box span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.ht-nav[open] .ht-burger-box span:nth-child(2){opacity:0}
.ht-nav[open] .ht-burger-box span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.ht-menu{position:absolute;top:100%;left:16px;margin-top:8px;min-width:236px;background:#0b0e14;border:1px solid rgba(255,255,255,.12);border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.5);padding:8px;display:none;flex-direction:column;z-index:200}
.ht-nav[open] .ht-menu{display:flex}
.ht-menu a{color:#f4f6fb;padding:11px 14px;border-radius:9px;font-size:15px;font-weight:600}
.ht-menu a:hover{background:rgba(255,255,255,.08);text-decoration:none}

/* Статья 16 «Чат с ИИ» (2026-10-14): шаги, карточка полей, региональный блок, предупреждение */
.ht-doc code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;background:rgba(124,92,240,.09);color:#4b33b8;padding:2px 7px;border-radius:6px;overflow-wrap:anywhere}
.ht-doc .steps{list-style:none;counter-reset:st;padding:0;margin:8px 0 22px}
.ht-doc .steps>li{counter-increment:st;position:relative;padding-left:42px;margin:14px 0}
.ht-doc .steps>li::before{content:counter(st);position:absolute;left:0;top:1px;width:28px;height:28px;border-radius:9px;background:linear-gradient(120deg,#0ea472,#7c5cf0);color:#fff;font-weight:800;font-size:13.5px;line-height:28px;text-align:center}
.ht-doc .steps i{color:rgba(20,22,28,.6)}
.ht-doc .kv{display:grid;grid-template-columns:max-content 1fr;gap:8px 16px;align-items:baseline;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:14px 16px;margin:12px 0 4px}
.ht-doc .kv dt{font-size:14.5px;font-weight:700;color:#14161c}
.ht-doc .kv dd{margin:0;font-size:15px;color:#2a2f3a;min-width:0}
@media (max-width:480px){.ht-doc .kv{grid-template-columns:1fr;gap:2px}.ht-doc .kv dd{margin-bottom:8px}}
.ht-doc .region{background:linear-gradient(180deg,rgba(14,164,114,.07),rgba(124,92,240,.05));border:1px solid rgba(14,164,114,.22);border-radius:18px;padding:6px 20px 8px;margin:22px 0 30px}
.ht-doc .region-tag{display:inline-block;margin:12px 0 6px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#0b8a60}
.ht-doc .region h3{margin-top:4px}
.ht-doc .callout{display:flex;gap:12px;align-items:flex-start;background:#0b0e14;color:#f4f6fb;border-radius:14px;padding:14px 18px;margin:22px 0;font-size:15.5px;line-height:1.6}
.ht-doc .callout b{color:#fff}
.ht-doc .callout .ico{flex:0 0 auto;width:26px;height:26px;border-radius:8px;background:linear-gradient(120deg,#0ea472,#7c5cf0);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;margin-top:1px}
.ht-doc .warn{background:#fffaf0;border:1px solid rgba(214,140,0,.25);border-left:3px solid #d68c00;border-radius:12px;padding:16px 18px 4px;margin:14px 0 22px}
.ht-doc .warn p{font-size:15.5px;line-height:1.65}

/* Кнопка «Web-login» — дубль правил из assets/css/nav.css (SITE-WEBLOGIN, 15.10.2026) */
.hdr-right{display:flex;align-items:center;gap:10px}
.web-login{display:none;align-items:center;gap:7px;height:32px;padding:0 14px 0 10px;border:1px solid rgba(255,255,255,.14);border-radius:999px;color:#f4f6fb;font-weight:700;font-size:12px;line-height:1;white-space:nowrap;transition:color .2s,background .2s,border-color .2s}
.web-login:hover{color:#6ee7b7;border-color:rgba(110,231,183,.45);background:rgba(255,255,255,.04);text-decoration:none}
.web-login-ic{flex:none;display:block}
@media (min-width:900px){.web-login{display:inline-flex}}
