/* Home: My Perfect Skin + Hi Tech */
.mps-home-intro {
  padding-bottom: 0;
  background: var(--mps-color-background);
}

.mps-home-intro__header {
  max-width: 760px;
  margin-bottom: 52px;
}

.mps-home-intro__title,
.mps-home-offer__title,
.mps-slider-heading__title {
  margin: 0;
  font-family: var(--mps-font-heading);
  font-weight: 400;
  color: var(--mps-color-text);
}

.mps-home-intro__rule,
.mps-home-offer__rule,
.mps-slider-heading__rule {
  height: 1px;
  background: var(--mps-color-text);
}

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

.mps-home-intro__description {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--mps-color-text-muted);
  font-size: 16px;
  line-height: 1.72;
}

.mps-hitech {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.mps-hitech__image,
.mps-hitech__shade {
  position: absolute;
  inset: 0;
}

.mps-hitech__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.mps-hitech__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(28, 24, 22, .58) 0%, rgba(28, 24, 22, .32) 44%, rgba(28, 24, 22, .03) 76%);
}

.mps-hitech__content {
  display: flex;
  min-height: 560px;
  width: min(100%, 620px);
  flex-direction: column;
  justify-content: center;
  padding: 58px 0 58px 12.5%;
}

.mps-hitech__title {
  margin: 0;
  color: inherit;
  font-family: var(--mps-font-script);
  font-size: clamp(58px, 5vw, 82px);
  font-weight: 400;
  line-height: .9;
  transform: rotate(-3deg);
  transform-origin: left center;
}

.mps-hitech__text {
  max-width: 610px;
  margin: 24px 0 26px;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.62;
}

.mps-hitech__button {
  width: min(100%, 365px);
}

/* Home: special offer */
.mps-home-offer {
  padding-block: var(--section-space-desktop);
  background: #fff;
}

.mps-home-offer__inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.mps-home-offer__title {
  font-size: var(--mps-h2-size);
  line-height: 1.02;
}

.mps-home-offer__rule {
  width: 250px;
  margin-top: 22px;
}

.mps-home-offer__description {
  margin: 18px 0 24px;
  color: var(--mps-color-text-muted);
  font-size: 15px;
}

.mps-home-offer__button {
  width: min(100%, 430px);
  max-width: 430px;
}

.mps-home-offer__button > span {
  overflow: hidden;
  font-size: clamp(11px, 1vw, var(--mps-button-size));
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Shared Home slider heading */
.mps-slider-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.mps-slider-heading__title {
  font-size: var(--mps-h2-size);
  line-height: var(--mps-h2-line);
}

.mps-slider-heading__rule {
  width: 430px;
  max-width: 100%;
  margin-top: 12px;
}

.mps-slider-heading__description {
  margin: 18px 0 0;
  color: var(--mps-color-text-muted);
  font-size: 14px;
}

.mps-slider-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
}

.mps-slider-nav__link {
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  color: var(--mps-color-text);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

.mps-slider-nav__buttons {
  display: inline-flex;
  gap: 8px;
}

.mps-slider-nav__button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #bdb3ad;
  background: transparent;
  color: var(--mps-color-text);
  cursor: pointer;
  font-size: 20px;
  transition: background-color var(--mps-transition), color var(--mps-transition), border-color var(--mps-transition);
}

.mps-slider-nav__button:hover {
  border-color: var(--mps-color-dark);
  background: var(--mps-color-dark);
  color: #fff;
}

.mps-slider-nav__button:disabled {
  cursor: default;
  opacity: .35;
}

.mps-home-empty {
  min-width: 100%;
  margin: 0;
  padding: 44px;
  border: 1px solid var(--mps-color-border);
  color: var(--mps-color-text-muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .mps-home-intro__header {
    margin-bottom: 42px;
  }

  .mps-hitech,
  .mps-hitech__content {
    min-height: 500px;
  }

  .mps-hitech__content {
    width: min(70%, 580px);
    padding-left: 7%;
  }

  .mps-hitech__text {
    font-size: 16px;
  }

  .mps-home-offer {
    padding-block: var(--section-space-tablet);
  }
}

@media (max-width: 767px) {
  .mps-home-intro__header {
    margin-bottom: 28px;
  }

  .mps-home-intro__description {
    margin-top: 18px;
    font-size: 15px;
  }

  .mps-hitech {
    min-height: 510px;
  }

  .mps-hitech__image {
    object-position: 62% center;
  }

  .mps-hitech__shade {
    background: linear-gradient(180deg, rgba(28, 24, 22, .1) 0%, rgba(28, 24, 22, .4) 42%, rgba(28, 24, 22, .86) 100%);
  }

  .mps-hitech__content {
    min-height: 510px;
    width: 100%;
    justify-content: flex-end;
    padding: 34px 24px;
  }

  .mps-hitech__title {
    font-size: 56px;
  }

  .mps-hitech__text {
    max-width: 100%;
    margin: 14px 0 20px;
    font-size: 14px;
    line-height: 1.5;
  }

  .mps-hitech__button {
    width: 100%;
  }

  .mps-home-offer {
    padding-block: var(--section-space-mobile);
  }

  .mps-home-offer__rule {
    margin-top: 16px;
  }

  .mps-home-offer__description {
    margin: 14px 0 20px;
  }

  .mps-slider-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
  }

  .mps-slider-nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 430px) {
  .mps-home-offer__button {
    width: 100%;
  }

  .mps-home-offer__button > span {
    font-size: 11px;
    letter-spacing: 0.01em;
  }
}

.mps-home-offer__media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin-bottom: clamp(28px, 4vw, 54px);
}
.mps-home-offer__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
}
@media (max-width: 640px) {
  .mps-home-offer__media { grid-template-columns: 1fr; gap: 12px; }
}
