.hero {
  position: relative;
  z-index: 20;
  min-height: clamp(30rem, 42vw, 40rem);
  overflow: visible;
  background: #fff;
  color: #242326;
  min-height: 17.5rem;

  /* border-bottom: 1px solid var(--color-border); */
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(
    rgba(17, 17, 17, 0.08) 1.2px,
    transparent 1.2px
  );
  background-size: 12px 12px;
  opacity: 0.26;
  content: "";
  -webkit-mask-image: radial-gradient(
    ellipse at 50% 48%,
    #000 0 38%,
    transparent 72%
  );
  mask-image: radial-gradient(ellipse at 50% 48%, #000 0 38%, transparent 72%);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  z-index: 1;
  overflow: hidden;
}

.hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* opacity: 0.46; */
}

/* .hero-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(248, 248, 249, 0.96) 0%, rgba(248, 248, 249, 0.74) 45%, rgba(248, 248, 249, 0.9) 100%),
    radial-gradient(circle at 18% 55%, rgba(var(--color-primary-rgb), 0.08), transparent 26rem);
} */

.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(18rem, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: inherit;
  padding-block: clamp(2.25rem, 2vw, 5.5rem);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 46rem;
  padding-left: 50px;
}

.hero-text h1 {
  color: #242326;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 4.45rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.026em;
}

.hero-text h1 span {
  position: relative;
  display: inline-block;
  color: var(--color-primary);
}

.hero-text h1 span::after {
  position: absolute;
  left: 0.06em;
  right: -0.02em;
  bottom: 0.02em;
  height: 0.08em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
  transform: rotate(-3deg);
  transform-origin: left center;
  content: "";
}

.hero-description {
  max-width: 42rem;
  margin-top: 1.4rem;
  color: #000000;
  font-size: clamp(1.03rem, 1.35vw, 1.22rem);
  line-height: 1.62;
}

.hero-search {
  position: relative;
  width: min(100%, 39rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.hero-search input {
  width: 100%;
  min-height: 4.5rem;
  padding: 0 4.7rem 0 1.35rem;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  color: #242326;
  font-size: 1.16rem;
  font-weight: 500;
  outline: none;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.06);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.hero-search input::placeholder {
  color: rgba(36, 35, 38, 0.58);
}

.hero-search input:focus {
  border-color: rgba(var(--color-primary-rgb), 0.36);
  box-shadow:
    0 18px 48px rgba(17, 17, 17, 0.08),
    0 0 0 4px rgba(var(--color-primary-rgb), 0.08);
}

.hero-search__button {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(36, 35, 38, 0.6);
  transform: translateY(-50%);
}

.hero-search__icon {
  position: relative;
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  border: 3px solid currentColor;
  border-radius: 999px;
}

.hero-search__icon::after {
  position: absolute;
  right: -0.48rem;
  bottom: -0.34rem;
  width: 0.68rem;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  content: "";
}

.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}

.hero-visual img {
  display: block;
  width: min(100%, 36rem);
  max-height: 31rem;
  object-fit: contain;
  filter: drop-shadow(0 26px 48px rgba(17, 17, 17, 0.08));
}

@media (max-width: 900px) {
  .hero {
    min-height: 15rem;
  }

  /* .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(248, 248, 249, 0.95),
        rgba(248, 248, 249, 0.8)
      ),
      radial-gradient(
        circle at 50% 35%,
        rgba(var(--color-primary-rgb), 0.07),
        transparent 20rem
      );
  } */

  .hero__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-block: 3.2rem 2.7rem;
  }

  .hero-text {
    align-items: center;
    max-width: 38rem;
    text-align: center;
    padding-left: 0;
  }

  .hero-text h1 {
    font-size: clamp(2.1rem, 8vw, 3.2rem);
    line-height: 1.08;
  }

  .hero-description {
    max-width: 36rem;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 3.6vw, 1.16rem);
  }

  .hero-search {
    margin-top: 1.65rem;
  }

  .hero-search input {
    min-height: 3.9rem;
    border-radius: 0.6rem;
    font-size: 1.08rem;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 17.5rem;
  }

  .hero::before {
    background-size: 10px 10px;
    opacity: 0.22;
  }

  .hero__inner {
    padding-block: 4.7rem 0.2rem;
  }

  .hero-text h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.65rem);
  }

  .hero-description {
    color: #000000;
    line-height: 1.55;
    font-weight: 500;
  }

  .hero-search {
    width: min(100%, 36rem);
  }

  .hero-search input {
    min-height: 3.6rem;
    padding-left: 1rem;
    padding-right: 4rem;
  }

  .hero-search__button {
    right: 0.75rem;
  }
}
