/* Встроенный калькулятор «Сколько денег лежит в вашей базе» для статичных страниц
   (home-v4.html, case-karting.html, case-swim.html). Логика — calc-widget.js.
   Тот же вид, что у компонента BaseCalculator в Next (styles/v4-shell.css, .calc--compact). */
.calcw { grid-column: 1 / -1; margin-top: 40px; padding-top: 40px; border-top: 1px solid #24242320; }
.calcw .calcw-title { margin: 0 0 10px; font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.045em; line-height: 1.18; }
.calcw .calcw-sub { margin: 0 0 24px !important; font-size: 17px !important; line-height: 1.55 !important; color: #45453c !important; max-width: 640px !important; }
.calcw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px; align-items: start; }
.calcw-fields { display: grid; gap: 12px; }
.calcw-field { padding: 16px 18px; background: #fffdf7; border: 1px solid #2424231a; border-radius: 16px; }
.calcw .calcw-field label { display: block; font-size: 15px !important; font-weight: 600; color: #242423 !important; margin-bottom: 10px; }
.calcw-row { display: flex; align-items: center; gap: 18px; }
.calcw-field input[type="range"] { flex: 1; min-width: 0; accent-color: #242423; height: 28px; margin: 0; }
.calcw-num { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.calcw-num input { width: 116px; padding: 10px 12px; font: 600 17px/1 Geologica, Arial, sans-serif; color: #242423; background: #f7f4ea; border: 1px solid #24242333; border-radius: 12px; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.calcw-num input::-webkit-outer-spin-button, .calcw-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calcw-result { position: sticky; top: 96px; padding: 24px 24px 26px; background: #1e1e1c; color: #f7f4ea; border-radius: 20px; transform: none; }
/* !important: правила статичных страниц (.chapter p) задают всем абзацам свой цвет и размер */
.calcw-result p { max-width: none !important; }
.calcw .calcw-lead { margin: 0 !important; font-size: 16px !important; line-height: 1.4 !important; color: #d9d6cc !important; }
.calcw .calcw-value { margin: 6px 0 14px !important; font-size: clamp(32px, 3.6vw, 46px) !important; font-weight: 700; letter-spacing: -.04em; line-height: 1.05 !important; color: #d4f06a !important; white-space: nowrap; }
.calcw .calcw-lost { margin: 0 0 14px !important; font-size: 16px !important; line-height: 1.5 !important; color: #f7f4ea !important; }
.calcw .calcw-note { margin: 0 !important; font-size: 13px !important; line-height: 1.5 !important; color: #b9b6ac !important; }
.calcw-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 26px; }
.calcw-btn { display: inline-flex; align-items: center; justify-content: center; padding: 18px 28px; border-radius: 100px; background: #d4ef78; color: #242423; border: 1px solid #242423; font-size: 17px; font-weight: 500; text-decoration: none; }
.calcw-btn:hover { background: #c8e76a; }
.calcw-cta .case-link { margin-top: 0; }
@media (max-width: 900px) {
  .calcw-grid { grid-template-columns: minmax(0, 1fr); }
  .calcw-result { position: static; }
}
@media (max-width: 800px) {
  .calcw { margin-top: 24px; padding-top: 32px; }
}
@media (max-width: 480px) {
  .calcw-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .calcw-num { justify-content: flex-end; }
  .calcw-num input { width: 140px; }
  .calcw-result { padding: 22px 18px 24px; }
  .calcw .calcw-value { font-size: clamp(30px, 10vw, 44px) !important; }
  .calcw-btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
}
.calcw-cta .case-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 0; padding: 12px 20px; border: 1px solid #242423; border-radius: 100px; color: #242423; font-size: 15px; font-weight: 500; text-decoration: none; }
