/* Очки500 — /novosti, MODX 2.7, PHP 5.6.
   Только локальные системные шрифты. Вся стилизация ограничена .o500-nw3. */
.o500-nw3 {
  --o500-ink: #111111;
  --o500-blue: #185385;
  --o500-border: #dce5ed;
  box-sizing: border-box;
  background: #ffffff;
  color: var(--o500-ink);
  padding: 14px 16px 56px;
  font: 400 16px/1.6 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.o500-nw3 *,
.o500-nw3 *::before,
.o500-nw3 *::after { box-sizing: border-box; }
.o500-nw3__wrap { width: 100%; max-width: 1120px; margin: 0 auto; }
.o500-nw3 a:focus,
.o500-nw3 button:focus,
.o500-nw3 select:focus { outline: 2px solid #377cb2; outline-offset: 3px; }

/* Хлебные крошки, заголовок и лид */
.o500-nw3__crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin: 0 0 8px; color: #111111; font-size: 16px;
}
.o500-nw3__crumbs a { color: #111111; text-decoration: none; }
.o500-nw3__crumbs a:hover { text-decoration: underline; }
.o500-nw3__intro { margin: 0 0 18px; padding: 0; }
.o500-nw3__intro h1 {
  margin: 0 0 12px; font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.18; letter-spacing: -.02em; font-weight: 700;
  color: #111111;
}
.o500-nw3__intro p {
  width: 100%; max-width: none; margin: 0;
  color: #111111; font-size: 16px; line-height: 1.6;
}

/* Девять фильтров равномерно заполняют каждую строку. */
.o500-nw3__filters {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin: 18px 0 18px;
}
.o500-nw3__filter {
  display: inline-flex; flex: 1 1 auto;
  align-items: center; justify-content: space-between; gap: 10px;
  min-width: 0; min-height: 44px; padding: 9px 13px;
  border: 1px solid var(--o500-border); border-radius: 9px;
  background: #fff; text-decoration: none !important;
  color: #111111 !important;
  font: 600 16px/1.35 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  transition: background .15s ease, border-color .15s ease;
}
.o500-nw3__filter:not(.is-active):hover {
  border-color: #b7d4e9; background: #f4f9fe;
}
.o500-nw3__filter span {
  flex: 0 0 auto; display: inline-flex; justify-content: center; align-items: center;
  min-width: 25px; height: 25px; padding: 0 6px;
  border-radius: 6px; background: #edf3f7;
  color: #111111; font-size: 16px; line-height: 1;
}
.o500-nw3__filter.is-active {
  color: #fff !important; background: var(--o500-blue); border-color: var(--o500-blue);
}
.o500-nw3__filter.is-active span {
  color: #fff; background: rgba(255,255,255,.22);
}

/* Сортировка */
.o500-nw3__tools {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin: 15px 0 14px;
}
.o500-nw3__found { margin: 0; color: #111111; font-size: 16px; }
.o500-nw3__sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.o500-nw3__sort label { color: #111111; font-size: 16px; }
.o500-nw3__sort select,
.o500-nw3__sort button {
  min-height: 40px; font: 400 16px/1.3 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  border-radius: 8px;
}
.o500-nw3__sort select { padding: 7px 10px; color: #111111; background: #fff; border: 1px solid var(--o500-border); }
.o500-nw3__sort button { padding: 7px 15px; color: #fff; background: #17659d; border: 1px solid #17659d; cursor: pointer; }
.o500-nw3__sort button:hover { background: #104f7e; }

/* Один общий список */
.o500-nw3__list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.o500-nw3__card {
  display: flex; align-items: center; gap: 20px;
  min-width: 0; padding: 12px;
  background: #fff; border: 1px solid var(--o500-border);
  border-radius: 13px; box-shadow: 0 4px 16px rgba(10,40,75,.025);
}
.o500-nw3__card:hover { border-color: #bdd6e9; box-shadow: 0 6px 18px rgba(10,40,75,.055); }
.o500-nw3__thumb {
  display: block; flex: 0 0 210px; width: 210px; height: 128px;
  overflow: hidden; border-radius: 9px; background: #f2f6f9;
}
.o500-nw3__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.o500-nw3__card-body { flex: 1; min-width: 0; }
.o500-nw3__tag {
  display: inline-block; padding: 3px 8px; margin: 0 0 7px;
  border-radius: 5px; background: #edf5fb;
  color: #111111; font-size: 16px; line-height: 1.35; font-weight: 600;
}
.o500-nw3__card h2 { margin: 0 0 5px; color: #111111; font-size: clamp(18px, 1.65vw, 21px); line-height: 1.4; font-weight: 600; }
.o500-nw3__card h2 a { color: #111111; text-decoration: none; }
.o500-nw3__card h2 a:hover { text-decoration: underline; }
.o500-nw3__card-body p { margin: 0; color: #111111; font-size: 16px; line-height: 1.6; }
.o500-nw3__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 38px; width: 38px; height: 38px;
  border-radius: 50%; margin-left: auto;
  background: #eaf4fc; color: #1766a3 !important;
  text-decoration: none !important; font-size: 21px;
}
.o500-nw3__arrow:hover { background: #dceefa; }
.o500-nw3__empty {
  margin: 0; padding: 20px; border: 1px solid var(--o500-border);
  border-radius: 11px; color: #111111; background: #fafcfe; font-size: 16px;
}
.o500-nw3__empty a { color: #185385; }

@media (max-width: 800px) {
  .o500-nw3__card { gap: 14px; }
  .o500-nw3__thumb { flex-basis: 155px; width: 155px; height: 110px; }
}
@media (max-width: 600px) {
  .o500-nw3 { padding: 12px 12px 40px; }
  .o500-nw3__filters { gap: 8px; }
  .o500-nw3__filter { flex: 1 1 100%; min-height: 44px; }
  .o500-nw3__tools { align-items: flex-start; flex-direction: column; }
  .o500-nw3__card { gap: 12px; align-items: flex-start; }
  .o500-nw3__thumb { flex: 0 0 110px; width: 110px; height: 100px; }
  .o500-nw3__card h2 { font-size: 18px; }
  .o500-nw3__arrow { display: none; }
}
@media (max-width: 380px) {
  .o500-nw3__thumb { flex-basis: 88px; width: 88px; height: 88px; }
  .o500-nw3__card { padding: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .o500-nw3__filter { transition: none; }
}
@media print {
  .o500-nw3 { padding: 0; }
  .o500-nw3__filters, .o500-nw3__tools, .o500-nw3__arrow { display: none; }
  .o500-nw3__card { box-shadow: none; break-inside: avoid; }
}
