.scale {
  padding-bottom: 9.875rem;
}

.scale__card {
  padding: 3rem 2rem;
  position: relative;
}

.scale__content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 800px;
}

.scale__text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.scale__text {
  max-width: 485px;
  color: #fffffc;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 140%;
}

.scale__button {
  max-width: max-content;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 0.75rem;
  line-height: 1;
}

.scale__card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  background: url("../img/scale-desktop.png") no-repeat center right;
  background-size: contain;
  width: 685px;
  height: 490px;
}

/* Media queries (moved to the end) */

@media (max-width: 1440px) {
  .scale {
    padding-bottom: 7.5rem;
  }

  .scale__card {
    padding: 2.5rem 1.75rem;
  }

  .scale__content {
    gap: 3rem;
    max-width: 700px;
  }

  .scale__text {
    max-width: 420px;
    font-size: 1.125rem;
  }

  .scale__card::after {
    width: 550px;
    height: 400px;
  }
}

@media (max-width: 1280px) {
  .scale {
    padding-bottom: 6.25rem;
  }

  .scale__card {
    padding: 2.25rem 1.5rem;
  }

  .scale__content {
    gap: 2.5rem;
    max-width: 600px;
  }

  .scale__text {
    max-width: 380px;
    font-size: 1rem;
  }

  .scale__card::after {
    width: 400px;
    height: 300px;
  }
}

@media (max-width: 1250px) {
  .scale__card::after {
    width: 340px;
    height: 381px;
  }
}

@media (max-width: 1023.98px) {
  .scale {
    padding-bottom: 6.25rem;
  }

  .scale__card {
    padding: 7.5rem 1.5rem 1.5rem;
  }

  .scale__content {
    gap: 2rem;
    max-width: 100%;
    align-items: center;
  }

  .scale__text-wrapper {
    align-items: center;
    text-align: center;
  }

  .scale__card::after {
    content: "";
    position: absolute;
    background: url("../img/scale-mob.png") no-repeat center top;
    background-size: contain;
    top: -6.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 301px;
    height: 219px;
    right: auto;
  }
}

@media (max-width: 767.98px) {
  .scale {
    padding-bottom: 6rem;
  }

  .scale__text {
    font-size: 1rem;
    line-height: 1.5rem;
    max-width: 100%;
  }

  .scale__button {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 425px) {
  .scale__container {
    padding: 0;
  }
}
