/* === БЛОГ === */
.blog-page { padding: 30px 0; }

.blog-header { margin-bottom: 30px; }
.blog-header__title { font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.blog-header__sub { color: var(--text-muted); font-size: 15px; }

/* === СЕТКА === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-grid--small { grid-template-columns: repeat(3, 1fr); }

/* === КАРТОЧКА === */
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.blog-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transform: translateY(-2px);
}

.blog-card__cover {
  display: block;
  aspect-ratio: 16/9;
  background: #F0F1F3;
  overflow: hidden;
}
.blog-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card__date {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.blog-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--accent); }

.blog-card__excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.blog-card__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.blog-card__more:hover { text-decoration: underline; }

.blog-card--small .blog-card__title { font-size: 15px; }

/* === СТАТЬЯ === */
.article-page { padding: 30px 0; max-width: 820px; margin: 0 auto; }

.article__header { margin-bottom: 24px; }
.article__title { font-size: 34px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; }
.article__meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: var(--text-muted);
}

.article__cover {
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #F0F1F3;
  margin-bottom: 28px;
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

.article__content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
.article__content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 14px; }
.article__content h3 { font-size: 20px; font-weight: 700; margin: 26px 0 12px; }
.article__content p { margin: 0 0 16px; }
.article__content ul, .article__content ol { margin: 0 0 16px; padding-left: 26px; }
.article__content li { margin-bottom: 6px; }
.article__content a { color: var(--accent); font-weight: 500; }
.article__content a:hover { text-decoration: underline; }
.article__content blockquote {
  border-left: 4px solid var(--accent);
  padding: 8px 18px;
  margin: 20px 0;
  background: #FAFBFC;
  font-style: italic;
  color: var(--text-muted);
}
.article__content img {
  border-radius: 8px;
  margin: 20px 0;
}
.article__content code {
  background: #F0F1F3;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.article__content pre {
  background: #1F2328;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}

.article__footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* === ПОХОЖИЕ === */
.article-related { margin-top: 50px; }
.article-related__title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }

/* === ПАГИНАЦИЯ === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination__link, .pagination__current {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
  color: var(--text);
  background: #fff;
}
.pagination__link:hover { border-color: var(--accent); color: var(--accent); }
.pagination__current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

/* === АДАПТИВ === */
@media (max-width: 860px) {
  .blog-grid, .blog-grid--small { grid-template-columns: 1fr 1fr; }
  .article__title { font-size: 26px; }
}
@media (max-width: 560px) {
  .blog-grid, .blog-grid--small { grid-template-columns: 1fr; }
  .article__content { font-size: 16px; }
}