/* ============================================================
   Homepage Redesign — bks.group
   Overrides loaded only on common/home
   ============================================================ */

/* ------ Section headings ----------------------------------- */
.home-page div.heading {
  font-size: 1.55em;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 22px;
  padding-bottom: 12px;
  position: relative;
}
.home-page div.heading::after {
  border-bottom-width: 3px;
  border-color: rgba(0,132,128,.25);
}
.home-page .rb-gallery h2 {
  font-size: 1.55em;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 22px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
}
.home-page .rb-gallery h2::after {
  flex: 1 1 auto;
  content: '';
  margin: 0 0 0 15px;
  border-bottom: solid 3px rgba(0,132,128,.25);
}

/* ------ Spacing between sections --------------------------- */
.home-page .uni-module,
.home-page .rb-gallery {
  margin-bottom: 45px;
}
.home-page .content-top {
  margin-bottom: 10px;
}

/* ------ Product cards hover -------------------------------- */
.home-page .product-thumb {
  transition: box-shadow .25s ease;
  border-radius: 6px;
}
.home-page .product-thumb:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.09);
}

/* ------ uni-item cards ------------------------------------- */
.home-page .uni-item {
  border-radius: 8px;
  border-color: rgba(0,0,0,.06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.home-page .uni-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* ============================================================
   NEWS MODULE — cards
   ============================================================ */
.home-page .news-module .uni-item {
  overflow: hidden;
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.home-page .news-module .uni-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.10);
  transform: translateY(-4px);
}
.home-page .news-module__image {
  border-radius: 10px 10px 0 0;
}
.home-page .news-module__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.home-page .news-module__description {
  padding: 18px 18px 20px;
}
.home-page .news-module__category-date-viewed {
  margin-bottom: 12px;
  font-size: .82em;
  gap: 10px;
}
.home-page .news-module__category {
  background: rgba(0,132,128,.09);
  color: #008480;
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.home-page .news-module__name {
  font-size: 1.02em;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-page .news-module__text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #666;
  font-size: .9em;
  line-height: 1.55;
  margin-bottom: 12px;
}
.home-page .news-module__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: .88em;
  font-weight: 600;
  color: #008480;
  text-decoration: none;
  transition: color .2s;
}
.home-page .news-module__more:hover {
  color: #005c59;
  text-decoration: underline;
}

/* ============================================================
   PHOTO GALLERY — galleryrb.110 (Фотогалерея отгруженной техники)
   ============================================================ */
.rb-gallery-110 .rb-gallery-list {
  overflow: visible;
}
.rb-gallery-110 .rb-gallery-img-outer {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 0;
}
.rb-gallery-110 .rb-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rb-gallery-110 .rb-gallery-item {
  margin: 8px 0;
  padding-bottom: 8px;
}
.rb-gallery-110 .rb-gallery-inner {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: box-shadow .25s ease, transform .25s ease;
}
.rb-gallery-110 .rb-gallery-inner:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.rb-gallery-110 .text-gallery {
  padding: 12px 14px 14px !important;
  font-size: .9em;
  line-height: 1.4;
  color: #444;
  background: #fff !important;
  opacity: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

/* ============================================================
   BRANDS — galleryrb.108  (no popup, highlight on hover)
   ============================================================ */
.rb-gallery-108 .rb-gallery-popup,
.rb-gallery-108 .rb-gallery-link {
  pointer-events: none;
  cursor: default;
}
.rb-gallery-108 .rb-gallery-img {
  filter: grayscale(100%);
  opacity: .5;
  transition: filter .3s ease, opacity .3s ease, transform 0s;
  transform: none !important;
}
.rb-gallery-108 .rb-gallery-item {
  transition: box-shadow .3s ease;
  border-radius: 8px;
  padding: 8px;
}
.rb-gallery-108 .rb-gallery-item:hover {
  box-shadow: 0 0 0 2px rgba(0,132,128,.35);
  background: rgba(0,132,128,.04);
}
.rb-gallery-108 .rb-gallery-item:hover .rb-gallery-img {
  filter: grayscale(0);
  opacity: 1;
  transform: none !important;
}
.rb-gallery-108 .rb-gallery-img-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  margin-bottom: 0;
  overflow: visible;
}
.rb-gallery-108 .rb-gallery-owl-carousel .owl-nav {
  top: 30%;
}
.rb-gallery-108 .rb-gallery-owl-carousel .owl-nav button.owl-prev,
.rb-gallery-108 .rb-gallery-owl-carousel .owl-nav button.owl-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  line-height: 1;
}
.rb-gallery-108 .rb-gallery-owl-carousel .owl-nav button.owl-prev span,
.rb-gallery-108 .rb-gallery-owl-carousel .owl-nav button.owl-next span {
  display: block;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-2px);
}
.rb-gallery-108 .rb-gallery-owl-carousel .owl-nav [class*='owl-']:hover {
  background: #fff;
  color: #111;
}

/* ============================================================
   CLIENTS — galleryrb.81  (no popup, highlight on hover)
   ============================================================ */
.rb-gallery-81 .rb-gallery-popup,
.rb-gallery-81 .rb-gallery-link {
  pointer-events: none;
  cursor: default;
}
.rb-gallery-81 .rb-gallery-img {
  filter: grayscale(100%);
  opacity: .45;
  transition: filter .35s ease, opacity .35s ease, transform 0s;
  transform: none !important;
}
.rb-gallery-81 .rb-gallery-item {
  transition: box-shadow .3s ease;
  border-radius: 8px;
  padding: 8px;
}
.rb-gallery-81 .rb-gallery-item:hover {
  box-shadow: 0 0 0 2px rgba(0,132,128,.3);
  background: rgba(0,132,128,.04);
}
.rb-gallery-81 .rb-gallery-item:hover .rb-gallery-img {
  filter: grayscale(0);
  opacity: 1;
  transform: none !important;
}
.rb-gallery-81 .rb-gallery-img-outer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  margin-bottom: 0;
  overflow: visible;
}
.rb-gallery-81 .rb-gallery-owl-carousel .owl-nav {
  top: 30%;
}
.rb-gallery-81 .rb-gallery-owl-carousel .owl-nav button.owl-prev,
.rb-gallery-81 .rb-gallery-owl-carousel .owl-nav button.owl-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  line-height: 1;
}
.rb-gallery-81 .rb-gallery-owl-carousel .owl-nav button.owl-prev span,
.rb-gallery-81 .rb-gallery-owl-carousel .owl-nav button.owl-next span {
  display: block;
  font-size: 30px;
  line-height: 1;
  transform: translateY(-2px);
}
.rb-gallery-81 .rb-gallery-owl-carousel .owl-nav [class*='owl-']:hover {
  background: #fff;
  color: #111;
}
.rb-gallery-108 .rb-gallery-list,
.rb-gallery-81 .rb-gallery-list {
  overflow: visible;
}
.rb-gallery-108 .rb-gallery-owl-carousel .owl-nav button.owl-prev,
.rb-gallery-81 .rb-gallery-owl-carousel .owl-nav button.owl-prev {
  left: -24px;
}
.rb-gallery-108 .rb-gallery-owl-carousel .owl-nav button.owl-next,
.rb-gallery-81 .rb-gallery-owl-carousel .owl-nav button.owl-next {
  right: -24px;
}

/* ============================================================
   CERTIFICATES — galleryrb.109
   ============================================================ */
.rb-gallery-109 .rb-gallery-inner {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.rb-gallery-109 .rb-gallery-inner:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  transform: translateY(-2px);
}
.rb-gallery-109 .rb-gallery-img-outer {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0;
}

/* ============================================================
   CERTIFICATES — slider_title in galleryrb.109
   ============================================================ */
.rb-gallery-109 .slider_title h2 {
  font-size: 1.4em;
  font-weight: 700;
}
.rb-gallery-109 .slider_title a {
  font-size: .9em;
  font-weight: 500;
  color: #008480;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,132,128,.4);
  transition: border-color .2s, color .2s;
}
.rb-gallery-109 .slider_title a:hover {
  color: #005c59;
  border-bottom-color: #005c59;
}

/* ============================================================
   SEO TEXT block (html.33)
   ============================================================ */
.home-page .html-module {
  max-width: none;
  padding: 30px 35px 20px;
  border-radius: 10px;
  background: rgba(0,0,0,.025);
}
.home-page .html-module h1 {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 18px;
}
.home-page .html-module p {
  font-size: .95em;
  line-height: 1.75;
  color: #555;
}

/* ============================================================
   MAP section
   ============================================================ */
.home-page-map {
  max-width: 1170px;
  margin: 30px auto 0;
  padding: 0 15px;
}
.home-page-map__inner {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.home-page-map__inner iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}
@media (min-width: 1345px) {
  .home-page-map { max-width: 1300px; }
}
@media (min-width: 1600px) {
  .home-page-map { max-width: 1500px; }
}

/* ============================================================
   CATEGORY WALL
   ============================================================ */
.home-page .category-wall-v2 {
  margin-bottom: 45px;
}
.home-page .category-wall__item {
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .25s ease;
}
.home-page .category-wall__item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  transform: translateY(-3px);
}
.home-page .category-wall__image {
  background: #fff;
  border-radius: 10px;
  margin: 8px;
}
.home-page .category-wall__image img {
  border-radius: 10px !important;
  background: #fff;
}
.home-page .category-wall__title {
  font-size: 1.25em !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.home-page .category-wall__title a {
  color: #fff !important;
  text-decoration: none;
}
.home-page .category-wall__li a {
  transition: opacity .2s;
}
.home-page .category-wall__li a:hover {
  opacity: .8;
  text-decoration: underline;
}

/* ============================================================
   Mobile tweaks
   ============================================================ */
@media (max-width: 768px) {
  .home-page .news-module__image img {
    height: 170px;
  }
  .home-page .html-module {
    padding: 20px 18px 14px;
  }
  .home-page-map__inner {
    border-radius: 8px;
  }
  .home-page-map {
    padding: 0 15px;
  }
  .home-page .category-wall__image {
    margin: 0;
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .home-page .category-wall__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px 0 0 10px !important;
    padding: 8px;
  }
}
@media (max-width: 575px) {
  .home-page .news-module__image img {
    height: 150px;
  }
  .home-page div.heading,
  .home-page .rb-gallery h2 {
    font-size: 1.25em;
  }
  .home-page .uni-module,
  .home-page .rb-gallery {
    margin-bottom: 30px;
  }
}
