/* Homepage hero: preserve the original banner and render the hotline as HTML. */

.rs-hero-copy {
  position: absolute;
  left: calc(50% + 120px);
  top: 72%;
  z-index: 10;
  width: min(620px, calc(50% - 150px));
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 37, 72, .28);
}

.rs-hero-copy__eyebrow,
.rs-hero-copy__title,
.rs-hero-copy__tagline {
  margin: 0;
  color: #fff;
}

.rs-hero-copy__eyebrow {
  font-size: clamp(15px, 1.08vw, 20px);
  line-height: 1.55;
  white-space: nowrap;
}

.rs-hero-copy__title {
  margin-top: 18px;
  font-size: clamp(42px, 3.15vw, 60px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .025em;
}

.rs-hero-copy__tagline {
  margin-top: 13px;
  font-size: clamp(21px, 1.52vw, 29px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .02em;
}

.rs-hero-hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 22px;
  color: #fff;
  pointer-events: auto;
}

.rs-hero-hotline__icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: currentColor;
}

.rs-hero-hotline__label {
  flex: 0 0 auto;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.rs-hero-hotline__number {
  color: #fff !important;
  font-size: clamp(25px, 1.72vw, 33px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .045em;
  line-height: 1.12;
  text-decoration: none !important;
  white-space: nowrap;
}

.rs-hero-hotline__number:hover,
.rs-hero-hotline__number:focus-visible {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 5px;
}

body.rs-page-home .banner .search-box #keys:focus,
body.rs-page-home .banner .search-box #keys:focus-visible {
  outline: none !important;
  background: #f8fbff;
  box-shadow: inset 0 0 0 2px rgba(30, 111, 191, .28);
}

@media (min-width: 769px) {
  .banner,
  .banner .swiper-container,
  .banner .swiper-wrapper,
  .banner .swiper-slide {
    height: 28.125vw;
    max-height: 540px;
  }

  .banner {
    position: relative;
  }

  .banner .swiper-container,
  .banner .swiper-slide {
    overflow: hidden;
  }

  .banner .swiper-slide img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
  }

  .rs-hero-copy__eyebrow,
  .rs-hero-copy__title,
  .rs-hero-copy__tagline {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .rs-hero-hotline {
    margin-top: 0;
  }

  .banner .search-box {
    top: auto !important;
    bottom: 30px !important;
  }

  .banner .search-box .w1200 {
    width: min(1200px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
  }

  .banner .search-box .search {
    display: flex !important;
    align-items: stretch;
    width: min(660px, calc(50% + 60px));
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 0 0 8px #fff;
  }

  .banner .search-box .search input {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    box-sizing: border-box;
  }

  .banner .search-box .search button {
    flex: 0 0 126px;
    width: 126px !important;
    box-sizing: border-box;
  }

}

@media (min-width: 769px) and (max-width: 1280px) {
  .banner .search-box .search {
    width: calc(50% + 40px);
  }

  .rs-hero-copy {
    left: calc(50% + 60px);
    top: 72%;
    width: calc(50% - 84px);
  }

  .rs-hero-hotline {
    gap: 8px;
    margin-top: 0;
  }

  .rs-hero-hotline__icon {
    width: 28px;
    height: 28px;
  }

  .rs-hero-hotline__label {
    font-size: 14px;
  }

  .rs-hero-hotline__number {
    font-size: clamp(21px, 2.25vw, 29px);
  }
}

@media (max-width: 768px) {
  .banner .swiper-container,
  .banner .swiper-wrapper,
  .banner .swiper-slide {
    height: 140px !important;
  }

  .banner .swiper-container,
  .banner .swiper-slide {
    overflow: hidden;
  }

  .banner .swiper-slide img {
    display: block;
    width: auto !important;
    max-width: none !important;
    height: 220px !important;
    object-fit: contain;
    object-position: left top;
  }

  .rs-hero-copy {
    position: relative;
    left: auto;
    top: auto;
    z-index: 11;
    width: auto;
    padding: 20px 18px 22px;
    transform: none;
    background: linear-gradient(135deg, #075986 0%, #063f68 100%);
    box-sizing: border-box;
    text-shadow: none;
  }

  .rs-hero-copy__eyebrow {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1.6;
    white-space: normal;
  }

  .rs-hero-copy__title {
    margin-top: 8px;
    color: #fff;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.22;
  }

  .rs-hero-copy__tagline {
    margin-top: 7px;
    color: rgba(255, 255, 255, .92);
    font-size: 16px;
    line-height: 1.55;
  }

  .rs-hero-hotline {
    gap: 9px;
    min-height: 48px;
    margin-top: 16px;
  }

  .rs-hero-hotline__icon {
    width: 34px;
    height: 34px;
  }

  .rs-hero-hotline__label {
    font-size: 14px;
  }

  .rs-hero-hotline__number {
    font-size: clamp(23px, 6.8vw, 29px);
    letter-spacing: .025em;
  }

  .banner .search-box {
    position: static !important;
    padding: 12px;
    background: #fff;
  }

}
