.hero-loan {
  display: flex;
  justify-content: center;
  align-items: center;
}

.calculator {
  background: #FDFDFF;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  text-align: right;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* ← важно */
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  /* хак для iOS */
  transform: translateZ(0);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  /* метка слева, сумма справа */
  align-items: baseline;
  margin-bottom: 8px;
}

.calc-label {
  font-size: 34px;
  line-height: 46px;
  float: left;
  font-family: 'Evolventa';
  color: #1b1b1b;
  margin: 0;
}

.calc-label-2 {
  font-size: 22px;
  line-height: 30px;
  float: left;
  font-family: 'Evolventa';
  margin: 0;
}

.calc-amount {
  color: #1B1B1B;
  font-size: 48px;
  line-height: 60px;
  font-weight: bold;
  font-family: 'Evolventa';
  margin: 0;
}

.calc-wrapper {
  position: relative;
  overflow: hidden;
}

.calc-wave {
  display: block;
  width: 100%;
  height: 20px;
  margin-top: -1px;
  /* убрать стык */
}

.calc-amount .currency {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 40px;
  letter-spacing: 0;
  margin-left: 4px;
  vertical-align: bottom;
}

#loanRange {
  width: 100%;
  margin: 12px 0;
  accent-color: #e91e63;
}

.calc-minmax {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  color: #888;
}

.calc-top {
  padding: 20px 16px 16px 16px;
}

.calc-result {
  background: #1B2E41;
  color: #fff;
  border-radius: 0 0 16px 16px;
  padding: 10px 16px 20px 16px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.calc-result .calc-pay {
  font-size: 40px;
  line-height: 44px;
  font-weight: bold;
  padding-bottom: 24px;
  font-family: 'Evolventa';
}

.calc-pay .payAmount {
  font-size: 28px;
  line-height: 36px;
  font-weight: bold;
  font-family: 'Evolventa';
  margin: 0;
}

.calc-pay .currency {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 0;
  margin-left: 4px;
  vertical-align: bottom;
}

.calc-button {
  background: #c5ff00;
  border: none;
  border-radius: 100px;
  padding: 10px 20px 10px 20px;
  font-size: 24px;
  font-family: 'Poppins';
  font-weight: 400;
  line-height: 36px;
  cursor: pointer;
  width: 100%;
  transition: transform .2s;
}

.calc-button:hover {
  transform: translateY(-2px);
}

.calc-info {
  margin-top: -11px;
  position: relative;
}

.info-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.info-text {
  display: none;
  margin-top: 8px;
  color: #555;
  background: #f9f9f9;
  padding: 12px 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: 256;
  angle: 0 deg;
  opacity: 1;
  padding-top: 8px;
  padding-right: 16px;
  padding-bottom: 8px;
  padding-left: 16px;
  border-radius: 8px;
  font-family: Poppins;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0px;
  vertical-align: middle;
}

.info-text.active {
  display: block;
}

/* popover */
.info-popover {
  display: none;
  position: absolute;
  bottom: 125%;
  /* над кнопкой */
  left: 65%;
  transform: translateX(-50%);
  background: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  width: 320px;
  z-index: 10;
}

.info-popover {
  color: #1B1B1B;
  /* цвет текста */
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0;
  vertical-align: middle;
}

.info-popover p,
.info-popover li {
  margin: 0 0 6px;
  color: #1B1B1B;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0;
  vertical-align: middle;
}

/* стрелочка */
.info-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  /* снизу поповера */
  left: 95%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* крестик */
.info-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.info-popover.active {
  display: block;
}

/* Hero Calculator Tablet Portrait */
@media (max-width: 1024px) {
  .hero .calculator {
    max-width: 340px;
    /* уменьшаем ширину блока */
  }

  .calc-top {
    background: #FDFDFF;
    padding: 20px 16px 9px 16px;
  }

  .calc-label {
    font-size: 24px;
    line-height: 36px;
  }

  .calc-label-2 {
    font-size: 16px;
    line-height: 32px;
  }

  .calc-amount {
    font-size: 40px;
    font-weight: 700;
    line-height: 40px;
  }

  #loanRange {
    margin: 10px 0;
  }

  .info-popover {
    left: 46vw;
  }

  .calc-result .calc-pay {
    font-size: 40px;
    font-weight: 700;
    line-height: 40px;
  }

  .hero .calculator input[type="range"] {
    width: 100%;
  }

  .calc-minmax {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
  }

  .calc-button {
    background: #c5ff00;
    color: #1B1B1B;
    border: none;
    border-radius: 100px;
    padding: 8px 16px 8px 16px;
    font-size: 20px;
    font-family: 'Poppins';
    font-weight: 400;
    line-height: 28px;
    cursor: pointer;
    width: 100%;
    transition: transform .2s;
  }

  .calc-result {
    padding: 10px 10px 20px 10px;
    margin-top: -1px;
  }

  .calc-amount .currency {
    font-size: 14px;
    line-height: 18px;
  }

  .calc-pay .currency {
    font-size: 14px;
    line-height: 18px;
  }

  .info-popover::after {
    left: 94%;
  }
}

@media (max-width: 500px) {
  .calc-row {

    justify-content: space-between;
    /* метка слева, сумма справа */
    align-items: baseline;
    margin-bottom: 0;
  }

  .calc-result {
    padding: 0px 16px 20px 16px;
    margin-top: -1px;
  }

  .calc-minmax {
    margin-top: 0;
  }

  .calc-button {

    margin-top: 10px;
  }

  #loanRange {
    margin: 0;
  }

  #payAmount {
    font-size: 24px;
    line-height: 36px;
  }

  .calc-result .calc-pay {
    padding-bottom: 0;
  }
}