/*
 * blog.css — News & Articles styles for Зелёный Дом
 * Depends on info-pages.css for base CSS variables.
 * Do NOT redefine variables already in info-pages.css.
 */

/* ============================================================
   LOCAL VARIABLES
   ============================================================ */
:root {
  --orange: #FF7700;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,.1);
  --transition: .2s ease;
  --brand-green: #01A572;
  --brand-green-light: #e6f5f0;
  --brand-dark: #1a1a1a;
  --text-primary: #222222;
  --text-secondary: #444444;
  --text-muted: #666666;
  --border-color: #c9c9c9; /* было #e6e6e6 - слишком светлое, границы почти не видны */
  --bg-soft: #f8faf9;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* ============================================ */
/* ХЛЕБНЫЕ КРОШКИ */
/* ============================================ */

/* ============================================================
   1. BLOG LISTING PAGE
   ============================================================ */
/* ── Hero / page header ── */
.blog-hero {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  padding: 32px 0 24px;
  margin-bottom: 32px;
}

.blog-wrapper{
  max-width: 1400px;
  margin: 0 auto;
}

/* Крошки блога - в ТОЙ ЖЕ колонке, что герой и текст статьи (1400px).
   Общий партиал крошек рисует .breadcrumbs-container шириной 1900px, и после
   перехода на него цепочка уехала левее заголовка: на 1920px - на ~250px, на
   1600px - на ~100px. Сужаем только на страницах блога, контракт партиала для
   остального сайта не трогаем. */
.blog-page .breadcrumbs-container,
.article-page .breadcrumbs-container{
  max-width: 1400px;
}

.blog-hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 12px;
}

.blog-hero-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-green);
  margin-bottom: 8px;
}

.blog-hero-title {
  font-size: 36px;
  font-weight: 700;
  /* Было var(--brand-dark) = #1a1a1a - ещё один «почти чёрный» из пяти,
     на которые разъехались H1 витрины. DESIGN.md: цвет H1 ВСЕГДА ink.
     Переменную не трогаю: она объявлена в этом же файле и использовалась ровно
     здесь.
     */
  color: var(--zd-ink, #1F1F1F);
  margin: 0 0 12px;
  line-height: 1.2;
}

.blog-hero-desc {
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ── Category filter bar ── */
/* Прокрутка вбок и подсказка о ней - в .zd-scroll-row (main.css), класс
   стоит в разметке. Здесь только раскладка самой ленты. */
.blog-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 4px;
}

.blog-cat-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  /* Поимённо вместо `all` (DESIGN.md, «Движение»). */
  transition: background var(--zd-dur-fast) var(--zd-ease),
              border-color var(--zd-dur-fast) var(--zd-ease),
              color var(--zd-dur-fast) var(--zd-ease);
  color: var(--text-secondary);
  font-family: inherit;
  line-height: 1;
}

.blog-cat-btn:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.blog-cat-btn.active {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

/* ── Featured post (large card) ── */
.blog-featured {
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid #E8EAED;
  margin-bottom: 40px;
  min-height: 380px;
}

.blog-featured-img {
  flex: 0 0 55%;
  position: relative;
  overflow: hidden;
}

.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.blog-featured-body {
  flex: 1;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-cat {
  margin-bottom: 12px;
}

.blog-featured-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 12px;
  display: block;
  transition: color var(--transition);
}

.blog-featured-title:hover {
  color: var(--brand-green);
}

.blog-featured-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #616161;
  margin-bottom: 20px;
}

.blog-featured-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.blog-featured-read {
  /* uses .btn-read or .btn-read-outline */
  align-self: flex-start;
}

/* ── Blog grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

/* ── Blog card ── */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid #E8EAED;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-cat {
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.blog-card-title:hover {
  color: var(--brand-green);
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #616161;
  margin-bottom: 12px;
}

.blog-card-meta svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.blog-card-footer {
  margin-top: auto;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card-date {
  font-size: 14px;
  color: #616161;
}

.blog-read-btn {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-green);
  text-decoration: none;
  transition: text-decoration var(--transition);
}

.blog-read-btn:hover {
  text-decoration: underline;
}

/* ── Category badges ── */
.blog-badge {
  display: inline-flex;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.6;
}

.blog-badge-news {
  background: #e8f5ff;
  color: #0070c9;
}

.blog-badge-garden {
  background: #edfaf2;
  color: #01A572;
}

.blog-badge-tips {
  background: #fff8e6;
  color: #d97706;
}

.blog-badge-reviews {
  background: #fde8f0;
  color: #c0366b;
}

.blog-badge-articles {
  background: #f0edff;
  color: #6d40c4;
}

.blog-badge-care {
  background: #e8f8f3;
  color: #01A572;
}

/* ── Read buttons (large) ── */
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--brand-green);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.btn-read:hover {
  background: #018f63;
  color: #fff;
}

.btn-read-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.btn-read-outline:hover {
  background: var(--brand-green);
  color: #fff;
}

/* ── Pagination ── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 0 40px;
}

.blog-page-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--zd-dur-fast) var(--zd-ease),
              border-color var(--zd-dur-fast) var(--zd-ease),
              color var(--zd-dur-fast) var(--zd-ease);
  font-family: inherit;
  flex-shrink: 0;
}

.blog-page-btn:hover,
.blog-page-btn.active {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}

.blog-page-dots {
  color: #8a8a8a;
  padding: 0 4px;
  font-size: 14px;
  user-select: none;
}

/* ============================================================
   2. SINGLE ARTICLE / NEWS PAGE
   ============================================================ */

/* ── Two-column layout wrapper ── */
.article-wrap {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ── Main content area ── */
.article-main {
  min-width: 0; /* prevent grid blowout */
}

/* ── Article head ── */
.article-head {
  padding: 32px 0 0;
}

.article-head-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-head-date {
  font-size: 14px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-head-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

.article-read-time {
  font-size: 14px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0 0 20px;
}

/* ── Hero image ── */
.article-hero {
  margin-bottom: 32px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  position: relative;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Инфографика: кликабельные точки на фото (DEMO) ──
   Тестовая фича с грилл-сессии: координаты в % от размера фото, поэтому
   адаптивны без пересчёта на любом брейкпоинте. Ссылки ведут на demo-товары
   products/card.html - реальную привязку "фото → товар" и визуальный
   редактор координат в админке сделает бэкендер, если фича приживётся за
   пределами теста.
   */
.article-hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(1, 165, 114, 0.9);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  animation: articleHotspotPulse 2s ease-in-out infinite;
}

.article-hotspot:hover {
  background: #017a54;
  animation-play-state: paused;
}

@keyframes articleHotspotPulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(1, 165, 114, 0.5); }
  50% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(1, 165, 114, 0); }
}

/* ── Article body ── */
.article-body {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  border: 1.5px solid #E8EAED;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-green-light);
  line-height: 1.3;
}

.article-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
  line-height: 1.35;
}

.article-body h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 12px 0;
  display: block;
}

.article-body blockquote {
  border-left: 4px solid var(--brand-green);
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--brand-green-light);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: var(--brand-green);
  text-decoration: underline;
  transition: opacity var(--transition);
}

.article-body a:hover {
  opacity: .8;
}

.article-body strong {
  font-weight: 700;
  color: var(--text-primary);
}

.article-body em {
  font-style: italic;
}

/*
 * ТАБЛИЦУ ВСТАВЛЯЮТ ИЗ WORD, И ОНА БЫВАЕТ ЛЮБОЙ ШИРИНЫ.
 *
 * width:100% сжимал любую таблицу из Word до ширины колонки статьи: на
 * телефоне слова рвались по слогам, а лишние колонки просто пропадали за
 * краем без возможности пролистать. То же правило, что в css/card.php для
 * описания товара (.description-summernote table) - поведение таблицы должно
 * быть одинаковым во всех местах, где текст редактируют одним визуальным
 * редактором (Summernote).
 *
 * Стало: таблица сама себе контейнер прокрутки. Колонка держит свою ширину
 * до 120px (столько нужно, чтобы «Наименование» не переносилось по слогам,
 * замер), лишнее листается пальцем вбок вместо того, чтобы ломать вёрстку
 * страницы.
 */
.article-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
/* Ширина колонки, заданная в Word (width= или style="width:..."), внутри
   прокручиваемой таблицы больше не нужно сжимать - трогаем только верхнюю
   границу, чтобы одна колонка не съедала экран целиком. */
.article-body table[style*="width"],
.article-body table[width] { width: auto; }

.article-body th,
.article-body td {
  padding: 12px 12px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  min-width: 120px;
  /* Не переносим - таблица листается вбок (см. .description-summernote td
     в css/card.css, там же причина). Поведение таблиц на сайте одно. */
  white-space: nowrap;
}
.article-body td[style*="white-space"],
.article-body th[style*="white-space"] { white-space: revert; }
.article-body td[style*="width"],
.article-body th[style*="width"],
.article-body td[width],
.article-body th[width] { max-width: 60vw; }

.article-body th {
  background: var(--brand-green-light);
  font-weight: 700;
  color: var(--text-primary);
}

.article-body tr:nth-child(even) td {
  background: #fafafa;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 32px 0;
}

/* ── Article sidebar ── */
.article-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar block */
.aside-block {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1.5px solid #E8EAED;
}

.aside-block-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-green);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

/* ── Table of Contents ── */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-item a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 8px 8px;
  border-radius: 8px;
  transition: background-color .15s ease, color .15s ease;
  line-height: 1.4;
}

.toc-item a:hover,
.toc-item.active a {
  background-color: var(--brand-green-light);
  color: var(--brand-green);
}

/* ── Tag cloud ── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.tag:hover {
  background-color: var(--brand-green-light);
  color: var(--brand-green);
}

/* ── Share buttons ── */
.share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s ease;
  font-family: inherit;
  line-height: 1;
}

.share-btn:hover {
  opacity: .85;
}

.share-btn-tg {
  background: #29A8E3;
  color: #fff;
}

.share-btn-vk {
  background: #4a76a8;
  color: #fff;
}

.share-btn-wa {
  background: #2cb742;
  color: #fff;
}

.share-btn-copy {
  background: #f0f0f0;
  color: #555;
}

/* ── Author box ── */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #E8EAED;
  margin-top: 32px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-green);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.author-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.author-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Related posts ── */
.related-posts {
  margin-top: 48px;
}

.related-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Related grid reuses .blog-card styles */

/* ── Article navigation (prev/next) ── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.article-nav-btn {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  transition: border-color .2s ease;
  border: 1.5px solid #E8EAED;
}

.article-nav-btn:hover {
  border-color: var(--brand-green);
}

.article-nav-btn.next {
  align-items: flex-end;
  text-align: right;
}

.article-nav-label {
  font-size: 14px;
  color: #aaa;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.article-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color var(--transition);
}

.article-nav-btn:hover .article-nav-title {
  color: var(--brand-green);
}

/* ============================================================
   3. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ≤1100px — collapse to single column, sidebar drops below */
@media (max-width: 1100px) {
  .article-wrap {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

/* ≤900px — blog grid: 2 columns */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≤768px — featured post stacks, hero title smaller */
@media (max-width: 768px) {
  .blog-featured {
    flex-direction: column;
  }

  .blog-featured-img {
    flex: 0 0 220px;
    width: 100%;
  }

  .blog-hero-title {
    font-size: 28px;
  }

  .article-title {
    font-size: 28px;
  }

  .article-body {
    padding: 32px 32px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≤640px — single column, tighter padding */
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-featured-body {
    padding: 20px;
  }

  .blog-featured-title {
    font-size: 18px;
  }

  .article-body {
    padding: 20px 20px;
    font-size: 16px;
  }

  .article-body h2 {
    font-size: 22px;
  }

  .article-body h3 {
    font-size: 18px;
  }

  .article-title {
    font-size: 22px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-btn.next {
    align-items: flex-start;
    text-align: left;
  }

  /* Вторая мобильная ступень заголовка убрана. Ступеней было три - 36 на
     десктопе, 28 на 768 и 22 здесь, - и на телефоне блог получался мельче
     инфостраниц того же уровня. Оставлена одна ступень (28px на 768):
     лендинговые заголовки теперь совпадают на всех узких экранах. Замер.
     */

  .related-title {
    font-size: 18px;
  }
}

/* ≤560px — blog grid single column (extra safety) */
@media (max-width: 560px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ≤480px — related grid single column */
@media (max-width: 480px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Author page (/avtor/) и подпись автора со ссылкой ── */
.author-name a { color: inherit; text-decoration: none; }
.author-name a:hover, .author-name a:focus-visible { color: var(--brand-green); }
.author-more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--brand-green); text-decoration: none; }
.author-more:hover, .author-more:focus-visible { text-decoration: underline; }

.author-hero { display: flex; gap: 32px; align-items: flex-start; padding: 32px; background: #fff; border: 1.5px solid #E8EAED; border-radius: 20px; margin-bottom: 40px; }
.author-hero__photo { flex: 0 0 220px; }
.author-hero__photo img { width: 220px; height: 280px; object-fit: cover; border-radius: 16px; display: block; background: var(--brand-green-light); }
.author-hero__body { flex: 1; min-width: 0; }
.author-hero__name { font-size: 32px; font-weight: 800; line-height: 1.15; margin: 8px 0 6px; color: var(--text-primary); }
.author-hero__position { font-size: 17px; color: var(--brand-green); font-weight: 600; margin: 0 0 16px; }
.author-hero__facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 16px; color: var(--text-secondary); }
.author-hero__facts strong { color: var(--text-primary); font-weight: 700; }
.author-hero__facts a { color: var(--brand-green); text-decoration: none; }
.author-hero__short { font-size: 17px; line-height: 1.6; color: var(--text-secondary); margin: 0 0 18px; }
.author-hero__edu { margin: 0 0 18px; }
.author-hero__edu-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 8px; }
.author-hero__edu ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.author-hero__links { display: flex; flex-wrap: wrap; gap: 10px; }
.author-hero__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--brand-green); color: var(--brand-green); font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.author-hero__links a:hover, .author-hero__links a:focus-visible { background: var(--brand-green); color: #fff; }

.author-about { margin-bottom: 40px; }
.author-about h2, .author-articles h2 { font-size: 24px; font-weight: 700; margin: 0 0 18px; color: var(--text-primary); }
.author-about__text { font-size: 17px; line-height: 1.7; color: var(--text-secondary); max-width: 860px; }
.author-about__text p { margin: 0 0 14px; }
.author-about__text ul, .author-about__text ol { margin: 0 0 14px; padding-left: 22px; }
.author-articles__empty { font-size: 16px; color: var(--text-muted); }

.authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.author-card { display: block; background: #fff; border: 1.5px solid #E8EAED; border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.author-card:hover, .author-card:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }
.author-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--brand-green-light); }
.author-card__body { padding: 16px 18px 18px; }
.author-card__name { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
.author-card__position { font-size: 15px; color: var(--brand-green); font-weight: 600; margin: 0 0 8px; }
.author-card__meta { font-size: 14px; color: var(--text-muted); margin: 0; }

@media (max-width: 767.98px) {
  .author-hero { flex-direction: column; padding: 20px; gap: 18px; border-radius: 16px; }
  .author-hero__photo { flex-basis: auto; }
  .author-hero__photo img { width: 160px; height: 200px; }
  .author-hero__name { font-size: 26px; }
  .author-hero__facts { flex-direction: column; gap: 8px; }
  .authors-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

/* ==== .zi: значки шрифта zd-ui вместо svg (сгенерировано по правилам svg выше) ==== */
.blog-featured-meta .zi { width: 14px; font-size: 14px; height: 14px; flex-shrink: 0; }
.blog-card-meta .zi { width: 13px; font-size: 13px; height: 13px; flex-shrink: 0; }
