/* Altezza / Сантехника — локальный концепт светлых карточек.
   Только .right-content .section-under на этой странице. */
.right-content > h1.br-title {
  color: #133f54 !important;
  font: 750 clamp(28px, 3vw, 35px)/1.2 Arial, sans-serif !important;
  letter-spacing: -.025em;
  text-transform: none !important;
  position: relative;
  margin: 4px 0 29px !important;
  padding: 0 0 17px !important;
}
.right-content > h1.br-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: #278aa8;
  border-radius: 3px;
}

/* 13 существующих категорий становятся одной ровной сеткой. */
.right-content .section-under .row-under-category {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 17px !important;
  width: 100% !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  overflow: visible !important;
}
.right-content .section-under .row-under-category > .hidden-category {
  display: contents !important;
}
.right-content .section-under .more-categories {
  display: none !important;
}
.right-content .section-under .row-under-category .under-category-item {
  display: block !important;
  position: relative !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #dce8ee !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 6px 22px rgba(18, 57, 76, .055);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.right-content .section-under .under-category-item:hover,
.right-content .section-under .under-category-item:focus-within {
  transform: translateY(-3px);
  border-color: #83b6c9 !important;
  box-shadow: 0 14px 29px rgba(18, 57, 76, .13);
}
.right-content .section-under .under-category-item > a {
  display: flex !important;
  position: relative !important;
  flex-direction: column;
  justify-content: flex-start;
  width: 100% !important;
  min-width: 0;
  height: 100% !important;
  min-height: 306px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #123f54 !important;
  text-decoration: none !important;
  text-align: left !important;
}
.right-content .section-under .under-category-item > a:focus-visible {
  outline: 3px solid #268eb0;
  outline-offset: -3px;
}
.right-content .section-under .under-category-item img.full-image {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 218px !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 5px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f5f7f9 !important;
  mix-blend-mode: multiply;
  transform: none !important;
  transition: filter .25s ease;
}
.right-content .section-under .under-category-item:hover img.full-image {
  filter: contrast(1.025);
}
.right-content .section-under .under-category-item p.under-category-name-item {
  display: flex !important;
  align-items: flex-start;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 96px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 17px 16px 50px !important;
  color: #123f54 !important;
  background: #fff !important;
  font: 700 14.5px/1.35 Arial, sans-serif !important;
  text-align: left !important;
  overflow-wrap: anywhere;
  text-transform: none !important;
}
.right-content .section-under .under-category-item > a::after {
  content: "→";
  position: absolute;
  right: 14px;
  bottom: 13px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 33px;
  height: 33px;
  border: 1px solid #b4d4e1;
  border-radius: 50%;
  background: #fff;
  color: #175b77;
  font: 400 21px/1 Arial, sans-serif;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.right-content .section-under .under-category-item:hover > a::after,
.right-content .section-under .under-category-item > a:focus-visible::after {
  background: #13465b;
  border-color: #13465b;
  color: #fff;
}
@media (max-width: 1190px) {
  .right-content .section-under .row-under-category {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}
@media (max-width: 760px) {
  .right-content > h1.br-title { margin-bottom: 22px !important; }
  .right-content .section-under .row-under-category {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .right-content .section-under .under-category-item > a { min-height: 260px !important; }
  .right-content .section-under .under-category-item img.full-image {
    height: 170px !important;
    padding: 5px !important;
  }
  .right-content .section-under .under-category-item p.under-category-name-item {
    min-height: 92px !important;
    padding: 12px 12px 44px !important;
    font-size: 13px !important;
  }
  .right-content .section-under .under-category-item > a::after {
    right: 9px;
    bottom: 12px;
    width: 27px;
    height: 27px;
    font-size: 18px;
  }
}
@media (max-width: 420px) {
  .right-content .section-under .under-category-item img.full-image {
    height: 157px !important;
    padding: 4px !important;
  }
  .right-content .section-under .under-category-item > a { min-height: 249px !important; }
  .right-content .section-under .under-category-item p.under-category-name-item {
    min-height: 92px !important;
    font-size: 12.5px !important;
  }
}
/* Hide the old Bitrix image only while its approved replacement is loading. */
html.al-santekhnika-photo-upgrade .right-content .section-under .under-category-item img.full-image:not(.al-santekhnika-image-ready) {
  opacity: 0 !important;
}
html.al-santekhnika-photo-upgrade .right-content .section-under .under-category-item img.full-image.al-santekhnika-image-ready {
  opacity: 1 !important;
  transition: opacity .18s ease;
}
@media (prefers-reduced-motion: reduce) {
  .right-content .section-under .under-category-item,
  .right-content .section-under .under-category-item img.full-image,
  .right-content .section-under .under-category-item > a::after {
    transition: none !important;
  }
}
