:is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero) {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 272px;
  padding: 0 !important;
  overflow: hidden;
  background: #251e23 !important;
  color: #fff;
}

:is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(90deg, #211b1f 0%, rgba(33, 27, 31, .94) 30%, rgba(33, 27, 31, .62) 56%, rgba(33, 27, 31, .12) 100%), var(--banner-image) !important;
  background-size: cover !important;
  background-position: center, right 42% !important;
  background-repeat: no-repeat !important;
  transform: none !important;
}

:is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero)::after {
  content: none !important;
}

:is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero) > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 42px !important;
  padding-bottom: 42px !important;
}

:is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero) :is(h1, .lakov-hero-title, .hero-title) {
  max-width: 690px;
  margin: 8px 0 12px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: 1.16 !important;
  letter-spacing: 0;
  color: #fff !important;
  text-shadow: none !important;
}

:is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero) :is(p, .lakov-hero-subtitle) {
  max-width: 620px;
  margin: 0;
  color: #f8f3f5 !important;
  font-size: 15px;
  line-height: 1.65;
  text-shadow: none !important;
}

.lakov-gallery-hero .hero-actions { margin-top: 18px; }

.gallery-works-hero {
  background: #211b1f !important;
}
.gallery-works-hero::before {
  z-index: 1;
  background: linear-gradient(90deg, #211b1f 0%, #211b1f 35%, rgba(33, 27, 31, .92) 45%, rgba(33, 27, 31, .15) 69%, transparent 78%) !important;
}
.gallery-works-hero > .container { z-index: 2; }
.gallery-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  overflow: hidden;
}
.gallery-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.about-hero::before {
  background-position: center, center 26% !important;
}

@media (max-width: 767.98px) {
  :is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero) {
    min-height: 220px;
  }
  :is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero)::before {
    background-image: linear-gradient(90deg, rgba(33, 27, 31, .97), rgba(33, 27, 31, .70)), var(--banner-image) !important;
  }
  .about-hero {
    min-height: 365px;
    align-items: flex-start;
  }
  .about-hero::before {
    inset: auto 0 0;
    height: 180px;
    background-image: linear-gradient(180deg, rgba(33, 27, 31, .35), rgba(33, 27, 31, .08)), var(--banner-image) !important;
    background-position: center, center 20% !important;
  }
  .about-hero > .container { padding-bottom: 0 !important; }
  .gallery-works-hero {
    min-height: 365px;
    align-items: flex-start;
  }
  .gallery-works-hero::before {
    inset: auto 0 0;
    height: 155px;
    background: linear-gradient(180deg, #211b1f, transparent 45%) !important;
  }
  .gallery-works-hero > .container { padding-bottom: 0 !important; }
  .gallery-works-hero .hero-actions { margin-top: 16px; }
  .gallery-hero-media {
    inset: auto 0 0;
    width: 100%;
    height: 155px;
  }
  :is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero) > .container {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  :is(.lakov-hero-small, .lakov-gallery-hero, .service-hero, .trust-hero, .lakov-hero) :is(h1, .lakov-hero-title, .hero-title) {
    font-size: 28px !important;
  }
}
