.hero-operator {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 5rem;
  padding-bottom: 6.25rem;

  .hero-image {
    flex: 2 1 0;
    min-width: 0;
    position: relative;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-bottom-right-radius: 3rem;
      border-bottom-left-radius: 3rem;
    }

    /* @media (min-width: 1280px) {
      img {
        position: absolute;
        top: 0;
        right: 0;
        width: calc(100% + (100vw - 1280px) / 2);
        max-width: none;
      }
    } */
  }

  .hero-section {
    padding-top: 11.9375rem;
    flex: 3 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;

    h1 {
      font-weight: 600;
      font-size: 3.5rem;
      line-height: 1;
      color: #101010;
    }

    h3 {
      color: var(--primary);
      font-size: 1.5rem;
    }

    p {
      color: #101010;
      margin-bottom: 1rem;
      font-size: 1.25rem;
    }
  }
}
@media (max-width: 1280px) {
  .hero-operator {
    gap: 5rem;
    .hero-section {
      padding-top: 8rem;
    }
  }
}
.hero-processor {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding-bottom: 8.75rem;

  .hero-image {
    min-width: 0;
    position: relative;

    img {
      width: 100%;
      height: 100%;
      max-height: 507px;
      object-fit: cover;
      border-bottom-right-radius: 5rem;
      border-bottom-left-radius: 5rem;
    }
  }

  .hero-section {
    max-width: 1280px;
    min-width: 0;
    display: flex;
    gap: 90px;

    h1 {
      font-weight: 600;
      font-size: 3.5rem;
      line-height: 110%;
      color: #101010;
      span {
        color: var(--primary);
      }
    }

    p {
      color: #101010;
      margin-bottom: 1rem;
      font-size: 1.25rem;
    }
  }
}

.key-advantages {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;

  h2 {
    font-weight: 600;
    font-size: 4rem;
    text-align: center;
    span {
      color: var(--primary);
    }
  }

  .key-advantages-container {
    width: 100%;

    ul {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
      font-size: 1.25rem;
      color: #101010;
      list-style: none;

      li {
        margin: 0;
        padding: 1.5rem;
        display: flex;
        gap: 1rem;
        align-items: center;
        border-radius: 1.5rem;
        box-shadow: 0 0 2.5rem #0000001a;

        .icon {
          width: 4rem;
          height: 4rem;
          flex-shrink: 0;
          background-color: #f0f8ff;
          border-radius: 0.625rem;
          display: flex;
          justify-content: center;
          align-items: center;

          img {
            width: 1.5rem;
            height: 1.5rem;
          }
        }
      }
    }
  }

  &.processors {
    .key-advantages-container {
      ul {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
      li:not(:nth-last-child(-n + 2)) {
        flex-direction: column;
        align-items: flex-start;
      }
      li:nth-last-child(-n + 2) {
        grid-column: span 2;
      }
    }
  }
}

.get-started {
  display: flex;
  align-items: center;
  gap: 4rem;
  h2 {
    margin: 0;
  }
  > div {
    flex: 1 1 0;
    min-width: 0;
  }

  .left-part {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    justify-content: flex-start;

    img {
      max-width: 15.625rem;
      height: auto;
      object-fit: contain;
    }

    p {
      font-size: 1.25rem;
      &:not(:last-child) {
        margin-bottom: 1rem;
      }
    }

    button {
      width: fit-content;
    }
  }

  .right-part img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 3rem;
  }
}

/* Tablet: preserve the desktop composition, but reduce the large desktop gaps. */
@media (max-width: 1024px) {
  .hero-operator {
    gap: 3rem;
    padding-bottom: 6rem;

    .hero-section {
      padding-top: 8rem;
      gap: 1.75rem;

      h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
      }

      h3 {
        font-size: 1.25rem;
      }

      p {
        font-size: 1rem;
      }
    }
  }

  .key-advantages {
    gap: 2rem;

    h2 {
      font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .key-advantages-container ul {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .get-started {
    gap: 2.5rem;

    .left-part {
      gap: 2rem;

      p {
        font-size: 1rem;
      }
    }
  }
}

/* Mobile layout based on the supplied 375 px reference. */
@media (max-width: 767px) {
  .hero-processor {
    .hero-section {
      flex-direction: column;
      padding: 1rem;
    }
  }
  .hero-operator,
  .hero-processor {
    max-width: none;
    flex-direction: column;
    gap: 0;
    padding-bottom: 3.5rem;

    .hero-image {
      width: 100%;
      height: 10rem;
      flex: 1;
      padding-top: 60px;
      img {
        display: block;
        width: 100%;
        height: 360px;
        object-fit: cover;
        object-position: center;
        border-bottom-right-radius: 1.5rem;
        border-bottom-left-radius: 1.5rem;
      }
    }

    .hero-section {
      width: 100%;
      padding: 1.25rem 1rem 0;
      gap: 1.25rem;
      text-align: center;

      h1 {
        max-width: 21rem;
        margin: 0 auto;
        font-size: clamp(1.75rem, 8vw, 2rem);
        line-height: 1.02;
      }

      h3 {
        max-width: 21rem;
        margin: 0 auto;
        font-size: 20px;
        line-height: 1.15;
      }

      p {
        font-size: 1rem;
        line-height: 1.35;
        :not(:last-child) {
          margin-bottom: 0.75rem;
        }
      }

      p:last-child {
        margin-bottom: 0;
      }
    }
  }

  .key-advantages,
  .key-advantages.processors {
    gap: 1rem;
    padding-bottom: 3rem;

    h2 {
      font-size: 1.75rem;
      line-height: 1.1;
      text-align: center;
    }

    .key-advantages-container {
      width: 100%;

      ul {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        font-size: 0.75rem;
        padding-left: 0;
        li:not(:nth-last-child(-n + 2)) {
          flex-direction: row;
          align-items: center;
          width: 100%;
        }
        li:nth-last-child(-n + 2) {
          grid-column: auto;
        }
        li {
          min-height: 3.75rem;
          padding: 0.75rem;
          gap: 0.75rem;
          border-radius: 1.25rem;
          box-shadow: 0 0 1.5rem #00000014;
          font-size: 1rem;
          .icon {
            width: 2.75rem;
            height: 2.75rem;
            border-radius: 0.5rem;

            img {
              width: 1.125rem;
              height: 1.125rem;
            }
          }
        }
      }
    }
  }

  .get-started {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;

    > div {
      flex: none;
      width: 100%;
    }

    .right-part {
      order: -1;

      img {
        width: 100%;
        border-radius: 1.5rem;
      }
    }

    .left-part {
      gap: 1.25rem;
      align-items: stretch;

      img {
        width: 250px;
        margin: 0 auto;
        /* max-width: 60%; */
      }

      p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.35;
        text-align: center;
      }

      button {
        width: 100%;
      }
    }
  }
}
