/* «Топ-150 ошибок» — /baza/top-150-oshibok.php */
.os-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.os-stats li { padding: 16px 16px 14px; border: 1px solid var(--bl-line); border-radius: var(--bl-radius); background: #fff; }
.os-stats b { display: block; color: var(--bl-red); font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.os-stats span { display: block; margin-top: 6px; color: var(--bl-text); font-size: 14px; line-height: 1.35; }

.os-top { margin: 0 0 30px; padding: 22px 24px; border-radius: var(--bl-radius); background: var(--bl-soft); }
.os-top h2 { margin: 0 0 14px !important; }
.os-top ol { margin: 0; padding: 0; list-style: none; counter-reset: ostop; }
.os-top li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--bl-line); counter-increment: ostop; }
.os-top li:first-child { border-top: 0; }
.os-top li::before { content: counter(ostop); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--bl-ink); font-size: 14px; font-weight: 800; }
.os-top a { color: var(--bl-ink); font-weight: 600; line-height: 1.4; text-decoration: none; }
.os-top a:hover { color: var(--bl-red); }
.os-top small { color: var(--bl-muted); font-size: 13px; white-space: nowrap; }

.os-filter { position: sticky; top: 64px; z-index: 5; margin: 0 0 24px; padding: 10px 0; background: rgba(255, 255, 255, .96); }
.os-filter__t { display: block; margin: 0 0 8px; color: var(--bl-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.os-filter__l { display: flex; gap: 8px; margin: 0; padding: 0 0 4px; overflow-x: auto; list-style: none; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.os-filter__l li { flex: 0 0 auto; }
.os-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--bl-line); border-radius: 999px; background: #fff; color: var(--bl-ink); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.bl-body .os-chip { color: var(--bl-ink); text-decoration: none; }
.os-chip small { color: var(--bl-muted); font-size: 12px; font-weight: 700; }
.bl-body .os-chip:hover, .bl-body .os-chip:focus-visible { border-color: var(--bl-red); color: var(--bl-red); text-decoration: none; }
.bl-body .os-chip.is-on { border-color: #cc0000; background: #c80000; color: #fff; }
.os-chip.is-on small { color: rgba(255, 255, 255, .85); }
.bl-body .os-top a { color: var(--bl-ink); text-decoration: none; }
.bl-body .os-top a:hover { color: var(--bl-red); }

.os-cat { margin: 0 0 12px; scroll-margin-top: 140px; }
.os-cat__h { margin: 34px 0 6px !important; }
.os-cat__d { margin: 0 0 18px; color: var(--bl-muted); }
.os-cat.is-hidden { display: none; }

.os-item { margin: 0 0 18px; padding: 22px 24px; border: 1px solid var(--bl-line); border-radius: var(--bl-radius); background: #fff; scroll-margin-top: 140px; }
.os-item__hd { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.os-item__n { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #fff6f6; color: var(--bl-red); font-size: 16px; font-weight: 800; }
.os-item h3 { margin: 0 0 8px !important; font-size: 20px !important; line-height: 1.35 !important; }
.os-freq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; color: var(--bl-muted); font-size: 14px; }
.os-freq__bar { position: relative; flex: 0 0 120px; height: 6px; overflow: hidden; border-radius: 3px; background: var(--bl-line); }
.os-freq__bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--bl-red); }
.os-item figure { margin: 18px 0 4px; }
.os-item figure img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--bl-line); border-radius: 10px; background: var(--bl-soft); }
.os-item figure.os-fig--narrow img { width: auto; max-height: 520px; margin: 0 auto; }
.os-item figcaption { margin-top: 8px; color: var(--bl-muted); font-size: 13px; line-height: 1.45; }
.os-item p { margin: 14px 0 0; }
.os-item p b { color: var(--bl-ink); }
.os-fix { padding: 12px 16px; border-radius: 10px; background: #f2f8f3; }
.os-more { font-size: 15px; }

.os-links { margin: 6px 0 0; padding: 0; list-style: none; }
.os-links li { margin: 0 0 6px; padding-left: 18px; position: relative; }
.os-links li::before { content: "→"; position: absolute; left: 0; color: var(--bl-red); }

.os-empty { display: none; margin: 0 0 24px; color: var(--bl-muted); }

.os-cat__h small { color: var(--bl-muted); font-size: 14px; font-weight: 600; white-space: nowrap; }

@media (max-width: 991px) {
    .os-filter { position: static; padding-top: 0; }
}
@media (max-width: 767px) {
    .os-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .os-stats b { font-size: 28px; }
    .os-top { padding: 18px 16px; }
    .os-top li { grid-template-columns: 30px minmax(0, 1fr); }
    .os-top li::before { width: 26px; height: 26px; font-size: 13px; }
    .os-top small { grid-column: 2; }
    .os-item { padding: 18px 16px; }
    .os-item__hd { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
    .os-item__n { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
    .os-item h3 { font-size: 18px !important; }
    .os-freq__bar { flex-basis: 90px; }
    .os-item figure { margin-left: -6px; margin-right: -6px; }
}
