.mp-wrap {
  padding-left: 20px;
  padding-right: 20px;
}

.mp-wrap,
.mp-wrap *,
.mp-wrap *:before,
.mp-wrap *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.mp-head {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mp-head__title,
#content .mp-head__title {
  color: #000;
  font-size: 21px;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
}

.mp-head__help {
  margin-left: 10px;
}

.mp-head__help-link,
#content .mp-head__help-link {
  display: inline-block;
  vertical-align: bottom;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-decoration: underline;
  color: #000;
  padding-left: 25px;
  background: url(../images/calc-month-pay/ico-help.svg) 0 center no-repeat;
  -webkit-background-size: 16px 16px;
  background-size: 16px 16px;
  opacity: .5;
  white-space: nowrap;
}

.mp-head__help-link:hover,
#content .mp-head__help-link:hover {
  opacity: 1;
}

.mp-desc {
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  margin-bottom: 20px;
}

.mp-calc {
  background-color: #fdfdfd;
  border: 1px solid #dbdbdb;
  box-shadow: 0 0 1.9px 0.1px rgba(0, 0, 0, 0.2);
  padding: 20px 30px;
}

.mp-calc__title {
  color: #000;
  font-size: 21px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 20px;
}

.mp-calc__section {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  margin-bottom: 14px;
}

.mp-calc__label {
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  padding: 8px 0;
  position: relative;
  width: 225px;
}

.mp-calc__label-error {
  position: absolute;
  bottom: -7px;
  left: 0;
  color: #fa8693;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  display:none;
}

.mp-calc__value {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  width: 280px;
}

.mp-calc__input {
  width: 120px;
}

.mp-calc__input_sm {
  width: 80px;
}

.mp-calc .mp-calc__control {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
  color: #000;
  font-size: 17px;
  font-weight: 400;
  text-align: center;
}

.mp-calc .mp-calc__control::-webkit-input-placeholder {
  color: #d7d7d7;
  opacity: 1;
}

.mp-calc .mp-calc__control::-moz-placeholder {
  color: #d7d7d7;
  opacity: 1;
}

.mp-calc .mp-calc__control:-ms-input-placeholder {
  color: #d7d7d7;
  opacity: 1;
}

.mp-calc .mp-calc__control::-ms-input-placeholder {
  color: #d7d7d7;
  opacity: 1;
}

.mp-calc .mp-calc__control::placeholder {
  color: #d7d7d7;
  opacity: 1;
}

.mp-calc .mp-calc__control_error {
  border-color: #fa8693;
}

.mp-calc .mp-calc__control[disabled] {
  color: #d7d7d7;
  background-color: #fefefe;
  border-color: #eaeaea;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
}

.mp-calc__addon {
  padding: 8px 0 8px 10px;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  margin-right: 20px;
}

.mp-calc__addon:last-child {
  margin-right: 0;
}

.mp-calc__section_error .mp-calc__addon {
  color: #fa8693;
}

.mp-calc__section_disabled .mp-calc__addon {
  color: #d7d7d7;
}

.mp-calc__help {
  -ms-align-self: center;
  align-self: center;
}

.mp-help {
  position: relative;
  width: 12px;
  height: 12px;
  background: url(../images/calc-month-pay/ico-help.svg) 0 0 no-repeat;
  -webkit-background-size: 12px 12px;
  background-size: 12px 12px;
  cursor: pointer;
  opacity: .5;
}

.mp-help:hover {
  opacity: 1;
}

.mp-help__tooltip {
  cursor: default;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  padding: 10px 15px;
  background-color: #7e7e7e;
  position: absolute;
  top: 50%;
  left: 100%;
  z-index: 500;
  margin-left: 17px;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  border-radius: 2px;
  width: 235px;
  display: none;
}

.mp-help__tooltip:before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: -7px;
  margin-top: -8px;
  border-right: 7px solid #7e7e7e;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}


.mp-help:hover .mp-help__tooltip {
  display: block;
}

.mp-checkbox {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.mp-checkbox__control {
  position: absolute;
  opacity: 0;
}

.mp-checkbox__label {
  display: block;
  position: relative;
  color: #000;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  padding-left: 26px;
}

.mp-checkbox__label:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: 10px auto;
  background-size: 10px auto;
  border: 1px solid #dbdbdb;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
}

.mp-checkbox__control:checked + .mp-checkbox__label:before {
  background-image: url(../images/calc-month-pay/ico-checkbox.svg);
}

.mp-range {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -ms-align-items: center;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
  position: relative;
}

.mp-range_disabled {
  color: #d7d7d7;
  background-color: #fefefe;
  border-color: #eaeaea;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.09);
}

.mp-range__sep {
  color: #acacac;
  font-size: 17px;
  font-weight: 400;
  line-height: 38px;
}

.mp-range_disabled .mp-range__sep {
  color: #d7d7d7;
}

.mp-range .mp-range__control {
  display: block;
  width: 40px;
  height: 40px;
  color: #000;
  font-size: 17px;
  font-weight: 400;
  text-align: center;
  border: none;
  background: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  outline: none;
}
.mp-range_disabled .mp-range__control {
  color: #d7d7d7;
}

.mp-range__slider.ui-slider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  border: none;
  border-radius: 0;
  height: 1px;
  background: none;
}

.mp-range__slider.ui-widget.ui-widget-content {
  border: none;
}

.mp-range__slider.ui-slider .ui-widget-header {
  background: #56cd19;
  border-radius: 0;
  height: 1px;
}

.mp-range__slider.ui-slider .ui-slider-handle {
  background: #56cd19;
  border-radius: 50%;
  border: none;
  width: 17px;
  height: 17px;
  outline: none;
  top: -8px;
  margin-left: -8px;
}

.mp-calc__submit {
  margin-top: 40px;
}

.mp-calc__btn {
  display: block;
  width: 100%;
  height: 60px;
  background-color: #56cd19;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  text-align: center;
  line-height: 60px;
  cursor: pointer;
}

.mp-calc__btn:hover {
  color: #fff;
  background-color: #5fdb1f;
}

.mp-calc__note {
  color: #b7b7b7;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
  margin-top: 10px;
}

.mp-result {
  margin-top: 35px;
}

.mp-result__section {
  border-top: 1px solid #c9c9c9;
  padding-top: 30px;
  padding-bottom: 30px;
}

.mp-result__title {
  color: #000;
  font-size: 31px;
  font-weight: 700;
  line-height: 34px;
  margin: 0 0 20px 0;
}

.mp-result__total {
  text-align: center;
  margin-top: 40px;
}

.mp-result__total-title {
  color: #000;
  font-size: 21px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 15px;
}

.mp-result__total-sum {
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  line-height: 120px;
  white-space: nowrap;
  padding: 0 46px;
  background-color: #56cd19;
  display: table;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
}

.mp-result__total-desc {
  color: #000;
  font-size: 21px;
  font-weight: 400;
  line-height: 28px;
}

.mp-result__total-dist {
  font-size: 27px;
  font-weight: 700;
  padding: 0 5px;
  background-color: #e9e9e9;
}

.mp-result__sub-title {
  color: #000;
  font-size: 21px;
  font-weight: 700;
  line-height: 26px;
  margin: 0 0 20px 0;
}

.mp-result__table {
  width: 100%;
  max-width: 550px;
}

#content .mp-result__table thead th {
  color: #6a6a6a;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  padding: 0 10px 10px 0;
}

#content .mp-result__table tbody th[colspan="3"] {
  padding: 12px 10px;
  color: #7d7d7d;
  font-size: 19px;
  font-weight: 400;
  line-height: 26px;
  text-align: center;
  background-color: #e9e9e9;
}

#content .mp-result__table tbody td {
  padding: 12px 10px;
  color: #000;
  font-size: 21px;
  font-weight: 400;
  line-height: 26px;
  text-align: left;
  border-bottom: 1px solid #e9e9e9;
}

#content .mp-result__table tbody td:nth-child(1) {
  width: 30%;
  padding-left: 0;
}

#content .mp-result__table tbody td:nth-child(2) {
  width: 40%;
}

#content .mp-result__table tbody td:nth-child(3) {
  width: 30%;
  color: #f63;
  padding-right: 0;
}

.mp-result__export {
  margin-top: 20px;
}

.mp-export,
a.mp-export {
  display: inline-block;
  vertical-align: bottom;
  background: #f7f7f7 url(../images/calc-month-pay/ico-excel.svg) 20px center no-repeat;
  -webkit-background-size: 16px 18px;
  background-size: 16px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 20px 10px 50px;
  color: #5a5a5a;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

.mp-export:hover,
a.mp-export:hover {
  background-color: #f2f2f2;
}

.mp-fix {
  display: none;
}

@media (max-width: 800px) {
  .mp-help__tooltip {
    right: 100%;
    left: auto;
    margin-right: 17px;
    margin-left: 0;
  }

  .mp-help__tooltip:before {
    right: -7px;
    left: auto;
    border-right: none;
    border-left: 7px solid #7e7e7e;
  }
}

@media (max-width: 680px) {
  .mp-calc {
    padding: 10px;
  }

  .mp-result__total-sum {
    font-size: 50px;
    line-height: 80px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .mp-result__total-desc {
    font-size: 18px;
    line-height: 25px;
  }

  .mp-result__total-desc br {
    display: none;
  }

  .mp-result__total-dist {
    font-size: 23px;
  }

  .mp-fix {
    display: block;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 900;
  }

  .mp-fix__btn {
    display: block;
    width: 100%;
    height: 40px;
    background-color: #56cd19;
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 400;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
  }

  .mp-fix__btn:hover {
    color: #fff;
    background-color: #5fdb1f;
  }
}

@media (max-width: 600px) {
  .mp-head {
    display: block;
  }

  .mp-head__help {
    margin-left: 0;
    margin-top: 10px;
  }

  .mp-calc__section {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .mp-calc__label {
    width: 100%;
    padding-top: 0;
  }

  .mp-calc__label_empty {
    display: none;
  }

  .mp-calc__label-error {
    position: static;
  }

  .mp-calc__value {
    width: auto;
    flex-basis: 0;
    flex-grow: 1;
  }

  #content .mp-result__table tbody th[colspan="3"] {
    font-size: 17px;
    line-height: 24px;
  }

  #content .mp-result__table tbody td {
    font-size: 19px;
    line-height: 24px;
  }

  .mp-export, a.mp-export {
    font-size: 16px;
    line-height: 22px;
  }
}

@media (max-width: 530px) {
  .mp-result__total-sum {
    font-size: 36px;
    line-height: 60px;
    padding-left: 10px;
    padding-right: 10px;
    display: block;
  }
}

@media (max-width: 480px) {
  .mp-result__title {
    font-size: 25px;
  }

  .mp-result__sub-title {
    font-size: 19px;
    line-height: 23px;
  }

  #content .mp-result__table tbody td {
    font-size: 16px;
  }
}

@media (max-width: 375px) {
  .mp-calc__input_sm {
    width: 66px;
  }

  .mp-calc__addon {
    font-size: 15px;
    margin-right: 15px;
  }

  .mp-result__total-sum {
    font-size: 30px;
  }

  #content .mp-result__table thead th {
    padding-right: 4px;
    font-size: 13px;
    line-height: 14px;
  }

  #content .mp-result__table tbody th[colspan="3"] {
    font-size: 15px;
    padding: 8px 4px;
  }

  #content .mp-result__table tbody td {
    font-size: 14px;
    padding-left: 4px;
    padding-right: 4px;
  }
}