.home-main-hero {
  min-height: 500px;
  padding: 42px 44px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 42%, rgba(247, 251, 255, 0.38) 62%, rgba(247, 251, 255, 0.08) 100%),
    url("/img/home-hero-wallet-scene.png") right center / auto 100% no-repeat;
}

.home-main-hero__grid {
  grid-template-columns: minmax(0, 680px) 1fr;
  gap: 16px;
  align-items: start;
  min-height: 410px;
}

.home-main-hero__copy {
  position: relative;
  z-index: 2;
}

.home-hero-art {
  display: none;
}

.home-hero-art::before {
  display: none;
}

.home-main-hero h1 {
  max-width: 680px;
  font-size: 52px;
  line-height: 1.13;
}

.hero-title-line {
  display: block;
}

.home-main-hero p {
  max-width: 570px;
  margin-top: 26px;
  font-size: 15.5px;
  line-height: 1.5;
}

.home-hero-facts {
  width: min(100%, 620px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.home-hero-facts span {
  min-height: 54px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #07183d;
}

.home-hero-facts .hero-fact-icon {
  grid-row: auto;
  align-self: center;
  justify-self: start;
}

.home-hero-facts .hero-fact-icon svg {
  width: 25px;
  height: 25px;
  padding: 0;
}

.home-hero-facts b {
  display: flex;
  min-height: 46px;
  align-items: center;
  align-self: center;
  color: #07183d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.18;
}

.home-hero-facts small {
  display: none;
}

@media (max-width: 1320px) {
  .home-main-hero {
    background-position: calc(100% + 24px) center;
  }

  .home-main-hero__grid {
    grid-template-columns: minmax(0, 660px) 1fr;
  }

  .home-main-hero h1 {
    max-width: 660px;
    font-size: 50px;
  }
}

@media (max-width: 1120px) {
  .home-main-hero {
    background-size: auto 94%;
    background-position: calc(100% + 80px) center;
  }

  .home-main-hero__grid {
    grid-template-columns: minmax(0, 600px) 1fr;
  }

  .home-main-hero h1 {
    max-width: 600px;
    font-size: 44px;
  }
}

@media (max-width: 900px) {
  .home-main-hero {
    --hero-mobile-pad: clamp(24px, 5.4vw, 44px);
    overflow: visible;
    min-height: 0;
    padding: clamp(24px, 4vw, 42px) var(--hero-mobile-pad) clamp(28px, 4vw, 42px);
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  }

  .home-main-hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 26px);
  }

  .home-hero-art {
    display: block;
    width: calc(100% + var(--hero-mobile-pad) + var(--hero-mobile-pad));
    height: clamp(202px, 58vw, 330px);
    min-height: 0;
    position: relative;
    order: -1;
    margin: 0 calc(0px - var(--hero-mobile-pad)) 18px;
    overflow: visible;
    isolation: isolate;
  }

  .home-hero-art::before {
    content: "";
    display: block;
    position: absolute;
    inset: -2px 0;
    background: url("/img/home-hero-wallet-scene.png") right center / clamp(540px, 118vw, 860px) auto no-repeat;
    filter: saturate(1.04) contrast(1.02);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .home-main-hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 8vw, 46px);
  }

  .home-hero-facts {
    width: min(100%, 520px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
  }
}

@media (min-width: 621px) and (max-width: 900px) {
  .home-main-hero {
    --hero-mobile-pad: clamp(30px, 5vw, 40px);
    padding-top: clamp(24px, 3.4vw, 32px);
    padding-bottom: clamp(22px, 3vw, 28px);
  }

  .home-main-hero__grid {
    gap: 22px;
  }

  .home-hero-art {
    height: clamp(258px, 36vw, 292px);
    margin-bottom: 0;
  }

  .home-hero-art::before {
    background-position: center center;
  }

  .home-main-hero h1 {
    max-width: min(100%, 690px);
    font-size: clamp(41px, 5.7vw, 45px);
    line-height: 1.12;
  }

  .home-main-hero p {
    max-width: 620px;
    margin-top: 20px;
  }

  .home-hero-facts {
    width: min(100%, 610px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin-top: 24px;
  }

  .home-hero-facts span {
    min-height: 48px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .home-hero-facts .hero-fact-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .home-hero-facts .hero-fact-icon svg {
    width: 23px;
    height: 23px;
  }

  .home-hero-facts b {
    min-height: 42px;
    font-size: 12px;
    line-height: 1.14;
  }
}

@media (max-width: 620px) {
  .home-main-hero {
    --hero-mobile-pad: clamp(18px, 5vw, 22px);
  }

  .home-main-hero h1 {
    max-width: none;
    font-size: clamp(30px, 7.2vw, 36px);
    line-height: 1.15;
    text-wrap: balance;
  }

  .hero-title-line {
    display: inline;
  }

  .home-main-hero p {
    margin-top: 16px;
    font-size: 15px;
  }

  .home-hero-facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
    margin-top: 28px;
  }

  .home-hero-facts span {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .home-hero-facts .hero-fact-icon {
    width: 42px;
    height: 42px;
  }

  .home-hero-facts .hero-fact-icon svg {
    width: 23px;
    height: 23px;
  }

  .home-hero-facts b {
    min-height: 0;
    align-items: center;
    font-size: 11.5px;
  }
}

@media (max-width: 360px) {
  .home-hero-art {
    height: 190px;
  }

  .home-hero-facts {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 340px) {
  .home-main-hero {
    --hero-mobile-pad: 14px;
  }

  .home-hero-art {
    height: 184px;
    margin-bottom: 16px;
  }

  .home-main-hero h1 {
    font-size: 28.5px;
    line-height: 1.14;
  }

  .home-main-hero p {
    font-size: 14.5px;
  }
}
