.common-home .sh-hero-slider {
  position: relative;
  width: 100%;
  height: min(680px, calc(100vh - 98px));
  min-height: 560px;
  overflow: hidden;
  border-bottom: 0;
  background: #fff;
  color: #000;
  font-family: "Raleway", Arial, sans-serif;
}

.common-home .sh-hero-slider__track,
.common-home .sh-hero-slide {
  position: absolute;
  inset: 0;
}

.common-home .sh-hero-slide {
  visibility: hidden;
  opacity: 0;
  background-image: var(--sh-hero-image);
  background-position: center;
  background-size: cover;
  transition: visibility 0s linear .7s, opacity .7s cubic-bezier(.22,1,.36,1);
}

.common-home .sh-hero-slide.is-active {
  visibility: visible;
  z-index: 1;
  opacity: 1;
  transition-delay: 0s;
}

.common-home .sh-hero-slide::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 27%, rgba(255,255,255,0) 54%);
  content: "";
}

.common-home .sh-hero-slide:nth-child(2)::before {
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.86) 32%, rgba(255,255,255,0) 62%);
}

.common-home .sh-hero-slide:nth-child(3)::before {
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.76) 35%, rgba(255,255,255,0) 68%);
}

.common-home .sh-hero-slide__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(620px, 43vw);
  height: 100%;
  flex-direction: column;
  justify-content: center;
  margin-left: max(7vw, calc((100vw - 1440px) / 2 + 42px));
  padding: 48px 0 82px;
}

.common-home .sh-hero-slide__content--light {
  color: #fff;
}

.common-home .sh-hero-slide__content h1,
.common-home .sh-hero-slide__content h2 {
  max-width: 600px;
  margin: 0 0 24px;
  color: inherit;
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(42px, 4.2vw, 68px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.common-home .sh-hero-slide__content p {
  max-width: 520px;
  margin: 0 0 34px;
  color: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

.common-home .sh-hero-slide__content a {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 24px;
  padding: 0 28px;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.common-home .sh-hero-slide__content a:hover,
.common-home .sh-hero-slide__content a:focus-visible {
  background: #000;
  color: #fff;
}

.common-home .sh-hero-slide__content--light a:hover,
.common-home .sh-hero-slide__content--light a:focus-visible {
  background: #fff;
  color: #000;
}

.common-home .sh-hero-slider__pagination {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  width: auto;
  height: 18px;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform: translateX(-50%);
}

.common-home .sh-hero-slider__pagination button {
  position: relative;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.common-home .sh-hero-slider__pagination button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid #000;
  border-radius: 50%;
  background: transparent;
  content: "";
  transform: translate(-50%,-50%);
  transition: border-color .2s ease;
}

.common-home .sh-hero-slider__pagination button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #000;
  content: "";
  opacity: 0;
  transform: translate(-50%,-50%) scale(.55);
  transition: opacity .2s ease, transform .2s ease;
}

.common-home .sh-hero-slider__pagination button.is-active::after {
  opacity: 1;
  transform: translate(-50%,-50%) scale(1);
}

.common-home .sh-hero-slider__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  color: #000;
  transform: translateY(-50%);
  transition: color .2s ease, background .2s ease;
}

.common-home .sh-hero-slider__arrow:hover {
  background: #000;
  color: #fff;
}

.common-home .sh-hero-slider__arrow--prev { left: 22px; }
.common-home .sh-hero-slider__arrow--next { right: 22px; }

.common-home .sh-hero-slider__arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.common-home #mslider0,
.common-home .megasliderpro:has(#mslider0) {
  display: none !important;
}

.common-home #home-categories {
  position: relative;
  top: -98px;
  visibility: hidden;
}

@media (max-width: 991px) {
  .common-home .sh-hero-slider {
    height: 620px;
    min-height: 0;
  }
  .common-home .sh-hero-slide {
    background-position: 63% center;
  }
  .common-home .sh-hero-slide::before {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.84) 46%, rgba(255,255,255,.08) 78%);
  }
  .common-home .sh-hero-slide:nth-child(2)::before {
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.82) 48%, rgba(255,255,255,.08) 78%);
  }
  .common-home .sh-hero-slide:nth-child(3)::before {
    background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.78) 52%, rgba(255,255,255,.05) 82%);
  }
  .common-home .sh-hero-slide__content {
    width: auto;
    height: auto;
    margin: 0;
    padding: 56px 24px 0;
  }
  .common-home .sh-hero-slide__content h1,
  .common-home .sh-hero-slide__content h2 {
    max-width: 620px;
    font-size: clamp(38px, 8vw, 56px);
  }
  .common-home .sh-hero-slider__arrow {
    top: auto;
    bottom: 18px;
    width: 42px;
    height: 42px;
    transform: none;
  }
  .common-home .sh-hero-slider__arrow--prev { left: 16px; }
  .common-home .sh-hero-slider__arrow--next { right: 16px; }
}

@media (max-width: 520px) {
  .common-home .sh-hero-slider { height: 570px; }
  .common-home .sh-hero-slide__content { padding: 42px 18px 0; }
  .common-home .sh-hero-slide__content h1,
  .common-home .sh-hero-slide__content h2 {
    max-width: 350px;
    margin-bottom: 18px;
    font-size: 40px;
  }
  .common-home .sh-hero-slide__content p {
    max-width: 330px;
    margin-bottom: 25px;
    font-size: 15px;
  }
  .common-home .sh-hero-slide__content a {
    min-height: 44px;
    padding: 0 22px;
    font-size: 13px;
  }
  .common-home .sh-hero-slider__pagination { bottom: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .common-home .sh-hero-slide,
  .common-home .sh-hero-slider__pagination button::before,
  .common-home .sh-hero-slider__pagination button::after {
    transition: none;
  }
}
