/* dv6.css — слой компонентов D v6 для внутренних страниц сайта (план site-d-v6, S2 №381).
   Подключается в layouts/main.php ТРЕТЬИМ, после custom_bw.css и hf.css; форум его не грузит.
   Правила:
   - цвета, радиусы, шрифты, кегли и отступы — только var(--hf-*) из :root hf.css (канон токенов);
     hex/rgb/hsl-литералов здесь нет и быть не должно (гейт design-tokens: DV6-HEX-LITERAL);
     полупрозрачные оверлеи — color-mix() от токена;
   - специфичность — один класс: каждое правило начинается с :where(.dv6) (нулевой вес),
     поэтому компонент живёт только под <body class="dv6"> (Controller::$dv6 = true) и не
     перекрашивает легаси-страницы Bootstrap 3 (.btn, .pager — 198/17 правил в custom_bw.css);
   - имена компонентов — по спеке mockups-pages-spec §1.2/§3; .row/.main из макетов
     переименованы (.tbl .line, .gallery .stage) — коллизия с сеткой Bootstrap;
   - шапка, подвал, реклама (.hf-*, .pf, .hf-ad*) — в hf.css, здесь не дублируются.
   Брейкпоинты: 1100 / 900 / 768 / 620 (как в hf.css и макетах). */

/* ---------- базовая типографика внутренних страниц ---------- */
:where(.dv6) .dv6-page { font: var(--hf-fs-s)/1.45 var(--hf-font); color: var(--hf-ink); }
:where(.dv6) :where(.dv6-page) a { color: var(--hf-ink); text-decoration: none; }
:where(.dv6) :where(.dv6-page) a:hover { text-decoration: underline; }
:where(.dv6) :where(.dv6-page) h1, :where(.dv6) :where(.dv6-page) h2, :where(.dv6) :where(.dv6-page) h3, :where(.dv6) :where(.dv6-page) h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; color: var(--hf-ink); }
:where(.dv6) :where(.dv6-page) p { margin: 0; }
:where(.dv6) :where(.dv6-page) img { max-width: 100%; }
:where(.dv6) .pageh { margin: var(--hf-sp-5) 0 var(--hf-sp-4); }
:where(.dv6) .pageh h1 { font: 600 var(--hf-fs-l)/1.15 var(--hf-display); letter-spacing: -.01em; }
:where(.dv6) .pageh .lede { margin-top: 6px; color: var(--hf-soft); max-width: 80ch; font-size: var(--hf-fs-lede); }
:where(.dv6) .crumbs { font: 500 12.5px var(--hf-font); color: var(--hf-soft); margin: 22px 0 10px; }
:where(.dv6) .crumbs a { color: var(--hf-soft); }
:where(.dv6) .crumbs a:hover { color: var(--hf-ink); }

/* ---------- плейсхолдер фото .ph[data-r] ---------- */
:where(.dv6) .ph { position: relative; width: 100%; background: linear-gradient(135deg, var(--hf-line), var(--hf-tb-note)); overflow: hidden; }
:where(.dv6) .ph::after { content: attr(data-r); position: absolute; right: 10px; bottom: 10px; font: 600 10.5px/1 var(--hf-font); letter-spacing: .06em; color: var(--hf-card); background: color-mix(in srgb, var(--hf-dark) 60%, transparent); padding: 5px 7px; border-radius: 999px; }
:where(.dv6) .ph--photo::after { content: none; }
:where(.dv6) .ph--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
:where(.dv6) .ph[data-r="3:2"] { aspect-ratio: 3/2; }
:where(.dv6) .ph[data-r="16:10"] { aspect-ratio: 16/10; }
:where(.dv6) .ph[data-r="16:9"] { aspect-ratio: 16/9; }
:where(.dv6) .ph[data-r="4:3"] { aspect-ratio: 4/3; }
:where(.dv6) .ph[data-r="4:5"] { aspect-ratio: 4/5; }
:where(.dv6) .ph[data-r="1:1"] { aspect-ratio: 1/1; }
:where(.dv6) .ph[data-r="3:1"] { aspect-ratio: 3/1; }

/* ---------- чипы, мета, дата, кнопки ---------- */
:where(.dv6) .chip { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--hf-font); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--hf-accent); color: var(--hf-ink); white-space: nowrap; }
:where(.dv6) .chip--ghost { background: transparent; border: 1.5px solid var(--hf-ink); }
:where(.dv6) .chip--green { background: var(--hf-arena); color: var(--hf-card); }
:where(.dv6) .chip--soft { background: var(--hf-accent-soft); color: var(--hf-accent-ink); }
:where(.dv6) .meta { font: 500 12.5px/1.35 var(--hf-font); color: var(--hf-soft); }
:where(.dv6) .meta b { color: var(--hf-ink); }
:where(.dv6) .meta a { color: var(--hf-link); }
:where(.dv6) .dt { font: 700 12px/1 var(--hf-font); letter-spacing: .02em; color: var(--hf-accent-ink); }
:where(.dv6) .btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 var(--hf-sp-4); background: var(--hf-accent); color: var(--hf-ink); font: 700 var(--hf-fs-small)/1 var(--hf-font); border-radius: 999px; white-space: nowrap; border: 0; cursor: pointer; text-decoration: none; box-shadow: none; text-shadow: none; }
:where(.dv6) .btn:hover, :where(.dv6) .btn:focus { text-decoration: none; color: var(--hf-ink); filter: brightness(1.06); }
:where(.dv6) .btn:focus-visible { outline: 2px solid var(--hf-ink); outline-offset: 2px; }
:where(.dv6) .btn--outline { background: transparent; border: 1.5px solid var(--hf-ink); }
:where(.dv6) .btn--outline:hover, :where(.dv6) .btn--outline:focus { background: var(--hf-tint); filter: none; }
:where(.dv6) .btn--ink { background: var(--hf-ink); color: var(--hf-card); }
:where(.dv6) .btn--ink:hover, :where(.dv6) .btn--ink:focus { color: var(--hf-card); background: var(--hf-dark-hover); filter: none; }
:where(.dv6) .btn--sm { height: 32px; padding: 0 var(--hf-sp-3); font-size: 12.5px; }
:where(.dv6) .btn--block { width: 100%; }

/* ---------- подменю раздела .sub ---------- */
:where(.dv6) .sub { background: var(--hf-card); border-bottom: 1px solid var(--hf-line); }
:where(.dv6) .sub .wrap { display: flex; gap: var(--hf-sp-2); padding: 10px var(--page-pad, 20px); overflow-x: auto; white-space: nowrap; scrollbar-width: none; font: 500 12.5px var(--hf-font); max-width: var(--page-w, 1200px); margin: 0 auto; }
:where(.dv6) .sub .wrap::-webkit-scrollbar { display: none; }
:where(.dv6) .sub .wrap > * { flex: none; }
:where(.dv6) .sub a { padding: 6px var(--hf-sp-2); border-radius: 999px; border: 1px solid transparent; color: var(--hf-link); }
:where(.dv6) .sub a:hover { text-decoration: none; border-color: var(--hf-arena); color: var(--hf-arena-ink); }
:where(.dv6) .sub a.on { background: var(--hf-arena); color: var(--hf-card); font-weight: 600; }
:where(.dv6) .sub b { padding: 6px var(--hf-sp-1) 6px 0; font-weight: 700; color: var(--hf-ink); }
:where(.dv6) .sub--line a { padding: 6px 2px; border-radius: 0; border: 0; border-bottom: 2px solid transparent; }
:where(.dv6) .sub--line a:hover { border-bottom-color: var(--hf-arena); }
:where(.dv6) .sub--line a.on { background: transparent; color: var(--hf-arena-ink); border-bottom-color: var(--hf-arena); font-weight: 700; }

/* ---------- секции, сетки ---------- */
:where(.dv6) .sec { margin-top: 36px; }
:where(.dv6) .sec-h { display: flex; align-items: center; gap: 10px 14px; margin-bottom: var(--hf-sp-4); flex-wrap: wrap; }
:where(.dv6) .sec-h h2 { font: 600 var(--hf-fs-sec-sm)/1.1 var(--hf-display); letter-spacing: -.01em; }
:where(.dv6) .sec-h .cnt { font: 700 var(--hf-fs-tag)/1 var(--hf-font); color: var(--hf-arena-ink); background: var(--hf-arena-soft); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
:where(.dv6) .sec-h .more { margin-left: auto; white-space: nowrap; font: 700 12.5px var(--hf-font); padding: var(--hf-sp-2) var(--hf-sp-3); border-radius: 999px; border: 1.5px solid var(--hf-ink); color: var(--hf-ink); }
:where(.dv6) .sec-h .more:hover { text-decoration: none; background: var(--hf-ink); color: var(--hf-card); }
:where(.dv6) .split { display: grid; grid-template-columns: 8fr 4fr; gap: var(--hf-gap); align-items: start; }
:where(.dv6) .split--rev { grid-template-columns: 4fr 8fr; }
:where(.dv6) .split > * { min-width: 0; }
:where(.dv6) .stack { display: flex; flex-direction: column; gap: var(--hf-sp-4); }
:where(.dv6) .stack--lg { gap: 22px; }
:where(.dv6) .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hf-gap); }
:where(.dv6) .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hf-gap); }
:where(.dv6) .aside { display: flex; flex-direction: column; gap: var(--hf-gap); }
:where(.dv6) .aside .lbl { display: inline-flex; align-items: center; gap: 6px; font: 700 10.5px/1 var(--hf-font); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--hf-tint); color: var(--hf-soft); margin-bottom: 10px; }

/* ---------- карточки материалов ---------- */
:where(.dv6) .c-art { background: var(--hf-card); border-radius: var(--hf-r); overflow: hidden; display: flex; flex-direction: column; }
:where(.dv6) .c-art .ph { border-radius: 0; }
:where(.dv6) .c-art .b { padding: 14px var(--hf-sp-4) var(--hf-sp-4); display: flex; flex-direction: column; gap: var(--hf-sp-2); flex: 1; }
:where(.dv6) .c-art h3 { font: 700 16.5px/1.3 var(--hf-font); }
:where(.dv6) .c-art .meta { margin-top: auto; }
:where(.dv6) .c-art--lead h3 { font: 700 var(--hf-fs-overlay)/1.25 var(--hf-font); }
:where(.dv6) .c-art--row { display: grid; grid-template-columns: 220px 1fr; gap: 0; }
:where(.dv6) .c-art--row .ph { border-radius: var(--hf-r) 0 0 var(--hf-r); height: 100%; }
:where(.dv6) .c-art--row .b { padding: 14px 18px; min-width: 0; }
:where(.dv6) .c-art--row h3 { font: 600 20px/1.3 var(--hf-font); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
:where(.dv6) .c-art--row .lede { font: 400 var(--hf-fs-t)/1.45 var(--hf-font); color: var(--hf-link); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
:where(.dv6) .c-art--row .meta { display: flex; gap: var(--hf-sp-2); align-items: center; flex-wrap: wrap; }
:where(.dv6) .c-pop { background: var(--hf-card); border-top: 4px solid var(--hf-arena); border-radius: var(--hf-r); padding: 18px 20px 20px; }
:where(.dv6) .c-pop h3 { font: 700 15.5px/1.2 var(--hf-font); display: flex; align-items: center; gap: 10px; }
:where(.dv6) .c-pop ol { list-style: none; margin: var(--hf-sp-3) 0 0; padding: 0; counter-reset: p; }
:where(.dv6) .c-pop li { counter-increment: p; display: grid; grid-template-columns: 40px 1fr; gap: var(--hf-sp-2); padding: 10px 0; border-top: 1px solid var(--hf-line-soft); align-items: start; }
:where(.dv6) .c-pop li:first-child { border-top: 0; }
:where(.dv6) .c-pop li::before { content: counter(p, decimal-leading-zero); font: 700 24px/1 var(--hf-display); color: var(--hf-arena); letter-spacing: -.02em; }
:where(.dv6) .c-pop li a { font: 600 14.5px/1.35 var(--hf-font); }
:where(.dv6) .c-short { background: var(--hf-card); border-radius: var(--hf-r); padding: var(--hf-sp-3) 14px var(--hf-sp-3) var(--hf-sp-4); border-left: 5px solid var(--hf-accent); display: grid; grid-template-columns: auto 1fr; gap: var(--hf-sp-3); align-items: start; }
:where(.dv6) .c-short .dt { padding-top: 3px; }
:where(.dv6) .c-short h3 { font: 600 14.5px/1.35 var(--hf-font); }
:where(.dv6) .c-short .meta { margin-top: 5px; }
:where(.dv6) .c-short--green { border-left-color: var(--hf-arena); }
:where(.dv6) .c-short--green .dt { color: var(--hf-arena); }
:where(.dv6) .sell { display: flex; justify-content: center; margin: var(--hf-sp-2) 0 var(--hf-sp-3); padding: 10px; border: 1.5px dashed var(--hf-line); border-radius: var(--hf-r); font: 700 var(--hf-fs-small) var(--hf-font); color: var(--hf-ink); }
:where(.dv6) .sell:hover { text-decoration: none; border-color: var(--hf-ink); }

/* ---------- таблицы-карточки, вкладки, рейтинги ---------- */
:where(.dv6) .card { background: var(--hf-card); border-radius: var(--hf-r); padding: var(--hf-sp-4) 18px; }
:where(.dv6) .card h3 { font: 700 14.5px/1.2 var(--hf-font); margin-bottom: var(--hf-sp-2); display: flex; justify-content: space-between; align-items: center; gap: var(--hf-sp-2); }
:where(.dv6) .card .all { display: inline-block; margin-top: 10px; font: 700 12.5px var(--hf-font); color: var(--hf-arena-ink); }
:where(.dv6) .tbl-card { background: var(--hf-card); border-radius: var(--hf-r); padding: var(--hf-sp-4) 18px 6px; }
:where(.dv6) .tabs { display: flex; gap: 18px; margin-bottom: 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; border-bottom: 1px solid var(--hf-line-soft); }
:where(.dv6) .tabs::-webkit-scrollbar { display: none; }
:where(.dv6) .tabs > * { flex: none; }
:where(.dv6) .tabs a { padding: 7px 1px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 600 12.5px var(--hf-font); color: var(--hf-link); }
:where(.dv6) .tabs a:hover { text-decoration: none; color: var(--hf-ink); }
:where(.dv6) .tabs a.on { color: var(--hf-arena-ink); border-bottom-color: var(--hf-arena); }
:where(.dv6) .tabs .cnt { margin-left: 5px; font-size: var(--hf-fs-tag); color: var(--hf-soft); }
:where(.dv6) .tbl { width: 100%; border-collapse: collapse; font-size: var(--hf-fs-t); border-radius: 0; margin: 0; }
:where(.dv6) .tbl thead th { text-align: left; font: 600 var(--hf-fs-tag) var(--hf-font); letter-spacing: .06em; text-transform: uppercase; color: var(--hf-soft); padding: 0 0 var(--hf-sp-2); border-bottom: 2px solid var(--hf-ink); }
:where(.dv6) .tbl td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--hf-line-soft); vertical-align: middle; }
:where(.dv6) .tbl tr:last-child td { border-bottom: 0; }
:where(.dv6) .tbl td:last-child, :where(.dv6) .tbl th:last-child { text-align: right; padding-right: 0; white-space: nowrap; width: 120px; }
:where(.dv6) .tbl td:last-child { font: 700 14.5px var(--hf-font); color: var(--hf-accent-ink); font-variant-numeric: tabular-nums; }
:where(.dv6) .tbl td.ask { font: 600 var(--hf-fs-small) var(--hf-font); color: var(--hf-soft); font-style: italic; }
:where(.dv6) .tbl .line { display: flex; align-items: center; gap: var(--hf-sp-3); }
:where(.dv6) .tbl .line > div { min-width: 0; }
:where(.dv6) .tbl .thumb { width: 52px; height: 52px; flex: none; border-radius: var(--hf-r); overflow: hidden; }
:where(.dv6) .tbl .thumb.ph, :where(.dv6) .tbl .thumb.ugc { border-radius: var(--hf-r); }
:where(.dv6) .tbl .h { font: 600 14.5px/1.35 var(--hf-font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(.dv6) .tbl .chip { margin-top: 5px; }
:where(.dv6) .tbl .meta { margin-top: 3px; }
:where(.dv6) .rank { list-style: none; margin: 0; padding: 0; }
:where(.dv6) .rank li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hf-line-soft); font: 500 var(--hf-fs-t)/1.3 var(--hf-font); }
:where(.dv6) .rank li:first-child { border-top: 0; }
:where(.dv6) .rank .st { font: 700 12px var(--hf-font); color: var(--hf-accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
:where(.dv6) .rank .host { display: block; font: 400 12px var(--hf-font); color: var(--hf-soft); }

/* ---------- пользовательские фото .ugc ---------- */
:where(.dv6) .ugc { position: relative; overflow: hidden; background: var(--hf-tint); border: 1px solid var(--hf-line); border-radius: var(--hf-r); display: block; }
:where(.dv6) .ugc img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); object-fit: contain; display: block; border-radius: 4px; }
:where(.dv6) .ugc--blur { background: var(--hf-dark); border: 0; }
:where(.dv6) .ugc--blur img { inset: 0; width: 100%; height: 100%; border-radius: 0; }
:where(.dv6) .ugc--blur .bg { inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover; filter: blur(18px) brightness(.72) saturate(.8); }
:where(.dv6) .ugc--none { display: grid; place-items: center; color: var(--hf-soft); }
:where(.dv6) .ugc--none svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- лошади: выделенные карточки .hz ---------- */
:where(.dv6) .hz { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--hf-gap); margin-bottom: var(--hf-gap); }
:where(.dv6) .hz-c { background: var(--hf-card); border-radius: var(--hf-r); overflow: hidden; display: flex; flex-direction: column; color: var(--hf-ink); }
:where(.dv6) .hz-c:hover { text-decoration: none; box-shadow: var(--hf-shadow-lift); }
:where(.dv6) .hz-c .ugc { aspect-ratio: 4/3; border-radius: 0; border: 0; }
:where(.dv6) .hz-c .b { padding: var(--hf-sp-3) 14px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
:where(.dv6) .hz-c h3 { font: 700 var(--hf-fs-m-sm)/1.3 var(--hf-font); }
:where(.dv6) .hz-c .pr { font: 700 var(--hf-fs-s) var(--hf-font); color: var(--hf-accent-ink); font-variant-numeric: tabular-nums; }
:where(.dv6) .hz-c .pr.ask { font: 600 var(--hf-fs-small) var(--hf-font); color: var(--hf-soft); font-style: italic; }

/* ---------- модалка «Подать объявление» .post (:target, без JS) ---------- */
:where(.dv6) .post { position: fixed; inset: 0; z-index: 1050; display: none; align-items: center; justify-content: center; padding: var(--hf-sp-4); }
:where(.dv6) .post:target { display: flex; }
:where(.dv6) .post-bg { position: absolute; inset: 0; background: color-mix(in srgb, var(--hf-dark) 55%, transparent); }
:where(.dv6) .post-box { position: relative; background: var(--hf-card); border-radius: 14px; padding: 22px; width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px; max-height: 100%; overflow: auto; }
:where(.dv6) .post-h { display: flex; align-items: center; justify-content: space-between; gap: var(--hf-sp-3); }
:where(.dv6) .post-h h2 { font: 600 22px/1.1 var(--hf-display); }
:where(.dv6) .post-h .x { font: 400 24px/1 var(--hf-font); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--hf-ground); flex: none; color: var(--hf-ink); }
:where(.dv6) .post-h .x:hover { text-decoration: none; }
:where(.dv6) .post-main { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 10px; border: 2px solid var(--hf-ink); border-radius: var(--hf-r); background: var(--hf-accent-soft); color: var(--hf-ink); }
:where(.dv6) .post-main:hover { text-decoration: none; background: var(--hf-card); }
:where(.dv6) .post-main .ugc { aspect-ratio: 1/1; border-radius: 6px; }
:where(.dv6) .post-main b { display: block; font: 600 19px/1.2 var(--hf-display); margin-bottom: var(--hf-sp-1); }
:where(.dv6) .post-main span { font-size: 13.5px; color: var(--hf-link); }
:where(.dv6) .post-main .go { font: 700 22px var(--hf-font); padding-right: 6px; }
:where(.dv6) .post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hf-sp-2); }
:where(.dv6) .post-grid a { border: 1.5px solid var(--hf-line); border-radius: var(--hf-r); padding: 10px var(--hf-sp-3); display: flex; flex-direction: column; gap: 2px; color: var(--hf-ink); }
:where(.dv6) .post-grid a:hover { border-color: var(--hf-ink); text-decoration: none; }
:where(.dv6) .post-grid b { font: 700 14.5px var(--hf-font); }
:where(.dv6) .post-grid span { font-size: 12.5px; color: var(--hf-soft); }

/* ---------- фильтры, сортировка, сегменты ---------- */
:where(.dv6) .filters { background: var(--hf-card); border-radius: var(--hf-r); padding: var(--hf-sp-4) 18px 18px; display: flex; flex-direction: column; }
:where(.dv6) .filters .search-in { border: 1.5px solid var(--hf-line); border-radius: var(--hf-r); padding: 9px 10px; font: var(--hf-fs-small) var(--hf-font); width: 100%; margin-bottom: 10px; background: var(--hf-card); color: var(--hf-ink); }
:where(.dv6) .filters details { border-top: 1px solid var(--hf-line-soft); padding: 11px 0; }
:where(.dv6) .filters details:first-of-type { border-top: 0; padding-top: 0; }
:where(.dv6) .filters summary { cursor: pointer; list-style: none; font: 600 13.5px var(--hf-font); display: flex; justify-content: space-between; align-items: center; }
:where(.dv6) .filters summary::-webkit-details-marker { display: none; }
:where(.dv6) .filters summary::after { content: "–"; font-size: var(--hf-fs-m-sm); color: var(--hf-soft); }
:where(.dv6) .filters details:not([open]) summary::after { content: "+"; }
:where(.dv6) .filters .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
:where(.dv6) .filters .chip-opt { font: 600 12px var(--hf-font); padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--hf-line); color: var(--hf-link); }
:where(.dv6) .filters .chip-opt:hover { text-decoration: none; border-color: var(--hf-ink); color: var(--hf-ink); }
:where(.dv6) .filters .chip-opt.on { border-color: var(--hf-ink); color: var(--hf-ink); background: var(--hf-tint); font-weight: 700; }
:where(.dv6) .filters .range { display: flex; align-items: center; gap: var(--hf-sp-2); margin-top: 10px; }
:where(.dv6) .filters .range input { width: 100%; border: 1.5px solid var(--hf-line); border-radius: var(--hf-r); padding: var(--hf-sp-2) 10px; font: var(--hf-fs-small) var(--hf-font); background: var(--hf-card); color: var(--hf-ink); }
:where(.dv6) .filters .range span { color: var(--hf-soft); font-size: 12px; flex: none; }
:where(.dv6) .filters select { width: 100%; border: 1.5px solid var(--hf-line); border-radius: var(--hf-r); padding: 9px 10px; font: var(--hf-fs-small) var(--hf-font); background: var(--hf-card); color: var(--hf-ink); margin-top: 10px; }
:where(.dv6) .filters .seg { width: 100%; margin-top: 10px; }
:where(.dv6) .filters .seg a { flex: 1; text-align: center; }
:where(.dv6) .filters .toggle { display: flex; align-items: center; justify-content: space-between; font: 600 var(--hf-fs-small) var(--hf-font); padding: var(--hf-sp-3) 0 0; cursor: pointer; }
:where(.dv6) .filters .sw { width: 38px; height: 22px; border-radius: 999px; background: var(--hf-line); position: relative; flex: none; }
:where(.dv6) .filters .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--hf-card); }
:where(.dv6) .filters .sw.on { background: var(--hf-arena); }
:where(.dv6) .filters .sw.on::after { left: 18px; }
:where(.dv6) .filters .actions { display: flex; gap: var(--hf-sp-2); margin-top: var(--hf-sp-4); }
:where(.dv6) .filters .actions .btn { flex: 1; }
:where(.dv6) .filters .actions .rst { flex: none; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--hf-ink); font: 700 var(--hf-fs-small) var(--hf-font); display: inline-flex; align-items: center; color: var(--hf-ink); background: transparent; cursor: pointer; }
:where(.dv6) .filters .actions .rst:hover { text-decoration: none; background: var(--hf-tint); }
:where(.dv6) .filters-btn { display: none; }
:where(.dv6) .sortbar { display: flex; align-items: center; justify-content: space-between; gap: var(--hf-sp-3); margin-bottom: 14px; flex-wrap: wrap; }
:where(.dv6) .sortbar .sort { display: flex; gap: var(--hf-sp-2); align-items: center; font: 600 12.5px var(--hf-font); color: var(--hf-link); }
:where(.dv6) .sortbar .sort select { border: 1.5px solid var(--hf-line); border-radius: 999px; padding: 7px var(--hf-sp-3); font: 600 12.5px var(--hf-font); background: var(--hf-card); color: var(--hf-ink); }
:where(.dv6) .sortbar .cnt { font: 600 12.5px var(--hf-font); color: var(--hf-soft); }
:where(.dv6) .seg { display: inline-flex; border: 1.5px solid var(--hf-ink); border-radius: 999px; overflow: hidden; }
:where(.dv6) .seg a { padding: var(--hf-sp-2) 14px; font: 700 12.5px var(--hf-font); color: var(--hf-ink); }
:where(.dv6) .seg a.on { background: var(--hf-ink); color: var(--hf-card); }
:where(.dv6) .seg a:hover { text-decoration: none; }

/* ---------- пагинация .pager (CLinkPager: cssFile=false, htmlOptions class=pager) ---------- */
:where(.dv6) .pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 22px 0 var(--hf-sp-1); padding: 0; list-style: none; flex-wrap: wrap; text-align: center; }
:where(.dv6) .pager li { display: inline-flex; float: none; margin: 0; padding: 0; }
:where(.dv6) .pager a, :where(.dv6) .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--hf-sp-2); border-radius: var(--hf-r); font: 600 var(--hf-fs-small) var(--hf-font); color: var(--hf-link); background: transparent; border: 1.5px solid var(--hf-line); }
:where(.dv6) .pager a:hover { background: var(--hf-tint); text-decoration: none; color: var(--hf-ink); }
:where(.dv6) .pager .on, :where(.dv6) .pager .on a, :where(.dv6) .pager .on span, :where(.dv6) .pager a[aria-current="page"] { background: var(--hf-ink); color: var(--hf-card); border-color: var(--hf-ink); }
:where(.dv6) .pager .dots, :where(.dv6) .pager .dots span { border: 0; color: var(--hf-soft); }
:where(.dv6) .pager .hidden { display: none; }
:where(.dv6) .pager .of { border: 0; color: var(--hf-soft); font-weight: 500; }

/* ---------- пустое состояние ---------- */
:where(.dv6) .empty { background: var(--hf-card); border-radius: var(--hf-r); padding: 44px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
:where(.dv6) .empty .ugc--none { width: 64px; height: 64px; border-radius: 50%; }
:where(.dv6) .empty .ugc--none svg { width: 28px; height: 28px; }
:where(.dv6) .empty h3 { font: 600 18px var(--hf-font); }
:where(.dv6) .empty p { color: var(--hf-soft); font-size: var(--hf-fs-t); max-width: 40ch; margin: 0 auto; }
:where(.dv6) .empty .more { margin-top: var(--hf-sp-2); display: inline-block; font: 700 12.5px var(--hf-font); padding: 9px var(--hf-sp-4); border-radius: 999px; border: 1.5px solid var(--hf-ink); color: var(--hf-ink); }
:where(.dv6) .empty .more:hover { text-decoration: none; background: var(--hf-ink); color: var(--hf-card); }

/* ---------- карточка лошади/объявления: галерея, цена, характеристики, продавец ---------- */
:where(.dv6) .gallery { display: flex; flex-direction: column; gap: var(--hf-sp-2); }
:where(.dv6) .gallery .stage { position: relative; }
:where(.dv6) .gallery .stage .ugc { aspect-ratio: 3/2; border-radius: var(--hf-r); }
:where(.dv6) .gallery .cnt { position: absolute; right: 10px; bottom: 10px; background: color-mix(in srgb, var(--hf-dark) 65%, transparent); color: var(--hf-card); font: 600 11.5px var(--hf-font); padding: 5px 9px; border-radius: 999px; }
:where(.dv6) .gallery .sold { position: absolute; left: 10px; top: 10px; background: var(--hf-ink); color: var(--hf-card); font: 700 var(--hf-fs-tag) var(--hf-font); letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }
:where(.dv6) .gallery .thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
:where(.dv6) .gallery .thumbs::-webkit-scrollbar { display: none; }
:where(.dv6) .gallery .thumbs a { flex: none; }
:where(.dv6) .gallery .thumbs .ugc { width: 64px; height: 64px; }
:where(.dv6) .gallery .thumbs a.on .ugc { border-color: var(--hf-ink); border-width: 2px; }
:where(.dv6) .buybox { background: var(--hf-card); border: 2px solid var(--hf-ink); border-radius: var(--hf-r); padding: 20px; }
:where(.dv6) .buybox .price { display: flex; align-items: baseline; gap: var(--hf-sp-2); flex-wrap: wrap; }
:where(.dv6) .buybox .price b { font: 600 28px var(--hf-display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
:where(.dv6) .buybox .price span { font: 600 var(--hf-fs-s) var(--hf-font); color: var(--hf-soft); }
:where(.dv6) .buybox .price.ask b { font-size: 20px; }
:where(.dv6) .buybox .chip { margin-top: 10px; }
:where(.dv6) .buybox .btn { width: 100%; margin-top: var(--hf-sp-4); }
:where(.dv6) .buybox .phone { margin-top: var(--hf-sp-4); }
:where(.dv6) .buybox .phone summary { list-style: none; }
:where(.dv6) .buybox .phone summary::-webkit-details-marker { display: none; }
:where(.dv6) .buybox .phone .btn { margin-top: 0; }
:where(.dv6) .buybox .phone .num { display: block; text-align: center; margin-top: 10px; font: 700 18px var(--hf-font); letter-spacing: .02em; }
:where(.dv6) .buybox .outline { width: 100%; justify-content: center; margin-top: var(--hf-sp-2); display: flex; height: 40px; align-items: center; border-radius: 999px; border: 1.5px solid var(--hf-ink); font: 700 var(--hf-fs-small) var(--hf-font); color: var(--hf-ink); }
:where(.dv6) .buybox .outline:hover { text-decoration: none; background: var(--hf-tint); }
:where(.dv6) .buybox .report { display: block; text-align: center; margin-top: 14px; font: 600 12px var(--hf-font); color: var(--hf-soft); }
:where(.dv6) .specs { width: 100%; border-collapse: collapse; margin-top: var(--hf-sp-4); font-size: var(--hf-fs-t); }
:where(.dv6) .specs td { padding: 9px 0; border-top: 1px solid var(--hf-line-soft); vertical-align: top; }
:where(.dv6) .specs tr:first-child td { border-top: 0; }
:where(.dv6) .specs td:first-child { color: var(--hf-soft); width: 50%; }
:where(.dv6) .specs td:last-child { font-weight: 600; text-align: right; }
:where(.dv6) .seller { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: var(--hf-sp-4); border-top: 1px solid var(--hf-line-soft); }
:where(.dv6) .seller .ava { width: 36px; height: 36px; border-radius: 50%; background: var(--hf-accent); flex: none; display: grid; place-items: center; font: 700 var(--hf-fs-t) var(--hf-font); color: var(--hf-ink); overflow: hidden; }
:where(.dv6) .seller .ava img { width: 100%; height: 100%; object-fit: cover; }
:where(.dv6) .seller b { display: block; font: 600 var(--hf-fs-t) var(--hf-font); }
:where(.dv6) .seller span { font: 400 12px var(--hf-font); color: var(--hf-soft); }

/* ---------- текст материала, врезка, комментарии, поделиться ---------- */
:where(.dv6) .prose { font: var(--hf-fs-m-sm)/1.75 var(--hf-font); color: var(--hf-ink); max-width: 74ch; }
:where(.dv6) .prose p { margin: 0 0 18px; }
:where(.dv6) .prose h2 { font: 700 24px/1.3 var(--hf-font); margin: var(--hf-sp-6) 0 var(--hf-sp-3); }
:where(.dv6) .prose h3 { font: 700 19px/1.35 var(--hf-font); margin: 30px 0 var(--hf-sp-3); }
:where(.dv6) .prose h4 { font: 700 var(--hf-fs-s) var(--hf-font); margin: var(--hf-sp-4) 0 6px; }
:where(.dv6) .prose a { color: var(--hf-arena-ink); text-decoration: underline; text-underline-offset: 2px; }
:where(.dv6) .prose ul, :where(.dv6) .prose ol { margin: 0 0 18px; padding-left: 22px; }
:where(.dv6) .prose li + li { margin-top: 6px; }
:where(.dv6) .prose img { display: block; max-width: 100%; height: auto; border-radius: var(--hf-r); margin: var(--hf-sp-5) 0; }
:where(.dv6) .prose figure { margin: var(--hf-sp-5) 0; }
:where(.dv6) .prose figcaption { font: 500 12.5px/1.4 var(--hf-font); color: var(--hf-soft); margin-top: var(--hf-sp-2); }
:where(.dv6) .prose blockquote { margin: 0 0 18px; padding: 2px 0 2px 18px; border-left: 3px solid var(--hf-arena); font-style: italic; color: var(--hf-link); }
:where(.dv6) .prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: var(--hf-fs-t); }
:where(.dv6) .prose td, :where(.dv6) .prose th { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--hf-line-soft); text-align: left; vertical-align: top; }
:where(.dv6) .prose .lede { font: 500 18px/1.55 var(--hf-font); color: var(--hf-ink); margin-bottom: 22px; }
:where(.dv6) .prose--compact { font: var(--hf-fs-s)/1.65 var(--hf-font); max-width: none; }
:where(.dv6) .prose--compact p { margin: 0 0 var(--hf-sp-3); }
:where(.dv6) .callout { background: var(--hf-accent-soft); border-left: 5px solid var(--hf-accent); border-radius: 0 var(--hf-r) var(--hf-r) 0; padding: var(--hf-sp-4) 20px; margin: var(--hf-sp-2) 0 26px; font: var(--hf-fs-s)/1.6 var(--hf-font); color: var(--hf-accent-ink); }
:where(.dv6) .callout b { font-weight: 700; }
:where(.dv6) .callout .lbl { display: block; font: 700 10.5px var(--hf-font); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: var(--hf-accent-ink); }
:where(.dv6) .callout--green { background: var(--hf-arena-soft); border-left-color: var(--hf-arena); color: var(--hf-arena-ink); }
:where(.dv6) .callout--green .lbl { color: var(--hf-arena-ink); }
:where(.dv6) .comments { margin-top: 38px; }
:where(.dv6) .comments h2 { font: 600 var(--hf-fs-sec-sm) var(--hf-display); margin-bottom: var(--hf-sp-4); }
:where(.dv6) .comment { display: grid; grid-template-columns: 44px 1fr; gap: var(--hf-sp-3); padding: var(--hf-sp-4) 0; border-top: 1px solid var(--hf-line-soft); }
:where(.dv6) .comment:first-of-type { border-top: 0; }
:where(.dv6) .comment .av { width: 44px; height: 44px; border-radius: 50%; background: var(--hf-tb-note); display: grid; place-items: center; font: 700 var(--hf-fs-s) var(--hf-font); color: var(--hf-card); overflow: hidden; }
:where(.dv6) .comment .av img { width: 100%; height: 100%; object-fit: cover; }
:where(.dv6) .comment .hd { display: flex; align-items: baseline; gap: var(--hf-sp-2); flex-wrap: wrap; margin-bottom: var(--hf-sp-1); }
:where(.dv6) .comment .nm { font: 700 var(--hf-fs-t) var(--hf-font); }
:where(.dv6) .comment .tm { font: 500 12px var(--hf-font); color: var(--hf-soft); }
:where(.dv6) .comment .tx { font: 14.5px/1.55 var(--hf-font); color: var(--hf-ink); }
:where(.dv6) .comment .re { margin-top: 6px; font: 700 12px var(--hf-font); color: var(--hf-soft); background: none; border: 0; padding: 0; cursor: pointer; }
:where(.dv6) .comment .re:hover { color: var(--hf-ink); }
:where(.dv6) .comment--reply { margin-left: 56px; }
:where(.dv6) .cm-form { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
:where(.dv6) .cm-form .av { width: 36px; height: 36px; border-radius: 50%; background: var(--hf-tint); border: 1.5px solid var(--hf-line); flex: none; }
:where(.dv6) .cm-form textarea { flex: 1; min-height: 44px; border: 1.5px solid var(--hf-line); border-radius: var(--hf-r); padding: 10px var(--hf-sp-3); font: var(--hf-fs-t)/1.45 var(--hf-font); resize: vertical; color: var(--hf-ink); background: var(--hf-card); }
:where(.dv6) .cm-form .btn { align-self: flex-end; }
:where(.dv6) .share { display: flex; align-items: center; flex-wrap: wrap; gap: var(--hf-sp-2); margin: 26px 0; padding: 14px 0; border-top: 1px solid var(--hf-line-soft); border-bottom: 1px solid var(--hf-line-soft); }
:where(.dv6) .share .lbl { font: 700 10.5px var(--hf-font); letter-spacing: .08em; text-transform: uppercase; color: var(--hf-soft); margin-right: var(--hf-sp-1); }
:where(.dv6) .share a, :where(.dv6) .share button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 var(--hf-sp-3); border-radius: 999px; border: 1.5px solid var(--hf-line); font: 600 12.5px var(--hf-font); color: var(--hf-ink); background: var(--hf-card); cursor: pointer; }
:where(.dv6) .share a:hover, :where(.dv6) .share button:hover { text-decoration: none; border-color: var(--hf-ink); }
:where(.dv6) .share svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- страница материала: новость/статья (S3 №383, mockups article.html) ---------- */
:where(.dv6) .art { max-width: 780px; }
:where(.dv6) .art-h1 { font: 600 clamp(24px, 3.4vw, 38px)/1.18 var(--hf-display); margin: 14px 0 var(--hf-sp-3); overflow-wrap: break-word; }
:where(.dv6) .art-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
:where(.dv6) .art-cover { width: 100%; border-radius: var(--hf-r); margin-bottom: 22px; }
:where(.dv6) .ugc.art-cover { aspect-ratio: 16/10; }
/* старый контент из редактора: встроенное видео — во всю ширину 16:9, прочие iframe не шире колонки;
   широкие таблицы прокручиваются внутри себя, а не распирают страницу на 375 */
:where(.dv6) .prose iframe { max-width: 100%; border: 0; }
:where(.dv6) .prose iframe[src*="youtube"], :where(.dv6) .prose iframe[src*="youtu.be"], :where(.dv6) .prose iframe[src*="rutube"], :where(.dv6) .prose iframe[src*="vk.com/video"], :where(.dv6) .prose iframe[src*="vkvideo"] { display: block; width: 100%; height: auto; aspect-ratio: 16/9; margin: var(--hf-sp-5) 0; border-radius: var(--hf-r); }
:where(.dv6) .prose table { display: block; max-width: 100%; overflow-x: auto; }
/* реакция «нравится»: легаси .likes_on_show (custom_bw.css) — плашка 100×50 с фоном; здесь это pill .share */
:where(.dv6) .share .likes_on_show { max-width: none; }
:where(.dv6) .share .likes_icon { display: block; }
:where(.dv6) hr.eq { margin: 44px 0 0; border: 0; border-top: 3px double var(--hf-line); }
:where(.dv6) .comments h2 .cnt { color: var(--hf-soft); }
:where(.dv6) .comments .cm-list { list-style: none; margin: 0; padding: 0; }
:where(.dv6) .comment .media-heading { margin: 0; min-width: 0; }
:where(.dv6) .comment .tx { overflow-wrap: anywhere; }
:where(.dv6) .comment .cm-like { display: inline-flex; align-items: center; gap: 4px; max-width: none; height: auto; margin-left: auto; padding: 2px 6px; border: 0; border-radius: 999px; background: transparent; font: 600 12px var(--hf-font); color: var(--hf-soft); cursor: pointer; }
:where(.dv6) .comment .cm-like:hover { background: var(--hf-tint); }
:where(.dv6) .comment .cm-like img { display: block; }
:where(.dv6) .comment > .comment-form { grid-column: 2; margin-top: var(--hf-sp-3); } /* форма ответа: comments.js клонирует #comment-form-wrap после .media-heading */
:where(.dv6) .comment--deep { margin-left: 112px; }
:where(.dv6) .cm-write { display: inline-block; margin-bottom: var(--hf-sp-3); font: 700 12.5px var(--hf-font); color: var(--hf-link); }
:where(.dv6) .cm-form .cm-input { width: 100%; }
:where(.dv6) .cm-guest { margin-bottom: 18px; }
:where(.dv6) .cm-guest .cm-reg { font: 600 12.5px var(--hf-font); color: var(--hf-link); text-decoration: underline; }

/* ---------- лошади: список объявлений /announcements/index (S5 №386) ----------
   Легаси-стили Bootstrap (custom_bw.css) с большей специфичностью перекрыты селекторами той же
   формы: .pager li > a (0,1,2), label {font-weight:bold; margin-bottom}, h1–h3 {margin}. */
:where(.dv6) .pageh--row { display: flex; align-items: center; gap: var(--hf-sp-3); flex-wrap: wrap; }
:where(.dv6) .pageh--row .cnt { font: 600 12.5px var(--hf-font); color: var(--hf-soft); }
:where(.dv6) .pageh--row .btn { margin-left: auto; }
:where(.dv6) .ann-list h1, :where(.dv6) .ann-list h2, :where(.dv6) .ann-list h3 { margin: 0; }
:where(.dv6) .ann-main { min-width: 0; }
:where(.dv6) .filters label { margin: 0; font-weight: 600; }
:where(.dv6) .filters .range select { margin-top: 0; }
:where(.dv6) .filters .chip-opt { position: relative; cursor: pointer; }
:where(.dv6) .filters .chip-opt:has(input:checked) { border-color: var(--hf-ink); color: var(--hf-ink); background: var(--hf-tint); font-weight: 700; }
:where(.dv6) .filters .chip-opt:has(input:focus-visible), :where(.dv6) .filters .toggle:has(input:focus-visible) .sw { outline: 2px solid var(--hf-ink); outline-offset: 2px; }
:where(.dv6) .filters .toggle:has(input:checked) .sw { background: var(--hf-arena); }
:where(.dv6) .filters .toggle:has(input:checked) .sw::after { left: 18px; }
:where(.dv6) .filters .saved { border-top: 1px solid var(--hf-line-soft); margin-top: var(--hf-sp-4); padding-top: var(--hf-sp-3); }
:where(.dv6) .filters .saved h2 { font: 600 13.5px var(--hf-font); margin: 0 0 var(--hf-sp-2); }
:where(.dv6) .filters .saved ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
:where(.dv6) .filters .saved li { display: flex; align-items: center; justify-content: space-between; gap: var(--hf-sp-2); font-size: var(--hf-fs-small); }
:where(.dv6) .filters .saved li form { margin: 0; }
:where(.dv6) .filters .saved-del { border: 0; background: transparent; color: var(--hf-soft); font-size: var(--hf-fs-s); line-height: 1; padding: 0 var(--hf-sp-1); cursor: pointer; }
:where(.dv6) .filters .saved-del:hover { color: var(--hf-ink); }
:where(.dv6) .filters .save-q { display: flex; gap: var(--hf-sp-2); margin-top: var(--hf-sp-3); }
:where(.dv6) .filters .save-q input[type="text"] { flex: 1; min-width: 0; border: 1.5px solid var(--hf-line); border-radius: var(--hf-r); padding: var(--hf-sp-2) 10px; font: var(--hf-fs-small) var(--hf-font); background: var(--hf-card); color: var(--hf-ink); }
:where(.dv6) .sortbar .sort { position: relative; }
:where(.dv6) .sortbar .sort-dd { border: 1.5px solid var(--hf-line); border-radius: 999px; padding: 7px var(--hf-sp-3); font: 600 12.5px var(--hf-font); background: var(--hf-card); color: var(--hf-ink); cursor: pointer; }
:where(.dv6) .sortbar .sort-dir { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--hf-line); color: var(--hf-ink); }
:where(.dv6) .sortbar .sort-dir:hover { text-decoration: none; border-color: var(--hf-ink); }
:where(.dv6) .sortbar .dropdown-menu { border-radius: var(--hf-r); border-color: var(--hf-line); box-shadow: var(--hf-shadow-lift); font: 600 12.5px var(--hf-font); }
:where(.dv6) .sortbar .dropdown-menu > li > a { color: var(--hf-ink); padding: 6px 14px; }
:where(.dv6) .sortbar .dropdown-menu > .disabled > a { color: var(--hf-soft); }
:where(.dv6) .hz-c { position: relative; }
:where(.dv6) .hz-c h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:where(.dv6) .hz-c h3 a { color: var(--hf-ink); }
:where(.dv6) .hz-c .meta { font-size: var(--hf-fs-small); color: var(--hf-soft); }
:where(.dv6) .hz-fav { position: absolute; top: var(--hf-sp-2); right: var(--hf-sp-2); }
:where(.dv6) .tbl-fav { flex: none; margin-left: auto; }
:where(.dv6) .tbl .meta { display: block; }
:where(.dv6) .ann-grid { margin-bottom: var(--hf-gap); }
:where(.dv6) .ann-main .hf-adslot { margin: var(--hf-sp-4) 0; }
:where(.dv6) .pager li > a, :where(.dv6) .pager li > span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--hf-sp-2); border-radius: var(--hf-r); color: var(--hf-link); background: transparent; border: 1.5px solid var(--hf-line); }
:where(.dv6) .pager li > a:hover, :where(.dv6) .pager li > a:focus { background: var(--hf-tint); color: var(--hf-ink); }
:where(.dv6) .pager li.on > a, :where(.dv6) .pager li > a[aria-current="page"] { background: var(--hf-ink); color: var(--hf-card); border-color: var(--hf-ink); }
:where(.dv6) .pager::before, :where(.dv6) .pager::after { content: none; }
:where(.dv6) .pager-nav { margin-top: var(--hf-sp-2); }

/* ---------- адаптив ---------- */
/* Bootstrap collapse (кнопка .filters-btn) оставляет на #boardSearchForm .collapse и inline
   height:0 после сворачивания на узком экране — на широком фильтры видны всегда (S5 №386). */
@media (min-width: 621px) {
  :where(.dv6) .filters--desktop.collapse, :where(.dv6) .filters--desktop.collapsing { display: flex; height: auto !important; }
}
@media (max-width: 1100px) {
  :where(.dv6) .split, :where(.dv6) .split--rev { grid-template-columns: 1fr; }
  :where(.dv6) .grid3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  :where(.dv6) .grid3 { grid-template-columns: 1fr 1fr; }
  :where(.dv6) .comment--reply { margin-left: 28px; }
  :where(.dv6) .comment--deep { margin-left: 56px; }
}
@media (max-width: 620px) {
  :where(.dv6) .pageh h1 { font-size: var(--hf-fs-l-sm); }
  :where(.dv6) .sec { margin-top: 26px; }
  :where(.dv6) .sec-h h2 { font-size: 18px; }
  :where(.dv6) .grid3, :where(.dv6) .grid2 { grid-template-columns: 1fr; }
  :where(.dv6) .c-art--row { grid-template-columns: 88px 1fr; }
  :where(.dv6) .c-art--row .ph { aspect-ratio: 1/1; border-radius: var(--hf-r) 0 0 var(--hf-r); }
  :where(.dv6) .c-art--row .b { padding: 10px var(--hf-sp-3); }
  :where(.dv6) .c-art--row h3 { font-size: var(--hf-fs-s); -webkit-line-clamp: 2; }
  :where(.dv6) .c-art--row .lede { display: none; }
  :where(.dv6) .hz { grid-template-columns: 1fr 1fr; }
  :where(.dv6) .hz-c:nth-child(3) { display: none; }
  /* table-layout:auto считает min-content по самому длинному неразрывному слову
     (регион/порода в .meta, цена в nowrap-колонке) и раздувает .tbl шире .tbl-card —
     страница едет вбок на 375px (№390). fixed отдаёт колонке цены фиксированную ширину,
     первая колонка получает остаток и не может раздуть таблицу; anywhere ломает слово
     внутри своей колонки вместо переполнения. */
  :where(.dv6) .tbl { table-layout: fixed; }
  :where(.dv6) .tbl .line { gap: var(--hf-sp-2); }
  :where(.dv6) .tbl .thumb { width: 64px; height: 64px; }
  :where(.dv6) .tbl thead th:first-child, :where(.dv6) .tbl td:first-child { padding-right: 6px; }
  :where(.dv6) .tbl .h, :where(.dv6) .tbl .meta { overflow-wrap: anywhere; word-break: break-word; }
  :where(.dv6) .tbl td:last-child, :where(.dv6) .tbl th:last-child { width: 96px; }
  /* ревью №378: «1,700,000 RUB» (104px) и «12,000,000 RUB» (114px) шире 96px-колонки
     при nowrap — вылезают за карточку и теряют text-align:right. th «Цена» остаётся
     nowrap (унаследован от базового правила), у td снимаем nowrap — валюта уходит
     на вторую строку, ширину 96px не трогаем. */
  :where(.dv6) .tbl td:last-child { white-space: normal; }
  :where(.dv6) .post { align-items: flex-end; padding: 0; }
  :where(.dv6) .post-box { border-radius: 16px 16px 0 0; padding: 18px var(--hf-sp-4) calc(18px + env(safe-area-inset-bottom, 0px)); }
  :where(.dv6) .post-main { grid-template-columns: 72px 1fr auto; gap: var(--hf-sp-3); }
  :where(.dv6) .post-h h2 { font-size: 19px; }
  :where(.dv6) .filters-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--hf-ink); font: 700 var(--hf-fs-small) var(--hf-font); gap: 6px; color: var(--hf-ink); background: var(--hf-card); cursor: pointer; }
  :where(.dv6) .filters--desktop { display: none; }
  :where(.dv6) .filters--desktop.in { display: flex; }
  :where(.dv6) .filters--desktop.collapse.in, :where(.dv6) .filters--desktop.collapsing { display: flex; }
  :where(.dv6) .pageh--row .btn { margin-left: 0; }
  :where(.dv6) .sortbar .filters-btn { order: -1; }
  :where(.dv6) .prose { max-width: none; }
  :where(.dv6) .prose .lede { font-size: var(--hf-fs-m-sm); }
  :where(.dv6) .comment { grid-template-columns: 36px 1fr; }
  :where(.dv6) .comment .av { width: 36px; height: 36px; font-size: var(--hf-fs-small); }
  :where(.dv6) .gallery .thumbs .ugc { width: 56px; height: 56px; }
  :where(.dv6) .buybox { padding: var(--hf-sp-4); }
}
