/* Dockbox — стили блога (использует переменные из css/style.css!) */

.blog-page {
  padding: 120px 0 80px;   /* 120px — отступ под fixed-шапку! */
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-family: var(--mono);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.post-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 900px;
}

.post-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-family: var(--mono);
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-cat {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.blog-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
}

/* ─── Тело статьи ─── */
.post-body {
  max-width: 780px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
}
.post-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.post-body p { margin: 0 0 20px; }
.post-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.post-body a:hover { color: var(--accent-2); }
.post-body strong { font-weight: 700; }
.post-body em { font-style: italic; }

.post-body ul, .post-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.post-body li { margin-bottom: 8px; }

.post-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-inset);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.post-body .post-code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0 0 24px;
  box-shadow: var(--card-shadow);
}
.post-body .post-code code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre;
}

/* таблицы */
.post-body .table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.post-body th, .post-body td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.post-body th {
  background: var(--surface-inset);
  font-weight: 600;
  font-size: 14px;
}
.post-body tr:last-child td { border-bottom: none; }

/* FAQ-аккордеон */
.post-body .faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 12px;
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}
.post-body .faq-item summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 17px;
  list-style: none;
}
.post-body .faq-item summary::-webkit-details-marker { display: none; }
.post-body .faq-item summary::before {
  content: "▸ ";
  color: var(--accent);
  font-weight: 700;
}
.post-body .faq-item[open] summary::before { content: "▾ "; }
.post-body .faq-item > p:last-child { margin-bottom: 0; }

/* ─── Список статей ─── */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  box-shadow: var(--card-shadow);
}
.cat-badge b { color: var(--accent); font-weight: 700; }

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.post-card {
  display: block;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--feature-hover-border);
  box-shadow: var(--shadow-sm);
}
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
}
.post-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.post-card-excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* футер блога */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 14px; }

@media (max-width: 640px) {
  .blog-page { padding: 28px 0 60px; }
  .post-body { font-size: 16px; }
  .post-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Подпись-источник под статьёй */
.post-source {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.75;
}
