.homepage-operations {
  padding: 6.25rem 3rem;
  background: var(--main-bg-color);
  margin-block: 8rem 10rem;
}

.ad-operation-text {
  font-size: var(--font-size-xxxxl);
  font-weight: var(--font-weight-bold);
  line-height: 4.0625rem;
  text-align: center;
  width: 28.1875rem;
  background: linear-gradient(90deg, #1657FE 0%, #64FBD3 96.9%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  align-self: center;
}

.operations-grid {
  max-width: var(--max-screen-width);
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 0 auto;
}

.operations-card {
  box-sizing: border-box;
  place-self: center;
  box-shadow: 0 0.25rem 1.875rem 0 #1657FE1A;
  background: var(--white);
  width: 24.125rem;
  height: 19.3125rem;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.operations-card-title {
  font-weight: var(--font-weight-bold);
  color: var(--blue);
  font-size: var(--font-size-xxxl);
  line-height: 3.125rem;
  text-align: center;
}

.operations-card-text {
  margin: 0;
  font-weight: var(--font-weight-regular);
  color: var(--main-text-color);
  font-size: var(--font-size-xl);
  line-height: 2.0625rem;
  text-align: center;
  max-width: 20.125rem;
}


.bottom-left-curved-line {
  transform: rotate(-180deg);
  justify-self: end;
  align-self: start;
}

.bottom-right-curved-line {
  transform: rotate(90deg);
}

.top-left-curved-line {
  transform: rotate(270deg);
  justify-self: end;
  align-self: end;
}

.top-right-curved-line {
  justify-self: start;
  align-self: end;
}


.operations-card:first-of-type {
  margin-bottom: 3.75rem;
}

.operations-card:last-of-type {
  margin-top: 3.75rem;
}

@media only screen and (max-width: 1366px)  {
  .operations-card {
    width: 100%;
    height: max-content;
  }

  .operations-grid {
    row-gap: 1.5rem;
    column-gap: 2rem;
  }

  .ad-operation-text {
    font-size: var(--font-size-40);
    line-height: 3rem;
    margin: 0;
    max-width: 28.1875rem;
    width: 100%;

  }

  .top-right-curved-line, .top-left-curved-line, .bottom-right-curved-line, .bottom-left-curved-line {
    width: 12.5rem;
    height: 12.5rem;
  }

  .homepage-operations {
    margin-block: 8rem;
  }
}



@media only screen and (max-width: 1200px) {
  .ad-operation-text {
    max-width: 23.3125rem;
  }

  .operations-card-text {
    font-size: var(--font-size-l);
    line-height: 1.5rem;
  }

  .operations-card-title {
    font-size: var(--font-size-xxl);
    line-height: 2.375rem;
  }

  .top-right-curved-line, .top-left-curved-line, .bottom-right-curved-line, .bottom-left-curved-line {
    width: 10.375rem;
    height: 10.375rem;
  }

  .homepage-operations {
    padding-inline: 1.5rem;
  }
}

@media only screen and (max-width: 1080px) {
  .top-right-curved-line, .top-left-curved-line, .bottom-right-curved-line, .bottom-left-curved-line {
    width: 9.625rem;
    height: 9.625rem;
  }
}

@media only screen and (max-width: 960px) {
  .homepage-operations {
    padding: 4rem 1.5rem;
    margin-block: 5rem;
  }
  .operations-grid {
    max-width: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
  }

  .top-right-curved-line, .top-left-curved-line, .bottom-right-curved-line, .bottom-left-curved-line {
    display: none;
  }

  .operations-card {
    width: 100%;
    height: 100%;
  }

  .ad-operation-text {
    order: -1;
    font-size: var(--font-size-40);
    line-height: 3rem;
    max-width: 35rem;
    margin-inline: auto;
    margin-bottom: 1.5rem;
  }

  .operations-card-title {
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xxxl);
  }

  .operations-card-text {
    margin: 0;
    font-weight: var(--font-weight-regular);
    color: var(--main-text-color);
    font-size: var(--font-size-xl);
    line-height: 2.0625rem;
    text-align: center;
    max-width: 20.125rem;
  }

  .operations-card:first-of-type {
    margin-bottom: 0;
  }

  .operations-card:last-of-type {
    margin-top: 0;
  }

  .operations-card-text {
    max-width: 100%;
  }

  .operations-card:nth-of-type(2) {
    order: 1;
  }
}


