/* «Диалог» guides (landing/guides/*): blocks on top of dialog.css, rendered by scripts/build_guides.py */

/* breadcrumbs above the first message */
.crumbs{display:flex;justify-content:center;margin:18px 0 10px}
.crumbs ol{display:inline-flex;flex-wrap:wrap;justify-content:center;gap:4px 8px;list-style:none;padding:6px 14px;border-radius:18px;background:rgba(255,255,255,.8);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font-size:13px;font-weight:600;color:var(--ink-2);box-shadow:var(--lift)}
.crumbs li + li::before{content:"/";margin-right:8px;color:var(--ink-3)}
.crumbs a{color:var(--blue-d);text-decoration:none}
.crumbs a:hover{text-decoration:underline}

/* section titles are real headings: let long ones wrap inside the pill */
h2.sep span{max-width:100%;line-height:1.3;text-align:left}
h2.sep b{flex:none}

/* hero: freshness line under the lead */
.updated{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:14px;font-size:13.5px;color:var(--ink-3)}
.updated span{display:inline-flex;align-items:center;gap:6px}
.updated span + span::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.6;margin-right:2px}

/* links and inline code inside bubbles */
.bubble :where(p,li,div.note) > a,.bubble :where(p,li) > b > a{color:var(--blue-d);font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.bubble code{padding:1px 6px;border-radius:7px;background:var(--mist);font:600 .9em ui-monospace,Menlo,monospace;color:var(--ink);overflow-wrap:anywhere}
.bubble h3{margin:2px 0 6px}
.bubble h3 + p{margin-top:0}
.bubble p + .steps,.bubble p + .knows,.bubble p + .checks,.bubble p + .path,.bubble p + .note,.bubble p + .ui,.bubble p + .shot,.bubble p + .reach,.bubble p + .faq,.bubble p + .docs,.bubble p + .plans,.bubble p + .modes{margin-top:10px}
.bubble .steps + p,.bubble .knows + p,.bubble .checks + p,.bubble .path + p,.bubble .note + p,.bubble .ui + p,.bubble .shot + p,.bubble .reach + p,.bubble .docs + p{margin-top:10px}
.bubble .knows:last-child{margin-bottom:0}

/* table of contents in the first answer */
.toc{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:4px 14px;margin-top:6px;counter-reset:toc}
.toc li{counter-increment:toc;display:grid;grid-template-columns:auto 1fr;gap:8px;font-size:15px;line-height:1.35}
.toc li::before{content:counter(toc);min-width:20px;font-family:var(--head);font-weight:900;color:var(--ink-3)}
.bubble .toc a{font-weight:500;text-decoration:none;color:var(--blue-d)}
.bubble .toc a:hover{text-decoration:underline}

/* step lists with real headings */
.steps h3{display:inline;font:600 1em/inherit var(--body);letter-spacing:0;color:var(--ink)}
.steps h3::after{content:". "}
.steps li > div{min-width:0}
.steps li > span{flex:none}

/* benefit cards with headings */
.reach h3{font:600 15px/1.3 var(--body);letter-spacing:0}
.reach.one{grid-template-columns:1fr}

/* check list */
.checks{list-style:none;display:grid;gap:7px;margin:2px 0;font-size:15.5px;color:var(--ink-2)}
.checks li{position:relative;padding-left:28px}
.checks li::before{content:"✓";position:absolute;left:0;top:.05em;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:var(--green-t);color:var(--green-d)}
.checks b{color:var(--ink)}

/* menu path: Управление → Боты и интеграции */
.path{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px;font-weight:600}
.path span{padding:5px 10px;border-radius:9px;background:var(--blue-t);color:var(--blue-d)}
.path i{font-style:normal;color:var(--ink-3)}

/* callouts */
.note{padding:11px 14px;border-radius:14px;background:var(--mist);font-size:15.5px;line-height:1.5;color:var(--ink-2)}
.note b:first-child{color:var(--ink)}
.note.warn{background:var(--orange-t)}
.note.ok{background:var(--green-t)}

/* four tariffs */
.plans.four{grid-template-columns:repeat(4,1fr)}
.plans.four > div{min-width:0;padding:12px}
.plans.four strong{font-size:21px}

/* screenshots from official documentation */
.shot{margin:0}
.shot img{width:100%;height:auto;border-radius:14px;background:var(--mist);box-shadow:0 0 0 1px var(--line)}
.shot figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin-top:6px;font-size:13px;line-height:1.4;color:var(--ink-3)}
.shot figcaption a{color:inherit}

/* interface mock-ups drawn with the real labels of the seller cabinet */
.ui{display:grid;gap:8px;padding:12px;border-radius:16px;background:var(--mist);font-size:14px;line-height:1.35;color:var(--ink)}
.ui-cap{display:flex;justify-content:space-between;gap:10px;font-size:12px;font-weight:600;color:var(--ink-3)}
.ui-title{font-family:var(--head);font-weight:900;font-size:17px;line-height:1.2}
.ui-sub{font-size:12.5px;color:var(--ink-2)}
.ui-card{display:grid;gap:8px;padding:12px;border-radius:12px;background:#fff;box-shadow:0 3px 10px -6px rgba(22,36,92,.35)}
.ui-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}
.ui-row > div{min-width:0}
.ui-row b{display:block;font-weight:600}
.ui-row small{display:block;font-size:12px;color:var(--ink-2)}
.ui-ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:#fff;flex:none}
.ui-ico svg{width:18px;height:18px}
.ui-ico.max{background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.ui-ico.max svg{width:30px;height:30px;color:#471AFF}
.ui-ico img{width:34px;height:34px;border-radius:10px;object-fit:cover}
.ui-field{display:grid;gap:4px}
.ui-field small{font-size:12px;font-weight:600;color:var(--ink-2)}
.ui-field span{padding:9px 11px;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font-size:13.5px;overflow-wrap:anywhere}
.ui-field em{font-style:normal;font-size:12px;color:var(--ink-3)}
.ui-choice{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px}
.ui-choice span{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:11px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);font-weight:600;font-size:13.5px}
.ui-choice span::before{content:"";width:12px;height:12px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 2px var(--ink-3)}
.ui-choice span.on{box-shadow:inset 0 0 0 2px var(--blue)}
.ui-choice span.on::before{box-shadow:inset 0 0 0 4px var(--blue)}
.ui-tabs{display:flex;flex-wrap:wrap;gap:5px}
.ui-tabs span{padding:6px 11px;border-radius:999px;background:#fff;font-weight:600;font-size:12.5px;color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line)}
.ui-tabs span.on{background:var(--blue);color:#fff;box-shadow:none}
.ui-btns{display:flex;flex-wrap:wrap;gap:6px}
.ui-btn{padding:8px 12px;border-radius:10px;background:var(--blue);color:#fff;font-weight:600;font-size:13px}
.ui-btn.line{background:#fff;color:var(--blue-d);box-shadow:inset 0 0 0 1.5px var(--blue-t)}
.ui-btn.red{background:#fff;color:#D92D4B;box-shadow:inset 0 0 0 1.5px var(--pink-t)}
.ui-badge{display:inline-block;padding:3px 8px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap;background:var(--blue-t);color:var(--blue-d)}
.ui-badge.green{background:var(--green-t);color:var(--green-d)}
.ui-badge.orange{background:var(--orange-t);color:var(--orange-d)}
.ui-badge.grey{background:var(--mist);color:var(--ink-2)}
.ui-badge.violet{background:var(--violet-t);color:var(--violet)}
.ui-toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:600}
.ui-toggle i{width:38px;height:22px;border-radius:999px;background:var(--green);position:relative;flex:none}
.ui-toggle i::after{content:"";position:absolute;right:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff}
.ui-toggle i.off{background:#C9CEDF}
.ui-toggle i.off::after{right:auto;left:3px}
.ui-sum{font-family:var(--head);font-weight:900;font-size:16px;white-space:nowrap}
.ui-split{display:grid;grid-template-columns:1fr 1fr;gap:8px}

/* a chat inside a message: BotFather, the shop bot */
.mock.chatlog{height:auto;font-size:13.5px;background:linear-gradient(160deg,#DCEBFA,#E8F1FB)}
.mock.chatlog .mb.me{background:var(--sky)}
.mock.chatlog code{font-size:12px}
.mock.chatlog .who{display:flex;align-items:center;gap:8px;margin-bottom:2px;font-weight:700;font-size:13px}
.mock.chatlog .who i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:12px;color:#fff;background:var(--sky)}

/* iPhone screens */
.phones{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;justify-items:center}
.phone{width:220px;max-width:100%;padding:8px;border-radius:34px;background:#0E1426;box-shadow:0 18px 40px -22px rgba(22,36,92,.7)}
.phone-screen{position:relative;display:flex;flex-direction:column;height:400px;overflow:hidden;border-radius:27px;background:#F4F5F8;font:12px/1.35 -apple-system,BlinkMacSystemFont,'Segoe UI',var(--body);color:#111827}
.phone-bar{display:flex;justify-content:space-between;padding:10px 18px 4px;font-weight:700;font-size:11px}
.phone-body{flex:1;display:flex;flex-direction:column;gap:8px;padding:8px 12px;min-height:0}
.phone-body b{font-weight:700}
.phone-cap{margin-top:8px;text-align:center;font-size:13px;color:var(--ink-2)}
.ios-app{width:44px;height:44px;border-radius:11px;display:grid;place-items:center;background:#fff;box-shadow:0 4px 10px -4px rgba(22,36,92,.35);flex:none}
.ios-app img{width:34px;height:34px}
.ios-card{padding:10px;border-radius:12px;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.04)}
.ios-list{border-radius:12px;background:#fff;overflow:hidden}
.ios-list div{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 11px;border-bottom:1px solid #ECEEF3}
.ios-list div:last-child{border-bottom:0}
.ios-list .hl{background:var(--blue-t);font-weight:700;color:var(--blue-d)}
.ios-url{margin-top:auto;padding:7px;border-radius:9px;background:#E6E8EE;text-align:center;font-size:11px;color:#374151}
.ios-tools{display:flex;justify-content:space-around;padding:6px 0 2px;font-size:16px;color:#0A7AFF}
.ios-tools .hl{padding:0 6px;border-radius:7px;box-shadow:0 0 0 2px var(--orange)}
.ios-nav{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#0A7AFF}
.ios-nav b{color:#111827;font-size:13px}
.ios-switch{width:34px;height:20px;border-radius:999px;background:#34C759;position:relative;flex:none}
.ios-switch::after{content:"";position:absolute;right:2px;top:2px;width:16px;height:16px;border-radius:50%;background:#fff}
.ios-switch.off{background:#D1D5DB}
.ios-switch.off::after{right:auto;left:2px}
.ios-alert{position:absolute;left:16px;right:16px;bottom:36px;z-index:2;border-radius:14px;background:rgba(248,248,250,.97);box-shadow:0 14px 34px rgba(15,23,42,.3);text-align:center;overflow:hidden}
.ios-alert p{padding:12px 12px 10px}
.ios-alert div{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #D9DBE1;color:#0A7AFF}
.ios-alert div span{padding:9px}
.ios-alert div span + span{border-left:1px solid #D9DBE1;font-weight:700}
.ios-home{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 4px;margin-top:18px;text-align:center;font-size:9px;line-height:1.2}
.ios-home span{min-width:0;overflow-wrap:anywhere}
.ios-home span i{display:block;width:38px;height:38px;margin:0 auto 4px;border-radius:10px;background:rgba(255,255,255,.75)}
.ios-home .tp i{display:grid;place-items:center;background:#fff;box-shadow:0 0 0 3px var(--orange)}
.ios-home .tp img{width:28px;height:28px}
.phone-screen.home{background:linear-gradient(160deg,#9CC0FF,#DCE8FF 50%,#C4EDD3)}
.phone-screen.home .clock{margin-top:18px;text-align:center;font-size:40px;font-weight:300;line-height:1}

@media (max-width:620px){
  .crumbs{margin:12px 0 6px}
  .toc{grid-template-columns:1fr}
  .plans.four{grid-template-columns:1fr 1fr}
  .plans.four strong{font-size:19px}
  .ui-split{grid-template-columns:1fr}
  .ui-row{grid-template-columns:auto 1fr}
  .ui-row > :nth-child(3):not(:empty){grid-column:2}
  .phones{grid-template-columns:1fr}
}

/* readability scale of dialog-2 */
.toc li{font-size:16px}
.checks{font-size:16.5px}
.note{font-size:16px}
.path{font-size:15px}
