/* ============================================================
   Aurora — светлый журнальный блог (своя вёрстка, "Наши шаблоны 2.0")
   Вкручены ТОЛЬКО --accent/--accent-dim (конвенция проекта для
   fullTemplate-лейаутов, см. CLAUDE.md "Wire only --accent/--accent-dim") —
   их подменяет writePalette() в generateSite.js.
   Остальные переменные нарочно названы с префиксом --au- (--au-bg/--au-panel/
   --au-border/--au-radius/--au-text/--au-text-dim), А НЕ --bg/--bg-panel/
   --border/--radius/--text — те самые имена, которые writeBackgroundTone()/
   writeStyleVariant()/writeCardShape() ищут регэкспом в paletteFile и
   подменяют БЕЗ разбора по fullTemplate/own (это разруливает сам факт
   отсутствия совпадения, см. точку 2 чеклиста). Если бы они тут остались
   под оригинальными именами — скрытые на вкладке "2.0" пикеры фона/шрифта/
   формы карточек могли бы тихо переписать половину этой палитры поверх
   нарочно подобранных значений. Расплата: общий блок "Содержание"/FAQ в
   includes/head-meta.php (var(--bg-panel, #f6f6f8) и т.п.) не подхватывает
   точный тон Aurora и красится в свои дефолтные серые — ожидаемо и
   безопасно, тот же исход, что и у всех остальных fullTemplate-лейаутов.
   ============================================================ */

:root {
  --accent: #EB5757;
  --accent-dim: #B33A3A;
  --au-bg: #FFFFFF;
  --au-bg-soft: #F4F8FB;
  --au-panel: #FFFFFF;
  --au-panel-2: #EEF5FC;
  --au-border: #E3EAF2;
  --au-text: #16284A;
  --au-text-dim: #64748B;
  --au-radius: 16px;
  --au-radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(22, 40, 74, 0.06);
  --shadow-md: 0 8px 28px rgba(22, 40, 74, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Цвет за пределами боксовой колонки .au-shell — виден в полях по бокам
     на широких экранах, и там же показывается "Фон сайта через ИИ", если
     оператор его сгенерировал (includes/header.php подменяет background на
     body целиком инлайн-style, см. комментарий там же). */
  --au-page-bg: #E7ECF2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--au-page-bg); }
body {
  margin: 0;
  background: var(--au-page-bg);
  background-attachment: fixed;
  color: var(--au-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* ── Боксовая колонка ──────────────────────────────────────── */
/* БЕЗ overflow-x: hidden — проверено живьём: когда у overflow-x задано
   что-то кроме visible, браузер по спецификации вычисляет overflow-y тоже
   как auto (а не оставляет visible), и .au-shell сам становится ближайшим
   scroll-контейнером для .listing-sidebar-au/.article-layout aside
   (position: sticky; top: 24px) — а поскольку сам .au-shell не скроллится
   независимо (растягивается по контенту, высоту не ограничиваем), sticky
   относительно него на деле просто переставал работать: сайдбар уезжал
   вместе со страницей вместо того, чтобы прилипать. Внутри Aurora и так
   всё укладывается в .container (max-width:1180px), выходящих за грань
   .au-shell элементов нет — обрезать нечего, так что это свойство тут и не
   нужно (в отличие от Вестника с его full-bleed секциями во всю ширину).
*/
.au-shell {
  max-width: 1360px;
  margin: 0 auto;
  background: var(--au-bg);
  box-shadow: 0 0 60px rgba(22, 40, 74, 0.12);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

section { padding: 48px 0; }

h1, h2, h3, h4 { color: var(--au-text); margin: 0 0 12px; line-height: 1.25; font-weight: 700; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--au-panel); color: var(--au-text); border-color: var(--au-border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost.active, a.btn.btn-primary[aria-current] { background: var(--accent); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 10px;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 14%, white);
  background: rgba(29, 170, 102, 0.12);
  color: var(--accent-dim);
  white-space: nowrap;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--au-bg);
  border-bottom: 1px solid var(--au-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo-block { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
/* Сгенерированный оператором логотип (logo_image_url) — замена .logo-mark
   целиком, не поверх неё, см. includes/header.php и footer.php. */
.logo-img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 800; font-size: 17px; color: var(--au-text); }
.logo-tagline { font-size: 11.5px; color: var(--au-text-dim); }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
  position: relative;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--au-text);
  white-space: nowrap;
  padding: 6px 0;
}
.nav-link:hover { color: var(--accent); }
.nav-more { position: relative; }
.nav-more-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; color: var(--au-text);
  display: flex; align-items: center; gap: 4px; padding: 6px 0;
}
.nav-more-caret { font-size: 10px; }
.nav-more-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--au-panel);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius-sm);
  box-shadow: var(--shadow-md);
  padding: 8px;
  min-width: 200px;
  z-index: 40;
}
.nav-more-dropdown.open { display: flex; flex-direction: column; gap: 2px; }
.nav-more-dropdown a { padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.nav-more-dropdown a:hover { background: var(--au-bg-soft); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--au-text);
}
.icon-btn:hover { background: var(--au-bg-soft); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 38px; height: 38px; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--au-text); margin: 0 auto; border-radius: 1px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--au-panel);
  border-top: 1px solid var(--au-border);
  padding: 8px 20px 16px;
}
.nav-mobile a { padding: 11px 0; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--au-border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

@media (max-width: 880px) {
  .nav, .header-actions .icon-btn[aria-label="Все статьи"] { display: none; }
  .burger { display: flex; }
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs { background: var(--au-bg-soft); border-bottom: 1px solid var(--au-border); padding: 14px 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--au-text-dim); }
.breadcrumbs a { color: var(--au-text-dim); }
.breadcrumbs a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-au { background: var(--au-bg-soft); overflow: hidden; }
.hero-au .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; min-height: 360px; }
.hero-au-text { padding: 40px 0; }
.hero-au-title { font-size: 38px; margin-bottom: 16px; }
.hero-au-desc { color: var(--au-text-dim); font-size: 16px; max-width: 460px; margin-bottom: 26px; }
.hero-au-media {
  height: 340px;
  border-radius: var(--au-radius);
  background-color: var(--au-panel-2);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.hero-au-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(22,40,74,0.06) 100%);
}
@media (max-width: 880px) {
  .hero-au .container { grid-template-columns: 1fr; min-height: 0; }
  .hero-au-text { padding: 32px 0 8px; }
  .hero-au-media { height: 220px; order: -1; }
  .hero-au-title { font-size: 28px; }
}

/* ── Trust-полоса ─────────────────────────────────────────── */
.features-strip { padding: 36px 0; border-bottom: 1px solid var(--au-border); }
.features-strip .container {
  display: flex;
  flex-wrap: wrap;
}
.feature-item {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 20px;
  border-left: 1px solid var(--au-border);
}
.feature-item:first-child { border-left: none; padding-left: 0; }
.feature-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(29, 170, 102, 0.12);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--accent-dim); fill: none; stroke-width: 1.8; }
.feature-title { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.feature-desc { font-size: 13px; color: var(--au-text-dim); }
@media (max-width: 720px) {
  .feature-item { flex: 1 1 100%; border-left: none; border-top: 1px solid var(--au-border); padding: 16px 0 0; }
  .feature-item:first-child { border-top: none; }
}

/* ── Section head ─────────────────────────────────────────── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head-link { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.section-head-link:hover { color: var(--accent-dim); }

/* ── Карточки статей ──────────────────────────────────────── */
.cards-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.cards-grid .article-card.is-grid { flex: 1 1 250px; min-width: 0; }

.cards-list { display: flex; flex-direction: column; gap: 18px; }

.article-card {
  display: block;
  background: var(--au-panel);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.article-card.is-grid .article-card-cover { height: 170px; }
.article-card.is-grid .article-card-body { padding: 16px 18px 18px; }

.article-card.is-row { display: flex; align-items: stretch; gap: 0; }
.article-card.is-row .article-card-cover { width: 190px; height: auto; flex-shrink: 0; }
.article-card.is-row .article-card-body { padding: 16px 20px; flex: 1; min-width: 0; }
@media (max-width: 560px) {
  .article-card.is-row { flex-direction: column; }
  .article-card.is-row .article-card-cover { width: 100%; height: 150px; }
}

.article-card-cover {
  background-size: cover;
  background-position: center;
  background-color: var(--au-panel-2);
}
.article-card-cover-placeholder {
  background: linear-gradient(135deg, var(--au-panel-2), var(--au-bg-soft));
}

.article-card-title {
  font-size: 16.5px;
  margin: 10px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card.is-row .article-card-title { -webkit-line-clamp: 2; }
.article-card-excerpt {
  font-size: 13.5px;
  color: var(--au-text-dim);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--au-text-dim);
}
.article-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.article-card-meta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ── Двухколоночный листинг (главная / рубрика / архив) ──────── */
.listing-layout-au { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.listing-sidebar-au { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
@media (max-width: 960px) {
  .listing-layout-au { grid-template-columns: 1fr; }
  .listing-sidebar-au { position: static; }
}

.sidebar-block {
  background: var(--au-panel);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius);
  padding: 20px;
}
.sidebar-block-title { font-weight: 700; font-size: 15px; margin-bottom: 14px; }

.sidebar-popular-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--au-border); }
.sidebar-popular-item:first-child { border-top: none; padding-top: 0; }
.sidebar-popular-cover {
  width: 60px; height: 60px; flex-shrink: 0; border-radius: var(--au-radius-sm);
  background-size: cover; background-position: center; background-color: var(--au-panel-2);
}
.sidebar-popular-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.sidebar-popular-date { font-size: 11.5px; color: var(--au-text-dim); }

.sidebar-highlight {
  background: linear-gradient(165deg, rgba(29,170,102,0.10), rgba(29,170,102,0.03));
  border: 1px solid rgba(29,170,102,0.22);
  border-radius: var(--au-radius);
  padding: 22px;
}
.sidebar-highlight-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(29,170,102,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.sidebar-highlight-icon svg { width: 18px; height: 18px; stroke: var(--accent-dim); fill: none; stroke-width: 1.8; }
.sidebar-highlight-title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.sidebar-highlight-text { font-size: 13.5px; color: var(--au-text-dim); margin-bottom: 0; }

.share-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--au-panel);
  border: 1px solid var(--au-border);
  font-size: 13px; font-weight: 600; color: var(--au-text);
  cursor: pointer;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent-dim); }
.share-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.cat-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--au-bg-soft);
  border: 1px solid var(--au-border);
  font-size: 13px; font-weight: 600; color: var(--au-text);
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent-dim); }

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--au-border);
  font-size: 14px; font-weight: 600;
}
.sidebar-link:first-child { border-top: none; }
.sidebar-link:hover { color: var(--accent); }
.sidebar-link-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); }
.sidebar-link-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sidebar-link-count { margin-left: auto; font-size: 12px; color: var(--au-text-dim); font-weight: 600; }
.sidebar-link.active { color: var(--accent); }

/* ── CTA-плашка ───────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(120deg, rgba(29,170,102,0.08), rgba(29,170,102,0.02));
  border: 1px solid rgba(29,170,102,0.18);
  border-radius: var(--au-radius);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--au-text-dim); margin: 0; max-width: 480px; }

/* ── Категорийные вкладки (архив статей) ─────────────────────── */
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat-tab { padding: 8px 16px; border-radius: 999px; background: var(--au-panel); border: 1px solid var(--au-border); font-size: 13.5px; font-weight: 600; }
.cat-tab:hover { border-color: var(--accent); color: var(--accent-dim); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Страница статьи ──────────────────────────────────────── */
.article-head { padding-bottom: 0; }
.article-head h1 { margin: 10px 0 16px; max-width: 820px; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--au-text-dim); }
.article-meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-row svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.article-cover-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--au-radius);
  margin: 26px 0;
}

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.article-layout .article-main-col { min-width: 0; }
.article-layout aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-layout aside { position: static; }
}

.article-body { font-size: 16.5px; color: var(--au-text); }
.article-body h2 { margin-top: 36px; font-size: 24px; }
.article-body h3 { margin-top: 24px; font-size: 18px; }
.article-body p { margin-bottom: 16px; }
.article-body a { color: var(--accent-dim); text-decoration: underline; text-underline-offset: 2px; }
.article-body img { border-radius: var(--au-radius-sm); margin: 18px 0; }
.article-body ul { margin: 0 0 18px; padding-left: 4px; }
.article-body ul > li {
  position: relative;
  padding: 6px 0 6px 26px;
}
.article-body ul > li::before {
  content: '';
  position: absolute; left: 0; top: 13px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.article-body ol { margin: 0 0 20px; padding: 0; counter-reset: au-ol; }
.article-body ol > li {
  counter-increment: au-ol;
  position: relative;
  padding: 2px 0 18px 46px;
  min-height: 30px;
}
.article-body ol > li::before {
  content: counter(au-ol);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(29,170,102,0.14);
  color: var(--accent-dim);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.article-body ol > li > strong:first-child,
.article-body ol > li > b:first-child { display: block; margin-bottom: 4px; font-size: 16px; }

.article-body blockquote {
  margin: 20px 0;
  padding: 16px 20px 16px 52px;
  background: #FDECEC;
  border: 1px solid #F8CACA;
  border-radius: var(--au-radius-sm);
  color: #8A1F1F;
  position: relative;
  font-size: 15px;
}
.article-body blockquote::before {
  content: '!';
  position: absolute; left: 18px; top: 16px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #DC2626;
  color: #fff;
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.article-body blockquote p { margin: 0; color: inherit; }
.article-body blockquote p:first-child { font-weight: 700; margin-bottom: 4px; }

.article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--au-border); padding: 9px 12px; text-align: left; font-size: 14.5px; }
.article-body th { background: var(--au-bg-soft); }

/* Блок "Содержание" (.article-toc) и FAQ-аккордеон (.faq-item) оформляются
   ОБЩИМ стилем в includes/head-meta.php через var(--au-panel)/var(--au-border)/
   var(--au-radius)/var(--accent) — он же и вставляет TOC, через
   article_content_html(), первым элементом в начало .article-body (единая
   точка рендера тела статьи во всех лейаутах проекта, см. CLAUDE.md) — он
   НЕ выносится в сайдбар отдельно, чтобы не дублировать эту логику. */
.article-body .article-toc { margin-bottom: 28px; }

.article-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--au-border);
}
.article-adjacent-link { padding: 4px 0; }
.article-adjacent-next { text-align: right; }
.article-adjacent-dir { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.article-adjacent-title { font-size: 14.5px; font-weight: 600; }
.article-adjacent-link:hover .article-adjacent-title { color: var(--accent-dim); }
@media (max-width: 600px) {
  .article-adjacent { grid-template-columns: 1fr; }
  .article-adjacent-next { text-align: left; }
}

/* ── Рейтинг статьи ───────────────────────────────────────── */
.article-rating {
  margin-top: 36px;
  padding: 22px;
  background: var(--au-bg-soft);
  border: 1px solid var(--au-border);
  border-radius: var(--au-radius);
}
.article-rating-title { font-weight: 700; margin-bottom: 10px; }
.article-rating-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.article-rating-value { font-size: 22px; font-weight: 800; }
.article-rating-stars-display { position: relative; font-size: 18px; letter-spacing: 2px; }
.article-rating-stars-bg { color: var(--au-border); }
.article-rating-stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: #F5A623; white-space: nowrap; }
.article-rating-count { font-size: 13px; color: var(--au-text-dim); }
.article-rating-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-rating-picker-label { font-size: 13.5px; color: var(--au-text-dim); }
.article-rating-picker-stars { display: flex; gap: 4px; }
.rating-star-btn { background: none; border: none; cursor: pointer; font-size: 22px; color: var(--au-border); line-height: 1; padding: 2px; }
.rating-star-btn.is-active { color: #F5A623; }
.article-rating-thanks { font-size: 14px; color: var(--accent-dim); font-weight: 600; }

/* ── Похожие статьи ───────────────────────────────────────── */
.related-section { padding-top: 0; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--au-bg-soft); border-top: 1px solid var(--au-border); padding-top: 44px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 32px; }
.footer-col-title { font-weight: 700; font-size: 13.5px; margin-bottom: 12px; color: var(--au-text); }
.footer-col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--au-text-dim); }
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer { border-top: 1px solid var(--au-border); padding: 16px 0; font-size: 12px; color: var(--au-text-dim); text-align: center; }
.footer-bottom { border-top: 1px solid var(--au-border); padding: 16px 0 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--au-text-dim); }
.footer-legal a { color: var(--au-text-dim); }
.footer-legal a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Кастомный блок "О блоге" (admin/homepage-block.php) ─────── */
.homepage-about {
  background: var(--au-panel);
  border-top: 1px solid var(--au-border);
  border-bottom: 1px solid var(--au-border);
}
.homepage-about .container { max-width: 820px; padding-top: 4px; }
.homepage-about h2 { margin-top: 0; }
.homepage-about p { color: var(--au-text-dim); }

/* ── Контент: однородные отступы секций на мобиле ────────────── */
@media (max-width: 640px) {
  section { padding: 32px 0; }
  h1 { font-size: 27px; }
  .listing-layout-au { gap: 24px; }
}
