/* ============================================================
   KOZYR — blog-article.css
   Auto-extracted from inline <style> blocks (2026-08-16).
   Shared across multiple pages. Version: v=20260816
   ============================================================ */
/* Article-specific styles (kept minimal, leveraging kozyr-blog.css?v=20260816) */
.key-takeaways {
  background: rgba(156, 106, 24, 0.06);
  border-left: 3px solid var(--gold);
  padding: 22px 26px;
  margin: 32px 0 40px;
  border-radius: 4px;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
@media (max-width: 600px) {
  .key-takeaways { padding: 18px 18px; margin: 24px 0 32px; }
}
.key-takeaways .takeaways-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}
.key-takeaways ul {
  margin: 0;
  padding-left: 20px;
}
.key-takeaways li {
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 15.5px;
  line-height: 1.6;
}
.key-takeaways li:last-child { margin-bottom: 0; }

.toc {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 20px 26px;
  margin: 32px 0;
  border-radius: 4px;
}
.toc-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 12px;
  font-weight: 600;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  list-style: decimal;
}
.toc li { margin-bottom: 6px; font-size: 14.5px; }
.toc a { color: var(--fg); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.toc a:hover { border-bottom-color: var(--gold); }

.faq-section { margin: 56px 0 40px; }
.faq-section h2 { margin-bottom: 24px; }
details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
details.faq-item:first-of-type { border-top: 1px solid var(--line); }
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--fg);
  list-style: none;
  position: relative;
  padding-right: 32px;
  line-height: 1.5;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: 0; }
details.faq-item .faq-answer {
  margin-top: 14px;
  color: var(--fg-mute);
  font-size: 15.5px;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-mute);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.article-meta .updated { color: var(--gold); }

.article-hero {
  margin: 28px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.article-hero figcaption {
  font-size: 12.5px;
  color: var(--fg-mute);
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-style: italic;
}

/* ── Article body typography ─────────────────────────
   Local overrides for .post-body only. The global kozyr-blog.css?v=20260816
   sets `h2 { margin: 0 0 20px }`, which works on landing pages
   where each H2 sits in its own padded section — but inside a
   single flowing blog article it makes section headers crash
   into the previous paragraph. These rules add breathing room
   between sections, paragraphs, and list items without touching
   the global stylesheet. */
.post-body p {
  margin: 0 0 1.2em;
}
.post-body h2 {
  margin: 56px 0 18px;
  scroll-margin-top: 24px;
}
.post-body h2:first-child {
  margin-top: 0;
}
.post-body h3 {
  margin: 32px 0 12px;
  scroll-margin-top: 24px;
}
.post-body ul,
.post-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.post-body li {
  margin-bottom: 8px;
}
.post-body li:last-child {
  margin-bottom: 0;
}
.post-body li > p {
  margin-bottom: 0.4em;
}
.post-body strong {
  color: var(--fg);
}
.post-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--gold);
  color: var(--fg-mute);
  font-style: italic;
}

/* Автор в шапке статьи — усиленный CSS против наследования от .post-hero__meta */
.post-hero__author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  color: #fff !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  text-transform: none;
}
.post-hero__author img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: block;
  flex-shrink: 0;
}
.post-hero__author span,
.post-hero__author a {
  color: #fff !important;
  font-family: inherit;
  text-decoration: none;
}
@media (max-width: 480px) {
  .post-hero__author { padding: 5px 10px 5px 5px; gap: 8px; font-size: 12px; }
  .post-hero__author img { width: 24px; height: 24px; }
}
