.mfr-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  isolation: isolate;
}
.mfr-hero:first-child {
  margin-top: 40px;
}
@media (width >= 740px) {
  .mfr-hero {
    row-gap: 24px;
    padding-inline: 40px;
    border-radius: 30px;
  }
  .mfr-hero:first-child {
    margin-top: 40px;
  }
}
@media (width >= 1200px) {
  .mfr-hero {
    grid-template-areas: "content coupon" "btns .";
    column-gap: 8px;
    padding-block: 80px;
  }
}
@media (width <= 1199.98px) {
  .mfr-hero {
    padding-block: 40px;
  }
}
@media (width >= 740px) and (width <= 1199.98px) {
  .mfr-hero {
    grid-template-areas: "content content" "btns logo" "coupon coupon";
    align-items: center;
  }
}
@media (width <= 739.98px) {
  .mfr-hero {
    grid-template-areas: "content" "logo" "btns" "coupon";
    row-gap: 8px;
    justify-items: center;
    padding-inline: 18px;
    border-radius: 10px;
  }
  .mfr-hero:first-child {
    margin-top: 20px;
  }
}
.mfr-hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
}
@media (width >= 1200px) {
  .mfr-hero::after {
    background: linear-gradient(270deg, rgba(102, 102, 102, 0) 0%, #000 73.5%, #000 100%);
  }
}
@media (width >= 740px) and (width <= 1199.98px) {
  .mfr-hero::after {
    background: linear-gradient(270deg, rgba(102, 102, 102, 0) 0%, rgba(36, 36, 36, 0.65) 37.5%, #000 72%);
  }
}
@media (width <= 739.98px) {
  .mfr-hero::after {
    background: linear-gradient(270deg, rgba(69, 69, 69, 0.32) 0%, rgba(36, 36, 36, 0.65) 26.14%, #000 99.4%);
  }
}
.mfr-hero-background {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mfr-hero_content {
  display: grid;
  grid-area: content;
  align-content: start;
  max-width: 860px;
  color: var(--white);
}
@media (width >= 740px) {
  .mfr-hero_content {
    row-gap: 18px;
  }
}
@media (width <= 739.98px) {
  .mfr-hero_content {
    row-gap: 8px;
  }
}
.mfr-hero_descr {
  line-height: 1.4;
}
.mfr-hero_btns {
  display: grid;
  grid-area: btns;
  grid-gap: 18px;
}
@media (width >= 740px) {
  .mfr-hero_btns {
    grid-auto-flow: column;
    justify-content: start;
  }
}
@media (width <= 739.98px) {
  .mfr-hero_btns {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    width: 100%;
    margin-block: 16px;
  }
}
.mfr-hero_logo {
  grid-area: logo;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.8));
  transform: translateZ(0);
}
@media (width >= 1200px) {
  .mfr-hero_logo {
    position: absolute;
    right: 80px;
    bottom: 55px;
    z-index: -1;
  }
}
@media (width >= 740px) and (width <= 1199.98px) {
  .mfr-hero_logo {
    justify-self: end;
    width: 162px;
    margin-inline: 40px;
  }
}
@media (width <= 739.98px) {
  .mfr-hero_logo {
    width: 178px;
  }
}
.mfr-hero_coupon {
  display: grid;
  grid-area: coupon;
  align-items: center;
  width: 310px;
  height: 123px;
  background: url("../../img/hero-coupon.svg") no-repeat center center/100% 100%;
}
@media (width >= 1200px) {
  .mfr-hero_coupon {
    justify-self: end;
    margin-inline: 16px;
  }
}
.mfr-hero_coupon_inner {
  display: grid;
  row-gap: 2px;
  place-items: center;
  padding: 8px 9% 8px 65%;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.mfr-hero_coupon_content {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 4px;
  margin-top: 4px;
  line-height: 1.2;
  border: solid 2px var(--primary);
  border-radius: 10px;
}
.mfr-hero_coupon_text {
  transition: all 150ms ease-in-out;
}
.mfr-hero_coupon_text.hide {
  visibility: hidden;
  opacity: 0;
}
.mfr-hero_coupon_text--code {
  position: absolute;
  width: 100%;
  word-break: break-word;
  text-align: center;
  padding: 4px;
}
.mfr-hero_coupon_btn {
  --padding: 8px;
  position: relative;
  padding-inline: var(--padding);
  line-height: 1.56;
}
.mfr-hero_coupon_btn:hover::before, .mfr-hero_coupon_btn:focus-visible::before, .mfr-hero_coupon_btn.disabled::before {
  opacity: 0;
}
.mfr-hero_coupon_btn::before {
  position: absolute;
  top: calc(100% - 6px);
  left: var(--padding);
  width: calc(100% - var(--padding) * 2);
  height: 1px;
  content: "";
  background-color: currentcolor;
  transition: opacity 150ms ease-in-out;
}
.mfr-hero_coupon_btn::after {
  content: attr(data-content-inactive);
}
.mfr-hero_coupon_btn.active::after {
  content: attr(data-content-active);
}
.mfr-hero_coupon_btn.active.disabled::after {
  content: attr(data-content-disabled);
}
.mfr-hero_coupon_btn.disabled {
  color: var(--primary-light);
  pointer-events: none;
  cursor: default;
}
@media (width >= 1200px) {
  .mfr-hero--blog {
    grid-template-areas: "content" "form";
  }
}
@media (width >= 740px) and (width <= 1199.98px) {
  .mfr-hero--blog {
    grid-template-areas: "content content" "form logo";
  }
}
@media (width <= 739.98px) {
  .mfr-hero--blog {
    grid-template-areas: "content" "logo" "form";
  }
}
.mfr-hero_search {
  display: grid;
  gap: 18px;
}
@media (width >= 1200px) {
  .mfr-hero_search {
    max-width: 490px;
  }
}
@media (width <= 1199.98px) {
  .mfr-hero_search {
    max-width: 388px;
  }
}
@media (width >= 740px) {
  .mfr-hero_search {
    grid-template-columns: 1fr auto;
  }
}
@media (width <= 739.98px) {
  .mfr-hero_search {
    width: 100%;
    margin-top: 16px;
  }
}
.mfr-hero_search_input {
  padding: 20px 20px 20px 56px;
  color: var(--dark);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%23212121' fill-opacity='.6' d='M9.5 3a6.5 6.5 0 0 1 4.94 10.73l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3Zm0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5Z'/%3E%3C/svg%3E") left 20px center/24px no-repeat;
  border: none;
  border-radius: 5px;
  outline: none;
}
.mfr-hero_search_input::placeholder {
  font-weight: normal;
  color: rgba(33, 33, 33, 0.6);
}