/* «Калькулятор воронки» (public/js/funnel-calc.js). Цвета — только через переменные темы. */
#fcalc-root{flex:1;min-height:0;overflow:auto;max-width:980px;}
.fc-head{margin:2px 2px 14px;}
.fc-title{font-size:20px;font-weight:800;color:var(--text);}
.fc-sub{margin-top:4px;font-size:12.5px;line-height:1.5;color:var(--muted);}
.fc-card{margin-bottom:14px;padding:14px 16px;background:var(--white);border:1px solid var(--s2);border-radius:14px;}
.fc-card-t{margin-bottom:10px;font-size:13px;font-weight:800;color:var(--text);}
.fc-hint{font-weight:500;color:var(--muted);font-size:12px;}
.fc-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;}
.fc-inp{height:40px;padding:0 12px;box-sizing:border-box;width:100%;background:var(--white);border:1px solid var(--s2);border-radius:12px;font:600 14px var(--font-body);color:var(--text);font-variant-numeric:tabular-nums;}
.fc-row .fc-inp{width:220px;}
.fc-inp:focus{outline:none;border-color:var(--red);}
.fc-btn{height:40px;padding:0 16px;border:none;border-radius:12px;background:var(--red);color:#fff;font:700 13px var(--font-body);cursor:pointer;}
.fc-btn:disabled{opacity:.6;cursor:default;}
.fc-msg{font-size:12.5px;color:var(--muted);}
.fc-msg.bad{color:#E5484D;}
.fc-ext{margin-top:10px;font-size:12px;line-height:1.5;color:var(--muted);}
.fc-dot{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#E5484D;vertical-align:baseline;}
.fc-dot.ok{background:#2FB36A;}
.fc-who{display:flex;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--s2);}
.fc-who img{width:64px;height:64px;border-radius:10px;object-fit:cover;flex:none;background:var(--s1);}
.fc-who-t{min-width:0;}
.fc-who-n{font-size:15px;font-weight:700;line-height:1.35;color:var(--text);}
.fc-who-s{margin-top:2px;font-size:12.5px;color:var(--muted);}
.fc-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.fc-chips span{padding:6px 12px;background:var(--s1);border-radius:10px;font-size:14px;color:var(--muted);}
.fc-chips b{color:var(--text);}
.fc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;}
.fc-fld{display:flex;flex-direction:column;gap:5px;}
.fc-fld>span{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.3px;}
.fc-bar{display:flex;align-items:center;gap:12px;margin-bottom:8px;}
.fc-bar-l{flex:0 0 112px;font-size:12.5px;color:var(--muted);}
.fc-bar-t{flex:1;height:26px;background:var(--s1);border-radius:8px;overflow:hidden;}
.fc-bar-f{height:100%;border-radius:8px;}
.fc-bar-f.a{background:#8FA3C9;} .fc-bar-f.b{background:#5B7BD5;} .fc-bar-f.c{background:var(--red);}
.fc-bar-v{flex:0 0 190px;display:flex;flex-direction:column;font-size:13px;color:var(--text);font-variant-numeric:tabular-nums;}
.fc-bar-v span{font-size:11.5px;color:var(--muted);}
.fc-note{margin-top:8px;font-size:12px;line-height:1.55;color:var(--muted);}
.fc-note b{color:var(--text);}
.fc-cards{display:flex;flex-wrap:wrap;gap:10px;}
.fc-stat{flex:1 1 150px;padding:10px 12px;background:var(--s1);border-radius:12px;}
.fc-stat-l{font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.3px;}
.fc-stat-v{margin-top:3px;font-size:19px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums;}
.fc-res{margin-top:14px;padding:12px 14px;background:var(--s1);border-radius:12px;font-size:14px;line-height:1.6;color:var(--text);}
.fc-empty{padding:18px;font-size:13px;line-height:1.55;color:var(--muted);text-align:center;background:var(--white);border:1px dashed var(--s2);border-radius:14px;}
@media (max-width:767px){
  .fc-bar{flex-wrap:wrap;} .fc-bar-l{flex-basis:100%;} .fc-bar-v{flex-basis:auto;flex-direction:row;gap:8px;align-items:baseline;}
  .fc-row .fc-inp{width:100%;}
}
/* Два артикула и сравнение */
#fcalc-root{max-width:1180px;}
.fc-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.fc-two>.fc-card{margin-bottom:14px;}
.fc-sub2{margin:14px 0 8px;font-size:12.5px;font-weight:700;color:var(--text);}
.fc-tbl-w{overflow-x:auto;}
.fc-tbl{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums;}
.fc-tbl th{padding:8px 12px;text-align:right;font-size:12px;font-weight:700;color:var(--muted);border-bottom:1.5px solid var(--s2);white-space:nowrap;}
.fc-tbl th:first-child,.fc-tbl td.fc-rl{text-align:left;}
.fc-th-s{font-weight:500;font-size:11px;}
.fc-tbl td{padding:8px 12px;text-align:right;border-bottom:1px solid var(--s2);color:var(--text);white-space:nowrap;}
.fc-tbl td.fc-rl{color:var(--muted);}
.fc-tbl td.fc-best{font-weight:800;color:#1F9D5B;}
.fc-tbl td.fc-d{color:var(--muted);font-size:13px;}
.fc-tbl td.fc-up{color:#1F9D5B;} .fc-tbl td.fc-down{color:#E5484D;}
.fc-tbl tr.fc-sep td{padding-top:14px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:var(--muted);text-align:left;border-bottom:none;}
@media (max-width:900px){.fc-two{grid-template-columns:1fr;}}
