.mps-home-hero {
  position: relative;
  min-height: clamp(520px, 53vw, 760px);
  overflow: hidden;
  isolation: isolate;
  color: var(--mps-color-light);
}

.mps-home-hero__media,
.mps-home-hero__overlay {
  position: absolute;
  inset: 0;
}

.mps-home-hero__media {
  z-index: -2;
  background: #b29a8d;
}

.mps-home-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.mps-home-hero__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(34, 27, 25, 0.58) 0%, rgba(34, 27, 25, 0.28) 36%, rgba(34, 27, 25, 0.03) 67%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.08) 100%);
}

.mps-home-hero__container {
  display: flex;
  min-height: inherit;
  align-items: center;
  padding-block: clamp(54px, 7vw, 96px);
}

.mps-home-hero__content {
  width: min(100%, 650px);
  margin-top: -12px;
}

.mps-home-hero__title {
  max-width: 620px;
  color: inherit;
  font-size: clamp(54px, 5.15vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.mps-home-hero__description {
  max-width: 490px;
  margin: 22px 0 0;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.012em;
}

.mps-home-hero__signature-wrap {
  display: grid;
  width: fit-content;
  margin: 10px 0 0 82px;
  justify-items: center;
}

.mps-home-hero__signature {
  margin: 0;
  font-family: var(--mps-font-script);
  font-size: clamp(36px, 3vw, 54px);
  font-weight: 400;
  line-height: 1;
  transform: rotate(-4deg);
  transform-origin: center center;
}

.mps-home-hero__signature-line {
  display: block;
  width: var(--mps-hero-line-width-desktop, 260px);
  max-width: 100%;
  height: auto;
  margin-top: -2px;
}

.mps-home-hero__search {
  width: min(100%, 410px);
  margin-top: clamp(34px, 4vw, 54px);
}

.mps-home-hero__search-label {
  display: block;
  margin: 0 0 9px 18px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mps-home-hero__search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  min-height: 48px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mps-color-light);
  box-shadow: 0 12px 32px rgba(35, 26, 22, 0.16);
}

.mps-home-hero__search-input {
  min-width: 0;
  height: 48px;
  padding: 0 8px 0 22px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--mps-color-text);
  font-family: var(--mps-font-body);
  font-size: 14px;
  line-height: 1;
  appearance: none;
}

.mps-home-hero__search-input::-webkit-search-cancel-button {
  display: none;
}

.mps-home-hero__search-input::placeholder {
  color: #7a7674;
  opacity: 1;
}

.mps-home-hero__search-submit {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mps-color-dark);
  cursor: pointer;
  transition: background-color var(--mps-transition), transform var(--mps-transition);
}

.mps-home-hero__search-submit svg {
  width: 21px;
  height: 21px;
}

.mps-home-hero__search-submit:hover {
  background: #f1ece9;
}

.mps-home-hero__search-submit:active {
  transform: scale(0.96);
}

.mps-home-hero__search-input:focus-visible,
.mps-home-hero__search-submit:focus-visible {
  outline: 2px solid var(--mps-color-focus);
  outline-offset: -3px;
}

@media (max-width: 1279px) {
  .mps-home-hero {
    min-height: 590px;
  }

  .mps-home-hero__image {
    object-position: 58% center;
  }

  .mps-home-hero__content {
    width: min(52%, 560px);
  }

  .mps-home-hero__signature-wrap {
    margin-left: 64px;
  }
}

@media (max-width: 1024px) {
  .mps-home-hero {
    min-height: 620px;
  }

  .mps-home-hero__overlay {
    background:
      linear-gradient(90deg, rgba(31, 24, 22, 0.64) 0%, rgba(31, 24, 22, 0.34) 48%, rgba(31, 24, 22, 0.08) 82%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 60%);
  }

  .mps-home-hero__container {
    align-items: center;
    padding-block: 68px;
  }

  .mps-home-hero__content {
    width: min(68%, 560px);
    margin-top: 0;
  }

  .mps-home-hero__title {
    font-size: clamp(50px, 7.2vw, 66px);
  }

  .mps-home-hero__signature-line {
    width: var(--mps-hero-line-width-tablet, 220px);
  }
}

@media (max-width: 767px) {
  .mps-home-hero {
    min-height: 690px;
  }

  .mps-home-hero__image {
    object-position: 64% center;
  }

  .mps-home-hero__overlay {
    background:
      linear-gradient(180deg, rgba(24, 18, 17, 0.15) 0%, rgba(24, 18, 17, 0.12) 34%, rgba(24, 18, 17, 0.76) 74%, rgba(24, 18, 17, 0.9) 100%);
  }

  .mps-home-hero__container {
    min-height: inherit;
    align-items: flex-start;
    padding-top: 170px;
    padding-bottom: 34px;
  }

  .mps-home-hero__content {
    width: 100%;
  }

  .mps-home-hero__title {
    max-width: 520px;
    font-size: clamp(44px, 11.5vw, 58px);
    line-height: 0.98;
  }

  .mps-home-hero__description {
    max-width: 420px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.45;
  }

  .mps-home-hero__signature-wrap {
    margin: 8px 0 0 48px;
  }

  .mps-home-hero__signature {
    font-size: 39px;
  }

  .mps-home-hero__signature-line {
    width: var(--mps-hero-line-width-mobile, 170px);
  }

  .mps-home-hero__search {
    width: 100%;
    max-width: 440px;
    margin-top: 28px;
  }
}

@media (max-width: 430px) {
  .mps-home-hero {
    min-height: 650px;
  }

  .mps-home-hero__image {
    object-position: 67% center;
  }

  .mps-home-hero__container {
    padding-top: 145px;
    padding-bottom: 28px;
  }

  .mps-home-hero__title {
    font-size: clamp(41px, 12vw, 50px);
  }

  .mps-home-hero__description {
    max-width: 330px;
    font-size: 14px;
  }

  .mps-home-hero__signature-wrap {
    margin-left: 34px;
  }

  .mps-home-hero__signature {
    font-size: 35px;
  }

  .mps-home-hero__search-label {
    margin-left: 15px;
    font-size: 10px;
  }

  .mps-home-hero__search-control,
  .mps-home-hero__search-input,
  .mps-home-hero__search-submit {
    min-height: 46px;
    height: 46px;
  }

  .mps-home-hero__search-control {
    grid-template-columns: minmax(0, 1fr) 46px;
  }
}
