.formatto-hero {
  position: relative;
  width: calc(100% - 4rem);
  max-width: 116rem;
  aspect-ratio: 1856 / 774;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 2rem;
  background: #0087d5;
}

.formatto-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.formatto-hero__content {
  position: absolute;
  top: 50%;
  left: 9.125rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 39.3125rem;
  gap: 3rem;
  transform: translateY(-50%);
}

.formatto-hero h1,
.formatto-hero p {
  margin: 0;
}

.formatto-hero h1 {
  max-width: 39.3125rem;
  color: var(--color-blue-50);
  font-family: var(--font-body);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04rem;
}

.formatto-hero p {
  max-width: 37.875rem;
  color: #dcf3ff;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015rem;
}

.formatto-hero__actions {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.formatto-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.3125rem;
  padding: 1.25rem 1.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.formatto-hero__button--primary {
  color: var(--color-blue-600);
  background: var(--color-blue-50);
  font-size: 1rem;
  line-height: 1;
  letter-spacing: -0.01rem;
}

.formatto-hero__button--primary img {
  width: 0.690625rem;
  height: 0.690625rem;
}

.formatto-hero__button--ghost {
  color: var(--color-blue-50);
  background: transparent;
  font-size: 1.125rem;
  line-height: normal;
  letter-spacing: 0;
}

.formatto-hero__button--ghost img {
  width: 1.079rem;
  height: 1.375rem;
}

.formatto-hero__button:hover,
.formatto-hero__button:focus-visible {
  opacity: 0.86;
}

@media (min-width: 1367px) and (max-width: 1919px) {
  .formatto-hero {
    width: 96.667vw;
    max-width: none;
    aspect-ratio: 1856 / 774;
    border-radius: 1.667vw;
  }

  .formatto-hero__content {
    left: 7.604vw;
    width: 32.76vw;
    gap: 2.5vw;
  }

  .formatto-hero h1 {
    max-width: 32.76vw;
    font-size: clamp(24px, 3.333vw, 64px);
    letter-spacing: -0.033vw;
  }

  .formatto-hero p {
    max-width: 31.563vw;
    font-size: clamp(16px, 1.25vw, 24px);
    letter-spacing: -0.013vw;
  }

  .formatto-hero__actions {
    gap: 0.521vw;
  }

  .formatto-hero__button {
    gap: 0.521vw;
    min-height: 2.76vw;
    padding: 1.042vw 1.458vw;
    border-radius: 0.313vw;
  }

  .formatto-hero__button--primary {
    font-size: clamp(16px, 0.833vw, 16px);
    letter-spacing: -0.008vw;
  }

  .formatto-hero__button--primary img {
    width: clamp(8px, 0.576vw, 11px);
    height: clamp(8px, 0.576vw, 11px);
  }

  .formatto-hero__button--ghost {
    font-size: clamp(16px, 0.938vw, 18px);
  }

  .formatto-hero__button--ghost img {
    width: clamp(13px, 0.899vw, 17px);
    height: clamp(16px, 1.146vw, 22px);
  }
}

@media (max-width: 1366px) {
  .formatto-hero {
    width: 96.667vw;
    max-width: none;
    aspect-ratio: 1856 / 774;
    border-radius: 2.343vw;
  }

  .formatto-hero__content {
    left: 7.604vw;
    width: 32.76vw;
    gap: 2.5vw;
  }

  .formatto-hero h1 {
    max-width: 32.76vw;
    font-size: clamp(20px, 3.333vw, 64px);
    letter-spacing: -0.033vw;
  }

  .formatto-hero p {
    max-width: 31.563vw;
    font-size: clamp(14px, 1.25vw, 24px);
    letter-spacing: -0.013vw;
  }

  .formatto-hero__actions {
    gap: 0.521vw;
  }

  .formatto-hero__button {
    gap: 0.521vw;
    min-height: 2.76vw;
    padding: 1.042vw 1.458vw;
    border-radius: 0.313vw;
  }

  .formatto-hero__button--primary {
    font-size: clamp(14px, 0.833vw, 16px);
    letter-spacing: -0.008vw;
  }

  .formatto-hero__button--primary img {
    width: clamp(8px, 0.576vw, 11px);
    height: clamp(8px, 0.576vw, 11px);
  }

  .formatto-hero__button--ghost {
    font-size: clamp(14px, 0.938vw, 18px);
  }

  .formatto-hero__button--ghost img {
    width: clamp(13px, 0.899vw, 17px);
    height: clamp(16px, 1.146vw, 22px);
  }
}

@media (max-width: 1024px) {
  .formatto-hero h1 {
    font-size: clamp(22px, 3.333vw, 64px);
  }

  .formatto-hero p {
    font-size: clamp(14px, 1.25vw, 24px);
  }

  .formatto-hero__button--primary {
    font-size: clamp(14px, 0.833vw, 16px);
  }

  .formatto-hero__button--ghost {
    font-size: clamp(14px, 0.938vw, 18px);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .formatto-hero {
    width: 96.667vw;
    height: 40.313vw;
    aspect-ratio: auto;
    border-radius: 1.667vw;
  }

  .formatto-hero__content {
    left: 7.604vw;
    width: 32.76vw;
    gap: 2.5vw;
  }

  .formatto-hero h1 {
    max-width: 32.76vw;
    font-size: 3.333vw;
    letter-spacing: -0.033vw;
  }

  .formatto-hero p {
    max-width: 31.563vw;
    font-size: 1.25vw;
    letter-spacing: -0.013vw;
  }

  .formatto-hero__actions {
    gap: 0.521vw;
  }

  .formatto-hero__button {
    gap: 0.521vw;
    min-height: 2.76vw;
    padding: 1.042vw 1.458vw;
    border-radius: 0.313vw;
  }

  .formatto-hero__button--primary {
    font-size: 0.833vw;
    letter-spacing: -0.008vw;
  }

  .formatto-hero__button--primary img {
    width: 0.576vw;
    height: 0.576vw;
  }

  .formatto-hero__button--ghost {
    font-size: 0.938vw;
  }

  .formatto-hero__button--ghost img {
    width: 0.899vw;
    height: 1.146vw;
  }
}

@media (max-width: 767px) {
  .formatto-hero {
    width: 91.656vw;
    height: 150vw;
    aspect-ratio: auto;
    border-radius: 4.172vw;
  }

  .formatto-hero__image {
    object-position: center center;
  }

  .formatto-hero__content {
    top: 50%;
    left: 19.035vw;
    width: 82.008vw;
    gap: 6.258vw;
    transform: translateY(-50%);
  }

  .formatto-hero h1 {
    max-width: 82.008vw;
    font-size: 8.344vw;
    letter-spacing: -0.083vw;
  }

  .formatto-hero p {
    max-width: 79.009vw;
    font-size: 3.129vw;
    letter-spacing: -0.031vw;
  }

  .formatto-hero__actions {
    flex-wrap: nowrap;
    gap: 1.304vw;
  }

  .formatto-hero__button {
    gap: 1.304vw;
    min-height: 6.91vw;
    padding: 3.75vw 5.25vw;
    border-radius: 0.782vw;
  }

  .formatto-hero__button--primary {
    font-size: 3vw;
    letter-spacing: -0.03vw;
  }

  .formatto-hero__button--primary img {
    width: 1.441vw;
    height: 1.441vw;
  }

  .formatto-hero__button--ghost {
    padding-left: 5.25vw;
    font-size: 3vw;
  }

  .formatto-hero__button--ghost img {
    width: 2.251vw;
    height: 2.868vw;
  }
}

@media (min-width: 768px) and (max-width: 1408px) {
  .formatto-hero {
    width: 96.666667vw;
    height: auto;
    aspect-ratio: 1856 / 774;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    border-radius: 1.666667vw;
  }

  .formatto-hero__content {
    left: 7.604167vw;
    width: 32.760417vw;
    gap: 2.5vw;
  }

  .formatto-hero h1 {
    max-width: 32.760417vw;
    font-size: 3.333333vw;
    letter-spacing: -0.033333vw;
  }

  .formatto-hero p {
    max-width: 31.5625vw;
    font-size: 1.25vw;
    letter-spacing: -0.0125vw;
  }

  .formatto-hero__actions,
  .formatto-hero__button {
    gap: 0.520833vw;
  }

  .formatto-hero__button {
    min-height: 2.760417vw;
    padding: 1.041667vw 1.458333vw;
    border-radius: 0.3125vw;
  }

  .formatto-hero__button span {
    font-size: 0.833333vw;
    letter-spacing: -0.008333vw;
  }

  .formatto-hero__button--primary img {
    width: 0.575521vw;
    height: 0.575521vw;
  }

  .formatto-hero__button--ghost span {
    font-size: 0.9375vw;
  }

  .formatto-hero__button--ghost img {
    width: 0.899167vw;
    height: 1.145833vw;
  }
}

@media (max-width: 767px) {
  .formatto-hero {
    width: 90vw;
    background-image: url("../../../dist/images/bg-hero-mobile-1.avif");
    background-position: center;
    background-size: cover;
  }

  .formatto-hero__image {
    display: none;
  }

  .formatto-hero__content {
    top: 10vw;
    left: 50%;
    align-items: center;
    width: 80vw;
    max-width: 80vw;
    text-align: center;
    transform: translateX(-50%);
  }

  .formatto-hero h1,
  .formatto-hero p {
    max-width: 100%;
  }

  .formatto-hero__actions {
    justify-content: center;
    width: 100%;
  }
}

@media (min-width: 1409px) and (max-width: 1919px) {
  .formatto-hero {
    width: 96.666667vw;
    height: auto;
    max-width: none;
    border-radius: 1.666667vw;
  }

  .formatto-hero__content {
    left: 7.604167vw;
    width: 32.760417vw;
    gap: 2.5vw;
  }

  .formatto-hero h1 {
    max-width: 32.760417vw;
    font-size: 3.333333vw;
    letter-spacing: -0.033333vw;
  }

  .formatto-hero p {
    max-width: 31.5625vw;
    font-size: 1.25vw;
    letter-spacing: -0.0125vw;
  }

  .formatto-hero__actions,
  .formatto-hero__button {
    gap: 0.520833vw;
  }

  .formatto-hero__button {
    min-height: 2.760417vw;
    padding: 1.041667vw 1.458333vw;
    border-radius: 0.3125vw;
  }

  .formatto-hero__button span {
    font-size: 0.833333vw;
    letter-spacing: -0.008333vw;
  }

  .formatto-hero__button--primary img {
    width: 0.575521vw;
    height: 0.575521vw;
  }

  .formatto-hero__button--ghost span {
    font-size: 0.9375vw;
  }

  .formatto-hero__button--ghost img {
    width: 0.899167vw;
    height: 1.145833vw;
  }
}
