/* Blog, events, and media pages: editorial card grid */
html:is([data-id="30"], [data-id="31"], [data-id="32"]) .banner-title {
  margin: 8px 0 42px;
  color: #333;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
  margin: 0;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems::before,
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems::after {
  display: none;
  content: none;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .blog,
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .blog.a-horizontal,
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .blog.a-left,
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .blog.a-right {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .inner-bl {
  display: flex;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #f7e8e8;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .inner-bl:hover {
  border-color: rgba(194, 14, 26, 0.35);
  box-shadow: 0 12px 30px rgba(51, 51, 51, 0.12);
  transform: translateY(-3px);
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__image,
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .a-horizontal .article__image,
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .a-left .article__image,
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .a-right .article__image {
  position: relative;
  float: none;
  width: 100%;
  max-height: none;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #ededed;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__image::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #c20e1a;
  content: "";
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .inner-bl:hover .article__image img {
  transform: scale(1.025);
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__info,
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .a-horizontal .article__info {
  display: flex;
  float: none;
  width: auto;
  min-height: 220px;
  padding: 22px 22px 24px;
  flex: 1;
  flex-direction: column;
  color: #333;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__data,
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__data.c-blog {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  color: #777;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__title {
  margin: 0;
  padding: 0 0 12px;
  color: #222;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: left;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  padding: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #666;
  font-family: "Alegreya Sans", sans-serif;
  font-size: 17px;
  line-height: 1.28;
  letter-spacing: 0;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__link {
  align-self: flex-start;
  margin-top: auto;
  padding: 20px 0 0;
  color: #c20e1a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__link:hover {
  text-decoration: underline;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) .more {
  margin-top: 42px;
}

@media (max-width: 960px) {
  html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  html:is([data-id="30"], [data-id="31"], [data-id="32"]) .banner-title {
    margin-bottom: 28px;
    font-size: 34px;
  }

  html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__info,
  html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .a-horizontal .article__info {
    min-height: 0;
    padding: 18px 18px 20px;
  }

  html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__title {
    font-size: 23px;
  }
}

/* Home page: same editorial cards for Events, Media, and Blog sections */
html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks::before,
html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks::after,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks::before,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks::after,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks::before,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks::after {
  display: none;
  content: none;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .info_block,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_block,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .info_block {
  display: flex;
  overflow: hidden;
  min-height: 100%;
  float: none;
  flex-direction: column;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #f7e8e8;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .info_block:hover,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_block:hover,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .info_block:hover {
  border-color: rgba(194, 14, 26, 0.35);
  box-shadow: 0 12px 30px rgba(51, 51, 51, 0.12);
  transform: translateY(-3px);
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .image_part,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .image_part,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .image_part {
  position: relative;
  order: 1;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #ededed;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .image_part::after,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .image_part::after,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .image_part::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: #c20e1a;
  content: "";
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .image_part img,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .image_part img,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .image_part img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .info_block:hover .image_part img,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_block:hover .image_part img,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .info_block:hover .image_part img {
  transform: scale(1.025);
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .info_part,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_part,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .info_part {
  order: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 172px;
  padding: 20px 20px 22px;
  color: #333;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .date,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .date,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .date {
  margin: 0 0 12px;
  padding: 0;
  background: transparent;
  color: #777;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .text,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .text,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .text {
  margin: 0;
  padding: 0;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .text a,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .text a,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .text a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: #222;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .text a:hover,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .text a:hover,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .text a:hover {
  color: #c20e1a;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .arrow,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .arrow,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .arrow {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 960px) {
  html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks,
  html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks,
  html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks,
  html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks,
  html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .info_part,
  html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_part,
  html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .info_part {
    min-height: 0;
    padding: 18px 18px 20px;
  }

  html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .text a,
  html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .text a,
  html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .text a {
    font-size: 20px;
  }
}

/* Home page: keep only one row of three cards, matching listing pages */
html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px 28px;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .info_block:nth-child(n+4),
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_block:nth-child(n+4),
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .info_block:nth-child(n+4) {
  display: none;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .info_part,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_part,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .info_part {
  min-height: 220px;
  padding: 22px 22px 24px;
}

html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .text a,
html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .text a,
html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .text a {
  font-size: 25px;
  line-height: 1.08;
  -webkit-line-clamp: 4;
}

@media (max-width: 620px) {
  html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .info_block:nth-child(n+4),
  html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_block:nth-child(n+4),
  html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .info_block:nth-child(n+4) {
    display: none;
  }

  html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .info_part,
  html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_part,
  html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .info_part {
    min-height: 0;
    padding: 18px 18px 20px;
  }

  html[data-id="1"] aside > a[href="bilshe/podiyi"] + .info_blocks .text a,
  html[data-id="1"] aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .text a,
  html[data-id="1"] aside > a[href="bilshe/blog"] + .info_blocks .text a {
    font-size: 23px;
  }
}

/* Home page: force cards to match listing page dimensions */
html[data-id="1"] .container.index > aside:has(> a[href="bilshe/podiyi"]),
html[data-id="1"] .container.index > aside:has(> a[href="bilshe/zmi-pro-nas"]),
html[data-id="1"] .container.index > aside:has(> a[href="bilshe/blog"]) {
  display: block;
  width: 100%;
  max-width: none;
  clear: both;
}

html[data-id="1"] .container.index > aside > a[href="bilshe/podiyi"] + .info_blocks,
html[data-id="1"] .container.index > aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks,
html[data-id="1"] .container.index > aside > a[href="bilshe/blog"] + .info_blocks {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 42px 28px !important;
}

html[data-id="1"] .container.index > aside > a[href="bilshe/podiyi"] + .info_blocks .info_block,
html[data-id="1"] .container.index > aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_block,
html[data-id="1"] .container.index > aside > a[href="bilshe/blog"] + .info_blocks .info_block {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0;
  float: none !important;
  margin: 0 !important;
}

html[data-id="1"] .container.index > aside > a[href="bilshe/podiyi"] + .info_blocks .image_part,
html[data-id="1"] .container.index > aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .image_part,
html[data-id="1"] .container.index > aside > a[href="bilshe/blog"] + .info_blocks .image_part {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 5 / 4;
}

html[data-id="1"] .container.index > aside > a[href="bilshe/podiyi"] + .info_blocks .info_part,
html[data-id="1"] .container.index > aside > a[href="bilshe/zmi-pro-nas"] + .info_blocks .info_part,
html[data-id="1"] .container.index > aside > a[href="bilshe/blog"] + .info_blocks .info_part {
  width: auto !important;
  min-height: 220px !important;
  max-width: none !important;
}

/* Listing pages: card titles are the article links */
html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__title a {
  color: inherit;
  text-decoration: none;
}

html:is([data-id="30"], [data-id="31"], [data-id="32"]) #blogItems .article__title a:hover {
  color: #c20e1a;
}
