.hero {
  width: 100%;
  height: 390px;
  color: #ffffff;
  background-image: url(../img/hero/xs.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero .container-fluid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 100%;
  padding-bottom: 24px;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: var(--carec-hero-title-font-size, 24px);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.6);
}

.hero button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  font-style: inherit;
  font-size: var(--carec-hero-button-font-size, 20px);
  font-weight: 500;
  text-align: center;
  color: inherit;
  background-color: transparent;
  border-width: 0;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

.hero button span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.hero button svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.hero button:hover {
  color: var(--color-secondary);
}

.br-xs {
  display: block;
}

.br-sm,
.br-md {
  display: none;
}

.page-header:has(.hero) {
  position: relative;
}

.page-header:has(.hero) .page-header__upper {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.page-header:has(.hero) .page-header__navigation {
  position: absolute;
  top: 42px;
  right: 0;
  left: 0;
}

.hero-links .hero-links__slider {
  padding-top: 24px;
  padding-bottom: 24px;
  background-image: linear-gradient(to bottom, #ffae49, #f5d3a9);
}

.hero-links .hero-links__slider ul.swiper-wrapper {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

.hero-links .hero-links__slider img {
  display: block;
  margin-right: auto;
  margin-left: auto;
  opacity: 0.7;
}

.hero-links .hero-link__slider-button {
  top: calc(50% + 12px);
  width: 24px;
  height: 24px;
  color: #9ca3af;
  transition: color 0.15s ease-in-out;
}

.hero-links .hero-link__slider-button:hover {
  color: var(--color-primary);
}

.hero-links .hero-links__description {
  padding-top: 24px;
  text-align: center;
  background-image: linear-gradient(to bottom, #0099cc, #01445a);
}

.hero-links .hero-links__description-container {
  max-width: 1920px;
  margin-right: auto;
  margin-left: auto;
  padding: 12px;
  color: #6b7280;
  background-color: #ffffff;
}

.hero-links .hero-links__description-container strong {
  font-weight: 700;
}

.hero-links .hero-links__description-container p:last-child {
  margin-bottom: 0;
}

@media (min-width: 576px) {
  .hero {
    background-image: url(../img/hero/sm.webp);
  }

  .hero .container-fluid {
    padding-bottom: 32px;
  }

  .hero button span {
    width: 40px;
    height: 40px;
  }

  .br-xs {
    display: none;
  }

  .br-sm {
    display: block;
  }
}

@media (min-width: 768px) {
  .hero {
    height:50vw;
    background-image: url(../img/hero/md.webp);
  }

  .br-sm {
    display: none;
  }

  .br-md {
    display: block;
  }

  .hero-links .hero-links__description-container {
    position: relative;
  }

  .hero-links .hero-links__description-container::before {
    position: absolute;
    top: -120px;
    left: calc(50% - 64px);
    display: block;
    width: 127px;
    height: 120px;
    background-image: url(../img/hero/phone.webp);
    content: '';
    z-index: 1000;
  }
}

@media (min-width: 992px) {
  .hero {
    height:57vw;
    background-image: url(../img/hero/lg.webp);
  }

  .hero .container-fluid {
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: var(--carec-hero-title-font-size-lg, 20px);
    font-weight: 600;
    text-shadow: none;
  }

  .br-md {
    display: none;
  }
}

@media (min-width: 1200px) {
  .hero {
    height: 48vw;
    background-image: url(../img/hero/xl.webp);
  }

  .hero .container-fluid {
    gap: 32px;
  }
}

@media (min-width: 1400px) {
  .hero {
    height: 40vw;
    background-image: url(../img/hero/xxl.webp);
  }

  .hero button {
    font-size: var(--carec-hero-title-font-size-xxl, 22px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero button,
  .hero-links .hero-link__slider-button {
    transition: none;
  }
}
