/* Стили виджета «alt» — подключаются только на страницах с ним */
.alt { margin: 28px 0; }
.alt__head { margin-bottom: 20px; }
.alt__title { margin: 0 0 6px; font-size: 26px; line-height: 1.25; }
.alt__lead { margin: 0 0 18px; color: var(--muted); }
.alt__search { position: relative; display: flex; align-items: center; }
.alt__search-ico { position: absolute; left: 16px; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.alt__search-ico svg { width: 20px; height: 20px; }
.alt__input {
  width: 100%; padding: 14px 44px 14px 48px; font: inherit; color: var(--text-strong);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.alt__input::placeholder { color: var(--muted); }
.alt__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.alt__input::-webkit-search-cancel-button { display: none; }
.alt__clear {
  position: absolute; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  font-size: 20px; line-height: 1; color: var(--muted); background: var(--surface-2);
}
.alt__clear:hover { color: var(--text-strong); }
.alt__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.alt__cat {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
}
.alt__cat span { color: var(--muted); font-variant-numeric: tabular-nums; }
.alt__cat:hover { border-color: var(--border-2); }
.alt__cat.is-active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.alt__cat.is-active span { color: rgba(3, 27, 5, .65); }
.alt__count { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.alt__grid { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 900px) {
  .alt__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.alt__card {
  min-width: 0; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); content-visibility: auto; contain-intrinsic-size: auto 340px;
}
.alt__card[hidden] { display: none; }
.alt__card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.alt__app { margin: 0; font-size: 20px; line-height: 1.25; color: var(--text-strong); }
.alt__tag { flex: none; font-size: 12px; color: var(--muted); }
.alt__verdict { margin: 10px 0 16px; font-size: 15px; line-height: 1.6; color: var(--text); }
.alt__alts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.alt__item { min-width: 0; padding: 14px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.alt__item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alt__name { font-size: 16px; color: var(--text-strong); }
.alt__level { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.alt__note { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.alt__note code { font-size: 13px; }
.alt__cmd {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); background: #0e1110; border: 1px solid var(--border);
}
.alt__cmd code {
  width: 100%; min-width: 0; padding: 0; background: none; border: 0;
  font-family: var(--mono); font-size: 13px; line-height: 1.55;
  color: #b9e8bd; white-space: pre-wrap; overflow-wrap: anywhere;
}
.alt__copy {
  flex: none; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border-2);
}
.alt__copy:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.alt__site { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.alt__empty { margin: 24px 0; padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--radius); }
@media (max-width: 560px) {
  .alt__title { font-size: 22px; }
  .alt__card { padding: 16px; }
}
@media (max-width: 720px) {
  .alt__cats {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    margin: 14px -16px 0; padding: 2px 16px 6px; scrollbar-width: none;
  }
  .alt__cats::-webkit-scrollbar { display: none; }
  .alt__cat { flex: none; scroll-snap-align: start; }
}
