/* FastSite — блог/статьи. Наследует токены из styles.css. */

.blog-nav .nav-links a[href="/blog/"],
.blog-nav .nav-links a.current { color: var(--ink); font-weight: 600; }

/* ---------- hub ---------- */
.hub-hero { padding: clamp(70px,9vw,120px) 0 clamp(30px,4vw,50px); text-align: center; }
.hub-hero .eyebrow { margin-bottom: 16px; }
.hub-hero h1 { font-size: clamp(38px,6vw,66px); letter-spacing: -0.03em; }
.hub-hero .lead { margin: 22px auto 0; max-width: 52ch; }

.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; padding-bottom: 30px; }
@media (max-width: 900px){ .post-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--bg-soft); position: relative; overflow: hidden; }
.post-card .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-size: 12.5px; font-weight: 600; color: var(--accent); letter-spacing: .01em; margin-bottom: 10px; }
.post-card h2 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 10px; }
.post-card p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; line-height: 1.5; flex: 1; }
.post-card .meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 12px; }
.post-card a.stretch { position: absolute; inset: 0; }
.post-card { position: relative; }

/* featured first card spans wide */
.post-card.feat { grid-column: 1 / -1; flex-direction: row; }
.post-card.feat .thumb { flex: 0 0 46%; aspect-ratio: auto; }
.post-card.feat .body { justify-content: center; padding: clamp(24px,3vw,44px); }
.post-card.feat h2 { font-size: clamp(24px,3vw,34px); }
.post-card.feat p { font-size: 16.5px; }
@media (max-width: 760px){ .post-card.feat { flex-direction: column; } .post-card.feat .thumb { flex: none; aspect-ratio: 16/9; } }

/* ---------- article ---------- */
.article { padding: 0 0 clamp(60px,8vw,100px); }
.breadcrumbs { font-size: 13.5px; color: var(--ink-3); padding: 26px 0 0; }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 7px; opacity: .5; }

.article-head { max-width: 760px; margin: 0 auto; padding: 26px 0 8px; text-align: left; }
.article-head .cat { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.article-head h1 { font-size: clamp(30px,4.6vw,50px); letter-spacing: -0.03em; line-height: 1.1; }
.article-head .sub { font-size: clamp(18px,2.2vw,21px); color: var(--ink-2); margin: 18px 0 0; line-height: 1.5; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 22px 0 0;
  font-size: 14px; color: var(--ink-3); border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.article-body { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.72; color: #2a2a2e; }
.article-body > * { margin: 0 0 20px; }
.article-body h2 { font-size: clamp(24px,3.2vw,32px); letter-spacing: -0.02em; line-height: 1.2;
  margin: 46px 0 16px; scroll-margin-top: 70px; color: var(--ink); }
.article-body h3 { font-size: clamp(20px,2.4vw,24px); letter-spacing: -0.015em; margin: 34px 0 12px; color: var(--ink); }
.article-body p { color: #2a2a2e; }
.article-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(0,113,227,.28); }
.article-body a:hover { border-bottom-color: var(--accent); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin: 0 0 9px; }
.article-body li::marker { color: var(--accent); }
.article-body strong { font-weight: 650; color: var(--ink); }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 22px; margin: 28px 0;
  font-size: 20px; line-height: 1.5; color: var(--ink); font-weight: 500; }

.article-body figure { margin: 30px 0; }
.article-body figure svg { width: 100%; height: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--bg-soft); }
.article-body figcaption { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 0; min-width: 460px; }
.article-body th, .article-body td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.article-body th { background: var(--bg-soft); font-weight: 600; color: var(--ink); font-size: 14px; }
.article-body tr:last-child td { border-bottom: 0; }

/* TL;DR + TOC */
.tldr { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px 24px; font-size: 16.5px; }
.tldr b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 8px; }
.toc { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px 24px; }
.toc b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { counter-reset: toc; list-style: none; padding: 0; margin: 0; }
.toc li { counter-increment: toc; margin: 0 0 9px; padding-left: 30px; position: relative; font-size: 16px; }
.toc li::before { content: counter(toc); position: absolute; left: 0; top: 0; width: 21px; height: 21px;
  background: var(--bg-soft); border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--accent);
  display: grid; place-items: center; }
.toc a { color: var(--ink); border: 0; }
.toc a:hover { color: var(--accent); }

/* inline CTA */
.cta-inline { background: var(--bg-dark); color: var(--on-dark); border-radius: var(--radius-lg);
  padding: clamp(26px,4vw,40px); margin: 40px 0; text-align: center; position: relative; overflow: hidden; }
.cta-inline::before { content:""; position:absolute; inset:auto -20% -60% -20%; height: 260px;
  background: radial-gradient(closest-side, rgba(111,91,255,.3), transparent); }
.cta-inline > * { position: relative; }
.cta-inline h3 { font-size: clamp(22px,3vw,28px); letter-spacing: -0.02em; margin: 0 0 10px; color: #fff; }
.cta-inline p { color: var(--on-dark-2); margin: 0 0 22px; font-size: 16px; }
.cta-inline .btn { border: 0; }

/* FAQ (reuse .qa but scoped colors) */
.article-body .faq { margin: 20px 0 0; max-width: none; }

/* author/share footer + related */
.article-foot { max-width: 720px; margin: 40px auto 0; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.share-row .lbl { font-size: 14px; color: var(--ink-3); margin-right: 4px; }
.share-row a { font-size: 14px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.share-row a:hover { border-color: var(--accent); color: var(--accent); }

.related { max-width: 1120px; margin: 0 auto; padding: clamp(50px,7vw,80px) 0 0; }
.related h2 { font-size: clamp(24px,3vw,32px); letter-spacing: -0.02em; margin-bottom: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 800px){ .related-grid { grid-template-columns: 1fr; } }

/* progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--grad); transition: width .1s linear; }
