.ton {
  width: 100%;
  flex: 1;
  background-color: #ffc634;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 120px;

  padding: 155px 100px;
}

.ton .buy-car-wrapper {
  flex: 1;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.ton .buy-car-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.ton .buy-car-row img {
  flex: 1;
}

.ton .overlap-group {
  /* position: absolute; */
  /* position: relative;
  width: 619px;
  height: 495px; */
  /* top: 117px; */
  /* left: 94px; */
}

.ton .image {
  position: absolute;
  width: 457px;
  height: 368px;
  top: 77px;
  left: 77px;
}

.ton .x {
  position: absolute;
  /* width: 619px; */
  /* height: 495px; */
  top: 0;
  left: 0;
}

.ton .frame {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  /* position: absolute; */
  /* top: 155px; */
  /* left: 816px; */
}

@media (max-width: 1400px) {
  .ton {
    flex-direction: column-reverse;
    padding: 100px 20px;
    gap: 50px;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .ton {
    flex-direction: column-reverse;
    padding: 100px 20px;
    gap: 50px;
  }

  .next-button {
    width: 100%;
  }

  .ton .overlap-group {
    width: 100%;
    /* justify-content: center;
    align-items: center;
    display: flex; */
  }

  .ton .frame {
    width: 100%;
    /* flex: 1; */
  }

  .ton .image {
    width: 100%;
    height: auto;
    position: static;
    max-width: 457px;
  }

  .ton .x {
    display: none;
  }

  .ton .text-wrapper {
    text-align: center;
  }
}

.ton .div {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  position: relative;
  flex: 0 0 auto;
}

.ton .text-wrapper {
  position: relative;
  /* width: fit-content; */
  margin-top: -5px;
  margin-left: -4px;
  -webkit-text-stroke: 4px #000000;
  font-family: "Bangers", Helvetica;
  font-weight: 400;
  color: #ed3a23;
  font-size: 90px;
  letter-spacing: 1.8px;
  line-height: 85.5px;
  text-align: center;
  width: 100%;
  /* white-space: nowrap; */
}

.ton .frame-2 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  position: relative;
  flex: 0 0 auto;

  margin: 0 20px;
}

.ton .frame-3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: 0 0 auto;
}

.ton .ellipse {
  position: relative;
  width: 13px;
  height: 13px;
  background-color: #ed3a23;
  border-radius: 6.5px;
  border: 1.5px solid;
  border-color: #000000;
  align-self: flex-start;
  margin-top: 6px;
}

.ton .p {
  position: relative;
  /* width: fit-content; */
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #000000;
  font-size: 20px;
  letter-spacing: -0.8px;
  line-height: 28px;
  /* white-space: nowrap; */
}

.ton .span {
  font-weight: 700;
  letter-spacing: -0.16px;
  font-size: 24px;
}

.ton .text-wrapper-2 {
  font-weight: 500;
  letter-spacing: -0.16px;
  font-size: 24px;
}

.ton .text-wrapper-3 {
  font-weight: 600;
  letter-spacing: -0.16px;
}

.ton .text-wrapper-4 {
  position: relative;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #000000;
  font-size: 28px;
  letter-spacing: -1.12px;
  line-height: 39.2px;

  margin: 0 20px;
}

.ton .btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 40px;
  position: relative;
  flex: 0 0 auto;
  background-color: #ed3a23;
}

.ton .go-to-race {
  position: relative;
  width: fit-content;
  margin-top: -1px;
  font-family: "Inter", Helvetica;
  font-weight: 600;
  color: #ffffff;
  font-size: 18px;
  letter-spacing: -0.72px;
  line-height: normal;
  /* white-space: nowrap; */
}

.next-button {
  background-color: #ed3a23; /* Inner button color */
  border: none;
  color: #000;
  padding: 20px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px; /* Rounded corners */
  outline: none;
  cursor: pointer;
  position: relative;
  /* z-index: 1; Ensure it is above the pseudo-elements */
}

.next-button::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 3px solid #000; /* Outer black border */
  border-radius: 50px; /* Matching border-radius */
  /* z-index: -2; Place it behind the before pseudo-element */
  background-color: transparent;
}

.next-button:hover {
  background-color: #c1443f; /* Darken on hover */
}