/* Страница /kalkulyator/rashod/: калькулятор расхода электроэнергии и таблица сравнения приборов. */
html:not(.js) .rs,html:not(.js) .rs-cmp{display:none}
/* Колонка сетки не должна растягиваться по ширине широкой таблицы и длинных пунктов списка. */
.land-main{min-width:0}
.rs select{text-overflow:ellipsis}
.rs-set{border:0;margin:0 0 22px;padding:0;min-width:0}
.rs-leg{display:flex;align-items:center;gap:10px;padding:0;margin-bottom:14px;font-size:17px;font-weight:800;color:var(--ink)}
.rs-leg span{width:26px;height:26px;border-radius:0;font-size:14px;display:inline-flex;align-items:center;justify-content:center}
.rs-dev{margin-bottom:14px}
.rs-dev select{font-weight:600}
.rs-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.rs-hint{font-size:14px;color:var(--muted);margin:10px 0 0;line-height:1.55}
.rs-check{display:flex;align-items:flex-start;gap:10px;margin-top:12px;font-size:14.5px;font-weight:600;color:var(--ink);cursor:pointer}
.rs-check input{width:18px!important;height:18px;margin:3px 0 0;padding:0!important;flex-shrink:0}
.rs .field input[aria-invalid="true"]{border-color:var(--bad)}
.rs-out{margin-top:4px}
.rs-out b{transition:color .25s}
.rs-btns{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:6px}
.rs-btns .btn-line{color:var(--ink)}

.rs-cmp{padding:24px;margin-bottom:18px}
.rs-cmp-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.rs-cmp-t{font-size:clamp(19px,2.2vw,23px);scroll-margin-top:90px}
.rs-cmp-head .btn-line{color:var(--ink)}
.rs-empty{margin:12px 0 0;font-size:14.5px;color:var(--muted)}
.rs-cmp .tbl-wrap{margin-bottom:10px}
.rs-tbl{min-width:560px}
.rs-tbl td,.rs-tbl th{vertical-align:middle}
.rs-tbl td:nth-child(n+2):nth-child(-n+4),.rs-tbl th:nth-child(n+2):nth-child(-n+4){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.rs-tbl td:first-child b{display:block;color:var(--ink);font-weight:700;line-height:1.3}
.rs-tbl td:first-child small{display:block;color:var(--muted);font-size:14px;line-height:1.4;margin-top:2px}
.rs-tbl tr.rs-top td:first-child b::after{content:"больше всех";margin-left:8px;padding:1px 8px;border-radius:0;background:var(--volt-pale);color:var(--volt-d);font-size:14px;font-weight:800;vertical-align:2px}
.rs-share{display:flex;align-items:center;gap:8px;min-width:110px}
.rs-bar{flex:1;border-radius:0;overflow:hidden}
.rs-bar i{display:block;height:100%;width:0;border-radius:0;transition:width .5s var(--ease)}
.rs-share span{font-size:14px;font-weight:700;color:var(--ink);min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
.rs-del{width:32px;height:32px;border-radius:0;background:#fff;color:var(--muted);cursor:pointer;font-size:18px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.rs-del:hover{border-color:var(--bad)}
.rs-tbl tfoot td{border-top:2px solid var(--ink);font-weight:800;color:var(--ink);background:#fff!important}
.rs-tbl tr.rs-new td{animation:rs-new 1.2s ease-out}
@keyframes rs-new{from{background:var(--volt-pale)}to{background:transparent}}
.rs-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rs-tags a{color:var(--ink);text-decoration:none;font-weight:600}
.rs-tags li:hover{border-color:var(--acc-ink)}

@media (max-width:560px){
  .rs,.rs-cmp{padding:20px 16px}
  .rs-grid{grid-template-columns:1fr 1fr;gap:12px}
  .rs-grid .field{display:flex;flex-direction:column;justify-content:flex-end}
  .rs-btns .btn{width:100%;justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  .rs-out b,.rs-bar i{transition:none}
  .rs-tbl tr.rs-new td{animation:none}
}
/* фирменный вид */
.rs-leg span,.rs-del{--c:var(--c-xs);clip-path:polygon(var(--c) 0,100% 0,100% calc(100% - var(--c)),calc(100% - var(--c)) 100%,0 100%,0 var(--c))}
.rs-leg span{background:var(--black);color:var(--acc-hi);font-weight:900}
.rs-del{border:0;box-shadow:inset 0 0 0 1px var(--steel)}
.rs-del:hover{box-shadow:inset 0 0 0 2px var(--bad);color:var(--bad)}
.rs-del:focus-visible{outline:0;box-shadow:inset 0 0 0 3px var(--acc-ink)}
.rs-bar{height:10px;padding:2px;background:var(--steel)}
.rs-bar i{background:var(--acc-ink)}
.rs .field input[aria-invalid="true"]{box-shadow:inset 0 0 0 2px var(--bad)}
.rs-check input{accent-color:var(--acc-ink)}
.rs-tags li:hover{box-shadow:inset 0 0 0 2px var(--acc-ink)}
