/* Блог «Русский Контракт» — поверх палитры основного сайта */
:root {
  --rk-panel: #141e0e;
  --rk-panel-2: #1c2a16;
  --rk-line: #2e3a22;
  --rk-text: #e0e0cc;
  --rk-muted: #9c9e8c;
}

/* ── плитки рубрик над лентой ── */
.rk-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.rk-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--rk-line); border-radius: 999px;
  font-size: 13px; color: var(--rk-muted); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.rk-cat span { opacity: .6; font-size: 11px; }
.rk-cat:hover, .rk-cat.is-current { border-color: var(--rk-green-light, #5a8a35); color: var(--rk-text); }

/* ── лента ── */
.rk-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rk-card { min-width: 0; }
.rk-card-link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--rk-panel); border: 1px solid var(--rk-line); border-radius: 14px;
  overflow: hidden; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.rk-card-link:hover { border-color: var(--rk-green-light, #5a8a35); transform: translateY(-2px); }
.rk-card-media { aspect-ratio: 16/9; overflow: hidden; }
.rk-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rk-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.rk-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--rk-muted); }
.rk-tag {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(90, 138, 53, .16); border: 1px solid rgba(90, 138, 53, .4);
  color: var(--rk-green-light, #8fae5f); font-size: 11px;
}
.rk-card-title { margin: 0; color: var(--rk-text); }
.rk-card-desp { margin: 0; color: var(--rk-muted); font-size: 14px; line-height: 1.5; }
.rk-card-more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--rk-red, #c93a2e); }

/* ── статья ── */
.rk-article-head { max-width: 820px; margin: 0 auto 32px; text-align: center; }
.rk-breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; font-size: 12px; color: var(--rk-muted); }
.rk-breadcrumbs a { color: var(--rk-muted); text-decoration: none; }
.rk-breadcrumbs a:hover { color: var(--rk-text); }
.rk-article-title { margin: 0 0 16px; }
.rk-article-head .rk-card-meta { justify-content: center; }

.rk-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.rk-article-media { margin: 0 0 28px; border-radius: 14px; overflow: hidden; }
.rk-article-media img { width: 100%; height: auto; display: block; }

.rk-article-body { color: var(--rk-text); font-size: 17px; line-height: 1.7; min-width: 0; }
.rk-article-body h2 { margin: 40px 0 14px; font-size: 27px; line-height: 1.2; }
.rk-article-body h3 { margin: 30px 0 12px; font-size: 21px; line-height: 1.25; }
.rk-article-body p { margin: 0 0 18px; }
.rk-article-body ul, .rk-article-body ol { margin: 0 0 18px; padding-left: 22px; }
.rk-article-body li { margin-bottom: 8px; }
.rk-article-body a { color: var(--rk-green-light, #8fae5f); }
.rk-article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.rk-article-body blockquote {
  margin: 24px 0; padding: 16px 20px;
  border-left: 3px solid var(--rk-red, #c93a2e); background: var(--rk-panel); border-radius: 0 10px 10px 0;
}
.rk-article-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.rk-article-body th, .rk-article-body td { padding: 10px 12px; border: 1px solid var(--rk-line); text-align: left; }
.rk-article-body th { background: var(--rk-panel); }

/* ── сайдбар ── */
.rk-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.rk-sidebar-box { padding: 20px; background: var(--rk-panel); border: 1px solid var(--rk-line); border-radius: 14px; }
.rk-sidebar-box h3 { margin: 0 0 10px; color: var(--rk-text); }
.rk-sidebar-box p { margin: 0 0 16px; color: var(--rk-muted); line-height: 1.5; }
.rk-sidebar-cats { list-style: none; margin: 0; padding: 0; }
.rk-sidebar-cats li + li { border-top: 1px solid var(--rk-line); }
.rk-sidebar-cats a {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 0;
  color: var(--rk-muted); text-decoration: none; font-size: 14px;
}
.rk-sidebar-cats a:hover { color: var(--rk-text); }
.rk-sidebar-cats span { opacity: .6; font-size: 12px; }

/* ── похожие и пагинация ── */
.rk-related { margin-top: 56px; }
.rk-related h2 { margin: 0 0 20px; color: var(--rk-text); }
.rk-pagination { margin-top: 36px; }
.rk-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rk-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--rk-line); border-radius: 9px;
  color: var(--rk-muted); text-decoration: none; font-size: 14px;
}
.rk-pagination .page-numbers:hover { border-color: var(--rk-green-light, #5a8a35); color: var(--rk-text); }
.rk-pagination .page-numbers.current { background: var(--rk-red, #c93a2e); border-color: var(--rk-red, #c93a2e); color: #fff; }

@media (max-width: 1100px) {
  .rk-article-grid { grid-template-columns: minmax(0, 1fr); }
  .rk-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .rk-sidebar-box { flex: 1 1 280px; }
}
@media (max-width: 991px) { .rk-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rk-feed { grid-template-columns: minmax(0, 1fr); }
  .rk-article-body { font-size: 16px; }
}
