.hero--blog {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.hero--blog .hero_banner,
.hero--blog .hero_banner img {
  width: 100%;
  height: 100%;
}

.hero--blog .hero_banner {
  position: absolute;
  inset: 0;
}

.hero--blog .hero_banner img {
  object-fit: cover;
}

.hero--blog .hero_content {
  position: relative;
  z-index: 2;
  min-height: 300px;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(7, 12, 20, 0.12),
    rgba(7, 12, 20, 0.64)
  );
}

.cs_tab_navigation {
  border-bottom: 1px solid rgba(10, 12, 16, 0.12);
  overflow-x: auto;
  scrollbar-width: none;
}

.cs_tab_navigation::-webkit-scrollbar {
  display: none;
}

/* Category items (not "Все") — smaller and regular weight */
.cs_tab_navigation .cs_slider_navitem:not(:first-child) {
  font-size: 14px;
  font-weight: 400;
}

/* Force horizontal layout regardless of w-100 on items */
.cs_tab_navigation .row {
  flex-wrap: nowrap;
  column-gap: 16px;
  row-gap: 0;
  margin-left: 0;
  margin-right: 0;
}

.cs_tab_navigation .row > * {
  padding: 0;
}

.cs_slider_navitem {
  transition: opacity 0.2s ease;
  width: auto !important;
  flex-shrink: 0;
  white-space: nowrap;
}

.cs_slider_navitem:not(.active) {
  opacity: 0.68;
}

.cs_slider_navitem.active {
  opacity: 1;
}

.cs_slider_navitem.active .cs_slider_navname {
  color: #000;
}

.cs_slider_navname {
  color: #111;
  text-decoration: none;
  padding: 0 4px;
}

.blog-grid-ref .h3 {
  line-height: 1.25;
}

.blog-grid-ref .caption12 {
  color: rgba(17, 17, 17, 0.62);
}

/* Fix tag badge positioning - ensure they wrap inside the card */
.blog-grid-ref .bages,
.bages_parent .bages {
  width: 100%;
  max-width: 100%;
}

.blog-empty {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed rgba(10, 12, 16, 0.25);
  border-radius: 12px;
}

.blog_post {
  padding-bottom: 16px;
}

.blog_head .blog_picture {
  border-radius: 14px;
  overflow: hidden;
  /* full-bleed: no max-width / margin constraint */
}

.blog-backlink-wrap {
  margin-bottom: 4px;
}

.blog-backlink {
  color: #8a6339;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog_body [itemprop="articleBody"] {
  font-size: 15px;
  line-height: 1.72;
  color: #111;
}

.blog_body [itemprop="articleBody"] p,
.blog_body [itemprop="articleBody"] li {
  line-height: 1.72;
  margin: 0 0 12px;
}

.blog_body [itemprop="articleBody"] h1,
.blog_body [itemprop="articleBody"] h2,
.blog_body [itemprop="articleBody"] h3,
.blog_body [itemprop="articleBody"] h4,
.blog_body [itemprop="articleBody"] h5,
.blog_body [itemprop="articleBody"] h6 {
  margin: 24px 0 10px;
  line-height: 1.3;
}

.blog_body [itemprop="articleBody"] ul,
.blog_body [itemprop="articleBody"] ol {
  padding-left: 22px;
  margin: 0 0 12px;
}

.blog_body [itemprop="articleBody"] img {
  display: block;
  width: 100% !important;
  border-radius: 8px;
  margin: 8px 0;
  height: auto !important;
}

.blog_body [itemprop="articleBody"] a {
  color: #8a6339;
  text-underline-offset: 2px;
}

.blog_body [itemprop="articleBody"] strong,
.blog_body [itemprop="articleBody"] b {
  font-weight: 600;
}

/* Quill editor classes */
.blog_body [itemprop="articleBody"] .ql-align-center {
  text-align: center;
}

.blog_body [itemprop="articleBody"] .ql-align-right {
  text-align: right;
}

.blog_body [itemprop="articleBody"] .ql-align-justify {
  text-align: justify;
}

.blog_body [itemprop="articleBody"] .ql-indent-1 {
  padding-left: 3em;
}
.blog_body [itemprop="articleBody"] .ql-indent-2 {
  padding-left: 6em;
}
.blog_body [itemprop="articleBody"] .ql-indent-3 {
  padding-left: 9em;
}

.blog_related,
.blog_cards {
  padding-bottom: 10px;
}

.blog-related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.blog-related-row {
  display: block;
}

/* Related articles live in .blog_cards, not .blog, so the
   layout-template rule ".blog .bages_parent .iw" doesn't apply.
   Set an explicit aspect-ratio so the images aren't 0-height. */
.blog-related-row .bages_parent .iw {
  aspect-ratio: 328 / 240;
}

@media screen and (min-width: 768px) {
  .blog-related-row .bages_parent .iw {
    aspect-ratio: 343 / 240;
  }
}

@media screen and (min-width: 1024px) {
  .blog-related-row .bages_parent .iw {
    aspect-ratio: 460 / 240;
  }
}

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

@media (max-width: 800px) {
  .hero--blog,
  .hero--blog .hero_content {
    min-height: 240px;
  }

  .blog-related-list {
    grid-template-columns: 1fr;
  }
}
