/* Блог chill vpn (21.11.2026) — поверх site.css лендинга: те же цвета, шрифты, кнопки. */
.nav-links a.is-active { color: var(--ink); }
.blog { padding-bottom: 80px; }

/* шапка ленты */
.blog-hero { padding: 56px 0 34px; max-width: 760px; }
.blog-hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; }
.blog-lead { margin: 16px 0 0; font-size: 18px; color: var(--ink2); max-width: 620px; }

/* лента карточек */
.blog-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 2px 8px rgba(14, 15, 28, .05); transition: transform .2s ease, box-shadow .2s ease; min-width: 0; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16 / 9; background: var(--grad); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover.is-empty img { object-fit: contain; padding: 14px; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink3); }
.post-title { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.post-sum { margin: 0; font-size: 15px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--blue); }

/* первая статья — как закреплённый пост */
.blog-feed.has-lead .post-card.is-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card.is-lead .post-cover { aspect-ratio: auto; min-height: 320px; }
.post-card.is-lead .post-body { padding: 36px 38px; justify-content: center; }
.post-card.is-lead .post-title { font-size: clamp(26px, 3vw, 36px); }
.post-card.is-lead .post-sum { font-size: 17px; -webkit-line-clamp: 5; }

.blog-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; font-weight: 600; color: var(--ink2); }
.blog-empty { text-align: center; padding: 50px 20px 30px; background: var(--card); border-radius: var(--r); }
.blog-empty img { width: 150px; margin: 0 auto 10px; }
.blog-empty h2 { font-size: 28px; }
.blog-empty p { color: var(--ink2); margin: 10px 0 0; }

/* призыв */
.blog-cta { margin-top: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 34px 38px; border-radius: var(--r); background: var(--space); color: #fff; }
.blog-cta h2 { font-size: clamp(24px, 3vw, 32px); color: #fff; }
.blog-cta p { margin: 8px 0 0; color: rgba(255, 255, 255, .72); }

/* ═══ статья (21.11.2026: макет с содержанием сбоку, код, галереи) ═══ */
.blog-draft { margin: 24px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff6e6; border: 1px solid #f6dfae; color: #6b4a00; font-weight: 600; font-size: 14px; }

/* шапка статьи */
.article-hero { max-width: 900px; margin: 0 auto; padding: 34px 0 8px; text-align: center; }
.crumbs { display: inline-flex; max-width: 100%; gap: 8px; font-size: 14px; color: var(--ink3); font-weight: 600; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--blue); }
.crumbs span:last-child { overflow: hidden; text-overflow: ellipsis; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.meta-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); }
.meta-pill svg { color: var(--blue); }
.article-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.06; margin: 18px auto 0; max-width: 860px; text-wrap: balance; }
.article-lead { margin: 20px auto 0; max-width: 700px; font-size: 19px; line-height: 1.55; color: var(--ink2); text-wrap: pretty; }
.article-cover { position: relative; margin: 38px 0 0; }
.article-cover::before { content: ""; position: absolute; inset: 10% 6% -4%; background: var(--grad); filter: blur(56px); opacity: .38; border-radius: 50%; }
.article-cover img { position: relative; width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); background: var(--card); }

/* макет: текст + содержание сбоку */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: center; gap: 56px; margin-top: 46px; }
.article { min-width: 0; max-width: 740px; width: 100%; margin: 0 auto; }
.article-aside { display: none; }
@media (min-width: 1120px) {
  .has-toc .article-layout { grid-template-columns: minmax(0, 740px) 270px; }
  .has-toc .article { margin: 0; }
  .has-toc .article-aside { display: block; }
  .has-toc .toc-inline { display: none; }
}

/* содержание */
.toc { border-radius: 22px; background: var(--card); box-shadow: 0 2px 8px rgba(14, 15, 28, .05); }
.toc-side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding: 22px 18px 18px; }
.toc-title { padding: 0 10px 10px; font: 700 12px var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0; }
.toc-list a { display: block; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--ink2);
  transition: background .15s, color .15s; }
.toc-list a:hover { background: var(--bg); color: var(--ink); }
.toc-list a.is-active { background: linear-gradient(120deg, rgba(136, 239, 209, .28), rgba(91, 141, 239, .16)); color: var(--ink); box-shadow: inset 3px 0 0 var(--blue); }
.toc-list .toc-h3 a { font-size: 13.5px; font-weight: 500; }
.toc-top { display: block; margin: 12px 10px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--blue); }
.toc-inline { margin: 0 0 34px; overflow: hidden; }
.toc-inline summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none;
  font: 700 15px var(--body); }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary svg { color: var(--ink3); transition: transform .2s; }
.toc-inline[open] summary svg { transform: rotate(180deg); }
.toc-inline .toc-list { padding: 0 10px 14px; border-top: 1px solid var(--line); padding-top: 10px; }

/* текст */
.prose { font-size: 18px; line-height: 1.75; color: #1c1e2e; overflow-wrap: break-word; }
.prose > * { margin: 0 0 22px; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 92px; color: var(--ink); text-wrap: balance; }
.prose h2 { font-size: 32px; line-height: 1.15; margin-top: 60px; }
.prose h3 { position: relative; font-size: 27px; line-height: 1.2; margin-top: 64px; padding-top: 30px; }
.prose h3::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); }
.prose h2 + h3 { margin-top: 28px; }
.prose h4 { font-size: 19px; line-height: 1.35; margin-top: 34px; margin-bottom: 12px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; margin: 9px 0; padding-left: 30px; }
.prose ul > li::before { content: ""; position: absolute; left: 8px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.prose ol { counter-reset: li; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 12px/1 var(--body); }
.prose blockquote { position: relative; margin-left: 0; margin-right: 0; padding: 20px 22px 20px 58px; border-radius: 20px;
  background: linear-gradient(135deg, #e3fbf3 0%, #dff1fc 50%, #dde8ff 100%); color: var(--ink); font-size: 16.5px; line-height: 1.65; }
.prose blockquote::before { content: "i"; position: absolute; left: 20px; top: 21px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font: 700 14px/1 Georgia, serif; font-style: italic; }
.prose blockquote p { margin: 0; }
.prose :not(pre) > code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84em; padding: 2px 7px; border-radius: 7px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: #2b2f4a; overflow-wrap: anywhere; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 44px 0; }
.prose p > em:only-child { display: block; margin-top: -6px; font-size: 15px; line-height: 1.55; color: var(--ink3); font-style: normal; text-align: center; }

/* код */
.prose .code { margin: 0 0 26px; border-radius: 18px; overflow: hidden; background: var(--space); box-shadow: 0 18px 40px -26px rgba(4, 9, 29, .7); }
.code-bar { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 10px 0 16px; background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .07); }
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.code-dots i:first-child { background: #57d9b0; } .code-dots i:nth-child(2) { background: #6fc3f0; } .code-dots i:nth-child(3) { background: #5b8def; }
.code-copy { height: 28px; padding: 0 11px; border: 0; border-radius: 8px; cursor: pointer; background: rgba(255, 255, 255, .08); color: #c9d2f5;
  font: 600 12.5px var(--body); transition: background .15s; }
.code-copy:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.prose pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; color: #e8ecff; font-size: 14px; line-height: 1.6; tab-size: 2; }
.prose > pre { margin: 0 0 26px; border-radius: 18px; background: var(--space); }
.prose pre code { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: inherit; line-height: inherit; background: none; padding: 0; color: inherit; }

/* картинки */
.prose figure { margin: 34px 0; text-align: center; }
.prose figure img { margin: 0 auto; max-width: 100%; height: auto; border-radius: 20px; background: var(--card); cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--line), 0 22px 46px -28px rgba(14, 15, 28, .45); }
.prose figure > img { max-height: 640px; width: auto; }
.prose figure.is-tall img { max-height: 620px; width: auto; }
.prose figcaption { max-width: 600px; margin: 12px auto 0; font-size: 14px; line-height: 1.5; color: var(--ink3); }
.prose .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 34px 0; }
.prose .gallery figure { margin: 0; display: flex; flex-direction: column; padding: 12px 12px 14px; border-radius: 22px; background: var(--card);
  box-shadow: 0 2px 8px rgba(14, 15, 28, .05); }
.prose .gallery figure img { width: 100%; height: 300px; max-height: none; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.prose .gallery figcaption { margin-top: 10px; font-size: 13px; }

/* таблицы */
.prose .table-wrap { margin: 30px 0; overflow-x: auto; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* низ статьи */
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 50px; padding: 20px 22px;
  border-radius: 22px; background: var(--card); }
.foot-label { font-weight: 700; color: var(--ink); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--ink); font: 600 14px var(--body); transition: box-shadow .15s; }
.share:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }

/* прогресс чтения и просмотр картинки */
.article-progress { position: fixed; top: 0; left: 0; z-index: 100; width: 0; height: 3px; background: var(--grad); pointer-events: none; transition: width .12s linear; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(4, 9, 29, .86); cursor: zoom-out;
  overflow: auto; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: none; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox-x { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
html.lb-open { overflow: hidden; }

.blog-related { margin-top: 70px; }
.blog-related h2 { font-size: 30px; margin-bottom: 22px; }
.blog-related .post-title { font-size: 18px; }

@media (max-width: 960px) {
  .blog-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-feed.has-lead .post-card.is-lead { grid-template-columns: 1fr; }
  .post-card.is-lead .post-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card.is-lead .post-body { padding: 24px; }
}
@media (max-width: 620px) {
  .blog-hero { padding: 34px 0 24px; }
  .blog-lead { font-size: 16px; }
  .blog-feed { grid-template-columns: 1fr; gap: 18px; }
  .blog-cta { padding: 26px 22px; }
}

@media (max-width: 620px) {
  .article-hero { padding-top: 22px; }
  .article-lead { font-size: 17px; }
  .article-cover { margin-top: 26px; }
  .article-cover img { max-height: 260px; border-radius: 20px; }
  .article-layout { margin-top: 30px; }
  .prose { font-size: 16.5px; line-height: 1.7; }
  .prose h2 { font-size: 26px; margin-top: 44px; }
  .prose h3 { font-size: 22px; margin-top: 46px; padding-top: 24px; }
  .prose h4 { font-size: 17.5px; }
  .prose blockquote { padding: 16px 16px 16px 50px; font-size: 15.5px; }
  .prose blockquote::before { left: 16px; top: 17px; }
  .prose pre { font-size: 12.5px; padding: 14px 14px 16px; }
  .prose figure.is-tall img { max-height: 520px; }
  .prose .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .prose .gallery figure { padding: 8px 8px 10px; border-radius: 16px; }
  .prose .gallery figure img { height: 190px; border-radius: 10px; }
  .prose .gallery figcaption { font-size: 12px; }
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 11px 12px; }
  .article-foot { padding: 16px; }
}
