/* Калькулятор КАСКО (.by), формат «В». Маркер KSK_R_2026_11_30. Только то, чего нет в calc-shell.css. Канон DESIGN-DNA-TOOLS раздел 0: палитра, кегли 13/14/16/20/24/36, скругления 6/8. */
.ksk{--k-line:rgba(255,255,255,.07);--k-t1:#e6e9ee;--k-t2:#b3b9c2;--k-t3:#949ca7;--k-nest:#171e28;--k-sel:#252e3a;--k-pos:#95ce5a;--k-neg:#f43f5e;--k-warn:#f59e0b}

/* выбор — как у калькулятора лизинга */
.ksk .bhc-select{position:relative;display:block}
.ksk .bhc-select select{display:block;width:100%;height:44px;margin:0;padding:0 36px 0 14px;background:#0a0d12;border:0;border-radius:6px;color:var(--k-t1);font:500 16px/1.2 var(--r-f);cursor:pointer;-webkit-appearance:none;appearance:none}
.ksk .bhc-select select:hover:not(:focus){background:#0d1117}
.ksk .bhc-select select:focus{outline:1px solid var(--k-pos);outline-offset:0}
.ksk .bhc-select select option{background:#121820;color:#e6e9ee}
.ksk .bhc-select::after{content:"";position:absolute;right:15px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:1.5px solid var(--k-t3);border-bottom:1.5px solid var(--k-t3);transform:rotate(45deg);pointer-events:none}

/* значки */
.ksk svg[viewBox="0 0 24 24"]{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ksk-mono{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;border-radius:50%;background:#1f2834;color:var(--k-t2);font:600 14px/1 var(--r-f)}

/* ---------- ответ полосой ---------- */
.ksk-strip{padding:20px;container-type:inline-size}
.ksk-strip-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.ksk-strip-l{font:400 14px/1.4 var(--r-f);color:var(--k-t2)}
.ksk-strip-r{font:400 13px/1.4 var(--r-f);color:var(--k-t3)}
.ksk-cells{display:grid;gap:0}
.ksk-cells--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ksk-cells--6{grid-template-columns:repeat(6,minmax(0,1fr))}
.ksk-cell{padding:0 20px;border-left:1px solid var(--k-line);min-width:0}
.ksk-cell:first-child{padding-left:0;border-left:0}
.ksk-cell:last-child{padding-right:0}
.ksk-cell-co{display:flex;align-items:center;gap:10px;font:500 14px/1.3 var(--r-f);color:var(--k-t1)}
.ksk-cell-co span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ksk-cell-v{margin-top:14px;font:600 36px/1.05 var(--r-f);color:#fff;letter-spacing:-.015em;font-variant-numeric:tabular-nums;white-space:nowrap}
.ksk-cells--6 .ksk-cell-v{font-size:24px;line-height:1.15}
.ksk-cell-s{margin-top:4px;font:400 14px/1.4 var(--r-f);color:var(--k-t2);font-variant-numeric:tabular-nums}
.ksk-cell-p{margin-top:12px;font:400 13px/1.4 var(--r-f);color:var(--k-t3)}
.ksk-cell-h{margin-top:8px;min-height:20px}
.ksk-cell.is-off .ksk-cell-v{color:var(--k-t3)}
.ksk-cell.is-off .ksk-cell-s{font-size:13px;color:var(--k-t3)}
.ksk-how{display:inline-flex;align-items:center;gap:6px;font:400 13px/1.4 var(--r-f);color:var(--k-t2)}
.ksk-how svg{color:var(--k-t3)}
@container (max-width:860px){
  .ksk-cells--4{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:22px}
  .ksk-cells--4 .ksk-cell:nth-child(3){padding-left:0;border-left:0}
  .ksk-cells--4 .ksk-cell:nth-child(2){padding-right:0}
  .ksk-cells--6{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:22px}
  .ksk-cells--6 .ksk-cell:nth-child(4){padding-left:0;border-left:0}
  .ksk-cells--6 .ksk-cell:nth-child(3){padding-right:0}
}
@container (max-width:520px){
  .ksk-cell-v{font-size:32px}
  .ksk-cells--6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ksk-cells--6 .ksk-cell{padding:0 0 0 16px;border-left:1px solid var(--k-line)}
  .ksk-cells--6 .ksk-cell:nth-child(odd){padding-left:0;border-left:0}
  .ksk-cells--4 .ksk-cell{padding:0 0 0 16px}
  .ksk-cells--4 .ksk-cell:nth-child(odd){padding-left:0}
}

/* ---------- график ---------- */
.ksk-ins{margin:-4px 0 12px;font:400 14px/1.5 var(--r-f);color:var(--k-t1)}
.ksk-ins:empty{display:none}
.ksk .bhc-legend{margin:0 0 6px}
.ksk-lg{display:inline-flex;align-items:center;gap:8px}
.ksk-lg i{display:inline-block;width:18px;height:0}
.ksk-lg i.ksk-lg-d,.ksk-tip-r i.ksk-lg-d{width:8px;height:8px;border:0;border-radius:0;background:#b2bec3;transform:rotate(45deg)}
.ksk-chart{position:relative;user-select:none;-webkit-user-select:none;touch-action:pan-y}
.ksk-chart svg{display:block;overflow:visible}
.ksk-grid{stroke:rgba(255,255,255,.05);stroke-width:1}
.ksk-ax{font:400 13px var(--r-f);fill:#949ca7;font-variant-numeric:tabular-nums}
.ksk-me{stroke:rgba(255,255,255,.22);stroke-width:1;stroke-dasharray:3 3}
.ksk-me-t{font:400 13px var(--r-f);fill:#b3b9c2}
.ksk-line{fill:none;stroke-width:2;stroke-linejoin:round}
.ksk-pt{fill:#121820;stroke-width:2}
.ksk-pti{fill:#b2bec3}
.ksk-cross{stroke:rgba(255,255,255,.2);stroke-width:1}
.ksk-dot{stroke:#121820;stroke-width:2}
.ksk-hit{fill:transparent;cursor:crosshair}
.ksk-tip{position:absolute;z-index:3;min-width:220px;padding:10px 12px;background:#0a0d12;border:1px solid rgba(255,255,255,.14);border-radius:6px;font:400 13px/1.45 var(--r-f);color:var(--k-t2);pointer-events:none;box-shadow:0 6px 16px rgba(0,0,0,.45)}
.ksk-tip-t{margin-bottom:6px;font-weight:600;color:var(--k-t1)}
.ksk-tip-r{display:grid;grid-template-columns:10px 1fr auto auto;align-items:center;gap:8px;white-space:nowrap}
.ksk-tip-r i{width:8px;height:8px;border-radius:50%}
.ksk-tip-r b{font-weight:600;color:var(--k-t1);font-variant-numeric:tabular-nums}
.ksk-tip-r em{font-style:normal;color:var(--k-t3);font-variant-numeric:tabular-nums}

/* ---------- матрицы ---------- */
.ksk .ksk-mx-card{padding-left:0;padding-right:0}
.ksk .ksk-mx-card>.bhc-card-head{padding:0 20px}
.ksk .ksk-mx{table-layout:fixed;min-width:760px}
.ksk .ksk-mx th,.ksk .ksk-mx td{white-space:normal;vertical-align:top;text-align:left;padding:12px}
.ksk .ksk-mx th:first-child,.ksk .ksk-mx td:first-child{padding-left:20px}
.ksk .ksk-mx th:last-child,.ksk .ksk-mx td:last-child{padding-right:20px}
.ksk .ksk-mx thead th{font:500 14px/1.3 var(--r-f);color:var(--k-t1);vertical-align:bottom}
.ksk .ksk-mx thead th .ksk-th-lg{display:block;height:32px;margin-bottom:8px}
.ksk .ksk-mx thead th small{display:block;margin-top:2px;font:400 13px/1.35 var(--r-f);color:var(--k-t3)}
.ksk .ksk-mx thead th:first-child{width:170px}
.ksk .ksk-mx--6 thead th:first-child{width:160px}
.ksk .ksk-mx tbody th{font:400 14px/1.4 var(--r-f);color:var(--k-t2);background:transparent}
.ksk .ksk-mx tbody td{font:400 14px/1.45 var(--r-f);color:var(--k-t1)}
.ksk .ksk-mx tbody tr:last-child td,.ksk .ksk-mx tbody tr:last-child th{border-bottom:0}
.ksk-na{color:var(--k-t3)}
.ksk-mx-links a{display:inline-flex;align-items:center;gap:6px;color:var(--k-t2);text-decoration:none}
.ksk-mx-links a:hover{color:var(--k-t1)}
.ksk-mx-links a svg{width:14px;height:14px}
@media (max-width:899px){
  .ksk .ksk-mx th:first-child{position:sticky;left:0;z-index:1;background:#121820}
  /* прокрутка к ячейке (фокус с клавиатуры, scrollIntoView) не прячет её под закреплённую первую колонку и не прижимает к краю */
  .ksk .ksk-mx-wrap{scroll-padding:0 56px 0 176px}   /* справа — затемнение края прокрутки 40 px */
}

/* ---------- если случится ДТП ---------- */
.ksk-tool-l{font:400 14px/1.3 var(--r-f);color:var(--k-t2);margin-right:4px}
.ksk-dtp .bhc-card-tools{display:flex;align-items:center;gap:10px;margin-left:auto}
.ksk-dtp-top{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:20px 40px;align-items:start;padding-bottom:20px;border-bottom:1px solid var(--k-line)}
.ksk .bhc-chips button.on{background:#252e3a;color:#fff}
.ksk-split{padding-top:24px}
.ksk-split-h{display:flex;justify-content:space-between;gap:16px;margin-bottom:10px}
.ksk-split-h span{display:block;font:400 14px/1.3 var(--r-f);color:var(--k-t2)}
.ksk-split-h b{display:block;margin-top:4px;font:600 24px/1.15 var(--r-f);font-variant-numeric:tabular-nums}
.ksk-r{text-align:right}
.ksk-pos{color:var(--k-pos)}
.ksk-neg{color:var(--k-neg)}
.ksk-bar{display:flex;height:10px;border-radius:6px;overflow:hidden;background:var(--k-sel)}
.ksk-bar i{display:block;height:100%;transition:width .25s ease}
.ksk-bar-y{background:var(--k-neg)}
.ksk-bar-i{background:var(--k-pos)}
.ksk-split-n{margin:10px 0 0;font:400 13px/1.5 var(--r-f);color:var(--k-t3)}
.ksk-ruler{padding-top:18px}
.ksk-ruler-h{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:16px;margin-bottom:6px;font:400 14px/1.3 var(--r-f);color:var(--k-t2)}
.ksk-rows{position:relative;--me:0%}
.ksk-row{display:grid;grid-template-columns:200px minmax(0,1fr) 150px 120px;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid var(--k-line)}
.ksk-row:last-of-type{border-bottom:0}
.ksk-row-co b{display:block;font:500 14px/1.3 var(--r-f);color:var(--k-t1)}
.ksk-row-co span{display:block;margin-top:2px;font:400 13px/1.35 var(--r-f);color:var(--k-t3)}
.ksk-track{position:relative;height:28px}
.ksk-track::before{content:"";position:absolute;left:0;right:0;top:12px;height:4px;border-radius:2px;background:var(--k-nest)}
.ksk-track-f{position:absolute;left:0;top:12px;height:4px;border-radius:2px;background:#b2bec3;transition:width .25s ease}
.ksk-track-f::after{content:"";position:absolute;right:-1px;top:-6px;width:2px;height:16px;border-radius:1px;background:#b2bec3}
.ksk-track-v{position:absolute;top:-6px;transform:translateX(-50%);font:400 13px/1 var(--r-f);font-style:normal;color:var(--k-t3);white-space:nowrap;font-variant-numeric:tabular-nums}
.ksk-track-me{position:absolute;top:0;bottom:0;left:var(--me);width:0;border-left:2px solid #fff;transition:left .25s ease}
.ksk-row.is-over .ksk-track-f,.ksk-row.is-over .ksk-track-f::after{background:#787b86}   /* ряды данных — цвета сравнения канона 0.9 */
.ksk-row-st{display:flex;align-items:center;gap:6px;font:400 14px/1.3 var(--r-f);color:var(--k-t1)}
.ksk-row-st svg{color:var(--k-t2)}
.ksk-row.is-over .ksk-row-st,.ksk-row.is-over .ksk-row-st svg{color:var(--k-warn)}
.ksk-row-y{text-align:right}
.ksk-row-y b{display:block;font:600 16px/1.3 var(--r-f);color:var(--k-t1);font-variant-numeric:tabular-nums}
.ksk-row-y span{display:block;font:400 13px/1.3 var(--r-f);color:var(--k-t3)}
.ksk-me-lab{display:none}
@media (max-width:1180px){
  .ksk-row{grid-template-columns:170px minmax(0,1fr) 130px 110px}
}
@media (max-width:899px){
  .ksk-dtp-top{grid-template-columns:1fr}
  .ksk-split{padding-top:0}
  .ksk-ruler-h{grid-template-columns:1fr}
  .ksk-ruler-h .ksk-r{display:none}
  .ksk-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"co y" "tr tr" "st st";gap:8px 12px}
  .ksk-row-co{grid-area:co}.ksk-track{grid-area:tr}.ksk-row-st{grid-area:st}.ksk-row-y{grid-area:y}
  .ksk-dtp .bhc-card-head{align-items:flex-start}
  .ksk-dtp .bhc-card-tools{margin-left:0;width:100%}
}

.ksk-me-key{display:inline-flex;align-items:center;gap:8px;margin-left:18px;font:400 13px/1.3 var(--r-f);color:var(--k-t3)}
.ksk-me-key i{display:inline-block;width:2px;height:14px;background:#fff;border-radius:1px}
@container (max-width:520px){
  .ksk-cell-co{align-items:flex-start;gap:8px}
  .ksk-cell-co .ksk-mono{width:24px;height:24px;font-size:13px}
  .ksk-cell-co span:last-child{white-space:normal;overflow:visible;hyphens:manual}   /* перенос только по мягкому переносу в названии */
}
/* В: второй ряд полосы — компании без онлайн-цены */
.ksk-strip2{margin-top:20px;padding-top:16px;border-top:1px solid var(--k-line)}
.ksk-strip2-h{margin-bottom:12px;font:400 14px/1.4 var(--r-f);color:var(--k-t2)}
.ksk-cells2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.ksk-cell2{padding:0 20px;border-left:1px solid var(--k-line);min-width:0}
.ksk-cell2:first-child{padding-left:0;border-left:0}
.ksk-cell2 .ksk-cell-co{font-size:14px;color:var(--k-t2)}
.ksk-cell2 .ksk-mono{width:24px;height:24px;font-size:13px}
.ksk-cell2-v{margin-top:8px;font:600 20px/1.2 var(--r-f);color:var(--k-t1);font-variant-numeric:tabular-nums;white-space:nowrap}
.ksk-cell2-s{margin-top:2px;font:400 13px/1.4 var(--r-f);color:var(--k-t3)}
@container (max-width:860px){
  .ksk-cells2{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}
  .ksk-cell2:nth-child(3){padding-left:0;border-left:0}
}

/* ---------- дополнения к макету ---------- */
.ksk-how .bhc-term{display:inline-block}
.ksk-stale{display:block;margin-top:4px;font:400 13px/1.4 var(--r-f);color:var(--k-warn)}
.ksk-chk{display:block;margin-top:4px;font:400 13px/1.4 var(--r-f);color:var(--k-warn)}
.ksk-sub{display:block;margin-top:4px;font:400 13px/1.4 var(--r-f);color:var(--k-t3)}
.ksk-zero{color:var(--k-t1)}
.ksk-mx-note{margin:0;padding:14px 20px 0;font:400 13px/1.5 var(--r-f);color:var(--k-t3)}
.ksk-cell-co .bh-lg,.ksk-cell2 .bh-lg{flex:none}
.ksk-row-co span .bhc-term,.ksk-ruler-h .bhc-term{display:inline-block}

/* зона касания на телефоне от 44 px (канон 0.9.3, TOUCH44) — тот же приём, что у калькуляторов лизинга и кредита */
@media (pointer:coarse){
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk :is(.bhc-seg>button,.bhc-chips>button,.bhc-card-tools .bhc-seg>button,.bhc-term,.ksk-mx-links a){position:relative}
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk :is(.bhc-seg>button,.bhc-chips>button,.bhc-term,.ksk-mx-links a)::after,
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk :is(.bhc-seg>button,.bhc-chips>button,.bhc-term,.ksk-mx-links a):hover::after{
    all:unset!important;content:""!important;display:block!important;position:absolute!important;left:50%!important;top:50%!important;
    width:max(100%,44px)!important;height:max(100%,44px)!important;transform:translate(-50%,-50%)!important;pointer-events:auto!important}
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk .bhc-chips{row-gap:8px!important}
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk .bhc-input input{height:44px}
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk .ksk-mx-links a{display:inline-flex;min-height:24px}
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk .ksk-mx td .bhc-term{display:inline-block}
  /* термин лимита над дорожкой строки (дорожка не нажимается) и ссылка на правила в узкой колонке — не уже 44 */
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk :is(.ksk-row-co,.ksk-ruler-h) .bhc-term{z-index:2}
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk .ksk-mx-links a{min-width:44px;z-index:1}
}

/* KSK_CUR_2026_11_30: валюта стоимости машины — переключатель «$ | Br» в строке подписи поля, как «Франшиза» в блоке ДТП */
.bhc-shell .ksk .ksk-lrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
.bhc-shell .ksk .ksk-lrow .bhc-label{margin:0}
.bhc-shell .ksk .ksk-cur button{flex:none;min-width:40px;padding:0 10px}
@media (pointer:coarse){
  :is(#k26,html):is(#k26,html) body .bhc-shell .ksk .ksk-cur button{min-width:44px}
}
