/* =========================================================
   Блог: сетка статей (/blog/) и страница одиночной статьи
   ========================================================= */

/* ===== Плитки статей ===== */
.blog-grid{
  --row-gap-y: 40rem;
}
@media (max-width: 1650px){
  .blog-grid{ --row-gap-y: 32rem; }
}
@media (max-width: 991px){
  .blog-grid{ --row-gap-y: 24rem; }
}

.blog-card{
  display: block;
  height: 100%;
  text-decoration: none;
  color: var(--black);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.blog-card:hover{
  border-color: #08A09C;
}

.blog-card-img{
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-low);
}
.blog-card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.blog-card:hover .blog-card-img img{
  transform: scale(1.04);
}
.blog-card-img-placeholder{
  width: 100%;
  height: 100%;
  background: linear-gradient(207.57deg, rgba(8,160,156,.12) 0%, rgba(64,76,125,.12) 100%);
}

.blog-card-content{
  padding: 24rem;
  box-sizing: border-box;
}
@media (max-width: 1650px){
  .blog-card-content{ padding: 20rem; }
}
.blog-card-date{
  display: block;
  font-size: 13rem;
  opacity: .5;
  margin-bottom: 10rem;
}
.blog-card-title{
  margin-bottom: 10rem !important;
}
.blog-card-excerpt{
  margin: 0;
  opacity: .6;
  font-size: 15rem;
  line-height: 1.5;
}

/* ===== Пагинация ===== */
.blog-pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
  margin-top: 60rem;
}
@media (max-width: 1650px){
  .blog-pagination{ margin-top: 40rem; }
}
.blog-pagination .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40rem;
  height: 40rem;
  padding: 0 8rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-xs);
  text-decoration: none;
  color: var(--black);
  font-size: 15rem;
  box-sizing: border-box;
  transition: border-color .2s ease, background-color .2s ease;
}
.blog-pagination .page-numbers.current{
  background: linear-gradient(207.57deg, #08A09C 0%, #404C7D 100%);
  border-color: transparent;
  color: #fff;
}
.blog-pagination .page-numbers:hover:not(.current){
  border-color: #08A09C;
}
.blog-pagination .page-numbers.dots{
  border: none;
}

/* ===== Страница одиночной статьи ===== */
.blog-post-header{
  max-width: 900rem;
  margin: 0 auto 32rem;
  text-align: center;
}
.blog-post-date{
  font-size: 14rem;
  opacity: .5;
  margin-bottom: 12rem;
}
.blog-post-header h1{
  margin: 0;
}

.blog-post-thumb{
  max-width: 1100rem;
  margin: 0 auto 50rem;
  border-radius: var(--radius-xs);
  overflow: hidden;
}
@media (max-width: 1650px){
  .blog-post-thumb{ margin-bottom: 40rem; }
}
.blog-post-thumb img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.blog-post-content{
  max-width: 820rem;
  margin: 0 auto;
  font-size: 18rem;
  line-height: 1.7;
}
@media (max-width: 1650px){
  .blog-post-content{ font-size: 16rem; }
}
.blog-post-content p{
  margin: 0 0 24rem;
}
.blog-post-content h2,
.blog-post-content h3{
  margin: 48rem 0 20rem;
}
.blog-post-content h2:first-child,
.blog-post-content h3:first-child{
  margin-top: 0;
}
.blog-post-content ul,
.blog-post-content ol{
  margin: 0 0 24rem;
  padding-left: 22rem;
}
.blog-post-content li:not(:last-child){
  margin-bottom: 8rem;
}
.blog-post-content img{
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xs);
  display: block;
  margin: 32rem auto;
}
.blog-post-content figure{
  margin: 32rem 0;
}
.blog-post-content figcaption{
  text-align: center;
  font-size: 14rem;
  opacity: .5;
  margin-top: 10rem;
}
.blog-post-content blockquote{
  margin: 32rem 0;
  padding: 24rem 32rem;
  border-left: 3px solid #08A09C;
  background: var(--gray-low);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-style: italic;
}
.blog-post-content a{
  color: #08A09C;
  text-decoration: underline;
}

@media (max-width: 576px){
  .blog-card-content{ padding: 16rem; }
  .blog-post-content{ font-size: 15rem; }
}



.blog-post-content h2,
.blog-post-content h3{
  margin: 48rem 0 20rem;
  font-size: 32rem;      /* было: наследовался огромный var(--h2-fz) секций сайта */
  line-height: 1.25;
}
.blog-post-content h3{
  font-size: 24rem;
}
@media (max-width: 1650px){
  .blog-post-content h2{ font-size: 26rem; }
  .blog-post-content h3{ font-size: 20rem; }
}
.blog-post-content h2:first-child,
.blog-post-content h3:first-child{
  margin-top: 0;
}


/* ===== HERO статьи (offer-inner) ===== */
.blog-post-col{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-post-date{
  font-size: 14rem;
  opacity: .5;
  margin-bottom: 12rem;
}
.blog-post-hero h1{
  margin-bottom: 16rem;
}
.blog-post-lead{
  opacity: .6;
  margin: 0;
}

/* ===== Тело статьи ниже hero ===== */
.blog-post-body .blog-post-content{
  max-width: 820rem;
  margin: 0 auto;
  font-size: 18rem;
  line-height: 1.7;
}