/* ---- Калькулятор стоимости ---- */
.calc *, .calc *::before, .calc *::after { box-sizing: border-box; margin: 0; padding: 0; }

.calc {
  max-width: 760px; margin: 28px auto;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(30,40,60,.08);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: #1f2a37; font-size: 16px; line-height: 1.4;
  text-align: left;
}
.calc__header { background: #f02832; color: #fff; padding: 28px 28px 22px; border-radius: 10px; }
.calc__header h2 { font-size: 24px; margin-bottom: 6px; }
.calc__header p { opacity: .9; font-size: 15px; }
.calc__body { padding: 24px 28px 28px; }
.calc__field { margin-bottom: 20px; }
.calc__field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 15px; }
.calc__hint { font-weight: 400; color: #6b7a90; font-size: 13px; margin-top: 4px; }
.calc__row { display: flex; gap: 16px; flex-wrap: wrap; }
.calc__row .calc__field { flex: 1 1 220px; }
.calc input[type=number] { width: 100%; padding: 12px 14px; border: 1.5px solid #e3e8ef; border-radius: 10px; font-size: 16px; background: #fff; transition: border-color .2s; }
.calc input[type=number]:focus { outline: none; border-color: #f02832; }
.calc__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .calc__options { grid-template-columns: 1fr; } }
.calc__opt { position: relative; }
.calc__opt input { position: absolute; opacity: 0; pointer-events: none; }
.calc__opt span { display: block; padding: 12px 14px; border: 1.5px solid #e3e8ef; border-radius: 10px; cursor: pointer; font-size: 14.5px; transition: all .2s; background: #fff; line-height: 1.35; }
.calc__opt span small { display: block; color: #6b7a90; font-size: 12.5px; margin-top: 2px; }
.calc__opt input:checked + span { border-color: #f02832; background: #eef4ff; box-shadow: 0 0 0 1px #f02832; }
.calc__steppers .calc__field { flex: 1 1 140px; }
.calc__total { margin-top: 8px; padding: 20px 22px; border-radius: 14px; background: linear-gradient(135deg,#eef4ff,#f0f7ff); border: 1.5px solid #d5e3fa; }
.calc__total-label { font-weight: 600; font-size: 14px; color: #6b7a90; }
.calc__total-price { font-size: 34px; font-weight: 800; color: #f02832; margin: 4px 0 2px; }
.calc__total-note { font-size: 13px; color: #6b7a90; }
.calc__lines { margin: 14px 0 0; font-size: 14px; }
.calc__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #d9e2ee; list-style: none; }
.calc__lines li span:last-child { white-space: nowrap; font-weight: 600; }
.calc__cta { margin-top: 20px; }
.calc__cta input[type=text], .calc__cta input[type=tel] { width: 100%; padding: 12px 14px; border: 1.5px solid #e3e8ef; border-radius: 10px; font-size: 15px; margin-bottom: 10px; }
.calc__cta input:focus { outline: none; border-color: #1a73e8; }
.calc__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #6b7a90; margin-bottom: 12px; cursor: pointer; }
.calc__consent input { margin-top: 2px; }
.calc__consent a { color: #1a73e8; }
.calc__cta button { width: 100%; padding: 15px; border: none; border-radius: 10px; background: #f02832; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s; }
.calc__cta button:hover { background: #1558b8; }
.calc__cta button:disabled { opacity: .6; cursor: default; }
.calc__ok, .calc__err { display: none; margin-top: 10px; padding: 12px; border-radius: 10px; font-size: 14px; text-align: center; }
.calc__ok { background: #e8f7ee; color: #1c7c3c; }
.calc__ok.show { display: block; }
.calc__err { background: #fdecec; color: #b3261e; }
.calc__err.show { display: block; }
.calc details { margin-top: 14px; font-size: 14px; color: #6b7a90; }
.calc summary { cursor: pointer; font-weight: 600; color: #1f2a37; }
.calc details p { margin-top: 8px; line-height: 1.5; }
.calc-after { max-width: 760px; margin: 16px auto 40px; font-size: 14px; color: #6b7a90; text-align: center; }
@media (max-width: 480px) {
  .calc__body { padding: 20px 16px 24px; }
  .calc__header { padding: 22px 16px 18px; }
  .calc__total-price { font-size: 28px; }
}