/* ------------------------------------------------------------------
   Статьи: /blog/ и /blog/<slug>/. Поверх style.css и tools.css.
   Карточки статей (.post-grid / .pcard) лежат в style.css — они есть и на главной.
   ------------------------------------------------------------------ */
.post {
  margin-top: 40px; padding: 60px 70px 64px;
  border: 2px solid var(--stroke); border-radius: var(--r-panel);
  background: linear-gradient(278deg, var(--panel) 0%, var(--panel-2) 100%);
}
.post__title { margin-top: 18px; max-width: 22ch; font-size: clamp(32px, 4.4vw, 60px); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.post__lead { margin-top: 20px; max-width: 46rem; font-size: 21px; line-height: 1.5; letter-spacing: -0.02em; color: var(--ink-2); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--desc); }
.post__meta span[aria-hidden] { color: var(--stroke-2); }
.post__tag { padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-600); font-size: 13px; }
.post__cover { max-width: 620px; margin-top: 32px; border-radius: var(--r-card); overflow: hidden; background: var(--card); }
.post__cover img { display: block; width: 100%; height: auto; }

.post__body { max-width: 46rem; margin-top: 40px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.post__body h2 { margin-top: 46px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.post__body h3 { margin-top: 32px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.post__body p { margin-top: 16px; }
.post__body ul, .post__body ol { display: grid; gap: 10px; margin-top: 18px; padding-left: 0; }
.post__body li { position: relative; padding-left: 32px; }
.post__body ul li::before { content: ""; position: absolute; left: 8px; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--blue-line); }
.post__body ol { counter-reset: n; }
.post__body ol li { counter-increment: n; }
.post__body ol li::before { content: counter(n); position: absolute; left: 0; top: .12em; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 700; }
.post__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post__body a:hover { text-decoration-thickness: 2px; }
.post__body strong { color: var(--ink); font-weight: 600; }
.post__body blockquote { margin-top: 30px; padding: 24px 28px; border-radius: var(--r-inner); background: var(--blue-soft); color: var(--ink); font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: -0.02em; }
.post__body blockquote + h2 { margin-top: 46px; }

.post__sources { max-width: 46rem; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--stroke); }
.post__sources h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--desc); }
.post__sources ul { display: grid; gap: 8px; margin-top: 12px; }
.post__sources a { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.post__sources a:hover { color: var(--blue); }

@media (max-width: 1100px) { .post { padding: 48px 40px; } }
@media (max-width: 768px) {
  .post { margin-top: 16px; padding: 30px 22px 34px; border-radius: 32px; }
  .post__title { max-width: none; }
  .post__lead { font-size: 18px; }
  .post__body { margin-top: 30px; font-size: 17px; }
  .post__body h2 { margin-top: 36px; }
  .post__body blockquote { padding: 20px; font-size: 17px; }
}
