.calculator {
  margin: 100px 0;
}

.calculator__wrapper {
  position: relative;
  overflow: auto;
  padding: 60px 50px 0px 50px;
}

.calculator__title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 60px;
  line-height: 60px;
  text-align: center;
  margin-bottom: 10px;
}

.calculator__subtitle {
  font-size: 20px;
  line-height: 20px;
  text-align: center;
}

.calculator__inner {
  display: flex;
  justify-content: space-between;
}

.controls {
  max-width: 515px;
  width: 100%;
}

.control__wrapper:first-child {
  margin-bottom: 30px;
}

.control__name {
  font-size: 18px;
  line-height: 18px;
  color: #000;
  margin-bottom: 30px;
}

/* Стилі для слайдера */
.slider-wrapper {
  position: relative;
  height: 50px;
  margin-bottom: 15px;
}

.slider-value {
  position: absolute;
  top: -24px;
  font-size: 28px;
  line-height: 28px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  pointer-events: none;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(270deg, #d85107 0%, #ed6c0c 100%);
  opacity: 0.25;
  outline: none;
  -webkit-appearance: none;
  position: absolute;
  top: 18px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ed6c0c;
  color: #ed6c0c;
  border: 4px solid #fff;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(270deg, #d85107 0%, #ed6c0c 100%);
  border: 2px solid #fff;
  cursor: pointer;
}

.slider-track {
  position: absolute;
  top: 18px;
  height: 8px;
  background: linear-gradient(270deg, #d85107 0%, #ed6c0c 100%);
  border-radius: 4px;
  pointer-events: none;
}

.control__range {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.control__range span {
  font-size: 16px;
  line-height: 110%;
  color: #000;
}

.output {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(270deg, #d85107 0%, #ed6c0c 100%);
  border-radius: 20px;
  padding: 50px 30px;
}

.output__title {
  font-weight: 400;
  font-size: 30px;
  line-height: 30px;
  text-align: center;
  color: #fff;
  margin-bottom: 10px;
}

.output__earn {
  white-space: nowrap;
  font-weight: 700;
  font-size: 64px;
  line-height: 64px;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
}

.output__inner {
  display: flex;
  justify-content: space-between;
}

.output__subtitle {
  font-size: 18px;
  line-height: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.output__value {
  font-weight: 700;
  font-size: 36px;
  line-height: 36px;
  color: #fff;
}

.currency {
  font-weight: inherit;
}

@media (max-width: 1200px) {
  .calculator__title {
    font-size: 45px;
    line-height: 45px;
  }
  .calculator__subtitle {
    line-height: 26px;
  }
  .slider-value {
    font-size: 20px !important;
    line-height: 28px !important;
    top: -15px !important;
  }
  .controls {
    max-width: 460px;
  }
}

@media (max-width: 1024px) {
  .calculator__wrapper {
    padding: 30px 0 0;
  }
  .calculator {
    margin: 50px 0;
  }
  .control__range span:last-child {
    margin-right: 0;
  }
}

@media (max-width: 1023px) {
  .calculator__inner {
    flex-direction: column-reverse;
  }
  .output {
    max-width: 100%;
    margin-bottom: 30px;
  }
  .output__inner {
    max-width: 413px;
    margin: 0 auto;
  }
  .output__subtitle.revenue {
    text-align: right;
  }
  .controls {
    max-width: calc(100% - 60px);
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .calculator {
    margin: 30px 0;
  }
  .calculator__title {
    font-size: 30px;
    line-height: 30px;
    margin-bottom: 10px;
  }
  .calculator__subtitle {
    font-size: 14px;
    line-height: 20px;
  }
  .calculator__wrapper {
    padding: 28px 0 0;
  }
  .output {
    padding: 30px 22px;
  }
  .output__title {
    font-size: 18px;
    line-height: 18px;
    margin-bottom: 10px;
  }
  .output__earn {
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 20px;
  }
  .output__subtitle {
    font-size: 16px;
    line-height: 16px;
  }
  .output__value {
    font-size: 24px;
    line-height: 30px;
  }
  .controls {
    padding-right: 0;
  }
  .control__name {
    font-size: 16px;
    line-height: 16px;
    margin-bottom: 20px;
  }
  .slider-value {
    line-height: 100% !important;
    top: -10px !important;
  }
  .control__range span {
    font-size: 14px;
    line-height: 14px;
  }
  .control__wrapper:first-child {
    margin-bottom: 20px;
  }
}
