/* Тема Default — чистый минимализм */
:root {
  --accent: #0a6cff;
  --bg: #f4f6f9;
  --card: #fff;
  --line: #dde3ea;
  --text: #222a33;
  --muted: #6b7684;
}
* { box-sizing: border-box; }
body {
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.hint { color: var(--muted); font-size: 13px; }
.date { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Шапка */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; flex-wrap: wrap; }
.logo { font-size: 20px; font-weight: 700; color: var(--text); }
.nav { display: flex; gap: 14px; flex-wrap: wrap; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--accent); }

/* Каркас */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; padding: 28px 16px 48px; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.content { min-width: 0; }
.sidebar { min-width: 0; }

/* Карточки статей */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.cat { background: #e8f0ff; color: var(--accent); border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.card-title { margin: 4px 0 8px; font-size: 22px; line-height: 1.3; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-text { margin: 0; color: var(--muted); }
.card-cover { width: 100%; max-height: 320px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }

/* Полная статья */
.post { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.post-title { margin: 0 0 18px; font-size: 32px; line-height: 1.25; }
.post-cover { width: 100%; border-radius: 8px; margin-bottom: 18px; }
.post-body { font-size: 16.5px; }
.post-body img { max-width: 100%; }
.post-body pre { background: #0f1720; color: #e6edf3; padding: 14px; border-radius: 8px; overflow-x: auto; }
.backlink { margin: 18px 0 0; }

/* Заголовки страниц */
.page-head { margin-bottom: 20px; }
.page-title { margin: 0 0 6px; font-size: 28px; }
.page-desc { color: var(--muted); margin: 0; }

/* Пагинация */
.pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 24px 0; }
.pager-btn { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; }
.pager-btn:hover { border-color: var(--accent); text-decoration: none; }
.pager-info { color: var(--muted); font-size: 14px; }

/* Сайдбар */
.widget { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.widget h3 { margin: 0 0 10px; font-size: 15px; }
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a { color: var(--text); }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); background: var(--card); }
.footer-inner { display: flex; gap: 16px; align-items: center; padding: 16px; flex-wrap: wrap; }
.footer-inner span:first-child { font-weight: 600; }
