/* AVITOMA blog — лёгкий текстовый слой, стиль лендинга v6 */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  --bg:#f4f5f8;--card:#fff;--ink:#1c2230;--mut:#5a6478;--soft:#8a93ab;
  --line:#e6eaf2;--blue:#3d7bff;--cyan:#19e3ff;--purple:#b73cff;
  --grad:linear-gradient(160deg,#19e3ff,#3d7bff 46%,#b73cff);
}
html{background:var(--bg);scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:var(--ink);line-height:1.65;font-size:16px}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}

/* шапка */
.hdr{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:860px;margin:0 auto;padding:18px 20px}
.hdr .logo{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}
.hdr .logo:hover{text-decoration:none}
.hdr .nm{font-family:'Space Grotesk',-apple-system,sans-serif;font-size:17px;font-weight:700;letter-spacing:.14em}
.hdr .nm small{display:block;font-size:8px;font-weight:500;letter-spacing:.3em;color:var(--mut)}
.hdr .nm .ga{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.hdr .cta{background:var(--grad);color:#fff;font-weight:700;font-size:13px;padding:10px 18px;border-radius:999px;white-space:nowrap}
.hdr .cta:hover{text-decoration:none;filter:brightness(1.06)}

/* обёртка статьи */
.wrap{max-width:760px;margin:0 auto;padding:8px 20px 60px}
.crumbs{font-size:12.5px;color:var(--soft);margin:10px 0 22px}
.crumbs a{color:var(--soft)}
article h1{font-family:'Space Grotesk',-apple-system,sans-serif;font-size:clamp(26px,5vw,38px);line-height:1.15;font-weight:700;letter-spacing:-.01em;margin:0 0 14px}
.meta{font-size:13px;color:var(--soft);margin-bottom:26px}
.lead{font-size:18px;color:var(--mut);margin-bottom:26px}
article h2{font-family:'Space Grotesk',-apple-system,sans-serif;font-size:clamp(20px,3.4vw,26px);font-weight:700;letter-spacing:-.01em;margin:38px 0 12px}
article h3{font-size:17px;font-weight:700;margin:26px 0 8px}
article p{margin:0 0 14px}
article ul,article ol{margin:0 0 16px 22px}
article li{margin-bottom:6px}
article table{width:100%;border-collapse:collapse;margin:6px 0 20px;font-size:14.5px}
article th,article td{border:1px solid var(--line);padding:9px 12px;text-align:left;vertical-align:top}
article th{background:#eef1f7;font-weight:700}
article .tblwrap{overflow-x:auto}
blockquote{border-left:3px solid var(--blue);padding:6px 0 6px 16px;color:var(--mut);margin:0 0 16px}
.hl{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:700}

/* CTA-вставка */
.box{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px 22px;margin:26px 0;box-shadow:0 8px 26px rgba(40,54,102,.06)}
.box.cta{text-align:center}
.box.cta .t{font-family:'Space Grotesk',sans-serif;font-size:19px;font-weight:700;margin-bottom:6px}
.box.cta p{color:var(--mut);font-size:14.5px;margin-bottom:14px}
.box.cta a.btn{display:inline-block;background:var(--grad);color:#fff;font-weight:700;font-size:14.5px;padding:12px 26px;border-radius:999px}
.box.cta a.btn:hover{text-decoration:none;filter:brightness(1.06)}
.box.cta .fine{font-size:12px;color:var(--soft);margin-top:10px}

/* FAQ */
.faq details{background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:10px;overflow:hidden}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:12px;padding:14px 16px;font-weight:700;font-size:15px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';color:var(--blue);font-size:19px;flex:0 0 auto}
.faq details[open] summary::after{content:'–'}
.faq .fa{padding:0 16px 14px;font-size:14.5px;color:var(--mut)}

/* рубрики: чипы над списком статей */
.cat-chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.cat-chips .chip{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--blue);background:#eaf1ff;border-radius:999px;padding:7px 14px;transition:filter .15s}
.cat-chips .chip:hover{text-decoration:none;filter:brightness(.96)}
.cat-chips .chip span{font-size:11px;font-weight:700;color:#fff;background:var(--blue);border-radius:999px;padding:1px 7px}
.cat-chips .chip.active{color:#fff;background:var(--grad)}
.cat-chips .chip.active span{background:rgba(255,255,255,.28)}

/* список статей (индекс) */
.list{display:grid;gap:14px;margin-top:6px}
.list a.item{display:block;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:18px 20px;color:var(--ink);box-shadow:0 8px 26px rgba(40,54,102,.05);transition:transform .15s}
.list a.item:hover{text-decoration:none;transform:translateY(-2px)}
.list .it{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:17px;margin-bottom:4px}
.list .id{font-size:14px;color:var(--mut)}
.list .tag{display:inline-block;font-size:11px;letter-spacing:.06em;color:var(--blue);background:#eaf1ff;border-radius:999px;padding:2px 10px;margin-bottom:8px}

/* связанные */
.rel{margin-top:34px;padding-top:18px;border-top:1px solid var(--line)}
.rel .rt{font-size:13px;letter-spacing:.1em;color:var(--soft);text-transform:uppercase;margin-bottom:10px}
.rel ul{list-style:none;margin:0}
.rel li{margin-bottom:8px}

/* подвал */
.ftr{max-width:860px;margin:0 auto;padding:22px 20px 40px;border-top:1px solid var(--line);font-size:13px;color:var(--soft);display:flex;flex-wrap:wrap;gap:8px 18px}
.ftr a{color:var(--mut)}

@media(max-width:600px){
  body{font-size:15.5px}
  .lead{font-size:16.5px}
  .hdr{padding:14px 16px}
  .wrap{padding:4px 16px 44px}
}

/* обложки статей */
.coverimg{width:100%;height:auto;border-radius:14px;margin:0 0 20px;display:block;box-shadow:0 10px 30px rgba(40,54,102,.10)}
.list a.item{display:flex;gap:16px;align-items:flex-start}
.list .thumb{width:132px;height:76px;object-fit:cover;border-radius:10px;flex:none;margin-top:2px}
.list .itxt{min-width:0}
@media(max-width:600px){.list .thumb{width:96px;height:58px}}

/* article TOC 02.08 */
.toc { margin: 22px 0 30px; padding: 18px 22px; background: rgba(139,92,246,.06); border: 1px solid rgba(139,92,246,.25); border-radius: 14px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 5px 0; }
