.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;
}

.irs--flat .irs-line {
  height: 8px !important;
  background: linear-gradient(270deg, #d85107 0%, #ed6c0c 100%) !important;
  opacity: 0.25 !important;
}

.irs--flat .irs-bar {
  height: 8px !important;
  background: linear-gradient(270deg, #d85107 0%, #ed6c0c 100%) !important;
}

.irs--flat .irs-min,
.irs--flat .irs-max {
  display: none !important;
}

.irs--flat .irs-handle {
  cursor: pointer !important;
  top: 18px !important;
  width: 24px !important;
  height: 24px !important;
  background: linear-gradient(270deg, #d85107 0%, #ed6c0c 100%) !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
}

.irs--flat .irs-handle i {
  display: none !important;
}

.irs--flat .irs-handle::after {
  position: absolute;
  content: '';
  top: calc(50% - 6px);
  right: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 20px;
}

.irs--flat .irs-from,
.irs--flat .irs-to,
.irs--flat .irs-single {
  top: -24px !important;
  font-size: 28px !important;
  line-height: 28px !important;
  font-weight: 700 !important;
  color: #000 !important;
  background-color: unset !important;
  padding: 0 !important;
}

.irs--flat .irs-from:before,
.irs--flat .irs-to:before,
.irs--flat .irs-single:before {
  display: none !important;
}

.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;
}

@media (max-width: 1200px) {
  .calculator__title {
    font-size: 45px;
    line-height: 45px;
  }
  .calculator__subtitle {
    line-height: 26px;
  }
  .irs--flat .irs-from,
  .irs--flat .irs-to,
  .irs--flat .irs-single {
    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;
  }

  .irs--flat .irs-from,
  .irs--flat .irs-to,
  .irs--flat .irs-single {
    line-height: 100% !important;
    top: -10px !important;
  }
  .control__range span {
    font-size: 14px;
    line-height: 14px;
  }
  .control__wrapper:first-child {
    margin-bottom: 20px;
  }
}
