/* Калькулятор аренды с выкупом — стиль BlackCar */
.rent-calculator-main {
  width: 100%;
  max-width: 430px;
  padding: 28px 30px 30px;
  border: 1px solid rgba(214, 168, 79, 0.45);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(214, 168, 79, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(24, 24, 24, 0.95), rgba(8, 8, 8, 0.97));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #fff;
}

.rent-calculator-main__title {
  margin: 0 0 22px !important;
  padding: 0;
  font-size: 22px !important;
  line-height: 1.25 !important;
  font-weight: 700;
  color: #ffffff;
}

.rent-calculator-main__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rent-calculator-main__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rent-calculator-main__group label {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.rent-calculator-main__group select {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background-color: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font-size: 14px;
  line-height: 50px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #d6a84f 50%),
    linear-gradient(135deg, #d6a84f 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 22px,
    calc(100% - 14px) 22px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.rent-calculator-main__group select:hover {
  border-color: rgba(214, 168, 79, 0.55);
  background-color: rgba(255, 255, 255, 0.065);
}

.rent-calculator-main__group select:focus {
  border-color: #d6a84f;
  box-shadow: 0 0 0 3px rgba(214, 168, 79, 0.16);
}

.rent-calculator-main__group select option {
  background: #111111;
  color: #ffffff;
}
.calc-result-item--total .calc-result-label 
 {
    font-size: 20px !important;
    font-weight: 700;
}
.calc-result-item--total .calc-result-value
 {
    font-size: 20px !important;
    color: #e9c46a;
    font-weight: 700;
}
.calc-result-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}
.calc-result-value {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 300;
}

#calc-btn-main {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  padding: 0 24px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #d71920 0%, #a70f14 100%);
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.28);
  color: #ffffff;
  line-height: 52px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#calc-btn-main:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(215, 25, 32, 0.36);
}

#calc-btn-main:active {
  transform: translateY(0);
  box-shadow: 0 9px 20px rgba(215, 25, 32, 0.24);
}

.rent-calculator-main__result {
  margin-top: 6px;
  padding: 17px 18px;
  border: 1px solid rgba(214, 168, 79, 0.34);
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(214, 168, 79, 0.1), rgba(214, 168, 79, 0.035));
  color: #ffffff;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
}

.rent-calculator-main__result strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}


.rent-calculator-main__result small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.52);
}

/* Адаптив */
@media (max-width: 575px) {
  .rent-calculator-main {
    max-width: 100%;
    padding: 22px 18px;
    border-radius: 14px;
  }

  .rent-calculator-main__title {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .rent-calculator-main__form {
    gap: 13px;
  }

  .rent-calculator-main__group select,
  #calc-btn-main {
    height: 48px;
  }

  #calc-btn-main {
    line-height: 48px;
  }
}

.buy-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 760px;
}

.buy-benefits__item {
  min-height: 92px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.055),
      rgba(255, 255, 255, 0.015)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.22);
}

.buy-benefits__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d6a84f;
}

.buy-benefits__icon span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d6a84f;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  color: #d6a84f;
}

.buy-benefits__icon svg {
  width: 42px;
  height: 42px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.buy-benefits__text {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: #ffffff;
}

/* Планшет */
@media (max-width: 991px) {
  .buy-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Мобильная */
@media (max-width: 575px) {
  .buy-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .buy-benefits__item {
    min-height: 78px;
    padding: 15px 16px;
  }

  .buy-benefits__text {
    font-size: 13px;
  }
}

.buy-benefits__item img {
    width: 60px;
    margin-bottom: auto !important;
}

.block_calc {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin: -150px 0 0 0;
}

button#calc-btn-main {
    font-family: Arial !important;
}

/* Стили для мобильного калькулятора */
.rent-calculator-mobile {
    padding: 15px 10px;
    font-size: 15px;
}
.rent-calculator-mobile .rent-calculator-main__group {
    margin-bottom: 12px;
}
.rent-calculator-mobile .rent-calculator-main__group label {
    font-size: 13px;
    margin-bottom: 4px;
}
.rent-calculator-mobile select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid rgba(214, 168, 79, 0.45);
    border-radius: 6px;
    /*background: #fafafa;*/
    line-height: 1px;
}
.rent-calculator-mobile button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: #e31837;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
}
.rent-calculator-mobile button:active {
    background: #c41230;
}
.rent-calculator-mobile__result {
    margin-top: 15px;
    padding: 15px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #eee;
    display: none;
}
.calc-result-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.calc-result-line:last-child {
    border-bottom: none;
}

.calc-result-total {
    font-size: 20px;
    font-weight: 700;
    color: #e31837;
}
.calc-error {
    color: #e31837;
    font-size: 14px;
}