/* ===== Swiper ===== */
#blog .blog-grid {
  display: flex!important;
  gap: unset!important;
}
#blog .blog-grid.swiper {
  position: relative;
  overflow: hidden;
  min-height: 504px;
}

#blog .swiper-wrapper {
  display: flex;
  /* Убираем grid, т.к. Swiper управляет позиционированием */
}

#blog .swiper-slide {
  height: auto;
  /* Важно для корректной высоты карточек */
}

/* Адаптация карточек для слайдера */
#blog .blog-card {
  display: flex;
  flex-direction: column;
  width: 33%;
}

/* Пагинация */
#blog .swiper-pagination {
  position: relative;
  margin-top: 20px;
  text-align: center;
}

#blog .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #cbd2dc;
  opacity: 1;
  margin: 0 4px;
}

#blog .swiper-pagination-bullet-active {
  background: #2d77e8;
}

#blog .wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#blog .wrapper > * {
  width: 50vw;
}

/* ===== Хлебные крошки ===== */
#blog .breadcrumbs {
  margin-bottom: 20px;
  margin-top: 40px;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #5e6272;
  padding: 0;
}

#blog .breadcrumbs span {
  color: #141b31;
  font-weight: 700;
  line-height: 22px;
}

#blog .divider {
  height: 1px;
  background-color: #e1e7f0b2;
  margin-bottom: 20px;
}

/* ===== Теги ===== */
#blog .tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

#blog .tag {
  cursor: auto;
  display: inline-block;
  padding: 9px 11px;
  border-radius: 30px;
  font-weight: 400;
  font-size: 12px;
  line-height: 12px;
  color: #141b31;
  border: 0;
}
#blog .tag:hover {
  border: 0;
}

/* ===== Заголовок статьи ===== */
#blog .article-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 45px;
  color: #141b31;
  margin-bottom: 20px;
  letter-spacing: -0.05em;
}
#blog .article-text {
  width: 80%;
}
#blog .article-title .orange {
  color: #ff5722;
}
#blog .article-title .blue {
  color: #2563eb;
}

/* ===== Вступление ===== */
#blog .intro {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #141b31;
  margin-bottom: 20px;
  padding-right: 10%;
}

/* ===== Мета-информация ===== */
#blog .meta {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

#blog .meta-item {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 400;
  font-size: 14px;
  line-height: 14px;
  color: #5e6272;
}

#blog .calendar img {
  height: 11px;
  width: 11px;
}
#blog .time img {
  height: 13px;
  width: 13px;
}
#blog .watch img {
  height: 13px;
  width: 16px;
}

#blog .preview-container {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
}
#blog .preview-container img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
#blog .preview-container .tablet {
  display: none;
}
#blog .preview-container .mobile {
  display: none;
}

#blog .article-text-container {
  margin-bottom: 42px;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

#blog .article-text-container > img {
  max-width: 100%;
  object-fit: cover;
}

/* ===== Изображения ===== */
#blog .hero-image {
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
}

#blog .hero-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

#blog .section-image {
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
}

#blog .section-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

/* ===== Секции статьи ===== */
#blog .article-section {
  margin-bottom: 40px;
}

#blog .article-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #1a1a2e;
  line-height: 1.3;
}

#blog .article-section p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
}

/* ===== Блок совета ===== */
#blog .tip-box {
  background-color: #e8f8e8;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

#blog .tip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #1a1a2e;
}

#blog .tip-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===== Пара изображений ===== */
#blog .image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

#blog .image-pair-item {
  border-radius: 12px;
  overflow: hidden;
}

#blog .image-pair-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== Навигация статьи ===== */
#blog .article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

#blog .nav-link {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: color 0.2s;
}

#blog .nav-next {
  font-weight: 700;
  font-size: 16px;
  line-height: 12px;
  color: #2d77e8;
  text-decoration-line: underline;
}

#blog .nav-share {
  color: #888;
  font-weight: 400;
}

#blog .nav-share img {
  height: 10px;
  width: 12px;
}

/* ===== Похожие статьи ===== */
#blog .similar-articles {
  margin-top: 20px;
}
#blog .similar-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
#blog .similar-title-text {
  font-weight: 700;
  font-size: 49px;
  line-height: 51px;
  letter-spacing: -0.05em;
  color: #141b31;
}
#blog .similar-buttons {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 49px;
  line-height: 51px;
  letter-spacing: -0.05em;
  color: #5e6272;
  gap: 6px;
}

#blog .similar-buttons div {
  cursor: pointer;
}

#blog .similar-nav {
  display: flex;
  gap: 8px;
}

#blog .nav-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.2s;
}

#blog .nav-arrow:hover {
  border-color: #2563eb;
  color: #2563eb;
}

/* ===== Карточка статьи ===== */
#blog .article-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

#blog .article-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#blog .card-image {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

#blog .card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

#blog .card-meta {
  display: flex;
  gap: 16px;
  padding: 16px 20px 0;
}

#blog .card-meta .meta-item {
  font-size: 12px;
}

#blog .card-tags {
  display: flex;
  gap: 8px;
  padding: 12px 20px 0;
  flex-wrap: wrap;
}

#blog .card-tags .tag {
  font-size: 12px;
  padding: 4px 12px;
}

#blog .card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  padding: 12px 20px 0;
  color: #2563eb;
}

#blog .card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  padding: 10px 20px 0;
  flex-grow: 1;
}

#blog .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  margin-top: auto;
}

#blog .card-link {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
}

#blog .card-link:hover {
  text-decoration: underline;
}

#blog .card-share {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}

#blog .card-share:hover {
  color: #666;
}

/* ===== TABLET (768px - 1023px) ===== */
@media (max-width: 1023px) {
  #blog .preview-container .desktop {
    display: none;
  }
  #blog .preview-container .tablet {
    display: block;
  }
  #blog .article-text {
    width: 70%;
  }
  #blog .wrapper {
    align-items: flex-start;
  }
  #blog .wrapper > * {
    width: 100%;
  }
  #blog .breadcrumbs {
    width: 80%;
  }
  #blog .article-title {
    font-weight: 700;
    font-size: 40px;
    line-height: 45px;
  }
  #blog .intro {
    padding-right: 0;
    margin-bottom: 28px;
  }
  #blog .article-text-container {
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: #5e6272;
  }

  #blog .article-section h2 {
    font-size: 20px;
  }

  #blog .image-pair-item img {
    height: 200px;
  }
}

/* ===== MOBILE (до 767px) ===== */
@media (max-width: 767px) {
  #blog .blog-grid {
    flex-direction: column;
    gap: 10px!important;
  }
  #blog .blog-card {
    width: 100%;
  }
  #blog .similar-buttons {
    display: none;
  }
  #blog .preview-container .mobile {
    display: block;
  }
  #blog .preview-container .tablet {
    display: none;
  }
  #blog .breadcrumbs {
    font-size: 12px;
    margin-bottom: 16px;
  }
  #blog .article-text {
    width: 100%;
  }
  #blog .article-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  #blog .intro {
    font-size: 15px;
  }

  #blog .meta {
    gap: 14px;
    margin-bottom: 20px;
  }

  #blog .meta-item {
    font-size: 12px;
  }

  #blog .hero-image {
    margin-bottom: 24px;
    border-radius: 12px;
  }

  #blog .hero-image img {
    border-radius: 12px;
  }

  #blog .article-section {
    margin-bottom: 32px;
  }

  #blog .article-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  #blog .article-section p {
    font-size: 14px;
  }

  #blog .tip-box {
    padding: 16px 18px;
    margin: 20px 0;
  }

  #blog .image-pair {
    grid-template-columns: 1fr;
    gap: 12px;
    position: relative;
  }

  #blog .image-pair-item img {
    height: 200px;
  }

  #blog .section-image {
    margin: 20px 0;
    border-radius: 12px;
  }

  #blog .section-image img {
    border-radius: 12px;
  }

  #blog .article-nav {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  #blog .card-image img {
    height: 180px;
  }

  #blog .card-title {
    font-size: 16px;
  }

  #blog .nav-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}
