/* finansowy.pro: калькуляторы v2 (Дима 07.11): компактная шапка, глубина, свечение, живая цифра на первом экране,
   мост в каталог под бюджет. Подключается только на страницах калькуляторов с body.cv2. Формулы и разметку калькулятора не меняет. */
body.cv2{--c2-g:#0E7A45;--c2-g2:#14924F;--c2-gl:#2DBD7E;--c2-ink:#0B0C0E;--c2-mut:#5F636A;--c2-bg:#F4F3EF;--c2-line:rgba(20,20,28,.08)}
body.cv2{background:var(--c2-bg)}

/* ---------- шапка: светлая и низкая ---------- */
body.cv2 .hero{background:radial-gradient(120% 140% at 0% 0%,#E9F6EF 0%,rgba(233,246,239,0) 55%),var(--c2-bg)!important;color:var(--c2-ink)!important;padding:18px 16px 6px!important;border:0!important}
body.cv2 .hero::before,body.cv2 .hero::after{display:none!important}
body.cv2 .hero-inner{max-width:1080px;margin:0 auto;display:block!important;padding:0!important}
body.cv2 .hero-tag{display:inline-flex;align-items:center;gap:6px;background:#fff;color:var(--c2-g)!important;border:1px solid rgba(14,122,69,.18);border-radius:999px;padding:5px 11px;font-size:11px;letter-spacing:.06em;box-shadow:0 1px 0 rgba(255,255,255,.8) inset,0 2px 8px rgba(14,122,69,.08)}
body.cv2 .hero-tag::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--c2-gl);box-shadow:0 0 0 3px rgba(45,189,126,.18),0 0 10px rgba(45,189,126,.7)}
body.cv2 .hero-title{color:var(--c2-ink)!important;font-size:clamp(24px,6.4vw,40px)!important;line-height:1.12!important;margin:10px 0 6px!important;letter-spacing:-.02em}
body.cv2 .hero-title em{color:var(--c2-g)!important;font-style:normal;display:inline}
body.cv2 .hero-title br{display:none}
body.cv2 .hero .fp-datestamp{color:var(--c2-mut)!important;margin:0 0 4px!important;font-size:12px}
body.cv2 .hero-sub{color:var(--c2-mut)!important;font-size:15px!important;margin:0!important;max-width:640px}
body.cv2 .hero-badges,body.cv2 .hero-stats{display:none!important}
@media (min-width:960px){body.cv2 .hero{padding:26px 24px 8px!important}}
body.cv2 .breadcrumb{display:none}

/* ---------- карточка калькулятора: объём и мягкое свечение ---------- */
body.cv2 .main{padding-top:10px!important}
body.cv2 .calc-card{position:relative;background:#fff!important;border-radius:24px!important;border:1px solid transparent!important;
  background-image:linear-gradient(#fff,#fff),linear-gradient(150deg,rgba(45,189,126,.55),rgba(14,122,69,.08) 40%,rgba(20,20,28,.06) 70%,rgba(45,189,126,.35))!important;
  background-origin:border-box!important;background-clip:padding-box,border-box!important;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 2px 4px rgba(16,24,20,.04),0 18px 40px -12px rgba(14,122,69,.22),0 40px 80px -40px rgba(11,12,14,.25)!important;overflow:visible!important}
body.cv2 .calc-header{background:transparent!important;border-bottom:1px solid var(--c2-line)!important;padding:16px 18px 12px!important}
body.cv2 .calc-header-title{font-size:15px!important;letter-spacing:0!important;text-transform:none!important;color:var(--c2-ink)!important}
body.cv2 .calc-header-sub{font-size:12px!important}
body.cv2 .calc-body{padding:16px 18px 20px!important}
body.cv2 .step-num{background:linear-gradient(160deg,#2DBD7E,#0E7A45)!important;color:#fff!important;box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 4px 10px rgba(14,122,69,.35)!important}
body.cv2 .step-hint{font-size:13px!important}
body.cv2 .field-note{font-size:11.5px!important}

/* поля ввода: вдавленные, с зелёной подсветкой при фокусе */
body.cv2 .calc-card .iw{border-radius:14px!important;background:linear-gradient(#FAFAF8,#fff)!important;border:1px solid rgba(20,20,28,.12)!important;box-shadow:inset 0 2px 4px rgba(11,12,14,.06)!important;transition:box-shadow .18s,border-color .18s}
body.cv2 .calc-card .iw:focus-within{border-color:var(--c2-gl)!important;box-shadow:inset 0 2px 4px rgba(11,12,14,.04),0 0 0 4px rgba(45,189,126,.16),0 6px 18px -6px rgba(14,122,69,.35)!important}
body.cv2 .calc-card .iw input{background:transparent!important;border:0!important;box-shadow:none!important;font-weight:700;font-size:17px!important}

/* переключатели: объёмные пилюли с нажатием */
body.cv2 .calc-card .tb{border-radius:999px!important;border:1px solid rgba(20,20,28,.1)!important;background:linear-gradient(#fff,#F3F3F0)!important;box-shadow:0 1px 0 #fff inset,0 2px 6px rgba(11,12,14,.07)!important;transition:transform .12s,box-shadow .12s}
body.cv2 .calc-card .tb:active{transform:translateY(1px);box-shadow:0 1px 2px rgba(11,12,14,.1)!important}
body.cv2 .calc-card .tb.on{background:linear-gradient(160deg,#1A1C20,#0B0C0E)!important;color:#fff!important;border-color:#0B0C0E!important;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 6px 14px -4px rgba(11,12,14,.45)!important}

/* главный результат: крупно, с подсветкой */
body.cv2 .res-main{position:relative;border-radius:20px!important;padding:18px!important;background:radial-gradient(120% 120% at 100% 0%,rgba(45,189,126,.16),rgba(45,189,126,0) 60%),linear-gradient(160deg,#0F2A1D,#0B1712)!important;color:#fff!important;box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 20px 40px -18px rgba(14,122,69,.6)!important}
body.cv2 .res-main .res-label{color:#A8E6C8!important}
body.cv2 .res-main .res-amount{color:#fff!important;font-size:clamp(34px,9vw,48px)!important;letter-spacing:-.02em;text-shadow:0 0 24px rgba(45,189,126,.45)}
body.cv2 .res-main .res-sub{color:rgba(255,255,255,.75)!important}
body.cv2 .res-main .pill{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:14px!important}
body.cv2 .res-main .pill-l{color:rgba(255,255,255,.65)!important}
body.cv2 .res-main .pill-v{color:#fff!important}

/* ---------- живая цифра вверху карточки (телефон и компьютер) ---------- */
.c2-live{display:flex;align-items:center;gap:12px;margin:0 18px;padding:12px 14px;border-radius:16px;cursor:pointer;
  background:linear-gradient(160deg,#103222,#0B1712);color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 12px 26px -12px rgba(14,122,69,.7);position:relative;top:-2px}
.c2-live-l{font-size:12px;line-height:1.3;color:#A8E6C8;font-weight:600}
.c2-live-v{font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.05;text-shadow:0 0 18px rgba(45,189,126,.5);white-space:nowrap}
.c2-live-a{margin-left:auto;flex:none;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16)}
.c2-live-a svg{width:16px;height:16px}
.c2-live.bump .c2-live-v{animation:c2b .35s ease-out}
@keyframes c2b{0%{transform:scale(1)}40%{transform:scale(1.06)}100%{transform:scale(1)}}

/* ---------- мост в каталог ---------- */
.c2-bridge{display:flex;align-items:center;gap:12px;margin:14px 0 4px;padding:14px 16px;border-radius:18px;text-decoration:none;color:var(--c2-ink,#0B0C0E);
  background:#fff;border:1px solid rgba(20,20,28,.08);box-shadow:0 1px 0 #fff inset,0 10px 24px -12px rgba(11,12,14,.25);transition:transform .15s,box-shadow .15s}
.c2-bridge:hover{transform:translateY(-1px);box-shadow:0 1px 0 #fff inset,0 16px 30px -12px rgba(11,12,14,.3)}
.c2-bridge:active{transform:translateY(1px)}
.c2-bridge-ic{flex:none;width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(160deg,#E5F4EC,#CFEBDD);color:#0E7A45;box-shadow:0 1px 0 #fff inset}
.c2-bridge-ic svg{width:22px;height:22px}
.c2-bridge-t{font-weight:800;font-size:15px;line-height:1.25}
.c2-bridge-s{font-size:12.5px;color:#5F636A;margin-top:2px}
.c2-bridge-go{margin-left:auto;flex:none;padding:10px 14px;border-radius:999px;background:linear-gradient(160deg,#1A1C20,#0B0C0E);color:#fff;font-weight:700;font-size:13px;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 6px 14px -4px rgba(11,12,14,.45);white-space:nowrap}

@media (prefers-reduced-motion:reduce){.c2-live.bump .c2-live-v{animation:none}.c2-bridge,body.cv2 .calc-card .tb{transition:none}}

/* ---------- доводка 07.11 после превью ---------- */
body.cv2 .calc-card input,body.cv2 .calc-card .pill-v,body.cv2 .calc-card .res-amount,body.cv2 .calc-card .bar-leg-val,body.cv2 .calc-card .sfx,body.cv2 .calc-card .rate-card-amount,body.cv2 .calc-card .slr-val,body.cv2 .calc-card .slider-chosen-amount{font-family:inherit!important;font-variant-numeric:tabular-nums}
body.cv2 .res-main .pill-explain{color:#A8E6C8!important}
body.cv2 .calc-card .bar-seg{font-size:0!important;color:transparent!important}
@media (max-width:959.98px){
  body.cv2 .hero{padding:12px 16px 2px!important}
  body.cv2 .hero-title{font-size:24px!important;margin:8px 0 4px!important}
  body.cv2 .hero-sub{display:none!important}
  body.cv2 .main{padding-left:12px!important;padding-right:12px!important}
  body.cv2 .calc-header{padding:12px 16px 10px!important}
  body.cv2 .calc-header-title{font-size:14px!important}
  body.cv2 .calc-header-sub,body.cv2 .calc-header>div:last-child:not(:first-child){display:none!important}
  body.cv2 .calc-body{padding:14px 16px 18px!important}
  .c2-live{margin:0 12px}
  .c2-bridge{display:grid;grid-template-columns:44px 1fr;align-items:center}
  .c2-bridge-go{grid-column:1/-1;margin:4px 0 0!important;text-align:center;padding:12px 14px}
}
body.cv2 .hero-title em::before{content:" "}

/* ---------- раунд 2 (самооценка 07.11): меньше шума, ввод компактнее, конверсия на первом экране ---------- */
body.cv2 .calc-card label,body.cv2 .step-label span{text-transform:none!important;letter-spacing:0!important}
body.cv2 .calc-card label{font-size:13px!important;font-weight:600!important;color:#3E4148!important}
body.cv2 .step-label span{font-size:16px!important;font-weight:800!important}
body.cv2 .calc-card .hint:empty,body.cv2 .calc-card .hint:not(:has(*)):is(:empty){display:none}
body.cv2 .calc-card .iw input{padding-top:12px!important;padding-bottom:12px!important}
.c2-live-cat{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font-size:13px;font-weight:700;color:#fff;text-decoration:none;
  padding:6px 10px;border-radius:999px;background:rgba(45,189,126,.18);border:1px solid rgba(45,189,126,.45);box-shadow:0 0 14px rgba(45,189,126,.25)}
.c2-live-cat:active{transform:translateY(1px)}
@media (max-width:959.98px){
  body.cv2 .calc-header{display:none!important}
  .c2-live{margin:12px 12px 0;top:0}
  body.cv2 .calc-card .field-note{display:none!important}
  body.cv2 .calc-card .step-hint{font-size:12.5px!important;margin-bottom:10px!important}
  body.cv2 .calc-card .inputs-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  body.cv2 .calc-card .inputs-grid>.field:first-child{grid-column:1/-1}
  body.cv2 .calc-card .field{margin:0!important}
  body.cv2 .hero .fp-datestamp{font-size:11px!important}
}
body.cv2 .calc-card .hint{min-height:0!important;margin:4px 0 0!important;display:block}
body.cv2 .calc-card .goal-lbl{text-transform:none!important;letter-spacing:0!important;font-size:15px!important}
body.cv2 .goal-wrap{border-radius:18px!important;background:linear-gradient(#FAFAF7,#F4F3EF)!important;box-shadow:inset 0 1px 0 #fff!important}
@media (max-width:959.98px){body.cv2 .calc-card .inputs-grid{margin-bottom:14px!important}}
body.cv2 .calc-card .hint.c2-empty{display:none!important}

/* ---------- раунд 3: заявка в живом блоке + калькулятор платежа (section.kkh) ---------- */
.c2-live-m{min-width:0}
.c2-live-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.c2-live-row .c2-live-cat{margin-top:0}
.c2-live-lead{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#16120B;text-decoration:none;padding:6px 11px;border-radius:999px;
  background:linear-gradient(160deg,#F7BE5E,#F2A93B);box-shadow:0 1px 0 rgba(255,255,255,.45) inset,0 6px 14px -6px rgba(242,169,59,.8)}
.c2-live-lead:active{transform:translateY(1px)}
.c2-live.c2-nonum .c2-live-v{font-size:17px;font-weight:700;text-shadow:none;color:#E5F4EC}
.c2-live.c2-nonum .c2-live-a{display:none}
.c2-live[hidden],.c2-live-row a[hidden]{display:none!important}

/* калькулятор платежа /ru/kalkulyator-ipoteki/ */
body.cv2 header.hero{background:radial-gradient(120% 140% at 0% 0%,#E9F6EF 0%,rgba(233,246,239,0) 55%),var(--c2-bg)!important;padding:16px 0 4px!important}
body.cv2 header.hero h1{font-size:clamp(24px,6.4vw,40px)!important;line-height:1.12!important;letter-spacing:-.02em;margin:6px 0!important}
body.cv2 header.hero .tags{display:none}
body.cv2 section.kkh{position:relative;background:#fff!important;border-radius:24px!important;border:1px solid transparent!important;padding:16px 18px 20px!important;
  background-image:linear-gradient(#fff,#fff),linear-gradient(150deg,rgba(45,189,126,.55),rgba(14,122,69,.08) 40%,rgba(20,20,28,.06) 70%,rgba(45,189,126,.35))!important;
  background-origin:border-box!important;background-clip:padding-box,border-box!important;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,0 2px 4px rgba(16,24,20,.04),0 18px 40px -12px rgba(14,122,69,.22),0 40px 80px -40px rgba(11,12,14,.25)!important}
body.cv2 section.kkh>h2.sec{font-size:18px!important;margin:0 0 12px!important}
body.cv2 section.kkh .c2-live{margin:0 0 14px}
body.cv2 .kkh-grid label{font-size:13px!important;font-weight:600!important;color:#3E4148!important}
body.cv2 .kkh-grid input{border-radius:14px!important;background:linear-gradient(#FAFAF8,#fff)!important;border:1px solid rgba(20,20,28,.12)!important;box-shadow:inset 0 2px 4px rgba(11,12,14,.06)!important;font-weight:700!important;font-size:17px!important;padding:12px 14px!important;font-family:inherit!important}
body.cv2 .kkh-grid input:focus{outline:0;border-color:var(--c2-gl)!important;box-shadow:inset 0 2px 4px rgba(11,12,14,.04),0 0 0 4px rgba(45,189,126,.16)!important}
body.cv2 .kkh-out{border-radius:20px!important;padding:16px!important;background:radial-gradient(120% 120% at 100% 0%,rgba(45,189,126,.16),rgba(45,189,126,0) 60%),linear-gradient(160deg,#0F2A1D,#0B1712)!important;color:#fff!important;border:0!important;box-shadow:0 20px 40px -18px rgba(14,122,69,.6)!important}
body.cv2 .kkh-out span,body.cv2 .kkh-out .kkh-note{color:rgba(255,255,255,.7)!important}
body.cv2 .kkh-out b{color:#fff!important}
body.cv2 .kkh-main b{font-size:clamp(30px,8vw,44px)!important;text-shadow:0 0 24px rgba(45,189,126,.45)}
body.cv2 .kkh-kpi>div{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:14px!important}
@media (max-width:959.98px){
  body.cv2 header.hero>.wrap>p:not(.fp-datestamp){display:none}
  body.cv2 main.wrap>nav.toc,body.cv2 main.wrap>.tldr{display:none}
  body.cv2 .kkh-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  body.cv2 .kkh-grid label:first-child{grid-column:1/-1}
}
/* раунд 3б: рефинанс (белый текст в шапке на светлом фоне), калькулятор платежа (шапка и автор компактнее) */
body.cv2 .hero-left>p[style]{color:var(--c2-mut)!important;font-size:14px!important;margin-top:6px!important}
body.cv2 .hero-left>p[style] a{color:var(--c2-g)!important}
body.cv2 .calc-card .step-label{text-transform:none!important;letter-spacing:0!important;font-size:16px!important;font-weight:800!important;color:var(--c2-ink)!important}
body.cv2 header.hero .fp-datestamp{background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;font-size:12px!important;color:var(--c2-mut)!important}
body.cv2 header.hero .fp-datestamp::before{display:none!important}
body.cv2 .kkh-grid{align-items:end}
@media (max-width:959.98px){
  body.cv2 header.hero h1{font-size:26px!important;margin:2px 0 4px!important}
  body.cv2 .crumbs{font-size:12px;margin:8px 0 0!important;padding:0!important}
  body.cv2 header.hero{padding:4px 0 0!important}
  body.cv2 header.hero+.wrap>p{margin:4px 0 0!important;font-size:12px!important}
  body.cv2 .hero-left>p[style]{display:none}
  body.cv2 main.wrap{padding-top:8px!important}
}
@media (max-width:959.98px){body.cv2 header.hero.hero{padding-top:4px!important;padding-bottom:4px!important}body.cv2 header.hero.hero h1{font-size:26px!important;line-height:1.12!important;margin:2px 0 4px!important}}
@media (min-width:960px){body.cv2 header.hero.hero{padding-top:14px!important;padding-bottom:6px!important}}
@media (max-width:959.98px){html:not(.c2x) body.cv2.cv2:not(.c2x) header.hero.hero.hero h1{font-size:26px!important;line-height:1.12!important;margin:2px 0 4px!important}}
@media (min-width:960px){html:not(.c2x) body.cv2.cv2:not(.c2x) header.hero.hero.hero h1{font-size:40px!important;line-height:1.1!important}}

/* ---------- вариант B (Дима 07.11): верхний блок в зелёном бренда, нижний результат светлый ---------- */
.c2-live{background:radial-gradient(120% 140% at 100% 0%,rgba(110,231,170,.28),rgba(110,231,170,0) 55%),linear-gradient(160deg,#0F8A50,#0B5A34)!important;box-shadow:0 1px 0 rgba(255,255,255,.18) inset,0 14px 30px -12px rgba(14,122,69,.65)!important}
.c2-live-l{color:#D3F5E3!important}
.c2-live-v{text-shadow:0 2px 14px rgba(0,0,0,.18)!important}
.c2-live-cat{background:rgba(255,255,255,.16)!important;border:1px solid rgba(255,255,255,.38)!important;box-shadow:none!important}
.c2-live-a{background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.3)!important}
.c2-live.c2-nonum .c2-live-v{color:#fff}
body.cv2 .res-main,body.cv2 .kkh-out{background:linear-gradient(#fff,#F7FBF8)!important;color:#0B0C0E!important;border:1px solid rgba(14,122,69,.18)!important;box-shadow:0 1px 0 #fff inset,0 14px 30px -16px rgba(14,122,69,.35)!important}
body.cv2 .res-main .res-label,body.cv2 .kkh-out span{color:#0E7A45!important}
body.cv2 .res-main .res-amount,body.cv2 .kkh-out b,body.cv2 .kkh-main b{color:#0B3D24!important;text-shadow:none!important}
body.cv2 .res-main .res-sub,body.cv2 .kkh-out .kkh-note,body.cv2 .res-main .pill-l{color:#5F636A!important}
body.cv2 .res-main .pill,body.cv2 .kkh-kpi>div{background:#F2F7F4!important;border:1px solid rgba(14,122,69,.12)!important}
body.cv2 .res-main .pill-v{color:#0B0C0E!important}
body.cv2 .res-main .pill-explain{color:#0E7A45!important}
