/* Блог БотДжинна: те же шрифты и цвета, что на botgenie.ru */
:root { --ink: #0F1B2D; --text: #3B4859; --muted: #566377; --line: #DCE3EB; --line2: #E6ECF2; --soft: #F4F7FB; --brand: #1976D2; --brand-soft: #E3F0FC; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1136px; margin: 0 auto; padding-inline: 20px; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }

.top { border-bottom: 1px solid var(--line2); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
/* шапка и подвал — той же ширины и тех же размеров, что на главной (index.html: .wrap 1280 px, боковые отступы clamp) */
.top .wrap, .foot .wrap { max-width: 1280px; padding-inline: clamp(16px, 5vw, 80px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; line-height: 1.15; }
.logo img { display: block; width: 36px; height: 36px; margin-block: -4px; flex-shrink: 0; }
.logo span { display: flex; flex-direction: column; line-height: 1.15; }
.logo b { font-weight: 700; }
.logo small { color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.top .btn { min-height: 44px; padding: 10px 20px; border-radius: 8px; line-height: 1.2; }
@media (max-width: 1100px) { .logo small { display: none; } }
@media (max-width: 480px) { .logo { font-size: 17px; gap: 8px; } .nav { gap: 10px; font-size: 14px; } }

.article { max-width: 780px; padding-block: 24px 64px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.article-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0; text-wrap: balance; }
h2 { font-size: 26px; line-height: 1.25; color: var(--ink); margin: 44px 0 12px; display: flex; align-items: center; gap: 12px; scroll-margin-top: 80px; }
.lead { font-size: 19px; margin: 0; }
.cover { border-radius: 16px; margin-top: 8px; background: var(--soft); }
.step { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 17px; display: grid; place-items: center; }
.toc { background: var(--soft); border-radius: 14px; padding: 18px 22px; }
.toc b { color: var(--ink); }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc a { text-decoration: none; }
ul.check { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
ul.check li { padding-left: 28px; position: relative; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
b { color: var(--ink); }
.tip { background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; font-size: 16px; }
.tip.warn { background: #FFF4E5; }
.path { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 15px; background: var(--soft); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; color: var(--ink); overflow-wrap: anywhere; }
dl.fields { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 16px; margin: 16px 0; }
dl.fields dt { font-weight: 600; color: var(--ink); }
dl.fields dd { margin: 0; }
@media (max-width: 560px) { dl.fields { grid-template-columns: minmax(0, 1fr); gap: 2px; } dl.fields dd { margin-bottom: 10px; } }
.cta { margin-top: 24px; background: var(--ink); color: #fff; border-radius: 16px; padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.cta div { display: flex; flex-direction: column; }
.cta b { color: #fff; font-size: 20px; }
.cta span { color: #B9C6D6; font-size: 15px; }
/* таблица расчёта */
.calc { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line2); border-radius: 12px; }
.calc table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.calc th, .calc td { padding: 10px 14px; border-bottom: 1px solid var(--line2); text-align: left; }
.calc th { background: var(--soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.calc .num { text-align: right; white-space: nowrap; }
.calc tr.total td { border-bottom: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .calc table { font-size: 14px; } .calc th, .calc td { padding: 8px 10px; } }
details { border-bottom: 1px solid var(--line2); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 8px 0 0; }
.more { margin-top: 44px; border-top: 1px solid var(--line2); padding-top: 20px; }
.more ul { padding-left: 20px; margin: 8px 0 0; }
.foot { border-top: 1px solid var(--line2); background: var(--soft); font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 20px; }
.foot a { color: var(--muted); }

.path-inline { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.9em; background: var(--soft); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 6px; color: var(--ink); overflow-wrap: anywhere; }
/* пример переписки с ботом */
.chat-demo { background: var(--soft); border: 1px solid var(--line2); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.chat-demo p { margin: 0; }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.bubble.bot { background: #fff; border: 1px solid var(--line2); color: var(--ink); align-self: flex-start; border-top-left-radius: 4px; }
.bubble.me { background: var(--brand); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.chat-demo .buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.chat-demo .buttons span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; }
.chat-demo .buttons .wide { grid-column: 1 / -1; }

/* список статей */
.blog-list { padding-block: 32px 64px; }
.blog-list .intro { max-width: 680px; margin-bottom: 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; background: #fff; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--soft); width: 100%; }
.card div { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.card b { font-size: 19px; line-height: 1.3; }
.card span { font-size: 15px; color: var(--muted); }
