/* PAYLANCE — главная: «Что интересного можно найти за…». Подборка из реальных объявлений по бюджету. */
.pbp { --ink: #1d1d1f; --muted: #6e6e73; --faint: #a1a1a6; --line: #ecebe8; --tile: #f2f2f4; --accent: #6b52e0; color: var(--ink); font-family: inherit; }
.pbp *, .pbp *::before, .pbp *::after { box-sizing: border-box; }
.pbp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.pbp-title { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; }
.pbp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pbp-chip { appearance: none; border: 1px solid #e3e3e8; background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.pbp-chip:hover { border-color: #b8b8be; }
.pbp-chip[aria-pressed="true"] { background: #111110; border-color: #111110; color: #fff; }
.pbp-chip:focus-visible, .pbp-card:focus-visible, .pbp-nav:focus-visible, .pbp-link:focus-visible, .pbp-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pbp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.pbp-cats { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; max-width: 100%; } .pbp-cats::-webkit-scrollbar { display: none; }
.pbp-cats .pbp-chip { padding: 6px 12px; font-size: 13px; font-weight: 600; background: transparent; border-color: transparent; color: var(--muted); }
.pbp-cats .pbp-chip:hover { color: var(--ink); } .pbp-cats .pbp-chip[aria-pressed="true"] { background: var(--tile); color: var(--ink); border-color: transparent; }
.pbp-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pbp-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pbp-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e3e3e8; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, opacity .2s; }
.pbp-nav:hover { border-color: #b8b8be; } .pbp-nav[disabled] { opacity: .35; cursor: default; } .pbp-nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pbp-row { display: flex; gap: 14px; margin: 14px 0 0; padding: 2px 2px 10px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #d9d9de transparent; -webkit-overflow-scrolling: touch; min-height: 346px; }
.pbp-row > li { flex: 0 0 clamp(204px, 18.4vw, 262px); scroll-snap-align: start; }
/* карточка повторяет карточку товара с главной: фото, цена, состояние, название, продавец */
.pbp-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #ecebe8; border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .2s; }
.pbp-card:hover { border-color: #111110; }
.pbp-photo { position: relative; height: 170px; flex: none; background-color: var(--tint, #eef0ef); background-image: repeating-linear-gradient(135deg, rgba(17,17,16,.05) 0 9px, transparent 9px 18px); overflow: hidden; }
.pbp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pbp-body { display: flex; flex-direction: column; gap: 9px; padding: 14px 16px 16px; flex: 1; }
.pbp-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.pbp-price b { font-size: 19px; font-weight: 800; } .pbp-price s { font-size: 13px; color: #a9a8a3; }
.pbp-state { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #f2f1ee; font-size: 12px; font-weight: 700; color: #4a4945; }
.pbp-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pbp-seller { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid #f0efec; font-size: 13.5px; color: #4a4945; }
.pbp-seller span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pbp-seller time { white-space: nowrap; color: #8a8985; }
.pbp-states { display: flex; flex-wrap: wrap; gap: 6px; } .pbp-state--cat { background: transparent; border: 1px solid #ecebe8; font-weight: 600; color: #6e6e73; }
.pbp-more { display: flex; flex-direction: column; justify-content: center; gap: 6px; height: 100%; padding: 18px; border-radius: 18px; background: var(--tile); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; transition: background .2s; }
.pbp-more:hover { background: #e9e9ed; } .pbp-more span { font-size: 13px; font-weight: 600; color: var(--muted); }
.pbp-skel { height: 100%; min-height: 330px; border-radius: 18px; background: var(--tile); }
.pbp-empty { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 28px; border-radius: 20px; background: var(--tile); font-size: 15px; color: var(--muted); }
.pbp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.pbp-link { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; } .pbp-link:hover { text-decoration: underline; } .pbp-links { display: flex; gap: 20px; }
@media (max-width: 720px) { .pbp-row > li { flex-basis: 64vw; max-width: 250px; } .pbp-nav { display: none; } .pbp-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; } .pbp-chips::-webkit-scrollbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .pbp * { transition: none !important; scroll-behavior: auto !important; } }
