/* Блог mixer.cash: /blog, /blog/<слаг> и блок «From our blog» на главной.
   Цвета и шрифт — как в styles/build.css (зелёный #34bf14, Rubik). */

.blog {
  padding-bottom: 20pt;
}

#content .blog__lead {
  color: #7d8589;
  margin-top: -8pt;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 25px 0 10px;
  text-align: left;
}

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(59, 67, 70, 0.12);
  transform: translateY(-2px);
}

.blog-card__cover {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4f6f5;
  overflow: hidden;
}

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

.blog-card__body {
  padding: 14px 16px 18px;
}

.blog-card__meta {
  color: #adb1b6;
  font-size: 12px;
  margin-bottom: 6px;
}

/* #content .blog-grid — сильнее, чем #content .seo h2 у блока на главной */
#content .blog-grid .blog-card__title,
.blog-card__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 8px;
  text-transform: none;
}

.blog-card__title a {
  color: #3b4346;
}

.blog-card__title a:hover,
.blog-card__title a:focus {
  color: #34bf14;
  text-decoration: none;
}

#content .blog-grid .blog-card__excerpt,
.blog-card__excerpt {
  color: #7d8589;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

/* пагинация */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 30px 0 10px;
}

.blog-pagination a,
.blog-pagination span {
  min-width: 38px;
  padding: 8px 12px;
  border-radius: 20px;
  text-align: center;
  font-size: 14px;
}

.blog-pagination a {
  color: #3b4346;
  border: 1px solid #ededed;
}

.blog-pagination a:hover {
  color: #fff;
  background: #34bf14;
  border-color: #34bf14;
  text-decoration: none;
}

.blog-pagination__current {
  color: #fff;
  background: #34bf14;
}

.blog-pagination__gap {
  color: #adb1b6;
}

/* статья */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
}

.blog-article__meta {
  color: #adb1b6;
  margin-top: 25pt;
}

.blog-article__meta a {
  color: #34bf14;
}

#content .blog-article h1 {
  margin-top: 8pt;
  line-height: 1.2;
}

.blog-article__hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0 0 25pt;
}

.blog-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

#content .blog-article__body h2,
#content .blog-expert h2 {
  font-size: 20pt;
  font-weight: 400;
  margin: 28pt 0 12pt;
  line-height: 1.25;
}

#content .blog-article__body h3 {
  font-size: 15pt;
  font-weight: 500;
  margin: 20pt 0 10pt;
}

#content .blog-article__body p,
#content .blog-article__body li,
#content .blog-expert p {
  line-height: 1.65;
}

.blog-article__body a {
  color: #34bf14;
  text-decoration: underline;
}

.blog-article__body blockquote {
  border-left: 3px solid #34bf14;
  margin: 0 0 15pt;
  padding: 4pt 0 4pt 15pt;
  color: #5d666a;
}

.blog-article__body table {
  width: 100%;
  margin-bottom: 15pt;
  border-collapse: collapse;
}

.blog-article__body th,
.blog-article__body td {
  border: 1px solid #ededed;
  padding: 6px 10px;
}

.blog-expert {
  margin: 30pt 0 10pt;
  padding: 18pt 20pt 6pt;
  background: #f6fbf4;
  border-left: 3px solid #34bf14;
  border-radius: 0 6px 6px 0;
}

.blog-expert__name {
  font-size: 15pt;
  font-weight: 500;
}

.blog-expert__pos {
  color: #7d8589;
  margin-bottom: 10pt;
}

#content .blog-expert h2 {
  font-size: 15pt;
  margin-top: 10pt;
}

.blog-related {
  margin-top: 30pt;
  padding-top: 20pt;
  border-top: 1px solid #ededed;
}

#content .blog-related__title {
  font-weight: 300;
  font-size: 22pt;
  margin: 0;
}

/* главная */
.blog-latest {
  margin-top: 40px;
}

#content .blog-latest__more {
  text-align: center;
  margin-top: 25px;
}
