/* ============================================================
   NERONOV — ARTICLE / BLOG PAGE STYLES
   Подключается вместе с oxygen-stylesheet.css
   ============================================================ */

/* ---- blog index ---- */
.blog-hero { padding-top: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.blog-hero .hero-glow { position: absolute; inset: -10% -10% auto -10%; height: 460px; z-index: 0; pointer-events: none;
  background: radial-gradient(560px 360px at 80% 6%, var(--accent-glow), transparent 70%); }
.blog-hero-inner { position: relative; z-index: 1; max-width: 720px; }
.blog-h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin: 18px 0 0; }

.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filter { padding: 10px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all .2s var(--ease); }
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
:root[data-theme="dark"] .filter.active { color: var(--accent); }

.blog-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.post-media { position: relative; aspect-ratio: 16/10; }
.post-media .ph { border-radius: 0; border: 0; height: 100%; }
.post-cat { position: absolute; top: 14px; left: 14px; white-space: nowrap; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 5px 11px; border-radius: 99px; }
.post-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
:root[data-theme="dark"] .post-icon { color: var(--accent); }
.post-title { font-size: 20px; font-weight: 700; line-height: 1.22; letter-spacing: -.015em; margin: 0; }
.post-excerpt { font-size: 14.5px; color: var(--ink-3); margin: 0; flex: 1; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.post-read { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.post-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; color: var(--accent-strong); transition: gap .25s; }
:root[data-theme="dark"] .post-link { color: var(--accent); }
.post-card:hover .post-link { gap: 11px; }
@media (max-width: 920px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---- article page ---- */
.art-hero { padding-top: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.art-hero .hero-glow { position: absolute; inset: -10% -10% auto -10%; height: 420px; z-index: 0; pointer-events: none;
  background: radial-gradient(520px 320px at 78% 6%, var(--accent-glow), transparent 72%); }
.art-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; }
.art-h1 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin: 18px 0 0; }
.art-lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2); margin-top: 22px; font-weight: 450; }

.art-cover { margin-top: 40px; }
.art-cover .ph { height: clamp(240px, 34vw, 440px); }

/* article body — readable measure */
.art-layout { display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; }
.art-body { grid-column: 2; }
.art-body > * { margin: 0; }
.art-body > * + * { margin-top: 22px; }
.art-body h2 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; margin-top: 44px; }
.art-body p { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.art-body ul, .art-body ol { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.art-body li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.art-body ul li::before { content: ''; position: absolute; left: 6px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.art-body ol { counter-reset: oli; }
.art-body ol li { counter-increment: oli; }
.art-body ol li::before { content: counter(oli); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
:root[data-theme="dark"] .art-body ol li::before { color: var(--accent); }
.art-callout { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; background: var(--accent-soft); border-radius: var(--r-lg); margin-top: 32px; }
.art-callout svg { color: var(--accent-strong); flex: none; margin-top: 2px; }
:root[data-theme="dark"] .art-callout svg { color: var(--accent); }
.art-callout p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink); font-weight: 500; }

/* Q&A article (accordion reuse via .acc-item already exists) */
.art-qa { grid-column: 2; margin-top: 8px; }

/* author / share card */
.art-foot { grid-column: 2; margin-top: 48px; }
.art-author { display: flex; align-items: center; gap: 18px; padding: 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.art-author .ava { width: 60px; height: 60px; border-radius: 50%; flex: none; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
:root[data-theme="dark"] .art-author .ava { background: var(--accent); color: var(--accent-ink); }
.art-author .an { font-size: 16px; font-weight: 700; }
.art-author .ar { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.art-author .btn { margin-left: auto; }

@media (max-width: 820px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-body, .art-qa, .art-foot { grid-column: 1; }
  .art-author { flex-wrap: wrap; }
  .art-author .btn { margin-left: 0; width: 100%; }
}


/* ===== MOBILE: article tightening ===== */
@media (max-width: 640px) {
  .blog-h1 { font-size: clamp(30px, 9vw, 44px); }
  .art-h1 { font-size: clamp(26px, 8vw, 40px); }
  .art-lead { font-size: 18px; margin-top: 18px; }
  .art-cover { margin-top: 28px; }
  .art-cover .ph { height: 220px; }
  .art-body p { font-size: 16.5px; }
  .art-body li { font-size: 16px; }
  .art-body h2 { margin-top: 34px; }
  .art-author { padding: 20px; gap: 14px; }
  .art-author .ava { width: 52px; height: 52px; font-size: 18px; }
  .blog-filters { gap: 8px; margin-top: 26px; }
  .filter { padding: 9px 15px; font-size: 13.5px; }
}
