/* Статьи блога, шаблон 2 (inc/blog.php): содержание и форма справа, инфоблоки, цитаты, таблицы, карточки услуг, «Поделиться». reserve 04.12.2026 */
.wrap.b2{width:min(1180px,100% - 64px);display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:56px;align-items:start}
.b2-main{min-width:0}
.b2-art h2,.b2-art h3{scroll-margin-top:calc(var(--hd) + 20px)}
.b2-side{align-self:stretch}
.b2-stick{position:sticky;top:calc(var(--hd) + 20px);display:flex;flex-direction:column;gap:16px}

/* содержание */
.b2-toc{background:#fff;border-radius:10px;box-shadow:inset 0 0 0 1px #e4dfd7;padding:16px 8px 12px 16px}
.b2-toc-h{margin:0 0 8px;font-size:13px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:#625b55}
.b2-toc ol,.b2-mtoc ol{margin:0;padding:0;list-style:none;counter-reset:t}
.b2-toc ol{max-height:max(140px,calc(100vh - 640px));overflow:auto;padding-right:8px;overscroll-behavior:contain;scrollbar-width:thin}
.b2-toc li,.b2-mtoc li{margin:0;counter-increment:t}
.b2-toc a,.b2-mtoc a{display:grid;grid-template-columns:22px 1fr;gap:2px;padding:6px 8px 6px 6px;border-radius:6px;font-size:14px;line-height:1.35;color:#3d3935;text-decoration:none;border-left:2px solid transparent}
.b2-toc a::before,.b2-mtoc a::before{content:counter(t);color:#857d76;font-variant-numeric:tabular-nums;font-size:13px;line-height:1.5}
.b2-toc ul,.b2-mtoc ul{margin:0;padding:0 0 0 22px;list-style:none}
.b2-toc ul a,.b2-mtoc ul a{grid-template-columns:1fr;font-size:13.5px}
.b2-toc ul a::before,.b2-mtoc ul a::before{content:none}
.b2-toc a:hover{background:#f3f0ea;color:var(--ink)}
.b2-toc a.on{background:#eef1ff;color:#2c47e6;border-left-color:var(--acc);font-weight:500}
.b2-toc a.on::before{color:#2c47e6}
.b2-toc a:focus-visible,.b2-mtoc a:focus-visible,.b2-mtoc summary:focus-visible{outline:2px solid var(--acc);outline-offset:1px}

/* компактная форма в колонке и в середине статьи (та же .lf, вертикально) */
.b2-form .lf,.b2-mform .lf{color:#fff;margin:0;width:auto;padding:16px 16px 14px;display:flex;flex-direction:column;border-radius:10px}
.b2-form .lf-row,.b2-mform .lf-row{display:contents}
.b2-form .lf-head,.b2-mform .lf-head{order:0;flex-direction:column;gap:2px;margin-bottom:10px}
.b2-form .lf-t{font-size:16px;line-height:1.3;color:#fff}.b2-mform .lf-t{color:#fff}
.b2-form .lf-note{font-size:12.5px}
.b2-form .lf-niche,.b2-mform .lf-niche{order:1}.b2-form .lf-phone,.b2-mform .lf-phone{order:2}.b2-form .lf-ms,.b2-mform .lf-ms{order:3}
.b2-form .lf-f,.b2-mform .lf-f{margin-bottom:10px}.b2-form .lf-f{margin-bottom:8px}.b2-form .lf-f label,.b2-form .lf-f legend{margin-bottom:4px}
.b2-form .lf-go,.b2-mform .lf-go{order:6;width:100%;margin-top:10px;height:46px;padding:0 12px;font-size:15px}
.b2-form .lf-ok,.b2-mform .lf-ok{order:4;margin-top:2px;font-size:12px}
.b2-form .lf-err-ok,.b2-mform .lf-err-ok{order:5}
.b2-form .lf input[type=text],.b2-form .lf input[type=tel]{height:40px;font-size:15px}
.b2-form .seg{height:42px}.b2-form .seg svg{width:15px;height:15px}.b2-form .lf-go{height:42px;margin-top:8px}.b2-form .lf-head{margin-bottom:8px}.b2-form .seg span{font-size:11.5px}
.b2-form .cb-list{max-height:min(320px,46vh)}
.b2-form .lf-ads{display:none}
.b2-mform{display:none;margin:28px 0 30px}

/* содержание на телефоне */
.b2-mtoc{display:none;margin:0 0 24px;background:#fff;border-radius:10px;box-shadow:inset 0 0 0 1px #e4dfd7}
.b2-mtoc summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;cursor:pointer;list-style:none;font-weight:600;font-size:15.5px;color:var(--ink)}
.b2-mtoc summary::-webkit-details-marker{display:none}
.b2-mtoc summary small{margin-left:auto;font-weight:400;font-size:13px;color:#625b55}
.b2-mtoc summary::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-3px);transition:transform .2s}
.b2-mtoc[open] summary::after{transform:rotate(225deg) translateY(-2px)}
.b2-mtoc nav{padding:0 10px 12px}

/* инфоблоки */
.b2-bx{display:grid;grid-template-columns:28px 1fr;gap:12px;margin:22px 0;padding:16px 18px;border-radius:10px;border-left:4px solid;color:#2f2c29}
.b2-bx-i svg{width:24px;height:24px;display:block;margin-top:1px}
.b2-bx-t{margin:0 0 4px!important;font-weight:600;font-size:15px}
.b2-bx p:last-child{margin-bottom:0}
.b2-important{background:#fdeeec;border-color:#c4321f}.b2-important .b2-bx-i,.b2-important .b2-bx-t{color:#a8291a}
.b2-tip{background:#e9f6ee;border-color:#1f8a4c}.b2-tip .b2-bx-i,.b2-tip .b2-bx-t{color:#17673a}
.b2-note{background:#fff4d9;border-color:#c98a00}.b2-note .b2-bx-i,.b2-note .b2-bx-t{color:#7a5300}

/* цитата */
.b2-q{margin:28px 0;padding:22px 24px 20px;background:#fff;border-radius:10px;box-shadow:inset 0 0 0 1px #e4dfd7;position:relative}
.b2-q::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:4px;border-radius:0 3px 3px 0;background:var(--acc)}
.b2-q blockquote{margin:0;font-size:18px;line-height:1.55;color:var(--ink);letter-spacing:-.005em}
.b2-q blockquote p{margin:0 0 8px}.b2-q blockquote p:last-child{margin:0}
.b2-q figcaption{display:flex;align-items:center;gap:12px;margin-top:14px}
.b2-q figcaption img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
.b2-q figcaption b{display:block;font-weight:600;font-size:14.5px;color:var(--ink)}
.b2-q figcaption small{display:block;font-size:13px;color:#625b55}

/* таблица */
.b2-tbl{margin:22px 0 26px}
.b2-tc{margin:0 0 8px!important;font-weight:600;font-size:15px;color:var(--ink)}
.b2-ts{overflow-x:auto;border-radius:10px;box-shadow:inset 0 0 0 1px #e4dfd7;background:#fff;-webkit-overflow-scrolling:touch}
.b2-ts:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.b2-ts table{width:100%;min-width:560px;border-collapse:collapse;font-size:14.5px;line-height:1.45}
.b2-ts th{background:#161514;color:#fff;text-align:left;font-weight:600;padding:11px 14px;white-space:nowrap}
.b2-ts td{padding:10px 14px;vertical-align:top;border-top:1px solid #ece7df;color:#2f2c29}
.b2-ts tbody tr:nth-child(even) td{background:#f7f5f1}
.b2-ts td:first-child{font-weight:600;color:var(--ink)}

/* карточка услуги */
.b2-cta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:26px 0;padding:20px 22px;border-radius:12px}
.b2-cta-tx{min-width:0}
.b2-cta-t{margin:0 0 4px!important;font-size:18px;font-weight:600;letter-spacing:-.01em;line-height:1.3}
.b2-cta-d{margin:0!important;font-size:14.5px;line-height:1.5}
.b2-cta-go{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:none}
.b2-cta-p{margin:0!important;font-size:15px;font-weight:600;white-space:nowrap}
.b2-cta-b{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border-radius:var(--r);font-weight:600;font-size:15px;text-decoration:none!important;white-space:nowrap;transition:background .15s,color .15s}
.b2-cta-b svg{width:16px;height:16px}
.b2-cta-light{background:#fff;box-shadow:inset 0 0 0 1px #e4dfd7}
.b2-cta-light .b2-cta-t,.b2-cta-light .b2-cta-p{color:var(--ink)}.b2-cta-light .b2-cta-d{color:#4b4641}
.b2-cta-light .b2-cta-b{background:var(--acc);color:#fff!important}
.b2-cta-light .b2-cta-b:hover{background:#2c47e6}
.b2-cta-accent{background:var(--acc);color:#fff}
.b2-cta-accent .b2-cta-t,.b2-cta-accent .b2-cta-p,.b2-cta-accent .b2-cta-d{color:#fff}
.b2-cta-accent .b2-cta-b{background:#fff;color:#1f37c9!important}
.b2-cta-accent .b2-cta-b:hover{background:#161514;color:#fff!important}
.b2-cta-b:focus-visible{outline:2px solid #161514;outline-offset:2px}
.b2-cta-accent .b2-cta-b:focus-visible{outline-color:#fff}

/* поделиться */
.b2-sh{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.b2-sh-t{margin:0;font-size:14px;font-weight:600}
.b2-sh-l{display:flex;flex-wrap:wrap;gap:8px}
.b2-sh a,.b2-sh button{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 13px;border:0;border-radius:var(--r);font:500 14px/1 Geist,system-ui,sans-serif;text-decoration:none;cursor:pointer;transition:background .15s,color .15s}
.b2-sh svg{width:18px;height:18px;flex:none}
.b2-sh-end{margin-top:30px;padding-top:22px;border-top:1px solid #e4dfd7}
.b2-sh-end .b2-sh-t{color:var(--ink)}
.b2-sh-end a,.b2-sh-end button{background:#fff;color:#2f2c29;box-shadow:inset 0 0 0 1px #e0dad1}
.b2-sh-end a:hover,.b2-sh-end button:hover{background:var(--ink);color:#fff;box-shadow:none}
.b2-sh-hero{margin-top:18px}
.b2-sh-hero .b2-sh-t{color:rgba(255,255,255,.72);font-weight:500}
.b2-sh-hero a,.b2-sh-hero button{width:38px;padding:0;justify-content:center;background:rgba(255,255,255,.1);color:#fff}
.b2-sh-hero a:hover,.b2-sh-hero button:hover{background:#fff;color:var(--ink)}
.b2-sh-hero span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.b2-sh a:focus-visible,.b2-sh button:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.b2-toast{position:fixed;left:50%;bottom:28px;z-index:80;transform:translateX(-50%);margin:0;padding:12px 18px;border-radius:8px;background:#161514;color:#fff;font-size:14.5px;box-shadow:0 18px 40px -16px rgba(0,0,0,.6)}
.b2-toast:not([hidden]){animation:b2t .25s ease-out both}
@keyframes b2t{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

@media (max-width:1099px){
 .wrap.b2{display:block;width:min(820px,100% - 64px)}
 .b2-side{display:none}
 .b2-mtoc,.b2-mform{display:block}
}
@media (max-width:999px){.wrap.b2{width:calc(100% - 40px)}}
@media (max-width:640px){
 .b2-cta{flex-direction:column;align-items:stretch;gap:14px;padding:18px}
 .b2-cta-go{flex-direction:row;align-items:center;justify-content:space-between}
 .b2-q{padding:18px 18px 16px}.b2-q blockquote{font-size:16.5px}
 .b2-bx{grid-template-columns:24px 1fr;gap:10px;padding:14px 14px}
 .b2-bx-i svg{width:22px;height:22px}
 .b2-sh-end a span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .b2-sh-end a{width:42px;height:42px;padding:0;justify-content:center}
 .b2-sh-end button{height:42px}
}
@media (prefers-reduced-motion:reduce){.b2-toast:not([hidden]){animation:none}}
.b2-mform .lf-ok a,.b2-form .lf-ok a{color:#fff}
/* «Пример» (04.12) и код */
.b2-example{background:#eef1ff;border-color:#3b5bff}.b2-example .b2-bx-i,.b2-example .b2-bx-t{color:#2a3fc4}
.b2-bx-nt .b2-bx-i{margin-top:0}
.b2-code{margin:14px 0 18px;padding:14px 16px;background:#1d1b19;color:#f3f0ea;border-radius:8px;overflow-x:auto;font:14px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre}
.b2-code code{font:inherit;color:inherit;background:none;padding:0}
.b2-art :not(pre)>code{padding:1px 5px;border-radius:4px;background:#e9e4dc;color:#2f2c29;font:0.92em/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.b2-art ol>li,.b2-art ul>li{padding-left:2px}
.b2-tbl-n2 .b2-ts table{min-width:0}
