/* Стили виджета «checklist» — подключаются только на страницах с ним */
.ck { margin: 1.6em 0 2.4em; display: grid; gap: 20px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
.ck__head { display: grid; gap: 8px; }
.ck__progress { display: grid; gap: 7px; margin-top: 4px; }
.ck__bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ck__bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green-2), var(--green)); transition: width .4s cubic-bezier(.2,.9,.3,1); }
.ck__count b { color: var(--green); font-size: 15px; }
.ck.is-complete .ck__bar span { box-shadow: 0 0 14px rgba(0, 221, 17, .55); }
.ck__groups { display: grid; gap: 18px; }
.ck__item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transition: border-color .2s, background-color .2s; }
.ck__item:has(input:checked) { border-color: var(--green-line); background: var(--green-soft); }
.ck__check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 14px 16px; cursor: pointer; align-items: start; }
.ck__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck__box { position: relative; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; border: 2px solid var(--border-2); background: var(--surface-2); transition: background-color .2s, border-color .2s, transform .15s; }
.ck__box::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #04210a; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .2s cubic-bezier(.2,.9,.3,1.6); }
.ck__check input:checked + .ck__box { background: linear-gradient(135deg, var(--green), var(--green-2)); border-color: var(--green); }
.ck__check input:checked + .ck__box::after { transform: rotate(45deg) scale(1); }
.ck__check input:focus-visible + .ck__box { outline: 2px solid var(--green); outline-offset: 3px; }
.ck__text { display: grid; gap: 4px; min-width: 0; }
.ck__item-title { font-size: 15.5px; font-weight: 500; color: var(--text-strong); line-height: 1.4; }
.ck__check input:checked ~ .ck__text .ck__item-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--green-line); }
.ck__note { font-size: 14px; color: var(--muted); line-height: 1.55; }
.ck__note code { font-size: .92em; }
.ck__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ck__hint { font-size: 13px; color: var(--muted); }
.ck__myths { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.ck__myths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.ck__myth { padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--warn); border-radius: 12px; background: var(--surface); }
@media (max-width: 640px) {
  .ck { padding: 14px; }
  .ck__check { padding: 12px; gap: 10px; }
  .ck__item-title { font-size: 15px; }
  .ck__myths-grid { grid-template-columns: 1fr; }
}
