.hero {
  overflow-x: clip;
  overflow-y: visible;
}

.hero__main {
  position: relative;
  min-height: 770px;
}

.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 51%) minmax(0, 49%);
  grid-template-areas:
    "copy visual"
    "actions visual"
    "stats visual";
  align-items: start;
  min-height: 770px;
  padding-top: 144px;
}

.hero__copy,
.hero__actions,
.hero__stats {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__copy {
  grid-area: copy;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 6.25vw, 5.625rem);
  font-variation-settings:
    "wdth" 100,
    "wght" 500;
  font-weight: 500;
  line-height: 1.0778;
  letter-spacing: 0;
}

.hero__title .text-gradient {
  display: block;
  padding-inline: 0.1em;
  margin-inline: -0.1em;
  font-style: italic;
}

.hero__description {
  width: min(100%, 30.4375rem);
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.2;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: 100%;
  margin-top: 1.5rem;
  padding: 0.5rem 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 90%);
  border-left: 1px solid rgb(255 255 255 / 90%);
  border-radius: 1.875rem;
  background: linear-gradient(
    145deg,
    rgb(255 255 255 / 6%),
    rgb(255 255 255 / 22%)
  );
  box-shadow:
    inset 0 5px 8px rgb(63 43 91 / 5%),
    inset 0 -5px 9px rgb(255 255 255 / 82%),
    0 2px 4px rgb(63 43 91 / 7%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 1rem;
  font-weight: 500;
}

.hero__chip img {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.hero__results {
  display: contents;
}

.hero__visual {
  position: absolute;
  right: calc(-1 * var(--page-gutter));
  bottom: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  grid-area: visual;
  width: min(61.2352vw, 55.1116rem);
}

.hero__visual img {
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
}

.hero__visual picture {
  display: flex;
  width: 100%;
}

.hero__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 20px;
}

.hero__stats {
  grid-area: stats;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.6667vw, 24px);
  margin-top: 0;
  padding: 1rem 1.5rem;
  max-width: 578px;
}

.hero-stat {
  display: flex;
  align-items: center;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 0.375rem;
  text-align: center;
}

.hero-stat__divider {
  width: 1px;
  height: 49px;
  flex: 0 0 1px;
  background: var(--color-element);
}

.hero-stat__value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-variation-settings:
    "wdth" 100,
    "wght" 600;
  font-weight: 600;
  line-height: 1;
}

.hero-stat__label {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
}

@media (min-width: 769px) and (max-width: 1000px) {
  .hero__main {
    min-height: 40rem;
  }

  .hero__layout {
    min-height: 40rem;
  }

  .hero__title {
    display: inline-flex;
    align-items: baseline;
    gap: 18px;
    width: calc(100vw - (2 * var(--page-gutter)));
    font-size: clamp(44px, 6vw, 60px);
    white-space: nowrap;
  }

  .hero__title .text-gradient {
    display: inline;
    flex: 0 0 auto;
  }

  .hero__chip {
    font-size: 0.8125rem;
  }

  .hero__actions {
    gap: 0.75rem;
  }

  .hero__actions .button {
    padding-inline: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero__main {
    min-height: 0;
    padding-bottom: 30px;
  }

  .hero__layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    padding-top: 126px;
  }

  .hero__copy,
  .hero__actions,
  .hero__stats {
    width: 100%;
  }

  .hero__title {
    display: block;
    width: 100%;
    font-size: clamp(3.5rem, 19.4444vw, 4.375rem);
    line-height: 0.9571;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
  }

  .hero__title .text-gradient {
    display: block;
  }

  .hero__description {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
  }

  .hero__chip {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    line-height: 1.1;
  }

  .hero__results {
    display: flex;
    flex-direction: column;
    gap: 54px;
    order: 2;
    width: 100%;
  }

  .hero__visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: visible;
  }

  .hero__visual img {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    transform: none;
    object-fit: contain;
    object-position: center bottom;
  }

  .hero__stats {
    grid-column: 1 / -1;
    width: calc(100vw - (2 * var(--page-gutter)));
    justify-content: space-between;
    gap: clamp(4px, 1.6667vw, 6px);
    height: 3.0625rem;
    margin: 0;
    padding: 0;
  }

  .hero-stat {
    flex: 0 0 auto;
  }

  .hero-stat__value {
    font-size: 0.875rem;
  }

  .hero-stat__label {
    font-size: clamp(0.5rem, 2.7778vw, 0.625rem);
    white-space: normal;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    order: 3;
    margin: 0;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__consultation {
    order: -1;
    padding: 1rem 2rem;
  }

}
