/* KisKis — белый дизайн. Подключается после style.css, только когда белый дизайн включён. BH_WHITE */
:root {
  --ink: #2B2118; --paper: #FBF4E8; --paper2: #FBF4E8; --card: #FFFFFF; --kraft: #FFFFFF; --kraft-dark: #EFE3D0;
  --red: #D9572B; --blue: #2E8B57; --yellow: #E8A33D; --green: #2E8B57; --board: #2B2118; --muted: #7A6A5A; --line: #EFE3D0;
  --sky: #F3D9C4; --navy: #2B2118; --orange: #D9572B; --purple: #2E8B57; --soft: #FBF4E8;
  --display: 'Rubik', system-ui, sans-serif; --body: 'Rubik', system-ui, sans-serif; --hand: 'Rubik', system-ui, sans-serif; --mono: 'Rubik', system-ui, sans-serif;
}
body.white { background: #fff; color: var(--ink); font-size: 16px; }
.white a { color: var(--ink); }
.white a:hover { color: var(--blue); }
.white :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.white .kraft { background: #fff; background-image: none; }
.white .plaid, .white .strip { display: none; }
.white h1, .white h2 { letter-spacing: -0.02em; }

/* шапка */
.w-preview { background: var(--navy); color: #fff; font-size: 14px; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; align-items: center; }
.w-preview a { color: var(--yellow); font-weight: 700; }
.w-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.w-top .top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-top: 14px; padding-bottom: 14px; }
.w-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: .01em; text-decoration: none; color: var(--ink); }
.w-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); flex: none; }
.w-nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.w-nav a { text-decoration: none; }
.w-search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 999px; padding: 0 18px; min-height: 46px; color: var(--muted); min-width: 0; }
.w-search input { flex: 1; min-width: 0; border: 0; background: transparent; height: 44px; padding: 0; font: inherit; font-size: 15px; color: var(--ink); }
.w-search input:focus { outline: none; }
.w-search:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.w-langs { display: flex; gap: 2px; }
.w-langs a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--muted); }
.w-langs a[aria-current="true"] { background: var(--soft); color: var(--ink); }
.w-icon { position: relative; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }
.w-icon:hover { background: var(--soft); }
.w-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.w-login { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.w-login img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; margin-left: -10px; }
.w-login:hover { background: var(--navy); }
.white .enya-btn { min-height: 46px; padding: 0 16px; border: 1px solid var(--sky); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; box-shadow: none; }
.w-main { min-height: 50vh; }
.w-flash { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; background: #EAF5FB; color: var(--ink); font-weight: 500; }

/* кнопки */
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; text-align: center; }
.w-btn-main { background: var(--orange); color: var(--ink) !important; }
.w-btn-main:hover { background: #F07D00; }
.w-btn-line { background: #fff; border-color: var(--ink); color: var(--ink) !important; }
.w-btn-line:hover { background: var(--soft); }
.w-btn-sale { background: var(--green); color: #fff !important; }
.w-btn-auc { background: var(--purple); color: #fff !important; }
.w-btn-danger { background: #fff; border-color: #B3261E; color: #B3261E !important; }
.w-btn-tg { background: #229ED9; color: #fff !important; }
.white .btn { border-radius: 999px; border: 2px solid var(--ink); box-shadow: none !important; font-size: 16px; min-height: 52px; transform: none !important; }
.white .btn-red { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.white .btn-red:hover { background: #F07D00; color: var(--ink); }
.white .btn-ghost { background: #fff; }
.white .btn-dark { background: var(--ink); color: #fff; }
.white .btn-tg { background: #229ED9; border-color: #229ED9; color: #fff; }

/* разделы и сетка */
.w-hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; padding-top: 40px; padding-bottom: 8px; }
.w-hero > div:first-child { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.w-hero h1 { margin: 0; font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.08; max-width: 18em; }
.w-hero p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 40em; }
.w-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.w-cats { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; }
.w-cats a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #EAF5FB; text-decoration: none; font-weight: 600; font-size: 15px; }
.w-cats a:hover { background: var(--sky); color: var(--ink); }
.w-sec { padding-top: 48px; padding-bottom: 8px; display: flex; flex-direction: column; gap: 22px; }
.w-sec:last-of-type { padding-bottom: 64px; }
.w-sec h2, .w-sec h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.w-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.w-sec-head a { font-weight: 600; font-size: 15px; }
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 40px 28px; }
.white .grid { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 40px 28px; }

/* карточка: фото на белом, без рамок */
.w-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.w-card:hover { color: var(--ink); }
.w-card:hover .w-name { color: var(--blue); }
.w-pic { position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; }
.w-pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.w-card:hover .w-pic img { transform: scale(1.03); }
.w-name { font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-price { display: flex; align-items: baseline; gap: 10px; }
.w-price b { font-size: 21px; font-weight: 800; }
.w-price s, .w-price small { color: var(--muted); font-size: 14px; }
.w-left { font-size: 14px; font-weight: 700; color: var(--purple); }
.w-left.soon { color: #B3261E; }
.w-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.w-badge-sale { background: var(--yellow); color: var(--ink); }
.w-badge-auc { background: var(--purple); color: #fff; }
.w-badge-big { top: 14px; left: 14px; font-size: 15px; padding: 8px 16px; }
.w-held { position: absolute; inset: auto 10px 10px auto; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.white .nopic { color: var(--muted); font-size: 14px; background: var(--soft); border: 0; border-radius: 8px; padding: 6px 10px; }

/* как купить, продать */
.w-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.w-step { background: var(--soft); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.w-step span { font-weight: 800; font-size: 28px; color: var(--blue); }
.w-step b { font-size: 19px; }
.w-step p { margin: 0; color: var(--muted); line-height: 1.55; }
.w-sellband { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 30px clamp(20px, 4vw, 40px); border-radius: 22px; background: var(--navy); color: #fff; }
.w-sellband h2 { color: #fff; }
.w-sellband p { margin: 8px 0 0; color: #CFE6F1; max-width: 40em; line-height: 1.55; }

/* страница товара */
.w-crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 22px; }
.w-crumbs a { color: var(--muted); }
.w-product { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px 56px; align-items: start; padding-top: 20px; padding-bottom: 40px; }
.w-gallery { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.w-mainpic { position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; }
.w-mainpic img { width: 100%; height: 100%; object-fit: contain; }
.w-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.w-thumbs .w-thumb > button { width: 80px; height: 80px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; overflow: hidden; aspect-ratio: auto; }
.w-thumbs .w-thumb > button[aria-current="true"] { border: 2px solid var(--ink); }
.w-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.w-info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.w-info h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.w-pricerow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.w-bigprice { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; }
.w-pricerow s { font-size: 21px; color: var(--muted); }
.w-pricerow span { font-size: 15px; color: var(--muted); }
.w-tagnote { margin: 0; font-size: 17px; font-weight: 600; color: var(--blue); }
.w-facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; font-size: 16px; }
.w-facts dt { color: var(--muted); }
.w-facts dd { margin: 0; font-weight: 600; }
.w-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.w-actions form { flex: 1 1 180px; display: flex; }
.w-actions .w-btn { flex: 1; min-height: 56px; font-size: 17px; }
.w-safe { margin: -6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.w-seller { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.w-seller .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 0; }
.w-seller .avatar-empty { display: flex; align-items: center; justify-content: center; background: var(--sky); color: var(--ink); font-weight: 800; font-size: 20px; }
.w-seller-txt { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.w-seller-txt small { color: var(--muted); font-size: 14px; }
.w-seller-go { font-weight: 700; font-size: 15px; }
.w-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.w-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--sky); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.w-chip svg { color: var(--blue); }
.w-block { display: flex; flex-direction: column; gap: 10px; }
.w-block h2, .w-block summary { margin: 0; font-size: 20px; font-weight: 800; }
.w-block summary { cursor: pointer; }
.w-desc { margin: 0; font-size: 16px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.w-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.w-checks li { position: relative; padding-left: 28px; line-height: 1.5; }
.w-checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #DDF3E4; color: #14532D; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.w-checks li.bad::before { content: '!'; background: #FDE7E4; color: #B3261E; }
.w-shiprow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.w-shiprow:last-child { border-bottom: 0; }
.w-note { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--soft); font-size: 15px; line-height: 1.5; }
.w-note-ok { background: #E3F6EA; color: #14532D; font-weight: 600; }
.w-note-warn { background: #FFF3D6; color: #5C3B00; font-weight: 600; margin-top: 16px; }
.w-share { padding-bottom: 48px; display: flex; justify-content: center; }

/* аукцион на странице товара */
.w-auc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px; border-radius: 20px; background: #F4EFFA; }
.w-auc > :not(.w-auc-now):not(.w-auc-time) { grid-column: 1 / -1; }
.w-auc-now, .w-auc-time { display: flex; flex-direction: column; gap: 2px; }
.w-auc-now span, .w-auc-time span, .w-auc small { font-size: 14px; color: var(--muted); }
.w-auc-now b { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.w-auc-time b { font-size: 26px; font-weight: 800; color: var(--purple); }
.w-bid { display: flex; flex-direction: column; gap: 8px; }
.w-bid label { font-weight: 600; }
.w-bid-row { display: flex; flex-wrap: wrap; gap: 10px; }
.w-bid-row input { flex: 1 1 140px; height: 52px; border-radius: 14px; border: 2px solid #D9CCEB; font-size: 18px; font-weight: 700; }
.w-bid-row .w-btn { flex: 1 1 180px; }
.w-history summary { cursor: pointer; font-weight: 700; }
.w-history p { margin: 8px 0 0; color: var(--muted); }
.w-history ol { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.w-history li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid #E5DAF2; }
.w-history li small { grid-column: 1 / -1; }

/* панель владельца */
.w-owner { margin-bottom: 40px; padding: 24px clamp(18px, 3vw, 32px); border-radius: 22px; border: 1px solid var(--line); background: #FBFDFE; display: flex; flex-direction: column; gap: 18px; }
.w-owner h2 { margin: 0; font-size: 22px; font-weight: 800; }
.w-owner h2 small { font-size: 14px; color: var(--muted); font-weight: 600; }
.w-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; align-items: start; }
.w-tool { border-radius: 18px; background: #fff; border: 1px solid var(--line); padding: 16px 18px; }
.w-tool > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; }
.w-tool > summary::-webkit-details-marker { display: none; }
.w-tool > summary b { font-size: 17px; display: inline-flex; align-items: center; gap: 6px; }
.w-tool > summary small { grid-column: 2; color: var(--muted); font-size: 14px; }
.w-tool[open] > summary { margin-bottom: 14px; }
.w-tool > p { margin: 0 0 12px; }
.w-switch { grid-row: span 2; width: 52px; height: 30px; border-radius: 999px; background: #D5DCE1; position: relative; transition: background .15s; }
.w-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.w-switch.on::after, .w-switch.open::after { left: 25px; }
.w-tool-sale .w-switch.on, .w-tool-sale .w-switch.open { background: var(--green); }
.w-tool-auc .w-switch.on, .w-tool-auc .w-switch.open { background: var(--purple); }
.w-tool form + form { margin-top: 12px; }
.w-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; align-items: end; }
.w-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.w-form label small { font-weight: 500; }
.w-form .w-btn { grid-column: 1 / -1; }
.w-form-wide { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.w-form .w-wide { grid-column: 1 / -1; }
.w-form .w-check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; }
.w-form .w-check input { width: 20px; height: 20px; accent-color: var(--green); }
.w-owner-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.w-owner-btns form { display: flex; }
.w-owner-btns .w-btn { min-height: 48px; }
.w-edit { max-width: 980px; }
.white select, .white input[type="text"], .white input[type="email"], .white input[type="tel"], .white input[type="number"], .white input[type="password"], .white textarea {
  height: 48px; padding: 0 14px; border: 1px solid #CBD7DE; border-radius: 12px; background: #fff; color: var(--ink); font-family: var(--body); font-size: 16px; }
.white textarea { height: auto; padding: 12px 14px; }
.white input:disabled { background: var(--soft); color: var(--muted); }

/* остальные страницы в старой разметке */
.white .crumbs { font-family: var(--body); color: var(--muted); }
.white .h2, .white .cat-head h1, .white .co h1 { font-family: var(--body); font-weight: 800; }
.white .card { border: 0; box-shadow: none; background: #fff; gap: 6px; }
.white .card:hover { transform: none; }
.white .card .pic { border: 0; border-radius: 12px; background: #fff; aspect-ratio: 1 / 1; }
.white .card .pic img { object-fit: contain; }
.white .tag { transform: none; font-family: var(--body); font-size: 17px; font-weight: 800; border: 0; border-radius: 999px; padding: 5px 12px; top: 10px; right: 10px; }
.white .cond { border-radius: 999px; background: rgba(46,26,71,.85); font-family: var(--body); }
.white .card .info { padding: 4px 2px 0; }
.white .card .row { font-family: var(--body); color: var(--muted); text-transform: none; letter-spacing: 0; }
.white .card .note { font-family: var(--body); font-size: 14px; color: var(--blue); }
.white .filters { border: 1px solid var(--line); box-shadow: none; border-radius: 18px; }
.white .filters .title { font-family: var(--body); font-weight: 800; font-size: 22px; }
.white .lockerbox { border: 0; background: var(--soft); border-radius: 12px; }
.white .check input { accent-color: var(--blue); }
.white .box, .white .panel, .white .cartitem, .white .receipt, .white .carrier, .white .step { border: 1px solid var(--line); border-radius: 16px; box-shadow: none; background: #fff; }
.white .panel legend { background: #fff; }
.white .carrier:has(input:checked) { background: #EAF5FB; border: 2px solid var(--blue); box-shadow: none; }
.white .receipt { border-bottom: 1px solid var(--line); font-family: var(--body); }
.white .zig { display: none; }
.white .cartitem .thumb { border: 0; border-radius: 10px; }
.white .cartitem .price { font-family: var(--body); font-size: 22px; font-weight: 800; }
.white .notice { font-family: var(--body); border: 0; border-radius: 14px; background: var(--soft); }
.white .error { border: 0; border-radius: 14px; background: #FDE7E4; color: #8C1D18; }
.white .ok { border: 0; border-radius: 14px; background: #E3F6EA; }
.white .pill { border-radius: 999px; }
.white .empty { font-family: var(--body); font-size: 18px; color: var(--muted); }
.white .heldnote { font-family: var(--body); font-size: 16px; transform: none; }
.white .board { background: var(--navy); border: 0; border-radius: 22px; }
.white .board h2, .white .board ol { font-family: var(--body); }
.white .board ol { font-size: 18px; }

/* подвал */
.w-foot { margin-top: 24px; background: var(--soft); color: var(--ink); font-size: 15px; }
.w-foot-cols { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; padding-top: 44px; padding-bottom: 28px; }
.w-foot .col { display: flex; flex-direction: column; gap: 9px; max-width: 360px; }
.w-foot b { font-weight: 800; }
.w-foot a { color: var(--ink); }
.w-foot .foot-share { border-top: 1px solid var(--line); display: flex; justify-content: center; padding-top: 22px; padding-bottom: 6px; }
.w-foot .foot-copy { text-align: center; color: var(--muted); font-size: 14px; padding-top: 10px; padding-bottom: 26px; }

/* BH_WINTER (ТЗ 13.11): иней на шапке и логотипе, кнопка ❄ в подвале. Включается меткой .bh-winter-flag из app/winter.php.
   Снег — static/winter.js (canvas z-index 15: ниже шапки-стикера, меню, подсказок, окон). Убрать весной: этот блок + app/winter.php + static/winter.js + строку BH_WINTER в bottom_white.php. */
body:has(.bh-winter-flag) .w-top { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='18' viewBox='0 0 160 18'%3E%3Cpath d='M0 0H160V3Q157.0 8.0 154.0 3.4Q151.5 3.8 149.0 3.4Q144.5 2.8 140.0 3.0Q137.5 2.6 135.0 2.6Q130.5 2.5 126.0 2.7Q123.5 7.5 121.0 3.5Q118.0 4.0 115.0 3.5Q112.0 4.7 109.0 3.5Q105.0 3.4 101.0 2.8Q97.5 3.8 94.0 2.8Q90.0 4.5 86.0 3.2Q82.0 4.5 78.0 2.9Q73.5 4.4 69.0 2.6Q65.0 5.4 61.0 2.7Q58.0 4.2 55.0 3.0Q52.5 4.3 50.0 3.2Q47.5 6.8 45.0 3.5Q41.5 5.6 38.0 3.4Q35.5 7.5 33.0 3.4Q28.5 7.2 24.0 3.3Q21.0 4.1 18.0 2.6Q13.5 7.1 9.0 2.6Q4.5 3.9 0.0 3.0Z' fill='%23cfe4f4' fill-opacity='.55'/%3E%3Cpath d='M0 .8H160' stroke='%23fff' stroke-width='1.2' stroke-opacity='.9'/%3E%3Cpath d='M37.3 5.8l0 5.1M35.1 7.1l4.4 2.5M35.1 9.6l4.4 -2.5M93.5 3.8l0 5.5M91.1 5.1l4.8 2.8M91.1 7.9l4.8 -2.8M56.5 4.2l0 3.7M54.9 5.1l3.2 1.9M54.9 7.0l3.2 -1.9M107.2 2.8l0 3.9M105.5 3.8l3.4 2.0M105.5 5.8l3.4 -2.0M16.2 6.0l0 5.0M14.1 7.3l4.3 2.5M14.1 9.7l4.3 -2.5M86.4 2.0l0 4.6M84.4 3.1l4.0 2.3M84.4 5.4l4.0 -2.3M56.8 3.0l0 3.2M55.4 3.8l2.8 1.6M55.4 5.5l2.8 -1.6M153.7 2.8l0 4.2M151.9 3.8l3.6 2.1M151.9 5.9l3.6 -2.1M45.8 6.5l0 3.4M44.3 7.3l3.0 1.7M44.3 9.0l3.0 -1.7' stroke='%23a9cbe6' stroke-width='.7' stroke-linecap='round' stroke-opacity='.8' fill='none'/%3E%3C/svg%3E") 0 0 / 160px 18px repeat-x, #fff; }
body:has(.bh-winter-flag) .w-top .w-brand { position: relative; }
body:has(.bh-winter-flag) .w-top .w-brand::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' width='120' height='120'%3E%3Cg transform='rotate%28-14 60 60%29'%3E%3Cpath d='M33 21Q35 13 46 14.5Q56 11.5 67 14Q79 11 91 13.5Q103 12 108.5 19Q110 23 107 24Q105 28 102 24Q98 27 95 23Q89 26 85 22.5L73 23Q69 28.5 65 23L47 23Q42 27 38.5 23Q35 24 33 21Z' fill='%23fff' stroke='%23a9cbe6' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M42 18Q60 15 80 16' stroke='%23dcecf8' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3Cellipse cx='52' cy='33' rx='10' ry='2.2' fill='%23fff' fill-opacity='.35'/%3E%3C/g%3E%3C/svg%3E") 0 0 / auto 100% no-repeat; }
body:has(.bh-winter-flag) .w-top { background-size: 160px 18px, auto; transition: background-size 1.4s ease-out; }   /* иней отрастает после осыпания */
body:has(.bh-winter-flag) .w-top.bh-frost-drop { background-size: 160px 9px, auto; transition: background-size .15s ease-in; }   /* морозко осыпалось при прокрутке */
body:has(.bh-winter-flag) .w-top .w-brand::after { transition: opacity 1.4s ease-out, transform 1.4s ease-out; }
body:has(.bh-winter-flag) .w-top.bh-frost-drop .w-brand::after { opacity: .45; transform: translateY(1.5px); transition: opacity .15s, transform .15s; }
body:has(.bh-winter-flag) .w-top .w-brand img { filter: drop-shadow(0 0 1px rgba(150, 195, 230, .7)); }
.bh-winter-tg { display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 2px 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.bh-winter-tg:hover, .bh-winter-tg:focus-visible { background: #EEF5FB; color: var(--ink); }
#bh-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 15; pointer-events: none; }

@media (max-width: 760px) {
  .w-top { position: static; }
  .w-top .top-row { gap: 10px 12px; }
  .w-nav { order: 5; width: 100%; justify-content: space-between; gap: 8px; font-size: 14px; }
  .w-search { order: 6; flex-basis: 100%; }
  .w-login { padding: 0 14px; }
  .w-login span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .w-grid, .white .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .w-price b { font-size: 18px; }
  .w-product { gap: 18px; padding-top: 10px; }
  .w-bigprice { font-size: 36px; }
  .w-auc { grid-template-columns: 1fr; }
  .w-hero { padding-top: 24px; }
  .w-sec { padding-top: 36px; }
}
.white .promobox { border: 1px solid var(--line); border-radius: 16px; }
.white .promogift { display: block; border: 0 !important; border-radius: 14px; background: #FFF6E0; padding: 12px 16px; font-size: 14px; }
.w-share { flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.w-share .share { align-items: center; }
.w-thumb { position: relative; }
.w-thumbs .w-x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: #B3261E; color: #fff; font: 700 18px/1 var(--body); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25); aspect-ratio: auto; overflow: visible; }
.w-thumbs .w-x:hover { background: #8C1D18; }
.w-thumb form { margin: 0; }

/* продажа с сайта */
.w-sell { max-width: 900px; }
.w-lead { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.w-sell-photos { display: flex; flex-wrap: wrap; gap: 14px; }
.w-sell-photos .w-thumb img { width: 120px; height: 120px; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.w-sell-photos .w-x { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: #B3261E; color: #fff; font: 700 18px/1 var(--body); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.w-addphoto { width: 120px; height: 120px; border-radius: 14px; border: 2px dashed var(--sky); background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-align: center; font-size: 13px; font-weight: 700; color: var(--blue); padding: 6px; }
.w-addphoto:hover, .w-addphoto:focus-within { background: #EAF5FB; }
.w-addphoto[hidden] { display: none; }
.w-sell-msg { margin: 0; min-height: 1.4em; color: var(--muted); }
.w-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 60px 0; }
.w-wait h1 { margin: 0; font-size: 26px; }
.w-wait p { margin: 0; }
.w-spin { width: 56px; height: 56px; border-radius: 50%; border: 5px solid #EAF5FB; border-top-color: var(--orange); animation: wspin 1s linear infinite; }
@keyframes wspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .w-spin { animation-duration: 3s; } }
.w-draftbar { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: #FFF6E0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.w-draftbar p { margin: 0; font-weight: 600; flex: 1 1 320px; }
.w-nav .w-nav-sell { color: var(--orange); }

/* кабинет: «Выйти» и «Удалить аккаунт» в один ряд, кнопки одного вида */
.white .box:has(> form[action$="/logout"]) { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.white .box:has(> form[action$="/logout"]) > b { flex-basis: 100%; }
.white .box:has(> form[action$="/logout"]) > form { display: flex; }
.white .box:has(> form[action$="/logout"]) .btn,
.white .box:has(> form[action$="/logout"]) > details > summary { min-height: 52px; padding: 0 26px; }
.white .box:has(> form[action$="/logout"]) > details { display: contents; }
.white .box:has(> form[action$="/logout"]) > details > summary { display: inline-flex; align-items: center; border: 2px solid #B3261E; border-radius: 999px; color: #B3261E; font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.white .box:has(> form[action$="/logout"]) > details > summary::-webkit-details-marker { display: none; }
.white .box:has(> form[action$="/logout"]) > details > summary:hover { background: #FDE7E4; }
.white .box:has(> form[action$="/logout"]) > details > form { flex-basis: 100%; }
.white .box:has(> a[href*="start=iban"]) > a.btn { align-self: flex-start; }
.white .box:has(> form[action$="/logout"]) { align-content: flex-start; }
.white .box:has(> form[action$="/logout"]) > details > form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 4px; }
.white .box:has(> form[action$="/logout"]) > details > form .btn-red { background: #B3261E; border-color: #B3261E; color: #fff; }
.white .box:has(> form[action$="/logout"]) > details > form .btn-red:hover { background: #8C1D18; color: #fff; }
/* «Удалить аккаунт» — яркий цвет из палитры сайта */
.white .box:has(> form[action$="/logout"]) > details > summary { background: #D9572B; border-color: #D9572B; color: #2B2118; }
.white .box:has(> form[action$="/logout"]) > details > summary:hover { background: #F07D00; border-color: #F07D00; }
.white .box:has(> form[action$="/logout"]) > details > form .btn-red { background: #D9572B; border-color: #D9572B; color: #2B2118; }
.white .box:has(> form[action$="/logout"]) > details > form .btn-red:hover { background: #F07D00; color: #2B2118; }
/* кабинет: кнопки обеих карточек на одной линии (внизу карточек) */
.white .langcols > .box { justify-content: flex-start; }
.white .box:has(> a[href*="start=iban"]) > a.btn { margin-top: auto; }
.white .box:has(> form[action$="/logout"]):not(:has(details[open])) { align-content: space-between; }
.w-sellrow { display: flex; flex-wrap: wrap; gap: 12px; }
.w-sellrow .btn { min-height: 52px; }
.white .mini { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.white .mini img { object-fit: contain; }
.white .profile-head .avatar-empty { border: 0; background: var(--sky); color: var(--ink); font-weight: 800; }
@media (min-width: 761px) { .w-top .top-row { flex-wrap: nowrap; } .w-search { flex: 1 1 160px; } .w-nav { gap: 16px; white-space: nowrap; } .white .enya-btn { white-space: nowrap; } }
@media (min-width: 761px) and (max-width: 1180px) { .w-top .top-row { flex-wrap: wrap; } }

/* рейтинг: 5 звёзд + репутация от −10 до +10 */
.w-rate { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.w-stars { position: relative; display: inline-block; color: #D5DCE1; letter-spacing: 1px; font-size: 16px; line-height: 1; }
.w-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--yellow); }
.w-avg { font-weight: 700; color: var(--ink); }
.w-score { min-width: 34px; padding: 2px 8px; border-radius: 999px; font-size: 13px; font-weight: 800; text-align: center; }
.w-score.pos { background: #DDF3E4; color: #14532D; }
.w-score.neg { background: #FDE7E4; color: #8C1D18; }
.w-score.zero { background: var(--soft); color: var(--muted); }
.white .profile-head .stars { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* переключатели: крупная зона нажатия, без grid у <summary> (Safari) */
.w-tool > summary { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 2px; min-height: 48px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.w-tool > summary .w-switch { flex: none; }
.w-tool > summary b { flex: 1 1 auto; }
.w-tool > summary small { flex-basis: 100%; padding-left: 66px; }
.w-tool .w-btn { min-height: 52px; touch-action: manipulation; }
.w-sale-now { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.w-sale-now s { color: var(--muted); font-weight: 500; }
.w-tool-sale #sale-off-form .w-btn-line { border-color: var(--green); color: var(--green) !important; }
/* крестик удаления фото — спокойный серый */
.w-thumbs .w-x, .w-sell-photos .w-x { background: #8A94A0; border-color: #fff; color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.w-thumbs .w-x:hover, .w-sell-photos .w-x:hover, .w-thumbs .w-x:focus-visible, .w-sell-photos .w-x:focus-visible { background: #5F6B78; }

/* телефон: ничего не вылезает за экран */
.white .wrap { max-width: 1280px; }
@media (max-width: 760px) {
  .white .wrap, .w-top .top-row { padding-left: 16px; padding-right: 16px; }
  .w-info, .w-gallery, .w-product > * { min-width: 0; max-width: 100%; }
  .w-desc, .w-info h1, .w-note, .w-safe, .w-tagnote, .w-checks li { overflow-wrap: anywhere; }
  .w-seller { flex-wrap: wrap; }
  .w-seller-go { margin-left: auto; }
  .w-seller-txt { min-width: 0; }
  .w-actions form, .w-actions .w-btn { flex: 1 1 100%; }
  .w-facts { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 8px 16px; }
  .w-owner { padding: 18px 16px; }
  .white .promobox { max-width: 100%; }
}
body.white { overflow-x: hidden; }

/* телефон, главная: разделы-кнопки под товарами (после «Свежих вещей») */
@media (max-width: 760px) {
  body.white .w-main:has(> .w-cats) { display: flex; flex-direction: column; }
  body.white .w-main > .w-cats { order: 5; padding-top: 32px; }
  body.white .w-main > section#how, body.white .w-main > section:has(.w-sellband) { order: 6; }
}
.w-addphoto-sm { width: 80px; height: 80px; border-radius: 12px; font-size: 11px; gap: 2px; }
.w-photo-msg { margin: 0; }

/* предупреждение о cookies */
.w-cookie { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; padding: 18px 20px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(2,48,71,.18); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.w-cookie p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.5; }
.w-cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.w-cookie .w-btn { min-height: 46px; font-size: 15px; padding: 0 20px; }
@media (max-width: 520px) { .w-cookie { left: 8px; right: 8px; bottom: 8px; } .w-cookie-btns, .w-cookie .w-btn { flex: 1 1 100%; } }

/* личный кабинет */
.c-wrap { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 28px; padding-bottom: 64px; }
.c-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.c-me { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.c-me .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 0; flex: none; }
.c-me .avatar-empty { display: flex; align-items: center; justify-content: center; background: var(--sky); color: var(--ink); font-weight: 800; font-size: 22px; }
.c-me > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-nav { display: flex; flex-direction: column; gap: 2px; }
.c-nav > span { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 12px 14px 4px; }
.c-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; }
.c-nav a[aria-current="page"] { background: #EAF5FB; }
.c-nav a:hover { background: var(--soft); }
.c-nav a i { font-style: normal; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.c-nav .c-upload { color: var(--orange); }
.c-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.c-main h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.c-main h2 { margin: 0; font-size: 20px; font-weight: 800; }
.c-block { display: flex; flex-direction: column; gap: 12px; }
.c-warn { padding: 18px; border-radius: 20px; background: #FFF6E0; }
.c-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.c-head a { font-weight: 600; font-size: 15px; }
.c-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.c-deal-top, .c-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.c-item { flex-direction: row; text-decoration: none; }
.c-item:hover b { color: var(--blue); }
.c-thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--soft); flex: none; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.c-thumb img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.c-deal-txt { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.c-deal-txt b { font-size: 16px; overflow-wrap: anywhere; }
.c-deal-txt span, .c-deal-txt small { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.c-chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.c-steps { margin: 0; padding: 0; list-style: none; display: flex; gap: 6px; }
.c-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); text-align: center; position: relative; }
.c-steps li small { font-size: 12px; }
.c-dot { width: 14px; height: 14px; border-radius: 50%; background: #D5DCE1; }
.c-steps li.done { color: var(--ink); font-weight: 600; }
.c-steps li.done .c-dot { background: var(--green); }
.c-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.c-row input[type=text] { flex: 1 1 220px; }
.c-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); flex: 1 1 200px; }
.c-hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.c-problem summary { cursor: pointer; font-weight: 600; color: var(--muted); font-size: 14px; min-height: 32px; display: flex; align-items: center; }
.c-problem[open] summary { margin-bottom: 8px; }
.c-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 4px; border-top: 1px solid var(--line); }
.c-rate fieldset { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; }
.c-rate legend { float: left; font-weight: 700; margin-right: 6px; }
.c-rate input[type=text] { flex: 1 1 200px; }
.c-stars { display: inline-flex; flex-direction: row-reverse; }
.c-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.c-stars label { font-size: 30px; line-height: 1; color: #D5DCE1; cursor: pointer; padding: 4px 3px; }
.c-stars input:checked ~ label, .c-stars label:hover, .c-stars label:hover ~ label { color: var(--yellow); }
.c-stars input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.c-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.c-tiles > div { border-radius: 18px; background: var(--soft); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.c-tiles span { font-size: 14px; color: var(--muted); }
.c-tiles b { font-size: 26px; font-weight: 800; }
.c-tiles b .w-rate { font-size: 14px; }
.c-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.c-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 600; font-size: 14px; }
.c-tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.c-list { display: flex; flex-direction: column; gap: 10px; }
.c-empty { margin: 0; color: var(--muted); }
.c-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.c-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.c-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.c-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.c-table small { color: var(--muted); }
.c-iban p { margin: 0; }
.c-iban .w-btn { align-self: flex-start; }
.c-login { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.c-login:last-of-type { border-bottom: 0; }
.c-login .w-btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.c-acc { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.c-acc > details { display: contents; }
.c-acc summary { list-style: none; cursor: pointer; }
.c-acc summary::-webkit-details-marker { display: none; }
.c-acc .c-del { flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 860px) {
  .c-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
  .c-side { position: static; }
  .c-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .c-nav > span { display: none; }
  .c-nav a { flex: none; background: var(--soft); min-height: 40px; border-radius: 999px; font-size: 14px; }
  .c-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
  .c-steps li { font-size: 11px; }
}
.c-row label input[type=text] { flex: none; width: 100%; }
.c-shipform { align-items: flex-end; }
.c-shipform .c-hint { flex-basis: 100%; }
/* перетаскивание фото */
.w-thumbs[data-order-url] .w-thumb[data-id] { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.w-thumb.w-dragging { opacity: .35; }
.w-ghost { position: fixed; z-index: 100; width: 80px; height: 80px; pointer-events: none; transform: scale(1.08); box-shadow: 0 10px 30px rgba(2,48,71,.3); border-radius: 12px; }
.w-ghost .w-x { display: none; }
/* плитки сводки: цифры на одной линии, даже если подпись в две строки */
.c-tiles > div { justify-content: space-between; gap: 8px; }
.c-tiles > div > span { line-height: 1.35; }
.c-tiles > div > b { margin-top: auto; line-height: 1.1; }
/* форма правки: поля в ряду на одной линии */
.w-form-wide { align-items: start; }
.w-form-wide label > span small { font-weight: 500; }
/* листание главного фото */
.w-mainpic { overflow: hidden; }
.w-slides { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom; }
.w-slides::-webkit-scrollbar { display: none; }
.w-slide { flex: 0 0 100%; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; user-select: none; -webkit-user-select: none; }
.w-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.w-dots span { width: 8px; height: 8px; border-radius: 50%; background: #D5DCE1; }
.w-dots span.on { background: var(--ink); }
.w-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(2,48,71,.18); color: var(--ink); font: 700 28px/1 var(--body); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .15s; padding: 0 0 3px; }
.w-arrow-prev { left: 10px; } .w-arrow-next { right: 10px; }
.w-mainpic:hover .w-arrow, .w-arrow:focus-visible { opacity: 1; }
@media (hover: none) { .w-arrow { display: none; } }
.w-sellbar { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: #EAF5FB; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.w-sellbar.ready { background: #FFF1C9; }
.w-sellbar a { font-weight: 800; }
.w-wait .w-hero-btns { justify-content: center; margin-top: 8px; }

/* Очередь обработки и выбор фото. BH_SELL_QUEUE */
.w-sell-progress { width: 100%; height: 10px; margin: 12px 0 0; accent-color: var(--orange); }
.w-sell-badge { display: inline-block; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.w-draftmsg { flex: 1 1 320px; }
.w-draftmsg p { margin: 0; font-weight: 600; }
.w-draftmsg .w-missing { margin-top: 6px; font-weight: 500; color: #8A1C12; }
/* BH_PRICE_HINT (ТЗ 12.11 п.5): рекомендуемая цена по похожим вещам — в черновике и в правке */
.w-phint { margin-top: 8px; padding: 8px 12px; border-left: 3px solid #E0A526; background: #FFF8E6; border-radius: 6px; line-height: 1.45; }
.w-phint strong { font-size: 1.1em; }
.w-phint small { color: #5c5346; }
.w-form .w-phint { grid-column: 1 / -1; margin-top: -4px; }
/* чат с продавцом BH_CHAT */
.ch-wrap { max-width: 760px; padding-top: 22px; padding-bottom: 40px; }
.ch-h1 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.ch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ch-row { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; min-width: 0; }
.ch-row:hover { background: var(--soft); }
.ch-row.ch-new { border-color: var(--orange); }
.ch-row-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ch-row-txt b, .ch-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-row-txt small { color: var(--muted); }
.ch-last { color: var(--muted); font-size: 15px; }
.ch-new .ch-last { color: var(--ink); font-weight: 600; }
.ch-back { display: inline-block; margin-bottom: 12px; color: var(--muted) !important; font-size: 14px; }
.ch-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.ch-head-txt { min-width: 0; }
.ch-head h1 { margin: 0 0 4px; font-size: 19px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.ch-head h1 a { text-decoration: none; }
.ch-head p { margin: 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.ch-thread { display: flex; flex-direction: column; gap: 8px; height: clamp(280px, calc(100dvh - 400px), 640px); overflow-y: auto; padding: 16px 2px; overscroll-behavior: contain; }
.ch-hint { align-self: center; max-width: 480px; margin: 0 0 8px; padding: 10px 14px; border-radius: 12px; background: var(--soft); color: var(--muted); font-size: 14px; text-align: center; }
.ch-msg { align-self: flex-start; max-width: 80%; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--soft); }
.ch-msg.ch-mine { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: #EAF5FB; }
.ch-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-msg time { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; text-align: right; }
.ch-form { display: flex; align-items: flex-end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ch-form textarea { flex: 1; min-width: 0; min-height: 46px; max-height: 160px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; font: inherit; color: var(--ink); background: #fff; resize: none; box-sizing: border-box; }
.ch-form .w-btn { flex: none; }
.ch-err { margin: 8px 0 0; color: #B3261E; font-size: 14px; }
.ch-err:empty { display: none; }
/* закреплённое окно чата, как у Ени BH_CHAT */
.ch-panel .enya-back { display: inline-flex; flex: none; min-height: 40px; padding: 0 6px; font-size: 13px; }
.ch-panel .enya-head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.enya-open .ch-panel { right: 304px; }
.ch-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #e6e6e6; color: inherit !important; text-decoration: none; font-size: 12px; min-width: 0; }
.ch-item[hidden] { display: none; }
.ch-item img { width: 40px; height: 40px; object-fit: contain; flex: none; border-radius: 8px; }
.ch-item img[hidden] { display: none; }
.ch-item span { display: flex; flex-direction: column; min-width: 0; }
.ch-item b, .ch-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-item small { color: #7A6A5A; font-size: 11px; }
.ch-note { margin: 0; padding: 6px 8px; border-radius: 10px; background: #F2F4F7; color: #7A6A5A; font-size: 11px; line-height: 1.35; text-align: center; }
.ch-polite { background: #FFF1C9; color: #2B2118; font-weight: 700; }
.ch-txt { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-t { display: block; margin-top: 2px; font-size: 10px; opacity: .7; text-align: right; }
.ch-li { display: flex; align-items: center; gap: 8px; width: 100%; flex: none; padding: 6px; border: 1px solid #e6e6e6; border-radius: 12px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ch-li:hover { background: #F2F4F7; }
.ch-li-new { border-color: #D9572B; }
.ch-li img { width: 44px; height: 44px; object-fit: contain; flex: none; border-radius: 8px; }
.ch-li-t { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 12px; }
.ch-li-t b, .ch-li-t small, .ch-li-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-li-t small, .ch-li-last { color: #7A6A5A; font-size: 11px; }
.ch-li-new .ch-li-last { color: #2B2118; font-weight: 700; }
.ch-perr { margin: 0; padding: 4px 8px 6px; color: #B3261E; font-size: 12px; }
.ch-perr[hidden], .ch-panel .enya-form[hidden] { display: none; }
.ch-panel .enya-form button:disabled { opacity: .6; }
@media (max-width: 640px) {
  body.enya-open .ch-panel { right: 0; }
  body.ch-open { overflow: hidden; }
  .ch-panel .enya-back { min-height: 44px; font-size: 16px; }
  .ch-panel .enya-x { display: none; }
  .ch-note { font-size: 13px; } .ch-t { font-size: 12px; }
  .ch-item { font-size: 15px; } .ch-item small { font-size: 13px; }
  .ch-li-t { font-size: 15px; } .ch-li-t small, .ch-li-last { font-size: 13px; }
}
/* печать «Продано» BH_SOLD */
.w-stamp { position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(-18deg); padding: 4px 12px; border: 3px solid #C62828; border-radius: 8px; background: rgba(255,255,255,.88); color: #C62828; font-weight: 900; font-size: clamp(14px, 2.4vw, 20px); letter-spacing: .08em; white-space: nowrap; pointer-events: none; }
.w-stamp-big { padding: 8px 26px; border-width: 5px; border-radius: 12px; font-size: clamp(30px, 7vw, 54px); }
.w-pic:has(.w-stamp) img, .w-mainpic:has(.w-stamp) .w-slide img { filter: grayscale(.45); }
/* остаток BH_STOCK */
.w-stock { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 700; font-size: 17px; }
.w-stock b { font-size: 28px; font-weight: 900; line-height: 1; }
.w-stock-sm { gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.w-stock-sm b { font-size: 16px; }
.w-stock-green { color: #1E8E4E; } .w-stock-yellow { color: #D29A00; } .w-stock-red { color: #D32F2F; }
/* рейтинг, отзывы, комментарии BH_COMMENTS */
.w-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px 56px; align-items: start; padding-bottom: 40px; }
.w-social h2 { margin: 0 0 12px; }
.w-social section { scroll-margin-top: 90px; min-width: 0; }
.w-social-h3 { margin: 18px 0 8px; font-size: 16px; font-weight: 800; }
.w-rev-sum { margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.w-rev-form { margin: 0 0 12px; border-top: 0; padding: 14px; border-radius: 14px; background: var(--soft); }
.w-revs, .w-coms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.w-revs li, .w-coms li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.w-revs p, .w-coms p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.w-revs small { display: block; margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; }
.w-rev-stars { color: var(--yellow); letter-spacing: 1px; font-size: 17px; } .w-rev-stars i { color: #D5DCE1; font-style: normal; }
.w-com-seller { background: #EAF5FB; border-color: var(--sky) !important; }
.w-com-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.w-com-top small { color: var(--muted); }
.w-com-top form { margin: 0 0 0 auto; }
.w-com-tag { padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; }
.w-com-del { min-height: 32px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; aspect-ratio: auto; }
.w-polite { margin: 12px 0; padding: 8px 12px; border-radius: 12px; background: #FFF1C9; font-size: 14px; font-weight: 700; }
.w-com-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.w-com-form textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; font: inherit; color: var(--ink); background: #fff; resize: vertical; }
.w-stockrow { margin: 0; }
/* профиль и приватность BH_PROFILE */
.pv-intro { margin: 0; color: var(--muted); }
.pv-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.pv-form { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pv-form h2 { margin: 18px 0 6px; font-size: 19px; font-weight: 800; }
.pv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.pv-field { flex: 3 1 250px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pv-field > label, .pv-lab { font-weight: 700; font-size: 15px; }
.pv-field small { color: var(--muted); font-size: 13px; }
.pv-val { overflow-wrap: anywhere; }
.pv-form input[type=text], .pv-form textarea, .pv-form select { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 1px solid #C9D6DE; border-radius: 12px; background: #fff; font: inherit; color: var(--ink); }
.pv-form input[type=file] { max-width: 100%; min-height: 44px; font: inherit; }
.pv-form textarea { min-height: 64px; resize: vertical; }
.pv-vis { flex: 1 1 270px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pv-vis label { font-size: 13px; color: var(--muted); }
.pv-lock { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pv-lock svg { flex: none; }
.pv-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pv-lang { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.pv-lang input { width: 20px; height: 20px; accent-color: var(--ink); }
.pv-form .c-hint { margin: 14px 0; }
.pv-side { flex: 1 1 300px; min-width: 0; box-sizing: border-box; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); display: flex; flex-direction: column; gap: 12px; }
.pv-side h2 { margin: 0; font-size: 19px; font-weight: 800; scroll-margin-top: 90px; }
.pv-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid #C9D6DE; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.pv-tabs a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff !important; }
.pv-prev { margin: 0; padding: 14px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pv-prev div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.pv-prev dt { color: var(--muted); }
.pv-prev .rating-sr { display: none; }
.pv-prev dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pf-info { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pf-about { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-rows { margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 8px 24px; }
.pf-rows div { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pf-rows dt { color: var(--muted); }
.pf-rows dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* отзывы, заявки, жалобы BH_REVIEWS */
.rv-reply { margin-top: 8px; padding: 8px 12px; border-radius: 12px; background: var(--soft); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.rv-acts a, .rv-link, .rv-replyform summary, .w-com-rep { min-height: 32px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; color: var(--muted) !important; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.rv-acts form { margin: 0; }
.rv-replyform { flex-basis: 100%; }
.rv-replyform form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 6px; }
.rv-replyform textarea, .rv-form textarea { width: 100%; box-sizing: border-box; padding: 10px 14px; border: 1px solid #C9D6DE; border-radius: 14px; font: inherit; color: var(--ink); background: #fff; }
.rv-page { max-width: 760px; padding-top: 24px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 14px; }
.rv-page h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.rv-page > p { margin: 0; }
.rv-quote { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.rv-quote p { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-form { display: flex; flex-direction: column; gap: 10px; }
.rv-form > label { font-weight: 700; }
.rv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 14px; margin-top: 6px; }
.rv-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.rv-opt h2 { margin: 0; font-size: 18px; font-weight: 800; }
.rv-opt p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.rv-opt .w-check { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 600; }
.rv-qitem { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.rv-qitem small { color: var(--muted); overflow-wrap: anywhere; }
.rv-qtop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rv-qtext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-qacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.rv-qform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.rv-qform input { flex: 1 1 160px; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 8px 12px; border: 1px solid #C9D6DE; border-radius: 12px; font: inherit; }
.rv-qform .w-btn { min-height: 44px; padding: 0 18px; }
.w-chip-btn { font: inherit; cursor: pointer; }
/* BH_SEARCH_PURPLE: поиск в шапке — шире, фиолетовая рамка-«капсула», белое поле внутри с отступом 3px */
.w-search { background: var(--purple); padding: 3px 3px 3px 14px; gap: 10px; color: #fff; min-height: 46px; }
.w-search input { background: #fff; border-radius: 999px; height: 40px; padding: 0 16px; color: var(--ink); }
.w-search input::placeholder { color: var(--muted); }
.w-search:focus-within { box-shadow: 0 0 0 3px rgba(107, 63, 160, .25); }
@media (min-width: 761px) { .w-search { flex: 2 1 340px; min-width: 260px; } }
/* BH_USER_PILL: кнопка профиля в шапке — полное имя и фото-кружок, не сжимается */
.w-login { flex: 0 0 auto; white-space: nowrap; padding: 0 20px 0 5px; gap: 10px; }
.w-login img { width: 36px; height: 36px; margin-left: 0; border: 2px solid rgba(255,255,255,.85); }
.w-login:not(:has(img)) { padding-left: 20px; }
.w-login span { max-width: none; overflow: visible; }
@media (max-width: 760px) { .w-login { padding: 0 14px 0 4px; } .w-login span { max-width: 14em; overflow: hidden; text-overflow: ellipsis; } }
/* BH_MOBILE3: телефон — категории выпадающим списком, корзина справа от поиска */
.w-cats-sel { display: none; }
@media (max-width: 760px) {
  .w-cats > a { display: none; }
  .white select.w-cats-sel, .w-cats-sel { display: block; width: 100%; height: 50px; padding: 0 44px 0 18px; border: 2px solid var(--purple); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236B3FA0' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; -webkit-appearance: none; appearance: none; }
  .w-top .w-search { box-sizing: border-box; flex: 1 1 0; flex-basis: calc(100% - 64px); min-width: 0; }
  .w-top a.w-icon[href$="/cart"] { order: 7; flex: none; }
}
/* BH_OWNER_CENTER: «Управление вещью» — всё по центру, кнопки одинаковые */
.w-owner h2 { text-align: center; }
.w-tool { text-align: center; }
.w-tool > summary { justify-content: center; }
.w-tool > summary b { flex: 0 1 auto; }
.w-tool > summary small { padding-left: 0; text-align: center; }
.w-tool form:not(:has(input:not([type="hidden"]), select, textarea)), .w-owner-btns { display: flex; flex-wrap: wrap; justify-content: center; }
.w-owner-btns .w-btn, .w-tool form:not(:has(input:not([type="hidden"]), select, textarea)) .w-btn { flex: 0 0 260px; }
@media (max-width: 760px) {
  .w-owner-btns, .w-tool form:not(:has(input:not([type="hidden"]), select, textarea)) { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .w-owner-btns form { flex-direction: column; }
  .w-owner-btns .w-btn, .w-tool form:not(:has(input:not([type="hidden"]), select, textarea)) .w-btn { flex: none; width: 100%; }
}
/* BH_ENYA_MOBILE3: на телефоне «Спросить Еню» — плавающей кнопкой внизу справа, как на компьютере */
@media (max-width: 760px) {
  .white .enya-btn, .white .enya-btn.bh-top { position: fixed !important; right: 12px !important; left: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; top: auto !important; z-index: 60 !important;
    display: inline-flex !important; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px !important; border: 1px solid var(--sky) !important; border-radius: 999px !important;
    background: #fff !important; color: var(--ink) !important; font-size: 15px !important; font-weight: 800; text-decoration: none !important; white-space: nowrap; box-shadow: 0 8px 24px rgba(46, 26, 71, .25) !important; }
  .white .enya-btn > * { display: inline; }
  .white .enya-btn::after { content: none !important; }
  body.white:has(.w-cookie) .enya-btn { bottom: calc(150px + env(safe-area-inset-bottom)) !important; }
  body.white { padding-bottom: 72px; }
}
/* BH_MOBILE5: телефон — иконки сообщений и корзины крупнее, рядом с ником; поиск во всю ширину. Компьютер — чат Ени уже */
@media (max-width: 760px) {
  .w-top .w-login { order: 1; }
  .w-top .w-icon, .w-top a.w-icon[href$="/cart"] { order: 2; flex: none; width: 52px; height: 52px; }
  .w-top .w-icon svg { width: 28px; height: 28px; }
  .w-top .w-search { order: 6; flex: 1 1 100%; flex-basis: 100%; }
  .w-top .w-search input::placeholder { text-align: center; }
}
@media (min-width: 761px) {
  .enya-panel { width: min(340px, calc(100vw - 32px)) !important; max-width: none !important; }
  .enya-panel .enya-form input, .enya-panel .enya-form textarea { flex: 1 1 auto; min-width: 0; }
}
/* BH_MOBILE6: телефон — шапка распределена равномерно по ширине */
@media (max-width: 760px) { .w-top .top-row { justify-content: space-between; } .w-top .w-langs { margin-left: auto; } }
/* BH_NUANCES: выбор состояния чипами в форме загрузки и правки */
/* BH_PICKUP */
.w-pickup { display: flex; flex-direction: column; gap: 10px; }
.w-pickup-fields { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
@media (max-width: 760px) { .w-pickup-fields { grid-template-columns: 1fr; } }
.w-pickup small { color: var(--muted); }
.w-pickup-line { display: block; margin: 0; font-size: 15px; line-height: 1.5; }
.w-condpick { min-width: 0; margin: 0; padding: 0; border: 0; }
.w-condpick legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.w-condpick legend small { font-weight: 500; }
.w-cond-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .w-cond-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.w-form label.w-cond-chip { display: block; position: relative; cursor: pointer; }
.w-cond-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.w-cond-chip span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 10px; box-sizing: border-box; border: 1px solid var(--sky); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; }
.w-cond-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.w-cond-chip input:checked + span::before { content: "✓\00a0"; }
.w-cond-chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* голоса «+/−» за вещь и пользователя. BH_VOTES */
.w-vote { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.w-vote-f { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0; }
.w-vote-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 76px; padding: 0 14px; box-sizing: border-box; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink) !important; font: inherit; font-size: 17px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.w-vote-btn:hover:not([disabled]) { background: var(--soft); }
.w-vote-btn.up.on, .w-vote-btn.up.on:hover { background: #DDF3E4; border-color: #14532D; }
.w-vote-btn.down.on, .w-vote-btn.down.on:hover { background: #FDE7E4; border-color: #8C1D18; }
.w-vote-btn[disabled] { opacity: .5; cursor: not-allowed; }
.w-vote-n { min-width: 44px; font-size: 20px; font-weight: 800; text-align: center; }
.w-vote-n.pos, .w-card-vote.pos { color: #14532D; }
.w-vote-n.neg, .w-card-vote.neg { color: #8C1D18; }
.w-vote-n.zero { color: var(--muted); }
.w-vote-msg { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.w-vote-msg:empty { display: none; }
.white .w-vote-profile { margin: 4px 0 16px; }
.w-price .w-card-vote { margin-left: auto; font-size: 13px; font-weight: 800; white-space: nowrap; }
.w-vote-del { min-height: 44px; padding: 0 16px; font-size: 14px; }
.c-table .w-vote-n { font-size: 16px; }
/* BH_TAKEDOWN_BLUE: кнопка «Снять с продажи» рядом с полем «Причина» — синяя, с видимой надписью */
.w-chips form:has(input:not([type="hidden"])), form:has(> input[placeholder="Причина"]) { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.w-chips form:has(input:not([type="hidden"])) button, .w-chips form:has(input:not([type="hidden"])) [type="submit"],
form:has(> input[placeholder="Причина"]) button, form:has(> input[placeholder="Причина"]) [type="submit"] {
  background: var(--blue, #2E8B57) !important; color: #fff !important; border: 2px solid var(--blue, #2E8B57) !important;
  min-height: 48px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }
.w-chips form:has(input:not([type="hidden"])) button:empty::after, form:has(> input[placeholder="Причина"]) button:empty::after { content: "Снять с продажи"; }

/* BH_PHOTO_EDIT: поворот и зеркало фото; видны всегда, нажатие 36 px */
.w-phbtn { flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation; overflow: visible; aspect-ratio: auto; pointer-events: auto; }
.w-phbtn:hover { background: var(--soft); }
.w-phbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.w-phbtn:disabled { opacity: .5; cursor: wait; }
.w-sell-photos .w-phtools { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; justify-content: space-between; pointer-events: none; }
.w-thumbs .w-phtools .w-phbtn { border: 0; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.w-thumbs .w-phtools { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.w-thumbs:has(.w-phtools) { align-items: flex-start; }
.w-ghost .w-phtools { display: none; }
/* родная кнопка «Выбрать файлы» не должна появиться ни в одном браузере: видна только плитка */
.w-addphoto { position: relative; overflow: hidden; }
.w-addphoto input[type=file] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); font-size: 0; }
.w-addphoto input[type=file]::file-selector-button { display: none; }
.w-addphoto:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }

/* BH_HSCROLL стрелки у горизонтальной прокрутки (static/hscroll.js) */
.bh-hs { position: relative; min-width: 0; max-width: 100%; }
.bh-hs-row { scroll-padding-inline: 44px; }
.bh-hs-side { position: absolute; top: var(--bh-hs-bw, 0px); bottom: var(--bh-hs-bw, 0px); z-index: 3; width: 60px; display: flex; align-items: center; padding: 0 2px; box-sizing: border-box; border-radius: var(--bh-hs-r, 0); pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s; }
.bh-hs-side.bh-on { visibility: visible; opacity: 1; }
.bh-hs-left { left: var(--bh-hs-bw, 0px); justify-content: flex-start; background: linear-gradient(to right, var(--bh-hs-bg, #fff) 62%, transparent); }
.bh-hs-right { right: var(--bh-hs-bw, 0px); justify-content: flex-end; background: linear-gradient(to left, var(--bh-hs-bg, #fff) 62%, transparent); }
.bh-hs-side.bh-hs-plain { background: none; }
.bh-hs-plain .bh-hs-btn { position: static; }
.bh-hs-btn { position: sticky; top: calc(50vh - 18px); bottom: calc(50vh - 18px); flex: none; width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #fff; color: var(--purple, #2E8B57); box-shadow: 0 2px 10px rgba(46, 26, 71, .28); cursor: pointer; pointer-events: auto; touch-action: manipulation; }
.bh-hs-btn:hover { background: #F4EFFA; }
.w-mainpic.bh-hs-host .w-arrow { display: none; }
.c-rate-line { display: none; text-decoration: none; }
/* кабинет на телефоне: без блока профиля и заголовка, повторяющего вкладку. BH_HSCROLL */
@media (max-width: 760px) {
  .c-side .c-me { display: none; }
  .c-main > h1#ct { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .c-rate-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
}

/* BH_COND_TAGS отметки состояния: таблетки в форме и фильтре, бейджи на странице вещи и на карточке */
.w-cond-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.w-cond-chip, .w-form label.w-cond-chip { display: block; flex: 0 1 auto; position: relative; cursor: pointer; }
.w-cond-chip span { min-height: 40px; padding: 6px 14px; }
.w-condwarn { margin: 10px 0 0; }
.w-condhint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.w-nuhint { color: #8A4A00; font-size: 14px; font-weight: 600; }
[data-cond-nuances].w-nuances-on textarea { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); background: #FFF8EF; }
.w-ctags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.w-ctag { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px; box-sizing: border-box; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.2; }
.w-ctag-green { background: #DDF3E4; color: #14532D; }
.w-ctag-blue { background: #DCEFF8; color: #0B4F66; }
.w-ctag-orange { background: #FFE8CC; color: #7A3E00; }
.w-ctag-gray { background: #E9E9EC; color: #44444F; }
.w-ctags-sm { gap: 4px; margin: 0; }
.w-ctags-sm .w-ctag { min-height: 20px; padding: 1px 8px; font-size: 12px; font-weight: 600; }

/* BH_CARD_CAT категория в карточке: ссылка на вещь растянута на всю карточку, ссылка категории поверх неё */
.w-card { position: relative; isolation: isolate; }
.white .w-card .w-card-link, .white .w-card .w-card-link:hover { color: inherit; text-decoration: none; }
.w-card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.white .w-card .w-card-link:focus-visible { outline: none; }
.white .w-card .w-card-link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 2px; }
.w-card .w-pic, .w-card .w-pic * { pointer-events: none; }
.w-card-votelink { position: relative; z-index: 2; margin-left: auto; text-decoration: none; }
.white a.w-card-cat { display: block; box-sizing: border-box; max-width: 100%; padding: 4px 0; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.white a.w-card-cat:hover { color: var(--purple); text-decoration: underline; }
.white .w-card > a.w-card-cat { position: relative; z-index: 2; align-self: flex-start; margin: -4px 0 -9px; }
.w-pic + .w-name { margin-top: 19px; } /* вещь без категории: название на той же высоте, что и в соседних карточках */
.w-card:has(.w-card-cat:hover) .w-name { color: var(--ink); }
.w-card:has(.w-card-cat:hover) .w-pic img { transform: none; }
.mini-cell { min-width: 0; }
.white .mini-cell > a.w-card-cat { margin-top: 2px; }
@media (max-width: 760px) { .white a.w-card-cat { font-size: 11.5px; } }

/* BH_DESC_MOBILE: на телефоне описание под названием, между рейтингом и ценой */
@media (max-width: 760px) {
  .w-info > * { order: 2; }
  .w-info > h1, .w-info > .w-pricecond, .w-info > .w-sale-till, .w-info > .w-ctags, .w-info > .w-condrow, .w-info > .w-vote { order: 0; }
  .w-info > .w-about { order: 1; }
}

/* BH_WALLET: кошелёк, блок правил бонусов */
.w-wallet-box { margin: 14px 0; padding: 14px 16px; border-radius: 16px; background: #FFF8E1; border: 1px solid #F3DFA0; font-size: 15px; line-height: 1.5; }
.w-wallet-box p { margin: 0; }
.w-wallet-line { margin: 8px 0 0; font-size: 15px; }
.w-wallet-tiles { margin-bottom: 12px; }
.c-scroll { overflow-x: auto; }
.w-wallet-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.w-wallet-table th, .w-wallet-table td { padding: 8px 6px; border-bottom: 1px solid var(--soft); text-align: left; vertical-align: top; }
.w-wallet-table .num { text-align: right; white-space: nowrap; font-weight: 700; }
.w-wallet-table .pos { color: #1B7F3B; }
.w-wallet-table .neg { color: #A3261A; }
.w-wallet-off td { opacity: .55; }
.w-wallet-adm { display: grid; gap: 10px; max-width: 420px; }
.w-wallet-adm label { display: grid; gap: 4px; font-size: 14px; }

/* BH_WALLET_BH: BH под товарами, курс в шапке, форма модератора */
.w-bh-line { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 9px; border-radius: 999px; background: linear-gradient(135deg, #8E2443, #6B1530); color: #FFFFFF; font-size: 13px; font-weight: 700; line-height: 1.5; width: fit-content; }   /* BH_BHLINE 11.11 (Дима): «+N KIS за покупку» бордовая, белый текст (было кремовая) */
.w-bh-sell { background: #E8F5EC; color: #1B5E33; box-shadow: none; }
.w-bh-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.w-bh-row .w-bh-line { margin-top: 0; }
.w-bh-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: linear-gradient(135deg, #FFE08A, #E8A33D); color: #3A2600; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.w-bh-chip b { padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.7); }
.w-bh-chip:hover, .w-bh-chip:focus-visible { filter: brightness(1.05); outline: 2px solid var(--ink); outline-offset: 2px; }
.w-bh-mod { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin: 12px 0; padding: 12px 14px; border: 1px dashed #F3DFA0; border-radius: 14px; background: #FFFBEA; font-size: 14px; }
.w-bh-mod b { flex-basis: 100%; }
.w-bh-mod label { display: grid; gap: 4px; }
.w-bh-mod input { width: 110px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.w-bh-mod small { flex-basis: 100%; color: var(--muted); }
@media (max-width: 760px) { .w-bh-chip { height: 34px; padding: 0 10px; font-size: 13px; } }

/* BH_WALLET_PAY: роли в профиле, подарок BH, корзина из двух частей, значок BH */
.pw-block { margin: 16px 0; }
.pw-h { font-size: 20px; margin: 0 0 8px; }
.pw-ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: rl; }
.pw-ladder li { counter-increment: rl; display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; min-width: 150px; }
.pw-ladder li::before { content: counter(rl) " ↑"; font-size: 12px; color: var(--muted); }
.pw-ladder li.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--soft); }
.pw-ladder small { color: var(--muted); font-size: 13px; }
.pw-ladder form { margin-top: 6px; }
.pw-gift > summary, #bhmod > summary { cursor: pointer; list-style: none; display: inline-flex; width: fit-content; }
.pw-gift > summary::-webkit-details-marker, #bhmod > summary::-webkit-details-marker { display: none; }
.pw-form { display: grid; gap: 10px; max-width: 420px; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: #FFF8E1; border: 1px solid #F3DFA0; }
.pw-form label { display: grid; gap: 4px; font-size: 14px; }
.pw-form input[type=text], .pw-form input[type=number] { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.pw-form .pw-check { display: flex; gap: 8px; align-items: flex-start; }
.pw-hint { margin: 0; font-size: 14px; color: var(--muted); }
.w-bh-badge { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0 4px; padding: 2px 8px; border-radius: 999px; background: #FFF3C4; color: #6A4A00; box-shadow: inset 0 0 0 1px #F2D27A; font-size: 12px; font-weight: 700; width: fit-content; }
.w-bh-badge b { padding: 0 5px; border-radius: 6px; background: #fff; color: #6A4A00; }   /* BH_BADGE_ALL 11.11: кремовая, как монета KIS (было тёмно-зелёная) */
.w-bh-pay { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; font-size: 14px; }
.cart-group { margin: 18px 0; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.cart-bh { background: #F1FAF3; border-color: #BFE3C9; }
.cart-gh { font-size: 22px; margin: 0 0 8px; }
.cart-move { margin-top: 4px; }
.receipt .bhline { color: #1B7F3B; font-weight: 700; }

/* BH_NOTICES: Почта Ени */
.nt-from { margin: 0 0 12px; }
.nt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nt-list li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #F7F5FA; }
.nt-list li.nt-new { background: #EAF7EE; box-shadow: inset 3px 0 0 #2E9E5B; }
.nt-list time { font-size: 12px; color: #7A6A5A; }
.nt-subs { display: grid; gap: 8px; }
.nt-subs .btn { justify-self: start; }
.nt-subs .nt-hint { margin: 0; color: var(--muted, #7A6A5A); font-size: 14px; }   /* BH_NOTIFY_ALL */
.nt-subs .check small { color: var(--muted, #7A6A5A); font-weight: 400; }
.nt-subs .check:has(.nt-note) { flex-wrap: wrap; }   /* BH_NOTIFY: пояснение «основной канал» — строкой ниже */
.nt-subs .check .nt-note { flex-basis: 100%; padding-left: 30px; }
.nt-subs .nt-soon { opacity: .5; filter: grayscale(1); cursor: default; }   /* BH_NOTIFY: e-mail — скоро */
.nt-subs .nt-warn { margin: 0; padding: 8px 12px; border-radius: 10px; background: #FFF4E5; color: #8A4B00; font-size: 14px; }   /* BH_NOTIFY: бот заблокирован */

/* BH_PICKUP_ITEM: «Готов отдать лично» на странице вещи */
.w-pickup-edit { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ECE8F1; }
.w-pickup-edit .w-chip-btn { justify-self: start; }
/* BH_VN_HEADER (08.11): телефон — шапка сеткой 2×2: логотип | языки, пользователь | плашка BH, 💬 | 🛍; дальше меню и поиск.
   Колонки равные, каждый элемент по центру своей ячейки, строки одной высоты. Компьютер без изменений. */
@media (max-width: 760px) {
  .w-top .top-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 52px 52px 52px auto auto;
    grid-template-areas: "logo langs" "user chip" "chat cart" "nav nav" "search search"; gap: 10px 12px; justify-content: stretch; }
  .w-top .top-row > * { justify-self: center; align-self: center; margin: 0; max-width: 100%; min-width: 0; }
  .w-top .w-logo { grid-area: logo; }
  .w-top .w-langs { grid-area: langs; margin-left: 0; }
  .w-top .w-login { grid-area: user; max-width: 100%; }
  .w-top .w-login span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .w-top .w-bh-chip { grid-area: chip; max-width: 100%; }
  .w-top a.w-icon[href$="/chat"] { grid-area: chat; }
  .w-top a.w-icon[href$="/cart"] { grid-area: cart; }
  .w-top .w-nav { grid-area: nav; justify-self: stretch; }
  .w-top .w-search { grid-area: search; justify-self: stretch; width: 100%; }
}
@media (max-width: 380px) {
  .w-top .w-logo { font-size: 19px; }
  .w-top .w-bh-chip { padding: 0 8px; font-size: 12px; gap: 4px; }
  .w-top .w-bh-chip b { padding: 1px 6px; }
  .w-top .w-login { padding-right: 12px; gap: 6px; font-size: 14px; }
}
@media (max-width: 760px) {
  .w-top a.w-icon[href$="/chat"] { justify-self: start; }   /* строка 💬 / 🛍 — как была, по краям */
  .w-top a.w-icon[href$="/cart"] { justify-self: end; }
}
@media (max-width: 440px) {
  .w-top .w-login { font-size: 14px; padding-right: 14px; gap: 7px; }
  .w-top .w-login img { width: 32px; height: 32px; }
}
@media (max-width: 380px) {
  .w-top .w-login { font-size: 13px; padding-right: 10px; gap: 5px; }
  .w-top .w-login img { width: 30px; height: 30px; }
}
/* BH_VN_ITEM: у кнопок-чипов свой цвет текста — иначе в тёмной теме телефона надпись белая на белом */
html { color-scheme: only light; }
button.w-chip, .w-chip-btn { color: var(--ink); -webkit-text-fill-color: currentColor; }
/* Карточка «🪙 Продажа за BH» в «Управлении вещью» */
.w-tool-bh .w-bh-toggle { display: block; margin: 0; }
.w-tool-bh .w-bh-toggle > button, .w-tool-bh div.w-bh-toggle { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 14px; row-gap: 2px; min-height: 48px; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.w-tool-bh .w-bh-toggle b { font-size: 17px; }
.w-tool-bh .w-bh-toggle small { flex-basis: 100%; color: var(--muted); font-size: 14px; text-align: center; }
.w-tool-bh .w-bh-toggle > button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 12px; }
.w-tool-bh .w-switch.on { background: #E0A800; }
.w-tool-bh.w-tool-off { background: #F4F6F8; }
.w-tool-bh.w-tool-off div.w-bh-toggle { cursor: default; opacity: .6; }
.w-bh-bonus { display: grid; gap: 10px; justify-items: center; margin-top: 14px; }
.w-bh-boxes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; }
.w-bh-box { display: inline-grid; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 4px 6px; padding: 8px 10px; border: 1px solid #F3DFA0; border-radius: 16px; background: #FFFBEA; font-weight: 600; font-size: 14px; color: var(--ink); }
.w-bh-box > span { grid-column: 1 / -1; text-align: center; }
.w-bh-box input { width: 56px; height: 36px; padding: 0 8px; border: 1px solid #F3DFA0; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; text-align: right; }
.w-bh-box i { font-style: normal; font-weight: 800; }
.w-bh-bonus small { color: var(--muted); font-size: 13px; max-width: 34em; text-align: center; }
.w-bh-bonus .w-btn { min-width: 200px; }
.w-tools:has(> .w-tool-bh:only-child) { max-width: 560px; margin: 0 auto; }

/* BH_VN: фильтр «🪙 Можно купить за BH» — отдельно от «Влезет в пакомат», в стиле жёлтой плашки */
.white .bhbox { font-weight: 700; padding: 12px; border: 1px solid #F3DFA0; border-radius: 12px; background: #FFFBEA; color: var(--ink); }
/* BH_VN: шапка липкая — заголовок /terms#wallet не прячется под ней */
#wallet, #moderators { scroll-margin-top: 100px; }
@media (max-width: 760px) { #wallet, #moderators { scroll-margin-top: 250px; } }
/* BH_VN: поиск «Кого назначить модератором» (кабинет → модерация, только админ) */
.mod-find { position: relative; display: grid; gap: 8px; margin-top: 14px; max-width: 520px; }
.mod-find input[type=search] { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
.mod-find-list { position: absolute; z-index: 30; top: 82px; left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(46, 26, 71, .16); max-height: 360px; overflow: auto; }
.mod-find-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.mod-find-row[aria-selected=true] { background: var(--soft); }
.mod-find-row img, .mod-find-ava { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; }
.mod-find-ava { display: grid; place-items: center; background: var(--soft); font-weight: 800; }
.mod-find-txt { display: grid; min-width: 0; }
.mod-find-txt small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-find-is { font-style: normal; font-size: 12px; font-weight: 700; color: #1E7A3A; }
.mod-find-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.mod-find-card .mod-find-row { cursor: default; padding: 0; }
.mod-find-msg { margin: 0; color: var(--muted); font-size: 14px; }
.nt-sys { color: var(--ink); }
.mod-find [hidden] { display: none !important; }
/* BH_VN_DESK (08.11): компьютер ≥1181, вошедший пользователь — с плашкой BH строка не помещалась и кнопка пользователя
   уезжала за край. Строка остаётся одна: поиск может сжиматься, имя обрезается многоточием, промежутки чуть меньше. */
@media (min-width: 1181px) {
  .w-top .top-row { gap: 12px 16px; }
  .w-top .w-nav { gap: 14px; }
  .w-top .w-search { flex: 1 1 200px; min-width: 150px; padding-left: 10px; gap: 6px; }
  .w-top .w-search input { padding: 0 10px; }
  .w-top .w-login { flex: 0 0 auto; }   /* сжимается поиск, а не кнопка пользователя */
  .w-top .w-login > span:not(.w-sell-badge) { max-width: 10em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .w-top .w-langs a { min-width: 34px; }
}
/* узкий компьютер (1181–1439): у вошедшего в плашке только баланс, курс — в подсказке и на телефоне; имя пользователя видно */
@media (min-width: 1181px) {
  .w-top .w-bh-chip:has(b) .w-bh-rate { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 1181px) and (max-width: 1339px) {   /* с фото — на кнопке только фото, имя остаётся для экранного диктора */
  .w-top .w-login:has(img) { padding-right: 5px; }
  .w-top .w-login:has(img) > span:not(.w-sell-badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
/* BH_CHIP_EQ (08.11): плашка BH в шапке — по размерам как кнопка пользователя (высота 46, скругление, отступы, шрифт),
   монета = аватарка (36/32/30 px, тот же отступ от края), бейдж баланса на 10 px ниже плашки. Цвета не меняются. */
.w-top .w-bh-chip { box-sizing: border-box; height: 46px; min-height: 46px; padding: 0 20px 0 5px; gap: 10px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1; max-width: 100%; flex: 0 0 auto; }
.w-top .w-bh-chip:not(:has(.w-bh-coin)) { padding-left: 20px; }
.w-top .w-bh-coin { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 26px; line-height: 1; }
.w-top .w-bh-rate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-top .w-bh-chip b { flex: none; display: inline-flex; align-items: center; box-sizing: border-box; height: 36px; padding: 0 12px; border-radius: 999px; line-height: 1; white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1339px) { .w-top .w-bh-chip:has(b) { padding-right: 5px; } }   /* как кнопка «только фото» */
@media (max-width: 760px) {
  .w-top .w-bh-chip { padding: 0 14px 0 4px; gap: 10px; font-size: 15px; }
  .w-top .w-bh-chip:not(:has(.w-bh-coin)) { padding-left: 14px; }
  .w-top .w-bh-chip b { padding: 0 10px; }
}
@media (max-width: 440px) {
  .w-top .w-bh-chip { padding-right: 14px; gap: 7px; font-size: 14px; }
  .w-top .w-bh-coin { width: 32px; height: 32px; font-size: 23px; }
  .w-top .w-bh-chip b { padding: 0 8px; }
}
@media (max-width: 420px) {   /* пользователь и плашка делят ряд поровну, без переноса */
  .w-top .w-login, .w-top .w-bh-chip { justify-self: stretch; width: auto; min-width: 0; overflow: hidden; }
  .w-top .w-login > span:not(.w-sell-badge) { min-width: 0; flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .w-top .w-bh-chip { padding: 0 10px 0 4px; gap: 5px; font-size: 13px; }
  .w-top .w-bh-coin { width: 30px; height: 30px; font-size: 21px; }
  .w-top .w-bh-chip b { padding: 0 6px; }
}
/* BH_MOBILE_PILLS (08.11): телефон — под строкой «логотип | языки» две плашки во всю ширину, как поле поиска:
   тёмная (фото + имя, справа золотые 💬 и 🛍) и жёлтая (серебряная монета + курс, справа баланс). Компьютер без изменений. */
.w-userbar { display: contents; }
@media (max-width: 760px) {
  .w-top .top-row { grid-template-rows: 52px auto auto auto auto; grid-template-areas: "logo langs" "user user" "chip chip" "nav nav" "search search"; }
  .w-top .w-userbar { grid-area: user; justify-self: stretch; box-sizing: border-box; width: 100%; height: 50px; display: flex; align-items: center; gap: 2px; padding: 0 5px 0 4px; border-radius: 999px; background: var(--ink); }
  .w-top .w-userbar .w-login { order: 1; flex: 1 1 auto; min-width: 0; max-width: none; width: auto; height: 44px; min-height: 44px; margin: 0 auto 0 0; padding: 0 8px 0 0; gap: 10px; background: transparent; color: #fff !important; font-size: 15px; overflow: hidden; justify-self: auto; }
  .w-top .w-userbar .w-login:not(:has(img)) { padding-left: 14px; }
  .w-top .w-userbar .w-login img { width: 40px; height: 40px; }
  .w-top .w-userbar .w-login > span:not(.w-sell-badge) { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
  .w-top .w-userbar .w-login .w-sell-badge { flex: none; margin-left: 0; overflow: visible; }
  .w-top .w-userbar a.w-icon, .w-top .w-userbar a.w-icon[href$="/cart"] { order: 2; flex: none; width: 44px; height: 44px; color: #FFC83D; justify-self: auto; }
  .w-top .w-userbar a.w-icon[href$="/cart"] { order: 3; }
  .w-top .w-userbar a.w-icon svg { width: 26px; height: 26px; }
  .w-top .w-userbar a.w-icon:hover { background: rgba(255, 255, 255, .12); }
  .w-top .w-userbar .w-count { top: 1px; right: -1px; }
  .w-top .w-bh-chip { grid-area: chip; justify-self: stretch; box-sizing: border-box; width: 100%; max-width: none; height: 50px; min-height: 50px; justify-content: flex-start; gap: 10px; padding: 0 5px 0 6px; font-size: 15px; overflow: visible; }
  .w-top .w-bh-chip:not(:has(b)) { padding-right: 16px; }
  .w-top .w-bh-chip:not(:has(.w-bh-coin)) { padding-left: 16px; }
  .w-top .w-bh-rate { flex: none; overflow: visible; text-overflow: clip; margin-right: auto; }
  .w-top .w-bh-chip b { height: 40px; padding: 0 14px; margin-left: 8px; }
  .w-top .w-bh-coin { width: 38px; height: 38px; font-size: 0; color: transparent; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23FFFFFF'/%3E%3Cstop offset='.5' stop-color='%23D5DAE0'/%3E%3Cstop offset='1' stop-color='%23959EA8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='20' cy='20' r='19' fill='url(%23g)' stroke='%23697480' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='14.5' fill='none' stroke='%238C959F' stroke-width='1'/%3E%3Ctext x='20' y='26' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-weight='700' font-size='16' fill='%23545C65'%3EB%3C/text%3E%3C/svg%3E") center / contain no-repeat; }
}
@media (max-width: 380px) {
  .w-top .w-userbar .w-login, .w-top .w-bh-chip { font-size: 14px; }
  .w-top .w-userbar .w-login img, .w-top .w-bh-coin { width: 36px; height: 36px; }
  .w-top .w-userbar a.w-icon, .w-top .w-userbar a.w-icon[href$="/cart"] { width: 42px; }
}

/* BH_REVIEWS2 (08.11): рейтинг [4.6 / 5.0], форма «− 5 +», отзывы, ссылки «BH» → /vn, шапка телефона: рейтинг в рамке, белые иконки, тележка. */
.w-rbox { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border: 1px solid currentColor; border-radius: 6px; font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.w-rbox b { color: #B07A00; }
.w-rate { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.w-seller-rate { margin-top: 10px; width: 100%; justify-content: center; }
/* «BH» и «Подробнее» как ссылки: цвет текста, подчёркивание при наведении */
a.w-bh-a, a.w-bh-more, .w-bh-chip a { color: inherit; text-decoration: none; }
a.w-bh-a:hover, a.w-bh-more:hover, a.w-bh-a:focus-visible, a.w-bh-more:focus-visible { text-decoration: underline; }
a.w-bh-more { font-weight: 700; }
.w-bh-chip > a { display: contents; }
.w-bh-chip:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.w-bh-rules { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
/* форма «Оценить пользователя» — справа от аватара */
.profile-head .w-rform { margin-left: auto; flex: 0 1 360px; min-width: 260px; display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #E4E7EC; border-radius: 16px; background: #fff; }
.w-rform h2 { margin: 0; font-size: 18px; }
.w-rform-f { display: flex; flex-direction: column; gap: 10px; }
.w-rstep { display: flex; align-items: center; justify-content: center; gap: 14px; }
.w-rstep button, .w-rstep span { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 0; border-radius: 50%; font-size: 28px; font-weight: 800; line-height: 1; color: #fff; cursor: pointer; }
.w-rminus { background: #E5484D; }
.w-rplus { background: #2FA84F; }
.w-rstep button:disabled { opacity: .35; cursor: default; }
.w-rstep input, .w-rstep b { width: 64px; text-align: center; font-size: 40px; font-weight: 800; border: 0; background: transparent; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.w-rstep input::-webkit-outer-spin-button, .w-rstep input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.w-rform textarea { width: 100%; box-sizing: border-box; min-height: 84px; padding: 10px 12px; border: 1px solid #D0D5DD; border-radius: 12px; font: inherit; resize: vertical; }
.w-rform-deal { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.w-rform-deal select { padding: 8px; border: 1px solid #D0D5DD; border-radius: 10px; font: inherit; }
.w-rform-hint { color: var(--muted); font-size: 12.5px; }
.w-rform-off { background: #F2F4F7 !important; color: #8A919C; }
.w-rform-off .w-rstep span, .w-rform-off .w-rstep b { background: #C9CED6; color: #fff; cursor: default; }
.w-rform-off .w-rstep b { background: transparent; color: #A0A6B0; }
.w-rform-why { margin: 0; font-size: 14px; }
@media (max-width: 760px) { .profile-head .w-rform { margin-left: 0; flex: 1 1 100%; min-width: 0; } }
.w-revs .w-rev-who { display: inline-flex; align-items: center; gap: 8px; margin-right: 10px; color: inherit; text-decoration: none; vertical-align: middle; }
.w-revs .w-rev-who:hover b { text-decoration: underline; }
.w-revs small a { color: inherit; }
.w-rev-auto { margin-top: 6px; }
/* кабинет: плашка «Оцените сделку — +0,50 BH» */
.c-rate-pill { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(135deg, #FFE08A, #E8A33D); color: #3A2600; font-weight: 700; text-decoration: none; }
.c-rate-pill:hover { filter: brightness(1.04); }
.c-rate-go { margin-top: 8px; }
/* шапка: имя — полное на компьютере; рейтинг в рамке — только на телефоне */
.w-uname-short, .w-uname-first { display: none; }
.w-uname-full { display: contents; }   /* компьютер: как раньше — текст прямо в кнопке */
.w-top-rate { display: none; }
@media (max-width: 760px) {
  .w-top .w-userbar .w-login .w-uname { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
  .w-top .w-userbar .w-uname-full { display: none; }
  .w-top .w-userbar .w-uname-short { display: inline; }
  .w-top .w-top-rate { order: 2; display: inline-flex; flex: none; align-items: center; height: 44px; padding: 0 4px; color: rgba(255, 255, 255, .55); text-decoration: none; }
  .w-top .w-top-rate .w-rbox { font-size: 13px; color: #fff; border-color: rgba(255, 255, 255, .45); padding: 3px 7px; }
  .w-top .w-top-rate .w-rbox b { color: #FFC83D; }
  .w-top .w-userbar a.w-icon, .w-top .w-userbar a.w-icon[href$="/cart"] { order: 3; color: #fff; }
  .w-top .w-userbar a.w-icon[href$="/cart"] { order: 4; }
}
@media (max-width: 380px) {
  .w-top .w-userbar .w-uname-short { display: none; }
  .w-top .w-userbar .w-uname-first { display: inline; }
  .w-top .w-top-rate .w-rbox { font-size: 12px; padding: 3px 5px; }
  .w-top .w-top-rate { padding: 0 2px; }
}
.w-vn-lead { font-size: 19px; }
.w-vn-links { display: flex; flex-wrap: wrap; gap: 10px; }
.w-vn-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.w-vn-table td { padding: 10px 8px; border-bottom: 1px solid #E4E7EC; vertical-align: top; }
.w-vn-table td:last-child { text-align: right; white-space: nowrap; color: #8A5A00; }
a.w-bh-badge { text-decoration: none; } a.w-bh-badge:hover { text-decoration: underline; }
.w-rform .w-rstep input[type="number"] { width: 70px; height: 56px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 44px; font-weight: 800; text-align: center; color: var(--ink); }
.w-rform .w-rstep input[type="number"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

/* BH_REFERRAL (08.11): блок «Пригласи друга» — кабинет /me/invite и кошелёк */
.inv-box h2 { margin: 0 0 6px; }
.inv-text { margin: 0 0 12px; }
.inv-label { display: block; font-size: 13px; opacity: .7; margin-bottom: 4px; }
.inv-link { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.18); border-radius: 12px; background: #fff; color: inherit; text-overflow: ellipsis; }
.inv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inv-btns .inv-btn { flex: 1 1 0; min-width: 120px; padding: 0 14px; min-height: 46px; justify-content: center; text-align: center; white-space: nowrap; }
.inv-btns .inv-btn[hidden] { display: none; }
.inv-btns .inv-btn.share-copy { background: #fff !important; }   /* style.css красит .share-copy/.share-native в серый для иконок */
.inv-btns .inv-btn.share-native { background: var(--orange) !important; }
.inv-btns .inv-btn.share-copy.is-done { background: #2F8F4E !important; border-color: #2F8F4E; color: #fff !important; }
.inv-msg { display: block; min-height: 1.3em; font-size: 14px; margin-top: 6px; }
.inv-stats { font-weight: 600; margin: 4px 0 0; }
.inv-bot { margin: 6px 0 0; word-break: break-all; }
.inv-h3 { font-size: 16px; margin: 18px 0 6px; }
.inv-list { list-style: none; margin: 0; padding: 0; }
.inv-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid rgba(0,0,0,.08); }
.inv-list li span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-list time { opacity: .65; font-size: 13px; }
.inv-st { font-size: 13px; white-space: nowrap; }
.inv-st-credited { color: #1f7a3a; }
.inv-st-review, .inv-st-limited { opacity: .7; font-weight: 400; }
.inv-rules { margin: 14px 0 0; opacity: .75; }
.inv-more { margin: 8px 0 0; }
@media (max-width: 420px) {
  .inv-btns .inv-btn { min-width: calc(50% - 4px); }
}

/* BH_HDR_CENTER (08.11): телефон — рейтинг в тёмной плашке по центру между именем и «сообщениями»; админка — фиолетовый поиск */
@media (max-width: 760px) {
  .w-top .w-userbar:has(.w-top-rate) .w-login { flex: 0 1 auto; margin: 0; padding-right: 0; }
  .w-top .w-userbar .w-top-rate { margin: 0 auto; }
}
.admin .admin-bar .a-searchrow { padding-top: 0; padding-bottom: 12px; }
.admin .admin-bar .a-searchrow .w-search { flex: 1 1 100%; max-width: 720px; }

/* BH_RATE (08.11): курс BH задают админы (/admin/bh-rate). На золотой плашке — маленькая кривая курса пн–вс,
   на странице /vn и в админке — большой график с днями недели. Цвета — чернила плашки, без новых оттенков. */
.w-top .w-bh-ratea { display: inline-flex; align-items: center; gap: inherit; min-width: 0; color: inherit; text-decoration: none; }
.w-top .w-bh-spark { flex: none; display: inline-flex; align-items: center; line-height: 0; }
.w-bh-spark .bh-spark { display: block; width: 56px; height: 20px; overflow: visible; }
.bh-spark .bh-line { fill: none; stroke: #3A2600; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bh-spark .bh-dot { fill: #3A2600; }
.bh-spark-big { width: 100%; height: auto; max-width: 640px; overflow: visible; }
.bh-spark-big .bh-line { stroke: #B07A00; stroke-width: 3; }
.bh-spark-big .bh-dot { fill: #B07A00; stroke: #fff; stroke-width: 2; }
.bh-spark-big .bh-grid { stroke: var(--line, #E5E7EB); stroke-width: 1; }
.bh-spark-big .bh-day { fill: var(--muted, #6B7280); font-size: 20px; font-weight: 600; }
.bh-spark-big .bh-day.bh-today { fill: var(--ink, #111); font-weight: 800; }
.bh-spark-big .bh-val { fill: #3A2600; font-size: 20px; font-weight: 800; }
.w-vn-rate, .bh-admin-chart { margin: 18px 0 24px; padding: 14px 16px 6px; border-radius: 16px; background: linear-gradient(135deg, #FFF6D8, #FFE9A8); }
.bh-admin-chart { max-width: 680px; }
.w-vn-rate figcaption { margin-bottom: 6px; font-size: 15px; color: #3A2600; }
@media (max-width: 760px) {
  .w-top .w-bh-ratea { flex: 1 1 auto; margin-right: auto; }
  .w-top .w-bh-ratea .w-bh-rate { margin-right: 0; }
  .w-top .w-bh-spark { margin-left: auto; }
  .w-top .w-bh-spark .bh-spark { width: 64px; height: 22px; }
}
@media (max-width: 380px) { .w-top .w-bh-spark .bh-spark { width: 48px; } }

/* BH_CATS_MULTI (08.11): категории на главной — маленькие кнопки, можно выбрать несколько, фильтр без перезагрузки */
form.w-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 auto; }
.w-cat-chip { position: relative; display: block; flex: 0 1 auto; max-width: 100%; cursor: pointer; }
.w-cat-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.w-cat-chip span { display: flex; align-items: center; min-height: 38px; padding: 6px 14px; box-sizing: border-box; border: 1px solid var(--sky); border-radius: 999px; background: #EAF5FB; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.2; }
.w-cat-chip:hover span { background: var(--sky); }
.w-cat-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.w-cat-chip input:checked + span::before { content: "✓\00a0"; }
.w-cat-chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.w-cats-res[hidden], .w-cats-res-none[hidden], .w-sec.w-cats-hide { display: none !important; }
.w-cats-res.is-loading .w-grid { opacity: .45; transition: opacity .15s; }
@media (max-width: 760px) {
  .w-cat-chip span { min-height: 36px; padding: 5px 12px; font-size: 13.5px; }
  body.white .w-main > .w-cats-res { order: 5; padding-top: 16px; }
}

/* BH_CATS_DD (08.11): категории — выпадающий список с галочками (несколько) и кнопка «Отфильтровать» под ним; список поверх страницы, ничего не сдвигает */
form.w-cats-dd { display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 520px; }
.w-dd { position: relative; }
.w-dd-sum { display: flex; align-items: center; height: 50px; padding: 0 44px 0 18px; box-sizing: border-box; border: 2px solid var(--purple); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236B3FA0' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; user-select: none; }
.w-dd-sum::-webkit-details-marker { display: none; }
.w-dd-txt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-dd[open] .w-dd-sum { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 8l6-6 6 6' fill='none' stroke='%236B3FA0' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.w-dd-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: min(60vh, 460px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; box-sizing: border-box; border: 2px solid var(--purple); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(30, 20, 60, .18); }
.w-dd-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px; border-radius: 12px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.w-dd-item:hover { background: #F3EEFA; }
.w-dd-item input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--purple); }
.w-dd-clear { display: block; width: 100%; margin-top: 4px; min-height: 40px; border: 0; border-top: 1px solid #E6E0F0; background: none; color: var(--purple); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.w-cats-dd .w-cats-go { width: 100%; min-height: 50px; }
form.w-cats-dd { width: 100%; box-sizing: border-box; min-width: 0; }
form.w-cats-dd > * { width: 100%; max-width: 520px; box-sizing: border-box; }
.w-dd, .w-dd-sum { min-width: 0; max-width: 100%; }
.w-dd-txt { flex: 1 1 auto; min-width: 0; }
/* BH_CATS_TOP (08.11): кнопка «Отфильтровать» над списком категорий (открытый список её не закрывает); место фильтра на странице прежнее */
.w-cats-dd .w-cats-go { order: -1; }

/* BH_RATE_CAP (08.11): курс мелко под кривой («курс BH: 1 BH = 1 €»), крупный текст курса убран (остаётся для экранного диктора) */
.w-top .w-bh-ratea .w-bh-rate { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w-top .w-bh-spark { flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1; }
.w-top .w-bh-spark .bh-spark { height: 18px; }
.w-bh-cap { display: block; font-size: 10.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; color: #3A2600; letter-spacing: .01em; }
@media (max-width: 760px) {
  .w-top .w-bh-spark { margin-left: 0; margin-right: auto; }
  .w-top .w-bh-spark .bh-spark { width: 72px; height: 18px; }
  .w-bh-cap { font-size: 11px; }
}

/* BH_ENYA_ASK (09.11): «Спроси у Ени» — кнопки WhatsApp / Telegram, просмотры вещи для владельца */
.enya-ask { background: #FFF8E6; border: 1px solid #F3D98B; border-radius: 16px; padding: 14px 16px; margin: 12px 0; }
.enya-ask-q { margin: 0 0 10px; font-weight: 600; line-height: 1.35; color: #2B2118; }
.enya-ask-q b { white-space: nowrap; }
.enya-ask-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.enya-ask-btns .w-btn { flex: 1 1 140px; justify-content: center; text-align: center; color: #fff; border: 0; font-weight: 700; text-decoration: none; }
.enya-ask-wa { background: #1FA855; }
.enya-ask-tg { background: #2AABEE; }
.enya-ask-btns .w-btn:hover { filter: brightness(.95); }
.enya-ask-hint { margin: 8px 0 0; font-size: 13px; color: #7A6A5A; }
.enya-ask-views { margin: 12px 0 0; font-weight: 600; color: #7A6A5A; }

/* BH_VIEWAS (09.11): «Смотреть как» — полоса сверху, выбор ступени, подписи «видно вам как …», серые кнопки */
.w-viewas-bar { position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 9px 16px; background: #2B2118; color: #FFD84D; font-weight: 700; font-size: 15px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.w-viewas-bar form { margin: 0; }
.w-viewas-bar button { border: 0; border-radius: 999px; padding: 7px 14px; background: #FFD84D; color: #2B2118; font: inherit; font-size: 14px; cursor: pointer; }
.w-viewas-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 14px 0; padding: 12px 14px; border: 1px dashed #B9A6D6; border-radius: 14px; background: #F7F3FC; }
.w-viewas-pick label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
/* BH_VAPICK: список и кнопка одной высоты, по центру по вертикали; кнопка — как все белые кнопки (рамка цвета --ink, 2 px) */
.w-viewas-pick select, .admin .w-viewas-pick select { box-sizing: border-box; height: 44px; min-height: 44px; width: auto; border: 2px solid var(--ink); border-radius: 12px; padding: 0 12px; max-width: 100%; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.w-viewas-pick .w-viewas-go { box-sizing: border-box; height: 44px; min-height: 44px; margin: 0; padding: 0 22px; font-size: 15px; }
@media (max-width: 480px) {
  .w-viewas-pick label { flex-direction: column; align-items: stretch; width: 100%; }
  .w-viewas-pick select, .admin .w-viewas-pick select, .w-viewas-pick .w-viewas-go { width: 100%; }
}
.w-viewas-pick small { flex-basis: 100%; color: #7A6A5A; }
.w-staff { display: inline-block; margin: 0 6px; padding: 1px 8px; border-radius: 999px; background: #EFE7FA; color: #5B3D8A; font-size: 12px; font-weight: 600; vertical-align: middle; white-space: normal; }
.w-pickup-edit > .w-staff { display: block; width: fit-content; margin: 0 0 8px; }
.w-va-off, .w-va-off:hover { opacity: .45 !important; filter: grayscale(1); cursor: not-allowed !important; }

/* BH_VIEWAS (3.2): «Сохранить» — заливка цветом */
.js-save button.is-busy { opacity: .7; cursor: progress; }
.js-save button.is-ok { background: #1E8E4A !important; border-color: #1E8E4A !important; color: #fff !important; transition: background .2s; }
.js-save button.is-bad { background: #C62828 !important; border-color: #C62828 !important; color: #fff !important; }
.js-save.js-toggle button.is-ok b, .js-save.js-toggle button.is-bad b { color: #fff; }
/* BH_VIEWAS (3.3): две цены — у кого BH хватает, BH крупно и чёрная, € серая и мельче; иначе наоборот */
.w-p2 { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.15; }
.w-p2 > span:first-child { color: #1B1B1F; font-weight: 800; }
.w-p2 > span:last-child { color: #8A8494; font-weight: 600; font-size: .62em; }
.w-p2 small { font-size: .8em; font-weight: 600; color: #8A8494; }
.w-p2-big > span:first-child { font-size: 1em; }
.w-p2 .w-bh-a { color: inherit; }
.w-price2 .w-p2 > span:last-child { font-size: .78em; }
.w-or-eur { margin-top: 6px; }
.w-or-eur .linkbtn { background: none; border: 0; padding: 0; color: #7A6A5A; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.w-pricerow .w-p2 > span { font-size: inherit; }
.w-pricerow .w-p2 > span:first-child { font-size: 1em; color: #1B1B1F; }
.w-pricerow .w-p2 > span:last-child { font-size: 20px; color: #8A8494; font-weight: 700; letter-spacing: 0; }
.w-pricerow .w-p2 small { font-size: 14px; font-weight: 600; color: #8A8494; margin-left: 6px; letter-spacing: 0; }
.w-pricerow .w-p2-eurmain > span:last-child .w-bh-a { color: #8A8494; }
.w-pricerow .w-p2 { font-size: inherit; color: inherit; }

/* BH_BOOKMARKS (09.11): звёздочка «В закладки» — на странице вещи, на карточках, в кабинете */
.w-bm-form { display: inline-flex; margin: 0; }
.w-bm { cursor: pointer; color: #7A6A5A; }
.w-bm.is-on { color: #E8A100; }
.w-bm-big { display: inline-flex; align-items: center; gap: 6px; font: inherit; }
.w-bm-big.is-on { background: #FFF6DA; border-color: #F3D98B; color: #8A5A00; }
.w-bm-form-card { position: absolute; top: 8px; right: 8px; z-index: 3; }
.w-card .w-pic .w-bm-form-card, .w-card .w-pic .w-bm-form-card button, .w-card .w-pic a.w-bm-card { pointer-events: auto; }   /* BH_BM_TAP: в .w-pic всё pointer-events:none (клик уходит на ссылку вещи) — звёздочке нажатия нужны */
.w-card .w-pic { position: relative; }
.w-bm-card { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
a.w-bm-card { position: absolute; top: 8px; right: 8px; z-index: 3; }
.w-bm-card svg { width: 20px; height: 20px; }
.w-bm-pop svg { animation: w-bm-pop .35s ease; }
@keyframes w-bm-pop { 50% { transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .w-bm-pop svg { animation: none; } }
.c-bm { display: flex; align-items: center; gap: 10px; }
.c-bm .c-bm-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.c-bm .w-bm-form-card { position: static; }
.c-bm-gone .c-thumb, .c-bm-gone .c-deal-txt b { opacity: .55; }
.c-bm-off { opacity: .45; }

/* BH_FLASH_OK (09.11): кнопка действия после срабатывания — 2 с зелёная, как «Можно оплатить BH» */
button.is-flash-ok, input.is-flash-ok, .w-btn.is-flash-ok, .btn.is-flash-ok { background: #1E8E4A !important; border-color: #1E8E4A !important; color: #fff !important; transition: background .2s; }
button.is-flash-ok * { color: #fff !important; }

/* BH_AVATAR: фото в «Профиль и приватность» — круг-предпросмотр */
.pv-ava { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pv-ava-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sky); }
.pv-ava-ctl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pv-ava-ctl input[type=file] { max-width: 100%; }
.pv-ava-del { font-weight: 400; font-size: 14px; display: flex; align-items: center; gap: 6px; }

/* BH_HOME_BIG (09.11): на главной «Рыться в барахле» и «Добавить вещь» — большие, по центру, отдельной строкой */
.w-hero-btns.w-hero-big { flex: 1 1 100%; justify-content: center; gap: 16px 20px; margin-top: 12px; }
.w-hero-big .w-btn { min-height: 68px; padding: 0 44px; font-size: 21px; min-width: 300px; }
@media (max-width: 640px) { .w-hero-big .w-btn { flex: 1 1 100%; min-width: 0; min-height: 60px; font-size: 19px; } }

/* BH_LINK_BONUS: плашка на главной «Получи BH за привязку» и «+2 BH» в «Способах входа» */
.w-link-bh { display: flex; align-items: center; gap: 12px; margin-top: 14px; margin-bottom: 4px; padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, #FFE27A, #FFC93C); color: var(--ink); text-decoration: none; font-weight: 700; box-sizing: border-box; }
.w-link-bh:hover { filter: brightness(1.03); }
.w-link-coin { font-size: 24px; flex: none; }
.w-link-txt { flex: 1 1 auto; min-width: 0; font-size: 16px; line-height: 1.3; }
.w-link-go { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; white-space: nowrap; }
@media (max-width: 420px) { .w-link-bh { flex-wrap: wrap; } .w-link-go { margin-left: 36px; } }
.c-link-bh { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #FFE27A; color: var(--ink); font-size: 13px; }
.c-link-hint { margin-top: 8px; }

/* BH_CAT_FILTER (10.11): блок BH_CAT_TOP (фильтры по центру) убран — фильтры снова слева, как было */
.w-cat-side .title { order: -2; }   /* заголовок «Фильтры» над кнопкой (кнопка над списком — BH_CATS_TOP) */

/* BH_APPLIED (10.11): единый отклик кнопок действия (static/flash-ok.js): «…» → 2 с зелёная «✓ Применено» / красная с причиной */
button.is-busy, input.is-busy { opacity: .7; cursor: progress; }
button.is-flash-bad, input.is-flash-bad, .w-btn.is-flash-bad, .btn.is-flash-bad { background: #C62828 !important; border-color: #C62828 !important; color: #fff !important; white-space: normal; }
button.is-flash-bad *, button.is-flash-ok svg { color: #fff !important; }
button.is-flash-ok:disabled, button.is-flash-bad:disabled { opacity: 1; cursor: default; }

/* BH_BHM_COIN (10.11): новая монета KIS (static/bhm/coin-small.svg) вместо 🪙 и монеты с «B»; размеры прежние */
img.bhm-c { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; border: 0; }
.w-top .w-bh-coin, .w-top .w-userbar .w-bh-coin { background: none !important; font-size: 0 !important; color: transparent; }
.w-top .w-bh-coin img.bhm-c { width: 100%; height: 100%; vertical-align: top; }
.bhm-big { display: block; width: 132px; height: 132px; margin: 0 auto 14px; }
@media (max-width: 640px) { .bhm-big { width: 104px; height: 104px; } }
.c-wallet-coin { float: right; width: 72px; height: 72px; margin: 0 0 8px 12px; }

/* BH_VIEWAS_ACT (10.11): «Смотреть как» — недоступное выбранной ступени серое, с подписью */
.w-va-off, button.w-va-off, .w-btn.w-va-off { opacity: .4 !important; filter: grayscale(1); pointer-events: none; cursor: not-allowed; }
.w-va-note { display: block; margin-top: 4px; color: #6b6478; font-size: 12px; font-weight: 600; }
.w-viewas-bar small { font-weight: 600; opacity: .85; }

/* BH_CARD_COMPACT (10.11): описание под фото в сетке компактнее — меньше отступов, € и KIS в одну строку, плашки KIS мельче */
.w-card { gap: 4px; }
.w-card .w-pic { margin-bottom: 4px; }
.w-card .w-name { font-size: 15px; line-height: 1.3; }
.white .w-card > a.w-card-cat { margin: -2px 0 -5px; padding: 2px 0; }
.w-card .w-pic + .w-name { margin-top: 12px; }
.w-card .w-ctags { margin: 1px 0; }
.w-card .w-ctags-sm .w-ctag { min-height: 18px; padding: 0 7px; font-size: 11.5px; }
.w-card .w-price { gap: 8px; flex-wrap: wrap; row-gap: 0; }
.w-card .w-price b { font-size: 19px; }
.w-card .w-p2 { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.w-card .w-p2 > span:last-child { font-size: .72em; }
.w-card .w-p2 img.bhm-c { width: 1em; height: 1em; }
.w-card-bh { display: flex; flex-wrap: wrap; gap: 4px; }
.w-card .w-bh-line, .w-card .w-bh-badge { margin: 0; padding: 1px 7px; font-size: 11.5px; line-height: 1.5; }
.w-card .w-left { font-size: 13px; }
@media (max-width: 760px) {
  .w-card .w-name { font-size: 14px; }
  .w-card .w-price b { font-size: 17px; }
}

/* BH_BTN_CENTER (10.11, Дима): мобильная — кнопка одна в ряду → по центру; пара → парой по центру; 3 и больше → влево с переносом (как чипы).
   Ряд кнопок = блок, где кроме кнопок ничего нет. Строки списков «название — кнопка» и чипы не трогаем. */
@media (max-width: 640px) {
  :where(div, p, section, form):has(> :is(.w-btn, .btn)):not(:has(> :not(.w-btn, .btn, input[type=hidden], br))):not(.w-top *, .w-search, .w-cats-dd *) {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  }
  :where(div, p, section, form):has(> :nth-child(3 of .w-btn, .btn)):not(:has(> :not(.w-btn, .btn, input[type=hidden], br))):not(.w-top *, .w-search, .w-cats-dd *) {
    justify-content: flex-start;
  }
  /* Форма с полем: кнопка под полем — по центру своей строки */
  form:has(:is(input:not([type=hidden], [type=checkbox], [type=radio]), textarea, select, input[type=checkbox])):not(.w-top *, .w-search, .w-cats-dd, .w-cats-dd *) > :is(.w-btn, .btn):last-child {
    display: flex; width: fit-content; margin-inline: auto;
  }
}

/* BH_PRESS (10.11, ТЗ п.9): любая кнопка при нажатии на 2 с зеленеет; текст «✓ Применено» — только у кнопок-действий (flash-ok.js) */
.w-btn.is-press, .btn.is-press, .w-chip-btn.is-press, button.is-press, input.is-press { background: #1E8E4A !important; border-color: #1E8E4A !important; color: #fff !important; transition: background .15s, border-color .15s, color .15s; }
.is-press * { color: #fff !important; }
@media (max-width: 640px) {   /* BH_BTN_CENTER: «Профиль и вход» — «Выйти» / «Удалить аккаунт» по центру, как внизу кабинета */
  .c-acc { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .c-acc .c-del { text-align: left; }
}

/* BH_WALLET_CARD (10.11, п.10): монета KIS внутри карточки «Баланс» слева, «Баланс» и сумма столбиком справа; без пустот */
.c-wallet-coin { float: none; margin: 0; }
.w-wallet-tiles { margin: 0; }   /* отступы даёт сам кабинет (gap 18 px) */
.w-wallet-tiles > .w-bal { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
.w-bal .c-wallet-coin { width: 96px; height: 96px; flex: 0 0 96px; }
.w-bal-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.w-bal-t > span { font-size: 14px; color: var(--muted); }
.w-bal-t > b { font-size: 26px; font-weight: 800; line-height: 1.1; white-space: nowrap; margin: 0; }
.w-wallet-tiles + .w-wallet-box { margin-top: 0; }
@media (max-width: 640px) { .w-bal .c-wallet-coin { width: 72px; height: 72px; flex-basis: 72px; } }

/* BH_UI (10.11, ТЗ C0–C5) */
/* C0: зеленеют только белые кнопки (flash-ok.js, маркер WHITE). Цветные/переключатели/карточки — без зелёного, даже если класс остался */
.w-tool-bh .w-bh-toggle > button.is-press, .w-tool-bh .w-bh-toggle > button.is-flash-ok { background: transparent !important; border-color: transparent !important; color: var(--ink) !important; }
.w-tool-bh .w-bh-toggle > button.is-press *, .w-tool-bh .w-bh-toggle > button.is-flash-ok * { color: inherit !important; }
.w-tool-bh .w-bh-toggle > button.is-press small { color: var(--muted) !important; }
/* C1: /vn — монета рядом с заголовком, кнопки по центру, без пустот */
.w-vn.page { gap: 0; padding-top: 20px; }
.w-vn-head { display: flex; align-items: center; gap: 18px; margin: 0 0 10px; }
.w-vn-head .bhm-big { width: 96px; height: 96px; margin: 0; flex: 0 0 96px; }
.w-vn-head h1 { margin: 0; line-height: 1.2; }
.w-vn .w-vn-lead { margin: 0 0 4px; }
.w-vn .w-vn-rate { margin: 12px 0; }
.w-vn .w-vn-links { justify-content: center; margin: 4px 0 6px; }
.w-vn h2 { margin: 22px 0 8px; }
.w-vn p, .w-vn ol { margin: 0 0 10px; }
.w-vn .w-inv-cta { margin: 6px 0 0; }
@media (max-width: 640px) {
  .w-vn-head { gap: 12px; }
  .w-vn-head .bhm-big { width: 72px; height: 72px; flex-basis: 72px; }
  .w-vn-head h1 { font-size: 22px; }
  .w-vn h2 { margin-top: 18px; }
}
/* C1: одиночная кнопка-«таблетка» в своём ряду — по центру на всех ширинах (на телефоне — BH_BTN_CENTER) */
:where(div, p, form):has(> :is(.w-btn, .btn)):not(:has(> :nth-child(2 of .w-btn, .btn))):not(:has(> :not(.w-btn, .btn, input[type=hidden], br))):not(.w-top *, .w-search, .w-cats-dd, .w-cats-dd *, .c-side *, td *, .w-card *) {
  display: flex; flex-wrap: wrap; justify-content: center;
}
/* C3: кошелк — карточка баланса сразу под вкладками, правила сразу под карточкой */
.c-main > .w-wallet-tiles:first-child, .c-main > .w-flash + .w-wallet-tiles { margin-top: 0; }
.w-wallet-tiles + .w-rules, .w-wallet-tiles + .w-wallet-box, .w-wallet-tiles + * { margin-top: 0; }
/* C4: курс без графика — подпись крупнее и по центру */
.w-top .w-bh-spark-none .w-bh-cap { font-size: 12.5px; }
/* C5: «🎁 Приведи друга — получи +1 KIS» */
.w-inv-cta { flex: 1 1 100%; margin: 14px 0 0; text-align: center; }
.w-inv-cta a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: linear-gradient(135deg, #FFF6D8, #FFE9A8); color: #3A2600; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 0 0 1px #F0C75E inset; animation: w-inv-glow 6s ease-in-out infinite; }
.w-inv-cta a:hover { background: linear-gradient(135deg, #FFF0C2, #FFDF85); }
.w-inv-coin { width: 26px; height: 26px; flex: none; animation: w-inv-hop 6s ease-in-out infinite; vertical-align: middle; }
.inv-h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-side .w-inv-cta { margin: 0 0 12px; text-align: left; }
.c-side .w-inv-cta a { font-size: 14px; padding: 8px 14px; }
@keyframes w-inv-hop { 0%, 84%, 100% { transform: translateY(0); } 88% { transform: translateY(-6px); } 92% { transform: translateY(0); } 95% { transform: translateY(-2px); } }
@keyframes w-inv-glow { 0%, 80%, 100% { box-shadow: 0 0 0 1px #F0C75E inset; } 88% { box-shadow: 0 0 0 1px #F0C75E inset, 0 0 14px 2px rgba(255, 196, 0, .45); } }
@media (prefers-reduced-motion: reduce) { .w-inv-cta a, .w-inv-coin { animation: none; } }

/* BH_SEO_ITEM (10.11, ТЗ C7): строка о возврате в блоке «Доставка» */
.w-ret-line { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* BH_SEARCH (10.11, ТЗ C8): «Возможно, вы искали» и похожие вещи */
.w-maybe { margin: 6px 0 14px; font-size: 17px; text-align: center; }
.w-maybe a { font-weight: 800; }
.w-maybe-h { margin: 18px 0 12px; font-size: 20px; }

/* BH_FILL (10.11, ТЗ C6): «Лень заполнять? — Заполни за меня», обязательные поля формы загрузки */
.w-sell .w-fill { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 12px 14px; border-radius: 14px; background: #F3F7FB; }
.w-sell .w-fill > span { font-weight: 700; }
.w-fill-msg { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 14px; }
.w-fill-msg:empty { display: none; }
.w-sell input::placeholder, .w-sell textarea::placeholder { color: #A3AAB5; opacity: 1; }
.w-req { font-style: normal; font-size: 12.5px; font-weight: 600; color: #C94A4E; margin-left: 4px; }
.w-must.is-ok .w-req { color: #2E9E64; }
/* BH_MUST_SOFT (11.11, Дима): подсветка обязательных полей вдвое мягче — полупрозрачная рамка, лёгкий ореол без glow */
.w-must.is-bad input { border-color: rgba(229,72,77,.45) !important; box-shadow: 0 0 0 3px rgba(229,72,77,.08); }
.w-must.is-ok input { border-color: rgba(34,170,100,.45) !important; box-shadow: 0 0 0 3px rgba(34,170,100,.07); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322AA64' stroke-opacity='.8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.w-must input[type=number] { -moz-appearance: textfield; }
.w-must input[type=number]::-webkit-inner-spin-button, .w-must input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.w-must-msg { color: #C62828; font-size: 13px; font-weight: 600; }
.w-must-msg:empty { display: none; }
.w-fill-price { color: #8A5A00; font-size: 13.5px; font-weight: 700; }
.w-fill-check { color: #B26A00; font-size: 13px; font-weight: 700; }
.w-fill-check::before { content: '⚠ '; }
#sell-go.is-off { opacity: .5; cursor: not-allowed; }

/* BH_RV_DONE (10.11): после отзыва форма свёрнута, «Изменить отзыв» — белая кнопка */
.w-rform-done { display: flex; flex-direction: column; }
.w-rform-done > summary { list-style: none; align-self: center; cursor: pointer; }
.w-rform-done > summary::-webkit-details-marker { display: none; }
.w-rform-done[open] > summary { display: none; }
.w-rform-done .w-rform-f { margin-top: 4px; }

/* BH_INV_SHARE (10.11): «Пригласи друга» — кнопки соцсетей в фирменных цветах (кнопки-ссылки: не зеленеют, затемнение 150 мс) */
.inv-btns .w-btn-brand { color: #fff !important; border: 0; gap: 8px; transition: filter .15s; }
.inv-btns .w-btn-brand .inv-ico { width: 20px; height: 20px; flex: 0 0 20px; }
.inv-btns .inv-tg { background: #26A5E4 !important; }
.inv-btns .inv-wa { background: #25D366 !important; }
.inv-btns .inv-fb { background: #1877F2 !important; }
.inv-btns .w-btn-brand:hover { filter: brightness(.94); }
.inv-btns .w-btn-brand.is-dim, .inv-btns .w-btn-brand:active { filter: brightness(.82); }
.inv-btns .w-btn-brand:focus-visible { outline: 3px solid #1E2A44; outline-offset: 2px; }
.inv-btns .inv-btn.share-copy.is-done { background: #1E8E4A !important; border-color: #1E8E4A; color: #fff !important; }

/* BH_RATE_PROFILE (10.11, ТЗ B2): блок «Курс KIS» в кабинете владельца и автокурс */
.bhr-box h3 { margin: 18px 0 8px; font-size: 16px; }
.bhr-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; }
.bhr-now b { font-size: 26px; }
.bhr-now small { color: var(--muted); }
.bhr-chart .bh-spark-big { width: 100%; height: auto; max-height: 150px; }
.bhr-form, .bhr-auto { display: flex; flex-direction: column; gap: 10px; }
.bhr-in { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.bhr-in input { width: 110px; font-size: 18px; }
.bhr-prev { margin: 0; min-height: 1.4em; }
.bhr-prev [data-then] { color: #B54708; font-weight: 700; }
.bhr-n, .bhr-hint { margin: 0; color: var(--muted); font-size: 13.5px; }
.bhr-big { color: #B42318; font-weight: 700; }
.bhr-big[hidden] { display: none; }
.bhr-warn { margin: 0; color: #B54708; font-size: 13.5px; }
.bhr-form > .w-btn, .bhr-auto > .w-btn { align-self: center; }
.bhr-sw { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.bhr-sw input { width: 20px; height: 20px; }
.bhr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 16px; }
.bhr-grid input { width: 90px; }
.bhr-hist td { padding: 6px 8px; }
.bhr-more { margin: 10px 0 0; text-align: center; }
.w-vn-auto { margin: 6px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: 13.5px; }
/* BH_RATE_PROFILE: подписи в строку (общий .w-form ставит их столбиком), всё по левому краю */
.bhr-box .bhr-form, .bhr-auto { display: flex; flex-direction: column; align-items: stretch; text-align: left; }
.bhr-box .bhr-form label, .bhr-auto label { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 8px; color: var(--ink, #1E2A44); text-align: left; }
.bhr-box .bhr-form label input[type=text] { flex: 1 1 200px; }
.bhr-auto h3 { align-self: stretch; text-align: left; margin: 18px 0 2px; }
.bhr-grid { grid-template-columns: 1fr; }
@media (min-width: 720px) { .bhr-grid { grid-template-columns: repeat(3, auto); justify-content: start; } }

/* ===== BH_CENTER (10.11, «правило центровки» — факт MSI): одиночный элемент в строке — кнопка, «таблетка», баннер, ссылка-кнопка,
   короткая подпись — всегда по центру, телефон и ПК. Исключения: текст абзацев, поля форм, списки, заголовки разделов со ссылкой справа,
   прокручиваемые вкладки. Новым элементам ничего добавлять не нужно: правило 1 ловит их по составу блока, правило 2 — по классу семьи. */

/* 1) Блок, в котором нет ничего, кроме кнопок/таблеток (скрытые поля формы не в счёт) — содержимое по центру.
      Вкладки и прокручиваемые ряды (nav, *-nav, *-tabs, tablist, чипы фильтра) не трогаем. */
main :is(p, div, form, section, footer):not(nav, [class*="-nav"], [class*="tabs"], [role=tablist], [class*="chips"], .w-hero-btns, .c-deal-top, td, th):not(:has(> :not(input[type=hidden], script, template, br, :is(.w-btn, .btn, summary.w-btn, [class*="pill"], .w-inv-cta)))):has(> :is(.w-btn, .btn, summary.w-btn, [class*="pill"])) { text-align: center; justify-content: center; }
main :is(p, div, form, section, footer):not(nav, [class*="-nav"], [class*="tabs"], [role=tablist], [class*="chips"], .w-hero-btns, .c-deal-top, td, th):not(:has(> :not(input[type=hidden], script, template, br, :is(.w-btn, .btn, summary.w-btn, [class*="pill"], .w-inv-cta)))):not(:has(> :is(.w-btn, .btn, summary.w-btn, [class*="pill"]) ~ :is(.w-btn, .btn, summary.w-btn, [class*="pill"])))
  > :is(.w-btn, .btn, summary.w-btn, [class*="pill"]) { margin-inline: auto; }   /* авто-отступы — только одиночной, иначе ряд кнопок разъезжается к краям */

/* 1б) Форма, в которой только кнопка (и скрытые поля), одна в своём блоке — на всю строку, кнопка по центру
       (иначе форма сжимается до ширины кнопки и центровать нечего: «Я получил — всё в порядке» в карточке заказа). */
main form:only-child:not(:has(> :not(input[type=hidden], .w-btn, .btn, button))) { flex: 1 1 100%; width: 100%; text-align: center; }

/* 2) Семьи одиночных строк: баннер «Приведи друга», пустые состояния, строка рейтинга «новичок · сделок», строка кошелька в профиле. */
.w-inv-cta, .c-side .w-inv-cta, .w-hero .w-inv-cta { align-self: stretch; width: 100%; max-width: none; text-align: center; }
.c-empty, .white .empty, .w-empty, .w-wallet-line { text-align: center; }
.c-rate-line { justify-content: center; text-align: center; }

/* 3) Кнопка отправки в формах-колонках, где кнопка была прижата влево (комментарий, ответ на отзыв, удаление аккаунта) — по центру.
      Кнопки на всю ширину (загрузка вещи, оформление) не трогаем: им центровать нечего. */
main :is(.w-com-form, .rv-replyform form, .c-del, .box > details > form) > :is(button[type=submit], .w-btn):last-child { align-self: center; }
/* ряд кнопок карточки «Профиль и вход» (Выйти · Удалить аккаунт) — по центру */
.c-acc { justify-content: center; }
.c-problem > summary { justify-content: center; }

/* 4) Карточка сделки на телефоне: таблетка статуса уходит на свою строку — по центру. */
@media (max-width: 560px) { .c-deal-top > .c-chip { margin-inline: auto; } }

/* 5) Фильтр категорий на главной (кнопка + выпадающий список) — блок по центру. */
form.w-cats { justify-content: center; }
form.w-cats > * { margin-inline: auto; }

/* 6) Шапка профиля: имя и строки «Как продавец: новичок · сделок: N» — по центру своей колонки (ПК: аватар слева, форма оценки справа);
      на телефоне всё столбиком по центру. Карточка пользователя в колонке кабинета — так же: аватар сверху, имя и рейтинг под ним по центру. */
.profile-head > div:not(.w-rform) { align-items: center; text-align: center; }
.white .profile-head .stars { justify-content: center; text-align: center; }
@media (max-width: 760px) { .profile-head { flex-direction: column; align-items: center; text-align: center; } }
.c-me { flex-direction: column; text-align: center; }
.c-me > span { align-items: center; }

/* Меню кабинета: подпись слева, счётчик/сумма справа — и у пункта с монетой («Кошелёк» был с подписью посередине). */
.c-nav a { justify-content: flex-start; }
.c-nav a > :is(small, i) { margin-left: auto; }

/* BH_AUTO2 (10.11): автокурс — диапазоны высоты/частоты и предпросмотр недели */
.bhr-rng { border: 1px solid var(--line, #E3E8EF); border-radius: 12px; padding: 8px 12px 10px; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.bhr-rng legend { font-weight: 700; padding: 0 4px; }
.bhr-rng input { width: 84px; }
.bhr-rng output { color: var(--muted); font-size: 13.5px; }
.bhr-rng small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.bhr-sim { border: 1px solid var(--line, #E3E8EF); border-radius: 12px; padding: 8px; }
.bhr-sim[hidden] { display: none; }
.bhr-simsvg { width: 100%; height: auto; display: block; }
.bhr-simline { fill: none; stroke: #B54708; stroke-width: 1.6; stroke-linejoin: round; }
.bhr-simbase { stroke: #667085; stroke-width: 1; stroke-dasharray: 4 4; }
.bhr-simgrid { stroke: #EAECF0; stroke-width: 1; }
.bhr-simtxt { font-size: 11px; fill: #667085; }
.bhr-simcap, .bhr-simerr { margin: 6px 4px 0; font-size: 13.5px; color: var(--muted); text-align: left; }
.bhr-simerr { color: #B42318; font-weight: 700; }
/* BH_AUTO2: «от [ ] до [ ]» — в одну строку слева; график не шире 720 px */
.w-form .bhr-rng { flex-direction: row; justify-content: flex-start; text-align: left; }   /* общий fieldset — column */
.w-form .bhr-rng > label { display: inline-flex; flex-direction: row; align-items: center; justify-content: flex-start; flex: 0 0 auto; width: auto; gap: 6px; margin: 0; }
.w-form .bhr-rng > small { text-align: left; }
.bhr-simsvg { max-width: 720px; margin: 0 auto; }
@media (min-width: 720px) { .bhr-auto .bhr-grid { grid-template-columns: repeat(2, auto); } }
.bhr-sim.is-loading { opacity: .55; transition: opacity .2s; }
.bhr-sim { min-height: 190px; }   /* место под кривую заранее — страница не прыгает, когда она дорисуется */

/* BH_PAYSHIP (10.11): «Выплаты и доставка» — списки счетов и пакоматов, кнопки «Мои пакоматы» в оформлении */
.ps-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ps-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border: 1px solid #E4E7EC; border-radius: 12px; text-align: left; }
.ps-what { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.ps-main { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #DDF3E4; color: #14532D; font-size: 12.5px; font-weight: 700; vertical-align: 1px; }
.ps-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-acts form { margin: 0; }
.w-btn.ps-sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; }
.ps-add { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0 0 8px; text-align: left; }
.ps-add > .w-btn { align-self: center; }
.ps-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ps-f[hidden] { display: none; }
.ps-f select, .ps-f input { width: 100%; }
.ps-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
.ps-mine > span { font-weight: 700; }
.ps-pick.is-on { border-color: #1E8E4A; box-shadow: 0 0 0 1px #1E8E4A; }
.ps-pick[hidden] { display: none; }

/* BH_PMETER (10.11): шкала заполненности профиля */
.pm-bar { display: block; height: 10px; border-radius: 999px; background: #EAECF0; overflow: hidden; }
.pm-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #D9572B, #1E8E4A); }
.pm-short { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 4px; font-size: 13px; color: var(--muted); text-decoration: none; text-align: left; }
.pm-short .pm-bar { height: 6px; }
.pm-short b { color: #1E8E4A; }
.pm-card { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.pm-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.pm-head b { font-size: 17px; }
.pm-head span { color: var(--muted); font-size: 14px; }
.pm-add { margin: 4px 0 0; font-weight: 700; font-size: 14px; }
.pm-miss { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.pm-miss a { display: inline-block; padding: 6px 12px; border: 1.5px solid #D0D5DD; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink, #1E2A44); background: #fff; }
.pm-miss a:hover { border-color: #98A2B3; }
.pm-bonus { margin: 2px 0 0; font-weight: 700; color: #1E8E4A; }
/* BH_PMETER по «правилу центровки»: одиночные подписи и кнопки — по центру */
.pm-short { align-items: center; text-align: center; }
.pm-short .pm-bar { align-self: stretch; }
.pm-card { text-align: center; }
.pm-head { justify-content: center; }
.pm-miss { justify-content: center; }

/* BH_VIEWS_LINE: просмотры на странице вещи — бледно, мелко */
.item-views { margin: 2px 0 8px; font-size: 12px; font-weight: 400; color: #9A94A3; line-height: 1.3; }

/* BH_USTATS: «Сколько людей» — только владельцу */
.us-box { margin: 8px 0 20px; padding: 16px 18px; border: 1px solid #E6E1EC; border-radius: 16px; background: #FBFAFD; }
.us-box h2 { margin: 0 0 12px; }
.us-box h2 small { font-size: 12px; font-weight: 400; color: #9A94A3; margin-left: 6px; }
.us-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.us-cell { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #EEEAF2; }
.us-cell b { font-size: 24px; font-weight: 800; color: #2B1A40; font-variant-numeric: tabular-nums; }
.us-cell span { font-size: 13px; color: #7A6A5A; }
.us-src { margin: 12px 0 4px; }
/* BH_HDR_FIT (11.11): компьютерная шапка ровно по краям сетки карточек (тот же .wrap: max-width 1280, отступы 24 px).
   ≥1280 — одна строка: меню мельче, поиск сжимается первым (мин. 180 px), плашка KIS компактнее (монета 32), языки/💬/🛍 плотнее,
   1024–1279 — две строки: логотип + поиск + 💬 🛍 / меню + KIS + языки. Профиль ≥1024 — плавающая кнопка (BH_FAB ниже).
   Телефон и планшет (<1024) не меняются. */
.w-login-rate { display: none; }
@media (min-width: 1024px) {
  .w-top .top-row { flex-wrap: nowrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
  .w-top .top-row > * { flex: none; min-width: 0; }
  .w-top .w-logo { font-size: 19px; gap: 6px; margin-right: 4px; }
  .w-top .w-nav { gap: 11px; font-size: 13.5px; white-space: nowrap; }
  .w-top .w-search { flex: 1 1 180px; min-width: 180px; min-height: 40px; padding: 3px 3px 3px 10px; gap: 6px; }
  .w-top .w-search svg { width: 16px; height: 16px; flex: none; }
  .w-top .w-search input { height: 34px; padding: 0 10px; font-size: 14px; }
  /* плашка KIS: монета 32, кривая и курс мельче, баланс в той же плашке */
  .w-top .w-bh-chip { flex: none; height: 40px; min-height: 40px; padding: 0 4px; gap: 6px; font-size: 13px; }
  .w-top .w-bh-chip:not(:has(b)) { padding-right: 12px; }
  .w-top .w-bh-chip:not(:has(.w-bh-coin)) { padding-left: 12px; }
  .w-top .w-bh-coin { width: 32px; height: 32px; }
  .w-top .w-bh-spark { gap: 1px; }
  .w-top .w-bh-spark .bh-spark { width: 44px; height: 14px; }
  .w-top .w-bh-cap { font-size: 9.5px; letter-spacing: 0; }
  .w-top .w-bh-spark-none .w-bh-cap { font-size: 11px; }
  .w-top .w-bh-chip b { height: 32px; padding: 0 9px; font-size: 13px; }
  /* языки, сообщения, корзина */
  .w-top .w-langs { gap: 0; }
  .w-top .w-langs a { min-width: 26px; height: 32px; font-size: 12px; }
  .w-top a.w-icon, .w-top a.w-icon[href$="/cart"] { width: 36px; height: 36px; }
  .w-top a.w-icon svg { width: 20px; height: 20px; }
  .w-top .w-count { top: -2px; right: -3px; }
  /* кнопка пользователя */
  .w-top .top-row .w-login { flex: none; min-height: 40px; height: 40px; padding: 0 12px 0 4px; gap: 7px; font-size: 14px; }
  .w-top .top-row .w-login:not(:has(img)) { padding-left: 14px; }
  .w-top .w-login img { width: 32px; height: 32px; border-width: 1.5px; }
  .w-top .top-row .w-login > span:not(.w-sell-badge) { position: static; width: auto; height: auto; clip: auto; max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .w-top .w-login .w-sell-badge { margin-left: 0; }
  .w-top .w-uname-full, .w-top .w-uname-first { display: none; }
  .w-top .w-uname-short { display: inline; }
  .w-top .top-row .w-login > span.w-login-rate { display: inline-flex; overflow: visible; max-width: none; }
  .w-top .w-login-rate .w-rbox { padding: 1px 6px; font-size: 12px; color: #fff; border-color: rgba(255, 255, 255, .45); }
  .w-top .w-login-rate .w-rbox b { color: #FFC83D; }
}
/* 1024–1279: две строки по краям сетки — сверху логотип, поиск, 💬 🛍; снизу меню, KIS и языки */
@media (min-width: 1024px) and (max-width: 1279px) {
  .w-top .top-row { flex-wrap: wrap; row-gap: 8px; }
  .w-top .top-row::after { content: ""; order: 5; flex: 0 0 100%; height: 0; }
  .w-top .w-logo { order: 1; }
  .w-top .w-search { order: 2; }
  .w-top a.w-icon, .w-top a.w-icon[href$="/cart"] { order: 3; }
  .w-top .w-login { order: 4; }
  .w-top .w-nav { order: 6; }
  .w-top .w-bh-chip { order: 7; margin-left: auto; }
  .w-top .w-langs { order: 8; }
  .w-top .w-nav:has(+ .w-search + .w-langs) + .w-search + .w-langs { margin-left: auto; }   /* без плашки KIS — языки всё равно справа */
}
/* BH_HDR_FIT п.5: плашка KIS на ПК — подпись курса, под ней тонкая линия курса во всю ширину подписи (вместо «галочки»). <1024 — как был. */
.bh-spark-wide { display: none; }
@media (min-width: 1024px) {
  .w-top .w-bh-spark { align-items: stretch; gap: 3px; }
  .w-top .w-bh-spark .bh-spark { display: none; }
  .w-top .w-bh-cap { order: 1; }
  .w-top .bh-spark-wide { order: 2; display: block; width: 100%; height: 6px; overflow: visible; }
  .w-top .bh-spark-wide { background: linear-gradient(rgba(58, 38, 0, .2), rgba(58, 38, 0, .2)) center / 100% 1px no-repeat; }   /* бледная дорожка — вся неделя пн–вс */
  .w-top .bh-spark-wide .bh-line { fill: none; stroke: #3A2600; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
}
/* BH_HDR_FIT п.2: главная, первый экран — всё по центру, заголовок не шире ~900 px */
.w-hero { flex-direction: column; align-items: center; text-align: center; }
.w-hero > div:first-child { flex: none; width: 100%; align-items: center; }
.w-hero h1 { max-width: 900px; text-wrap: balance; }
.w-hero p { max-width: 40em; text-wrap: pretty; }
.w-hero .w-inv-cta { flex: none; width: 100%; }
/* BH_HDR_FIT п.3: фильтр — список сверху/слева, белая кнопка «Отфильтровать» после него (было: оранжевая на всю ширину над списком) */
.w-cats-dd .w-cats-go { order: 0; }
form.w-cats-dd.wrap { flex-direction: row; flex-wrap: wrap; align-items: stretch; justify-content: center; max-width: 640px; }   /* главная: список слева, кнопка справа, одной высоты */
form.w-cats-dd.wrap > .w-dd { flex: 1 1 240px; width: auto; max-width: none; }
form.w-cats-dd.wrap > .w-cats-go { flex: 0 0 auto; width: auto; min-height: 50px; height: 50px; padding: 0 26px; }
.c-side .w-cats-dd .w-cats-go, .w-cat-side .w-cats-go { min-height: 46px; }
/* BH_HDR_FIT п.4: «Спросить Еню» не закрывает ссылки. <1024 — круглая 🦝 56 px в углу, у заголовков разделов справа место под неё;
   ≥1024 — таблетка по правой линии сетки (BH_FAB ниже). Подпись остаётся для экранного диктора. */
@media (max-width: 1023px) {
  body.white > .enya-btn, body.white .enya-btn.bh-top { width: 56px !important; height: 56px !important; min-height: 56px !important; padding: 0 !important; justify-content: center; font-size: 0 !important; gap: 0; border-radius: 50% !important; }
  body.white > .enya-btn::before, body.white .enya-btn.bh-top::before { content: "🦝"; font-size: 28px; line-height: 1; }
  .white .w-sec-head { padding-right: 68px; }
}
@media (min-width: 761px) and (max-width: 1023px) { body.white > .enya-btn { right: 12px !important; bottom: 12px !important; } }
/* BH_FAB (11.11): компьютер ≥1024 — кнопка профиля не в шапке, а плавающая внизу слева (левый край = левая линия сетки,
   на одной вертикали с логотипом), «Спросить Еню» — внизу справа по правой линии сетки (вертикаль корзины). Обе — тёмные таблетки 46 px.
   Край сетки: .wrap max-width 1280 + 24 px; у fixed 100% = ширина окна без полосы прокрутки — совпадает с сеткой без JS.
   Покачивание при прокрутке — static/fab.js (translate, requestAnimationFrame). Телефон и планшет <1024 — профиль в шапке, как был. */
@media (min-width: 1024px) {
  .w-top .top-row .w-login { position: fixed; z-index: 60; left: max(24px, calc((100% - 1280px) / 2 + 24px)); right: auto; bottom: 20px; top: auto;
    height: 46px; min-height: 46px; padding: 0 18px 0 7px; gap: 9px; font-size: 15px; background: var(--ink); box-shadow: 0 6px 20px rgba(46, 26, 71, .35); }
  .w-top .top-row .w-login:not(:has(img)) { padding-left: 18px; }
  .w-top .top-row .w-login img { width: 32px; height: 32px; }
  .w-top .top-row .w-login > span.w-login-rate { display: inline-flex; }
  .w-top .w-login-rate .w-rbox, .w-top .w-login-rate .w-rbox b { color: #FFC83D; }
  .w-top .w-login-rate .w-rbox { border-color: rgba(255, 200, 61, .6); font-size: 12.5px; padding: 2px 7px; }
  body.white > .enya-btn { left: auto !important; right: max(24px, calc((100% - 1280px) / 2 + 24px)) !important; bottom: 20px !important;
    height: 46px; min-height: 46px !important; padding: 0 18px !important; font-size: 15px !important; background: var(--ink) !important; border-radius: 999px !important; box-shadow: 0 6px 20px rgba(46, 26, 71, .35) !important; }
  body.white > .enya-btn:hover, .w-top .top-row .w-login:hover { background: var(--navy) !important; }
  /* не закрывают контент: справа у заголовков разделов место под Еню, внизу страницы — запас под высоту кнопок */
  .white .w-sec-head { padding-right: calc(var(--bh-enya-w, 170px) + 16px); }
  .white .w-foot { padding-bottom: 76px; }
  .white .w-main { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { body.white > .enya-btn, .w-top .w-login { translate: none !important; rotate: none !important; scale: none !important; } }
/* BH_SALE_LOCK (11.11): на аукционе блок «Акция» не исчезает — серый, переключатель выключен, нажать нельзя */
.w-tool.is-off { background: #F3F4F6; border-color: #E3E6EA; }
.w-tool.is-off > summary { pointer-events: none; cursor: not-allowed; }
.w-tool.is-off > summary b { color: #8A94A0; }
.w-tool.is-off > summary small { color: #6B7480; font-weight: 600; }
.w-tool.is-off .w-switch, .w-tool-sale.is-off .w-switch.on { background: #D5DCE1 !important; opacity: .7; }
.w-tool.is-off .w-switch::after { left: 3px; }
/* BH_WA_LOGIN (11.11): вход через WhatsApp — зелёная кнопка как у Telegram; код крупно */
.btn-wa, .white .btn-wa { background: #25D366; border-color: #25D366; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-wa:hover, .white .btn-wa:hover { color: #fff; filter: brightness(1.05); }
.btn-wa svg { flex: none; }
.wa-code { margin: 0; font: 700 30px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.wa-code-label { margin: 0 0 -10px; font-size: 14px; opacity: .7; }
.login-agree { margin: 4px 0 0; font-size: 13px; opacity: .75; }
/* BH_WA_NOTIFY: «Подписаться» в блоке «Получать оповещения на:» */
.nt-subs .nt-sub { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 4px 0; }
.nt-subs .nt-sub > .w-btn { align-self: center; }   /* 11.11 Дима: кнопки по центру */
.nt-subs .nt-sub .nt-note { display: block; padding-left: 30px; }
/* BH_TG_CHANNEL (11.11): «Подписаться на KisKis в Telegram» — голубая плашка рядом с «Приведи друга» */
.w-tg-cta { flex: 1 1 100%; margin: 12px 0 0; text-align: center; }
.w-tg-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border-radius: 999px; background: linear-gradient(180deg, #2AABEE 0%, #229ED9 100%); color: #FFFFFF !important; text-decoration: none; text-align: center; box-shadow: 0 6px 18px -8px rgba(34, 158, 217, .35); }   /* BH_TG_BTN (11.11, Дима): фирменный цвет Telegram, белый текст, всё по центру; размер/скругление/отступы прежние */
.w-tg-cta a:hover { background: #1E8FC6; }
.w-tg-cta svg { flex: none; color: #FFFFFF; fill: currentColor; }
.w-tg-cta b { display: block; font-size: 16px; font-weight: 800; line-height: 1.2; color: #FFFFFF; text-align: center; }
.w-tg-cta small { display: block; font-size: 13px; line-height: 1.3; color: #FFFFFF; opacity: .85; text-align: center; }
@media (max-width: 479px) {   /* BH_TG_BTN: на телефоне заголовок в 2 строки — самолётик в начале первой строки, иконка и текст по центру вместе */
  .w-tg-cta a { display: block; line-height: 1.2; }
  .w-tg-cta a > span, .w-tg-cta b { display: inline; }
  .w-tg-cta svg { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }
}
.nt-subs .w-tg-cta, .w-sell .w-tg-cta { text-align: center; margin: 4px 0 8px; }   /* 11.11 Дима: кнопки по центру */
/* BH_SELL_HOW (11.11): «Как это работает» на загрузке вещи */
.w-sell-how { margin: 4px 0 18px; padding: 16px 18px; border-radius: 16px; background: #F4F0FA; }
.w-sell-how ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.w-sell-how li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.w-sell-how li > span:first-child { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #2B2118; color: #fff; font-weight: 800; font-size: 14px; }
.w-sell-how li b { color: #2B2118; }
/* 11.11 Дима: «центруй кнопки» — панель входа через WhatsApp/бота: кнопки и код по центру */
#loginwait { align-items: center !important; text-align: center; }
#loginwait .btn { align-self: center; }

/* BH_LOGIN_BTNS (11.11, просьба Димы): все кнопки входа одного размера и шрифта; порядок WhatsApp → Telegram → Facebook → Google; на Facebook белый текст */
.login-providers > .btn, .white .login-providers > .btn { width: 100%; max-width: 320px; min-height: 52px; height: 52px; padding: 0 20px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap; }
.login-providers > .btn svg { flex: none; width: 20px; height: 20px; }
.btn-facebook, .white .btn-facebook, .white .btn-facebook:hover, .white .btn-facebook:visited { background: #1877f2; border-color: #1877f2; color: #fff !important; }
.white .btn-facebook:hover { background: #166fe5; border-color: #166fe5; }
.white .login-providers .btn-tg, .white .login-providers .btn-tg:hover { color: #fff !important; }
.white .btn-google { background: #fff; border-color: #747775; color: #1f1f1f !important; }

/* BH_CONTACT_MASK: маска контакта и «Показать» */
.ct { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ct-show { font: inherit; font-size: 14px; padding: 2px 10px; min-height: 28px; border: 1.5px solid var(--ink, #2B2118); border-radius: 999px; background: #fff; color: var(--ink, #2B2118); cursor: pointer; }
.ct-show:disabled { opacity: .6; cursor: default; }
.ct-grey { opacity: .4; filter: grayscale(1); }

/* BH_TERMS: соглашение и плашка «Мы обновили соглашение» */
.terms.page { gap: 0; }
.terms p, .terms ul, .terms ol { margin: 0 0 12px; }
.terms h1 { margin: 0 0 8px; }
.terms h2 { margin: 28px 0 10px; scroll-margin-top: 90px; }
.terms .terms-anchor { display: block; position: relative; top: -90px; visibility: hidden; }
.login-agree { text-align: center; color: var(--muted, #6b6577); font-size: 14px; }
.w-terms-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0; padding: 9px 16px; background: #FFF4D6; color: #2B2118; font-size: 15px; text-align: center; border-bottom: 1px solid #F3D98B; }
.w-terms-bar button { border: 2px solid #2B2118; border-radius: 999px; padding: 5px 16px; background: #fff; color: #2B2118; font: inherit; font-weight: 700; cursor: pointer; }

/* BH_LOGO (11.11): логотип «Ценник» (static/brand). Высота 44 px на ПК, 34 px на экранах < 1024 px (там — без подписи). */
.w-logo .w-brand { display: block; line-height: 0; }
.w-logo .w-brand img { display: block; width: auto; height: 58px; max-width: none; }
.w-foot .w-logo { margin-bottom: 4px; }
.w-foot .w-logo .w-brand img { height: 64px; }
.a-logo .w-brand img { height: 34px; }
@media (max-width: 1023px) {
  .w-top .w-logo .w-brand img { height: 46px; }
}
/* BH_SOCIAL (11.11): иконки Facebook / Instagram / Telegram в подвале — цвет сайта, зона нажатия 44px */
.w-foot .foot-social { display: flex; justify-content: center; gap: 12px; padding: 4px 0 14px; }
.w-foot .foot-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: var(--paper); border: 1px solid var(--line); transition: background .15s, color .15s; }
.w-foot .foot-social a:hover, .w-foot .foot-social a:focus-visible { background: var(--ink); color: var(--paper); }

/* BH_COND_QTY (11.11): состояние и «В наличии N шт.» одной строкой на странице вещи */
.w-condrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 8px 0; }
.w-condrow .w-ctags { margin: 0; }
.w-condrow .w-stock { font-size: 15px; }
.w-condrow .w-stock b { font-size: 20px; }

/* BH_CARD_QTY (11.11): в карточке сетки — [5 шт.] [Б/у] одной строкой; плашка количества как плашка состояния, свой цвет */
.w-card .w-ctags-sm { gap: 6px; }
.w-card .w-ctag { white-space: nowrap; }
.w-ctag-qty { background: #FFF1E0; color: #C25E00; }
.w-card .w-ctags-sm .w-ctag-qty { font-weight: 500; }
.w-ctag-qty b { font-weight: 800; }

/* BH_BUNDLE «🎁 Комплект дня» — по образцу Димы 11.11 (komplekt-mobile): кремовый блок, оранжевая плашка с таймером, карточки с пастельным фоном фото, «+» на стыках, фиолетовая кнопка */
.bnd { --gx: 28px; --gy: 22px; box-sizing: border-box; min-width: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 28px 22px; border-radius: 24px; background: #FFF9F0; border: 1px solid #FFD8B5; text-align: center; }
.bnd .bnd-pill { align-self: stretch; font-family: inherit; text-transform: none; margin: 0; padding: 11px 18px; border-radius: 999px; background: #FF8A00; color: #fff; font-size: 16px; font-weight: 800; line-height: 1.25; letter-spacing: 0; }
.bnd-timer { font-weight: 600; white-space: nowrap; }
.bnd-timer b { font-weight: 800; font-variant-numeric: tabular-nums; }
.bnd .bnd-t { margin: 6px 0 0; font-size: 34px; line-height: 1.15; font-weight: 900; color: #2B2118; letter-spacing: -.3px; }
.bnd-txt { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.45; color: #7A6B8F; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bnd-mark { margin: 0; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; background: #E9E9EC; color: #44444F; }
.bnd-mark-sold { background: #DDF3E4; color: #14532D; }
.bnd-mark-broken { background: #FDE2E2; color: #8A1C1C; }
.bnd-grid { display: flex; justify-content: center; align-items: stretch; gap: var(--gx); width: 100%; margin-top: 8px; }
.bnd-card { position: relative; container-type: inline-size; flex: 1 1 0; min-width: 0; max-width: 200px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 8px 12px; border-radius: 18px; background: #fff; border: 1px solid #E8DDF6; color: #2B2118; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.bnd-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -12px rgba(90,45,156,.45); color: #2B2118; }
.bnd-card:focus-visible { outline: 3px solid #5A2D9C; outline-offset: 2px; }
.bnd-pic { width: 100%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: #F1EAFB; }
.bnd-c1 .bnd-pic { background: #E3F6EE; } .bnd-c2 .bnd-pic { background: #FFEBDD; } .bnd-c3 .bnd-pic { background: #E4F0FB; } .bnd-c4 .bnd-pic { background: #FFF5D6; } .bnd-c5 .bnd-pic { background: #FCE7F1; }
.bnd-pic img { max-width: 86%; max-height: 86%; object-fit: contain; mix-blend-mode: multiply; }   /* белый фон фото сливается с пастелью */
.bnd-emoji { font-size: 44px; line-height: 1; }
.bnd-name { flex: 1 1 auto; min-height: 2.5em; font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bnd-price { font-size: 17px; font-weight: 900; color: #2B2118; }   /* имя тянется — цены всех карточек на одной линии */
.bnd-plus { position: absolute; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #FF8A00; color: #fff; font-size: 22px; font-weight: 900; line-height: 1; box-shadow: 0 0 0 3px #FFF9F0, 0 3px 8px rgba(255,138,0,.4); pointer-events: none; }
.bnd-plus-d, .bnd-plus-m { left: calc(-1px - var(--gx) / 2 - 15px); top: calc(8px + 50cqw - 15px); }   /* на стыке с левой карточкой, на уровне середины фото */
.bnd-plus-m, .bnd-plus-row { display: none; }
.bnd-sum { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px; }
.bnd-old { font-size: 15px; color: #8A8494; }
.bnd-old s { color: #8A8494; }
.bnd-new { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; font-size: 16px; color: #2B2118; }
.bnd-new b { font-size: 38px; font-weight: 900; letter-spacing: -.5px; line-height: 1.1; }
.bnd-save { padding: 4px 12px; border-radius: 999px; background: #1E8E4A; color: #fff; font-weight: 800; font-size: 15px; }
.bnd-buy { width: 100%; max-width: 520px; margin: 4px 0 0; }
.bnd .bnd-btn { width: 100%; min-height: 58px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #7A4BC4 0%, #5A2D9C 100%); color: #fff !important; font-size: 18px; font-weight: 800; box-shadow: 0 12px 26px -10px rgba(90,45,156,.6); }
.bnd .bnd-btn:hover { background: linear-gradient(135deg, #6B3DB4 0%, #4C2386 100%); }
.bnd-note { margin: 0; font-size: 13px; color: #8A8494; }
.bnd-all { font-size: 14px; font-weight: 700; color: #5A2D9C; }
/* BH_DOD_SHARE: «Поделиться» в Комплекте дня — по центру, меню под кнопкой */
.bnd-share { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bnd .bnd-share-btn { background: #fff; border: 2px solid #5A2D9C; box-shadow: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; border-color: #5A2D9C; color: #5A2D9C !important; font-weight: 800; }
.bnd .bnd-share-btn:hover, .bnd .bnd-share-btn[aria-expanded="true"] { background: #F3ECFF; }
.bnd .bnd-share-btn.is-press { color: #fff !important; }   /* BH_BTN_RULE: зелёная вспышка нажатия — текст белый */
.bnd-share-menu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; min-width: 220px; padding: 6px; border-radius: 16px; background: #fff; border: 1px solid #E4DAF2; box-shadow: 0 14px 34px -12px rgba(46,26,71,.35); text-align: left; }
.bnd-share-menu[hidden] { display: none; }
.bnd-sh-i { display: block; width: 100%; padding: 11px 14px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: #2B2118; text-align: left; text-decoration: none; cursor: pointer; }
.bnd-sh-i:hover, .bnd-sh-i:focus-visible { background: #F3ECFF; outline: none; }
.bnd-share-ok { min-height: 0; font-size: 13px; font-weight: 700; color: #1E8E4A; }
.bnd-share-ok:empty { display: none; }
.w-bundle-off .bnd-grid { opacity: .55; filter: grayscale(1); }
@media (max-width: 760px) {
  .bnd { --gx: 18px; --gy: 22px; padding: 12px 12px 18px; gap: 12px; }
  .bnd .bnd-pill { font-size: 13px; padding: 10px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @media (max-width: 340px) { .bnd .bnd-pill { white-space: normal; } }
  .bnd .bnd-t { font-size: 27px; }
  .bnd-txt { font-size: 15px; }
  .bnd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gy) var(--gx); }
  .bnd-card { max-width: none; }
  .bnd-solo { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--gx) / 2); }
  .bnd-plus-d { display: none; }
  .bnd-plus-m { display: grid; }
  .bnd-plus-row { display: grid; top: calc(-1px - var(--gy) / 2 - 15px); left: calc(100% + 1px + var(--gx) / 2 - 15px); }   /* на стыке рядов, по центру сетки */
  .bnd-solo .bnd-plus-row { left: calc(50% - 15px); }
  .bnd-new b { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .bnd-card { transition: none; } .bnd-card:hover { transform: none; } }
.w-bundle-badge { margin: 6px 0; }
.w-bundle-badge-a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #FFF1E0; color: #C25E00; font-weight: 800; font-size: 14px; text-decoration: none; }
.w-bundle-badge-a:hover, .w-bundle-badge-a:focus-visible { text-decoration: underline; }
.w-bundles-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.w-bundles-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 rgba(46,26,71,.06), 0 4px 14px rgba(46,26,71,.06); }
.w-bundles-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.w-bundles-pics img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.w-bundles-mark { position: absolute; top: 10px; left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: #E9E9EC; color: #44444F; }
.w-bundles-meta { font-size: 13px; color: var(--muted); }
.w-bundle-ok-hint { display: block; margin-top: -6px; color: var(--muted); font-size: 13px; }
.cart-bundle { display: flex; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: #FFF1E0; color: #8A4300; font-weight: 700; }
.cart-bundle-warn { display: block; margin-top: 4px; color: #8A4300; font-size: 13px; }
.cart-bundle-back { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 10px 0; padding: 10px 14px; border-radius: 14px; background: #FFF1E0; text-align: center; }
.a-bundle { margin: 18px 0; padding: 14px 16px; border-radius: 16px; border: 1px solid #E6E6EA; }
.a-bundle-live { border-color: #9BD3AE; background: #F4FBF6; }
.a-bundle-draft { border-color: #F3D9A0; background: #FFFBF0; }
.a-bundle-st { font-size: 14px; color: var(--muted); }
.a-bundle-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.a-bundle-btns form, .a-bundle-repl { display: inline-flex; gap: 6px; margin: 0; }
.a-bundle-repl input { width: 140px; }
.a-bundle-regen { margin: 10px 0 0; }

/* BH_PRICE_UP (11.11, Дима): цена сразу под названием — крупно, жирно, слева; плашки состояния следом в той же строке, на узком экране — под ценой */
.w-pricecond { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 4px 0 10px; }
.w-pricecond .w-pricerow { margin: 0; }
.w-pricecond .w-condrow { margin: 0; }
.w-pricecond .w-bigprice { line-height: 1.05; }
.w-sale-till { margin: -6px 0 10px; font-size: 14px; color: var(--muted); }
.w-pricecond { align-items: flex-start; }
.w-pricecond .w-condrow { margin-top: 12px; }
@media (max-width: 760px) { .w-pricecond .w-condrow { margin-top: 0; } }

/* BH_SELL_GREEN (11.11, Дима): «Загрузить вещь» на главной — всегда зелёная, при нажатии белеет (зелёная рамка и текст) */
.w-btn.w-btn-sellg { background: #1E8E4A; border-color: #1E8E4A; color: #fff !important; transition: background .15s, border-color .15s, color .15s; }
.w-btn.w-btn-sellg:hover { background: #197A3F; border-color: #197A3F; }
.w-btn.w-btn-sellg:active, .w-btn.w-btn-sellg.is-press, .w-btn.w-btn-sellg.is-flash-ok { background: #fff !important; border-color: #1E8E4A !important; color: #1E8E4A !important; }
.w-btn.w-btn-sellg.is-press *, .w-btn.w-btn-sellg.is-flash-ok * { color: #1E8E4A !important; }

/* BH_HOME_CENTER (11.11, Дима): на главной заголовки разделов — по центру (правило центровки сайта), телефон и ПК.
   «Аукционы сейчас / Акции / Свежие вещи»: заголовок по центру, одна ссылка «Все …» — по центру под ним; «Как купить» — по центру;
   тёмный блок «Загрузить вещь» — заголовок, текст и кнопки по центру. Справа место под «Спросить Еню» у центрованных не нужно. */
.white .w-sec-head.w-sec-head-c { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding-inline: 0; }
.white .w-sec-head.w-sec-head-c h2 { margin-bottom: 0; }
.white .w-sec-head.w-sec-head-c + * { margin-top: 16px; }
.white #how > h2 { text-align: center; }
.w-sellband.w-sellband-c { flex-direction: column; justify-content: center; text-align: center; }
.w-sellband.w-sellband-c p { margin-left: auto; margin-right: auto; }
.w-sellband.w-sellband-c .w-hero-btns { justify-content: center; }

/* BH_CATS_DD_CENTER (11.11, Дима): «Все категории» на главной — текст по центру, стрелка справа (телефон и ПК) */
form.w-cats-dd.wrap .w-dd-sum { justify-content: center; padding: 0 44px; }
form.w-cats-dd.wrap .w-dd-txt { flex: 0 1 auto; text-align: center; }

/* BH_BUNDLE_FULLTXT (12.11, ТЗ п.2): текст «Комплекта дня» на главной — целиком, без обрезки «…» (было 2 строки) */
.bnd-txt { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* BH_COIN_SWING (12.11, v2): монетка KIS в плашке курса в шапке — два движения по очереди, цикл 10 с, бесконечно:
   «монета» — оборот вокруг вертикальной оси (rotateY 360°) с разгоном и торможением, обратно −360°; пауза;
   «часы» — по часовой 360° (rotateZ) с разгоном и торможением, пауза, обратно против часовой; пауза.
   Во всех кадрах одинаковый список функций (perspective rotateY rotateZ) — углы интерполируются как числа.
   Крутится только картинка монетки по своему центру; transform не влияет на раскладку — плашка и текст курса не двигаются.
   При «уменьшить движение» в системе анимации нет. */
@keyframes bhm-coin {
  0%   { transform: perspective(300px) rotateY(0deg)   rotateZ(0deg);   animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  18%  { transform: perspective(300px) rotateY(360deg) rotateZ(0deg); }
  22%  { transform: perspective(300px) rotateY(360deg) rotateZ(0deg);   animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  40%  { transform: perspective(300px) rotateY(0deg)   rotateZ(0deg); }
  50%  { transform: perspective(300px) rotateY(0deg)   rotateZ(0deg);   animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  68%  { transform: perspective(300px) rotateY(0deg)   rotateZ(360deg); }
  72%  { transform: perspective(300px) rotateY(0deg)   rotateZ(360deg); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  90%  { transform: perspective(300px) rotateY(0deg)   rotateZ(0deg); }
  100% { transform: perspective(300px) rotateY(0deg)   rotateZ(0deg); }
}
.w-top .w-bh-ratea .w-bh-coin img.bhm-c { animation: bhm-coin 10s infinite; transform-origin: 50% 50%; backface-visibility: visible; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .w-top .w-bh-ratea .w-bh-coin img.bhm-c { animation: none; will-change: auto; }
}

/* BH_CATS_DD_CENTER_CAT (12.11, Дима): «Все категории» в фильтре каталога («Все ряды») — текст по центру, стрелка справа, как BH_CATS_DD_CENTER на главной */
form.w-cats-dd.w-cat-side .w-dd-sum { justify-content: center; padding: 0 44px; }
form.w-cats-dd.w-cat-side .w-dd-txt { flex: 0 1 auto; text-align: center; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.15; }   /* узкая колонка на ПК: не влезает в строку — 2 строки по центру, не «…» */
/* BH_MEILI (12.11): подсказки при вводе в поиске */
.w-search { position: relative; }
.w-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); }
.w-suggest[hidden] { display: none; }
.w-suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.w-suggest a:hover, .w-suggest li[aria-selected="true"] a { background: var(--soft); }
.w-suggest-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.w-suggest-price { flex: none; font-weight: 700; }

/* BH_WA_CONTACT (13.11): WhatsApp Ени в подвале */
.w-wa { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; }
.w-wa-num { font-weight: 800; text-decoration: none; font-variant-numeric: tabular-nums; }
.w-wa-btn { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff !important; font-weight: 700; font-size: 14px; line-height: 1.25;
  padding: 9px 14px; border-radius: 999px; text-decoration: none; box-shadow: 0 2px 8px rgba(37,211,102,.3); }
.w-wa-btn:hover { background: #1EBE5A; }
.w-wa-btn svg { flex: none; }
.foot .w-wa-btn { color: #fff; }

/* BH_SELLER_NET (13.11): «Вы получите» под ценой — мелко серым; слишком низкая цена — красным */
.w-net, .w-form label .w-net { display: block; margin-top: 2px; color: #7D7889; font-size: 12.5px; font-weight: 400; line-height: 1.45; }
.w-net[hidden], .w-form label .w-net[hidden] { display: none; }
.w-net-l { display: block; }
.w-net-low, .w-form label .w-net-low { color: #C62828; font-weight: 600; }
.c-net { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.c-net-low { color: #C62828; font-weight: 600; }

/* BH_BUNDLE_OPT (13.11): переключатель «🎁 Спецпредложения» в «Управлении вещью» */
.w-tool-bundle .w-switch.on { background: var(--orange); }

/* BH_BTN_ALL (13.11): любая кнопка действия — нажатие ощущается (80–120 мс), успех зелёный у всех цветов, подтверждение на странице */
.w-btn, .btn, .w-chip-btn, button[type=submit], input[type=submit] { transition: transform .1s ease-out, filter .1s ease-out, background-color .2s, border-color .2s, color .2s; }
.w-btn:active:not(:disabled), .btn:active:not(:disabled), .w-chip-btn:active:not(:disabled), button[type=submit]:active:not(:disabled), input[type=submit]:active:not(:disabled) { transform: scale(.97); filter: brightness(.92); }
@media (prefers-reduced-motion: reduce) { .w-btn:active, .btn:active, .w-chip-btn:active, button[type=submit]:active, input[type=submit]:active { transform: none; } }
.w-btn-main.is-flash-ok, .w-btn-dark.is-flash-ok, .w-btn-orange.is-flash-ok, .w-btn-purple.is-flash-ok { background: #1E8E4A !important; border-color: #1E8E4A !important; color: #fff !important; }
.bh-ask { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #FDE3E0; color: #8A1C12; font-weight: 600; font-size: 14px; animation: bhask .15s ease-out; }
.bh-ask .w-btn { min-height: 0; padding: 7px 14px; font-size: 14px; }
.bh-ask .bh-ask-yes { background: #C62828; border-color: #C62828; color: #fff; }
@keyframes bhask { from { opacity: 0; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .bh-ask { animation: none; } }
/* BH_BTN_ALL: подсказки «Кому» — аватар, имя, #ID, контакты маской */
.wf-list li:not(.wf-none) { display: flex; align-items: center; gap: 10px; }
.wf-av { flex: none; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #EDE6F6; color: #2E8B57; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.wf-tx { min-width: 0; overflow-wrap: anywhere; }
.w-wallet-adm .wf-wrap { grid-column: 1 / -1; }   /* BH_BTN_ALL: «Кому» на всю строку — подсказка влезает целиком */
.w-wallet-adm input[data-wfind] { width: 100%; min-width: 0; text-overflow: ellipsis; }
.w-wallet-recent td small { color: var(--muted); }

/* BH_SELL_RULES (ТЗ 13.11 ч.B): форма «Публикация в 2 касания» — плашка правил по центру, количество без красной рамки, «Есть нюансы» открывает поле плавно */
.w-sell-rules { margin: 4px 0 18px; padding: 16px 18px; border-radius: 16px; background: #F4F0FA; text-align: center; font-size: 16px; line-height: 1.5; }
.w-sell-rules p { margin: 0; }
.w-sell-rules .w-sell-rules-h { margin-bottom: 6px; font-size: 17px; }
.w-sell-rules a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.w-sell2 .w-qty input::placeholder { color: var(--muted); }
.w-sell2 .w-hint { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.w-sell2 .w-nu { display: grid; gap: 8px; }
.w-form .w-nu-on { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; width: fit-content; }
.w-nu-on input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink, #2B2118); }
.w-nu-box { display: grid; grid-template-rows: 1fr; }
.w-nu.is-js .w-nu-box { transition: grid-template-rows .22s ease-out, opacity .22s ease-out, visibility .22s; }
.w-nu.is-js:not(.is-on) .w-nu-box { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.w-nu-in { min-height: 0; overflow: hidden; padding: 4px; margin: -4px; }   /* отступ — чтобы рамка фокуса не обрезалась */
@media (prefers-reduced-motion: reduce) { .w-nu.is-js .w-nu-box { transition: none; } }
.w-contacts-warn { margin: 0; padding: 10px 14px; border-radius: 12px; background: #FFF4E5; color: #8A4B00; font-size: 14px; text-align: center; }
.w-contacts-warn[hidden] { display: none; }
.w-contacts-warn a { color: inherit; font-weight: 700; }
.w-sell2 #sell-go { justify-self: center; }

/* BH_ASK_YES (13.11, Дима): «Да / Jā / Yes» в подтверждении — белый жирный текст на красном (было #B3261E от .w-btn-danger на #C62828 — не видно).
   После нажатия «Да» сам показывает «…» → зелёная #1E8E4A «✓ Удалено» → переход (flash-ok.js). Так во всех подтверждениях сайта и админки. */
.bh-ask .bh-ask-yes, .bh-ask .bh-ask-yes.w-btn-danger, .bh-ask .bh-ask-yes:hover, .bh-ask .bh-ask-yes:focus-visible { color: #fff !important; font-weight: 700; }
.bh-ask .bh-ask-yes:not(.is-flash-ok):not(.is-flash-bad) { background: #C62828 !important; border-color: #C62828 !important; }
.bh-ask .bh-ask-yes:not(.is-flash-ok):not(.is-flash-bad):hover { background: #A61F1F !important; border-color: #A61F1F !important; }
.bh-ask .bh-ask-yes.is-busy { opacity: 1; }
.bh-ask .bh-ask-yes.is-flash-ok { background: #1E8E4A !important; border-color: #1E8E4A !important; }
.bh-ask .bh-ask-yes * { color: #fff !important; }

/* BH_BUNDLE_GEN (14.11): /bundles — кнопка владельца, черновики, комплекты одного дня в одной ячейке */
.w-bundles-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 18px; }
.w-bundles-tools form { margin: 0; }
.w-bundles-gen { margin: 0; flex-basis: 100%; }
.w-bundle-mark-draft { background: #FFF1E0; color: #C25E00; }
.w-bundles-card.is-draft { outline: 2px dashed #FFB766; outline-offset: -2px; }
.w-bundles-in { display: flex; flex-direction: column; gap: inherit; color: inherit; text-decoration: none; }
.w-bundles-pub { margin: 2px 0 0; }
.w-bundles-pub .w-btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
.w-bundles-pair { display: grid; grid-template-rows: repeat(var(--n, 2), 1fr); gap: 10px; min-width: 0; }
.w-bundles-card.is-mini { gap: 4px; padding: 10px 12px; border-radius: 14px; min-width: 0; }
.w-bundles-card.is-mini .w-bundles-pics { grid-template-columns: repeat(6, 1fr); gap: 4px; }
.w-bundles-card.is-mini .w-bundles-t { font-size: 14px; line-height: 1.25; }
.w-bundles-card.is-mini .w-bundles-meta { font-size: 12px; }
.w-bundles-card.is-mini .w-bundles-mark { top: 6px; left: 6px; padding: 1px 8px; font-size: 11px; }
.w-bundles-card.is-mini .w-bundles-pub .w-btn { min-height: 34px; padding: 0 14px; font-size: 14px; }
@media (max-width: 760px) {
  /* правило кнопок: одна в ряду — кнопка и текст по центру */
  .w-bundles-tools { justify-content: center; text-align: center; }
  .w-bundles-tools form, .w-bundles-pub { display: flex; justify-content: center; width: 100%; }
  .w-bundles-tools .w-btn, .w-bundles-pub .w-btn { justify-content: center; text-align: center; }
}
/* BH_BUNDLE_GEN2 (14.11, Дима): «Сгенерировать комплект» — без заливки, чёрный текст; при нажатии 2 с зелёная #1E8E4A с белым «✓ Готово!» (общие is-press / is-flash-ok) */
.w-btn.w-bundles-genbtn { background: transparent; border-color: #1A1A1A; color: #000 !important; }
.w-btn.w-bundles-genbtn:hover { background: rgba(0,0,0,.04); }
/* BH_NET_BOLD (14.11, Дима): «Вы получите» — сумма продавцу жирно и темнее */
.w-net .w-net-sum, .w-form label .w-net .w-net-sum { color: var(--ink); font-weight: 800; font-size: 14px; }
.w-net-low .w-net-sum { color: inherit; }
/* BH_SELL_V2 п.1 (14.11): плашка — жирная строка крупно, красная строка #B3261E (контраст 5,9 на #F4F0FA) */
.w-sell-rules .w-sell-rules-h { font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.w-sell-rules .w-sell-rules-red { margin-top: 8px; color: #B3261E; font-weight: 700; }
.w-sell-rules .w-sell-rules-red a { color: inherit; }
/* BH_SELL_PK (14.11): «Готов отдать лично» в /sell — поля города и места видны только с галочкой (без JS, :has) */
.w-pk-sell { display: grid; gap: 8px; }
.w-pk-box { display: grid; gap: 8px; }
.w-pk-sell:not(:has(input[name="pickup_allowed"]:checked)) .w-pk-box { display: none; }
/* BH_SELLBAR (ТЗ v2 п.6, 15.11): карточки «Обрабатываю…» — тонкая фиолетовая полоса с бегущим бликом */
a.w-sellbar.w-sb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink); text-decoration: none; }
.w-sb .w-sb-t { flex: 1 1 auto; min-width: 0; }
.w-sb .w-sb-pct { font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-sb .w-sb-go { font-weight: 800; }
.w-sb .w-sb-bar { position: relative; flex: 1 0 100%; height: 8px; border-radius: 999px; background: #D9D2EA; overflow: hidden; }
.w-sb .w-sb-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #2E8B57; transition: width .25s linear; overflow: hidden; }
.w-sb .w-sb-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: w-sb-glint 1.6s linear infinite; }
@keyframes w-sb-glint { to { transform: translateX(100%); } }
.w-sb .w-sb-l { flex: 1 0 100%; font-size: 13px; font-weight: 500; color: var(--muted); min-height: 1em; }
.w-sb.is-done .w-sb-bar i { background: #1E8E4A; }
.w-sb.is-done .w-sb-pct { color: #1E8E4A; }
.w-sb.is-bad .w-sb-bar i { background: #B3261E; }
.w-sb.is-bad .w-sb-pct, .w-sb.is-bad .w-sb-l { color: #B3261E; }
.w-sb.is-done .w-sb-bar i::after, .w-sb.is-bad .w-sb-bar i::after { display: none; }
@media (prefers-reduced-motion: reduce) { .w-sb .w-sb-bar i::after { display: none; } .w-sb .w-sb-bar i { transition: none; } }
/* BH_PROFILE_FIT (ТЗ 13.11 2б): страница пользователя на телефоне не шире экрана (iPhone: плашка модератора, e-mail + «Показать», сетки).
   Заменяет временную заплатку 13.11 19:29 (html,body overflow-x:hidden — ломала липкую шапку на ПК). */
.white .page { overflow-x: clip; }   /* страховка, не вместо исправлений ниже */
.profile-head > *, .profile-head h1 { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.white .w-wallet-line { overflow-wrap: anywhere; }
.pw-gift > summary, #bhmod > summary { box-sizing: border-box; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; justify-content: center; height: auto; }
#bhmod > summary { display: flex; width: 100%; padding-top: 8px; padding-bottom: 8px; }   /* плашка модератора — на всю ширину, текст переносится */
.pw-form { box-sizing: border-box; max-width: min(420px, 100%); min-width: 0; }
.pw-form label, .pw-form .pw-check { min-width: 0; overflow-wrap: anywhere; }
.pw-form input[type=text], .pw-form input[type=number] { box-sizing: border-box; width: 100%; min-width: 0; }
.pw-form .w-btn { max-width: 100%; white-space: normal; }
.pw-ladder li { box-sizing: border-box; min-width: min(150px, 100%); max-width: 100%; }
.pf-rows { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.pf-rows > div, .pf-rows dd { min-width: 0; max-width: 100%; }
.pf-rows .ct { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; max-width: 100%; min-width: 0; }
.pf-rows .ct-v { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 430px) { .pf-rows > div { flex-direction: column; align-items: flex-start; } .pf-rows .ct { flex-direction: column; align-items: flex-start; } }   /* e-mail, под ним «Показать» */
.minis { grid-template-columns: repeat(auto-fill, minmax(min(96px, 100%), 1fr)); }
.mini-cell, .mini-cell > * { min-width: 0; max-width: 100%; }
/* BH_PK_DEFAULT (15.11): «Оставить по умолчанию» — только при «Готов(а) отдать лично»; строка «заполнить местоположение» */
.w-pickup:not(:has(input[name="pickup_allowed"]:checked)) .w-pk-def, .w-pk-sell:not(:has(input[name="pickup_allowed"]:checked)) .w-pk-def { display: none; }
.w-pk-def { margin-left: 26px; font-size: 14px; }
.w-pk-loc { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.w-pk-loc a { font-weight: 700; }
.w-pk-sell:not(:has(input[name="pickup_allowed"]:checked)) .w-pk-loc { display: none; }
/* BH_GIFT (15.11): «Вещь в подарок за покупку» — метка на карточке, блоки на странице вещи, опция в «Управлении вещью», блок «Подарки» на главной (карточки вдвое меньше, без цены) */
.w-gift-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; font-size: 13px; color: var(--purple); }
.w-gift-tag b { font-weight: 800; white-space: nowrap; }
.w-gift-tag-pic { width: 26px; height: 26px; flex: none; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.w-gift-box { margin: 14px 0; padding: 14px 16px; border-radius: 16px; background: #F4F0FA; min-width: 0; }
.w-gift-box h2 { margin: 0 0 10px; font-size: 18px; }
.w-gift-box p { margin: 0 0 10px; }
.w-gift-row { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.w-gift-pic { width: 72px; height: 72px; flex: none; object-fit: contain; border-radius: 12px; background: #fff; }
.w-gift-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.w-gift-txt a { color: inherit; }
.w-gift-free { color: var(--green); font-weight: 800; }
.w-gift-price { font-size: 20px; font-weight: 800; }
.w-gift-go { display: flex; justify-content: center; margin-top: 12px; }
.w-gift-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.w-gift-pick legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.w-gift-list { display: grid; gap: 6px; max-height: 320px; overflow-y: auto; padding: 2px; }
.w-gift-opt { display: grid; grid-template-columns: auto 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.w-gift-opt:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.w-gift-opt span { min-width: 0; overflow-wrap: anywhere; }
.w-gift-opt b { white-space: nowrap; }
.w-gift-opt-pic { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.w-tool.is-off { opacity: .5; }
.w-tool.is-off > summary { cursor: not-allowed; pointer-events: none; }
.cart-gift { display: block; color: var(--purple); font-weight: 700; }
.l-gift span:first-child { color: var(--purple); }
.w-gifts .w-sec-head small { color: var(--muted); }
.w-gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(105px, 100%), 1fr)); gap: 20px 14px; }
.w-gcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: var(--ink); text-decoration: none; }
.w-gcard-pic { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: #fff; }
.w-gcard-pic img { width: 100%; height: 100%; object-fit: contain; }
.w-gcard-name { font-size: 13px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-gcard-for { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--muted); }
.w-gcard-for small { min-width: 0; overflow-wrap: anywhere; }
.w-gcard-mpic { width: 24px; height: 24px; flex: none; object-fit: contain; border-radius: 5px; border: 1px solid var(--line); background: #fff; }

/* BH_PROMO_OFFER (ТЗ 12.11 п.6): /me/promo — акция −10% для вещей, которые долго продаются */
.w-promo-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.w-promo-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid #eadfcf; border-radius: 10px; background: #fff; }
.w-promo-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.w-promo-txt small { color: #8A5A12; }
.w-promo-price s { color: #888; }
.w-promo-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.w-promo-one { text-align: center; margin: 16px 0; }
@media (max-width: 640px) { .w-promo-list li { grid-template-columns: 56px 1fr; } .w-promo-btns { grid-column: 1 / -1; justify-content: center; } }
/* BH_GIFT2 (15.11 п.1.1–1.2): выбор подарка — лента карточек во всю ширину «Управления вещью»; на телефоне листается пальцем; выбранная обведена */
.w-tools > .w-tool-wide[open] { grid-column: 1 / -1; }
.w-tool-gift .w-switch.on, .w-tool-gift .w-switch.open { background: #1E8E4A; }
.w-tool-gift .w-gift-pick { margin: 0 0 12px; }
.w-tool-gift .w-gift-pick legend { width: 100%; text-align: center; }
.w-tool-gift .w-gift-list { display: flex; gap: 12px; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.w-tool-gift .w-gift-opt { flex: 0 0 150px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; scroll-snap-align: start; text-align: left; position: relative; cursor: pointer; }
.w-tool-gift .w-gift-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.w-tool-gift .w-gift-opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.w-tool-gift .w-gift-opt:has(input:checked) { border-color: #1E8E4A; box-shadow: 0 0 0 2px #1E8E4A; }
.w-tool-gift .w-gift-opt:has(input:checked)::after { content: '✓'; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: #1E8E4A; color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.w-tool-gift .w-gift-opt-pic { width: 100%; height: 120px; aspect-ratio: auto; object-fit: contain; border-radius: 10px; background: #F6F7F9; display: grid; place-items: center; font-size: 36px; }
.w-tool-gift .w-gift-opt span { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.w-tool-gift .w-gift-opt b { font-size: 16px; }
.w-tool-gift .w-gift-cur { justify-content: center; margin: 0 0 12px; }
@media (max-width: 760px) { .w-tool-gift .w-gift-opt { flex-basis: 132px; } .w-tool-gift .w-gift-opt-pic { height: 100px; } }
.w-tool-gift .w-gift-pick { grid-column: 1 / -1; min-width: 0; width: 100%; }
.w-tool-wide .w-form > .w-btn { justify-self: center; width: min(100%, 320px); }
.w-tool-gift .w-gift-opt span { color: var(--ink); font-weight: 600; }
.w-tool-gift .w-gift-opt b { color: var(--ink); }
/* BH_ITEMCTL (ТЗ 15.11 п.2): «Управление вещью» — все переключатели слева и одинаково: переключатель | заголовок, под заголовком короткий текст;
   одинаковые блоки; включённый — зелёная дорожка #1E8E4A, выключенный — серая; «Сохранить» только после изменения (static/itemctl.js) */
.w-tools { gap: 14px; align-items: start; }
.w-tools > .w-tool { box-sizing: border-box; min-width: 0; padding: 14px 16px; border-radius: 18px; text-align: left; }
.w-tool > summary, .w-tool-bh .w-bh-toggle > button, .w-tool-bh div.w-bh-toggle {
  display: grid !important; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; justify-content: stretch; justify-items: start; text-align: left; min-height: 56px; }
.w-tool > summary .w-switch, .w-tool-bh .w-bh-toggle .w-switch { grid-column: 1; grid-row: 1 / span 2; align-self: center; flex: none; }
.w-tool > summary b, .w-tool-bh .w-bh-toggle b { grid-column: 2; grid-row: 1; justify-content: flex-start; text-align: left; font-size: 17px; line-height: 1.25; }
.w-tool > summary small, .w-tool-bh .w-bh-toggle small { grid-column: 2; grid-row: 2; padding-left: 0; text-align: left; flex-basis: auto; font-size: 14px; line-height: 1.35; color: var(--muted); }
.w-tool > summary:not(:has(small)) b { grid-row: 1 / span 2; }
.w-tool[open] > summary { margin-bottom: 12px; }
.w-tool .w-switch, .w-tool-bh .w-switch { background: #C9D1D8; }
.w-tool .w-switch.on, .w-tool .w-switch.open, .w-tool-sale .w-switch.on, .w-tool-sale .w-switch.open, .w-tool-auc .w-switch.on, .w-tool-auc .w-switch.open,
.w-tool-bh .w-switch.on, .w-tool-gift .w-switch.on, .w-tool-gift .w-switch.open, .w-tool-bundle .w-switch.on { background: #1E8E4A; }
.w-tool.is-off .w-switch, .w-tool-bh.w-tool-off .w-switch { background: #E2E6EA; }
.w-tool-bh .w-bh-toggle { margin: 0; }
.w-tool-bh > form.w-bh-bonus { margin-top: 12px; }
.w-tool-bh .w-bh-bonus .w-bh-boxes { justify-content: flex-start; }
.w-tool-bh .w-bh-bonus > small { text-align: left; }
.w-tool-bundle > form[hidden] { display: none; }
.w-sale-edit { grid-template-columns: minmax(0, 220px) auto; align-items: end; justify-content: start; margin-bottom: 10px; }
.w-sale-edit .w-btn { grid-column: auto; width: auto; min-width: 160px; }
.has-dirty form[data-dirty-save]:not(.is-dirty) .w-dirty-btn:not(.is-busy):not(.is-flash-ok):not(.is-flash-bad) { display: none; }
@media (max-width: 760px) { .w-tools > .w-tool { padding: 12px 14px; } .w-sale-edit { grid-template-columns: 1fr; } .w-sale-edit .w-btn { width: 100%; } }
/* BH_HOMESLIM (15.11 п.3): строка под зелёной «Загрузить вещь» вместо тёмного блока */
.w-hero-sell { margin: 10px auto 0; max-width: 560px; text-align: center; font-size: 15px; line-height: 1.4; color: var(--muted); }
/* BH_HOMESLIM: Комплект дня на телефоне не шире экрана (LV на 375 было +4px) */
.w-bundle, .w-bundle .bnd { min-width: 0; max-width: 100%; box-sizing: border-box; }
.w-bundle .bnd-pill { max-width: 100%; white-space: normal; text-align: center; }
.w-bundle .bnd-pill .bnd-timer { white-space: nowrap; }
/* BH_CARDS (ТЗ 15.11 п.5): карточка компактнее — «категория · состояние» одной строкой, название, цена, метки одной строкой с переносом у низа карточки;
   состояние — ссылка в каталог (?state[]=…); карточки в ряду одной высоты, метки прижаты к низу */
.w-card { gap: 3px; }
.w-card .w-pic { margin-bottom: 6px; }
.w-card-top { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; min-width: 0; min-height: 20px; pointer-events: none; }
.w-card-top > * { pointer-events: auto; }
.white .w-card .w-card-top > a.w-card-cat { flex: 0 1 auto; min-width: 0; margin: 0; padding: 0; line-height: 18px; }
.w-card-top .w-ctags { flex: 0 1 auto; min-width: 0; margin: 0; flex-wrap: wrap; gap: 4px; }
.w-card .w-card-top .w-ctag { min-height: 18px; padding: 0 7px; font-size: 11.5px; line-height: 18px; white-space: nowrap; }
.w-card .w-pic + .w-name { margin-top: 23px; }   /* без строки категории — название на той же высоте */
.w-card .w-name { line-height: 1.25; }
.w-card .w-price { margin-top: 1px; }
.w-card .w-price b { line-height: 1.15; }
.w-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; padding-top: 3px; min-width: 0; }
.w-card-meta .w-gift-tag { font-size: 11.5px; gap: 4px; }
.w-card-meta .w-gift-tag-pic { width: 18px; height: 18px; border-radius: 4px; }
.w-card .w-left { line-height: 1.2; }
a.w-ctag-a { text-decoration: none; cursor: pointer; }
a.w-ctag-a:hover, a.w-ctag-a:focus-visible { text-decoration: underline; filter: brightness(.95); }

/* активный фильтр состояния в каталоге: плашки с «×» */
.w-active-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.w-active-f > span { color: var(--muted); font-size: 14px; }
.w-active-f a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 8px 4px 12px; border-radius: 999px; background: #EAF5FB; border: 1px solid var(--sky); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.w-active-f a b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-size: 16px; line-height: 1; }
.w-active-f a:hover b, .w-active-f a:focus-visible b { background: var(--navy); color: #fff; }
/* BH_ITEM_COMPACT2 (16.11, Дима): на ПК описание и Еня под названием, подарок и доставка под фото (static/item-layout.js) */
.w-under-gal, .w-under-ttl { display: flex; flex-direction: column; gap: 20px; }
.w-under-gal:empty, .w-under-ttl:empty { display: none; }
.w-about-wrap { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 761px) { .w-product { column-gap: 40px; } }
/* BH_ITEM_COMPACT5 (16.11): «Спроси у Ени» перед комментариями */
.w-enya-row { margin-top: 8px; }
/* BH_ITEM_COMPACT7 (16.11, Дима): у цены одной строкой — бонусы KIS и «Есть в Комплекте дня» */
.w-price-extras { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -8px; }
.w-price-extras .w-bh-row { display: contents; }
.w-price-extras .w-bh-line { margin: 0; }
.w-price-extras .w-bundle-badge { margin: 0; }
.w-price-extras .w-bundle-badge-a { padding: 2px 10px; font-size: 13px; }
/* BH_CARD_CONDPRICE (17.11, Дима): в карточке состояние — сразу под ценой, рядом компактно «💬 N» комментариев */
.w-card-cond { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; }
.w-card-cond .w-ctags { margin: 0; }
.w-card-com { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; position: relative; z-index: 2; }
.w-card-com:hover { color: var(--ink); }

/* KK_LOGO (18.11): логотип KisKis — кот на буквах (широкий). Высота шапки прежняя (58 / 46 / 34 px — правила выше);
   зимняя шапочка — на голову кота (справа), а не на начало логотипа. */
.w-logo .w-brand img { aspect-ratio: 212 / 120; }   /* KK_LOGO v2: белый кот, вариант 1 */
body:has(.bh-winter-flag) .w-top .w-brand::after { background-size: auto 62%; background-position: 64% 22%; }

/* KK_HERO_ROW (18.11, Дима): главная — герой выше (меньше пустоты над заголовком); «Смотреть каталог», «Все категории» и «Отфильтровать»
   одной строкой, все три терракотовые (--orange) с белым текстом; на телефоне аккуратно переносятся: каталог на всю ширину, ниже список + кнопка. */
.w-hero { padding-top: 14px; gap: 16px 48px; }
.w-hero-btns.w-hero-row { align-items: center; margin-top: 4px; }
.w-hero-row .w-btn, .w-hero-row .w-dd-sum { min-height: 60px; height: 60px; font-size: 19px; }
.w-hero-row .w-btn { min-width: 250px; padding: 0 30px; }   /* три кнопки одной ширины */
.w-hero-row .w-btn-main, .w-hero-row .w-btn-main:hover { background: var(--orange); border-color: var(--orange); color: #fff !important; }
.w-hero-row .w-btn-main:hover, .w-hero-row .w-dd-sum:hover { filter: brightness(.92); }
form.w-cats-dd.w-cats-hero { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 16px 20px; width: auto; max-width: none; margin: 0; padding: 0; }
form.w-cats-dd.w-cats-hero > * { width: auto; max-width: none; margin: 0; }
.w-cats-hero .w-cats-go { order: 0; min-height: 60px; height: 60px; font-size: 19px; }
.w-cats-hero .w-dd { flex: 0 0 auto; min-width: 250px; }
.w-cats-hero .w-dd-sum { justify-content: center; padding: 0 50px 0 30px; border-color: var(--orange); font-weight: 800; color: #fff; cursor: pointer;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 22px center; }
.w-cats-hero .w-dd[open] .w-dd-sum { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 8l6-6 6 6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.w-cats-hero .w-dd-txt { flex: 0 1 auto; text-align: center; }
.w-cats-hero .w-dd-list { min-width: 280px; text-align: left; }
@media (max-width: 760px) {
  .w-hero { padding-top: 10px; }
  .w-hero-row .w-btn, .w-hero-row .w-dd-sum, .w-cats-hero .w-cats-go { min-height: 56px; height: 56px; font-size: 17px; min-width: 0; }
  .w-hero-row > .w-btn-main { flex: 1 1 100%; }
  form.w-cats-dd.w-cats-hero { flex: 1 1 100%; flex-wrap: wrap; gap: 10px; min-width: 0; }
  .w-cats-hero .w-dd { flex: 1 1 170px; min-width: 0; }
  .w-cats-hero .w-dd-sum { padding: 0 32px 0 12px; background-position: right 12px center; font-size: 16px; }
  .w-cats-hero .w-cats-go { font-size: 16px; }
  .w-cats-hero .w-cats-go { flex: 0 0 auto; padding: 0 18px; }
  .w-cats-hero .w-dd-list { min-width: 0; }
}

/* KK_HERO_SHINE (18.11, Дима): три терракотовые кнопки героя — раз в 10 с мягкий диагональный белый блик слева направо,
   кнопка за кнопкой (~1 с на все три). Только CSS; при «уменьшить движение» выключен. */
@media (prefers-reduced-motion: no-preference) {
  .w-hero-row > .w-btn-main, .w-cats-hero .w-dd-sum, .w-cats-hero .w-cats-go { position: relative; overflow: hidden; isolation: isolate; }
  .w-hero-row > .w-btn-main::after, .w-cats-hero .w-dd-sum::after, .w-cats-hero .w-cats-go::after {
    content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; pointer-events: none; z-index: 1;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .10) 30%, rgba(255, 255, 255, .42) 50%, rgba(255, 255, 255, .10) 70%, transparent 100%);
    transform: translateX(-140%) skewX(-18deg); animation: kk-hero-shine 10s ease-in-out 2s infinite;
  }
  .w-cats-hero .w-dd-sum::after { animation-delay: 2.33s; }
  .w-cats-hero .w-cats-go::after { animation-delay: 2.66s; }
  .w-hero-row .is-flash-ok::after, .w-hero-row .is-flash-bad::after, .w-cats-hero .w-dd[open] .w-dd-sum::after { animation: none; opacity: 0; }
}
@keyframes kk-hero-shine {
  0% { transform: translateX(-140%) skewX(-18deg); }
  4.5%, 100% { transform: translateX(330%) skewX(-18deg); }
}

/* KK_INVOICE_LV (18.11): куда прислать счёт — оформление заказа и «Почта Ени» */
.inv-ch { display: grid; gap: 8px; }
.inv-ch-opt { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; font-weight: 600; line-height: 1.35; }
.inv-ch-opt:has(input:checked) { border-color: var(--orange); background: var(--soft); }
.inv-ch-opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--orange); }
.inv-ch-opt small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.inv-ch-hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.inv-ch-h { margin: 18px 0 8px; font-size: 17px; }

/* KK_MEDALS (18.11): фото к отзыву */
.kk-rphoto{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:8px 0 2px;font-weight:600;color:#5B3A24;cursor:pointer}
.kk-rphoto input{font-size:14px;max-width:100%}.kk-rphoto small{flex-basis:100%;font-weight:400;color:#8a6a52;font-size:12.5px}
.kk-rv-photo{display:inline-block;margin:6px 0 2px;line-height:0;border-radius:12px;overflow:hidden;border:1.5px solid #F0E2CC}
.kk-rv-photo img{width:160px;height:120px;object-fit:cover}

/* KK_DONATE (18.11): сбор «Домики для уличных животных» — блок на главной и страница /domiki */
.don-card{display:flex;gap:26px;align-items:center;background:linear-gradient(135deg,#FFF9F0,#F8E7CC);border:2px solid #EAD3B0;border-radius:26px;padding:22px 26px}
.don-pic{flex:0 0 300px;line-height:0;border-radius:18px;overflow:hidden;display:block}.don-pic img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.don-pic .don-house{width:100%;height:auto}
.don-body{flex:1;min-width:0}.don-body h2,.don-body h1{margin:0 0 8px;color:#5B3A24}.don-body p{margin:0 0 10px;color:#5b4636;line-height:1.5}
.don-prog{margin:12px 0}.don-prog-t{display:flex;justify-content:space-between;gap:10px;color:#5B3A24;font-size:15px}.don-prog-t span{font-weight:700;color:#C8643B}
.don-bar{height:14px;border-radius:14px;background:#EAD3B0;overflow:hidden;margin-top:6px;box-shadow:inset 0 1px 2px rgba(91,58,36,.15)}
.don-bar i{display:block;height:100%;border-radius:14px;background:linear-gradient(90deg,#E7B98F,#C8643B);position:relative;overflow:hidden}
.don-form{display:flex;flex-direction:column;gap:10px;margin-top:6px}
.don-amts{display:flex;flex-wrap:wrap;gap:8px}
.don-amt input{position:absolute;opacity:0;pointer-events:none}.don-amt span{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:44px;padding:0 14px;border-radius:14px;border:2px solid #E3CFB2;background:#fff;font-weight:700;color:#5B3A24;cursor:pointer}
.don-amt input:checked+span{background:#5B3A24;border-color:#5B3A24;color:#fff}.don-amt input:focus-visible+span{outline:3px solid #C8643B;outline-offset:2px}
.don-own input{width:150px;min-height:44px;border-radius:14px;border:2px solid #E3CFB2;padding:0 12px;font-size:16px;background:#fff}
.don-name{display:flex;flex-direction:column;gap:4px;font-size:14px;color:#6b5444}.don-name input{min-height:44px;border-radius:12px;border:2px solid #E3CFB2;padding:0 12px;font-size:16px;max-width:360px}
.don-go{align-self:flex-start;min-width:180px}.don-go[disabled]{background:#cbbcad;border-color:#cbbcad;cursor:default}
.don-secure{color:#8a6a52;font-size:12.5px}.don-more{display:inline-block;margin-top:10px;font-weight:700;color:#C8643B}
.don-h{margin:28px 0 10px;color:#5B3A24}.don-empty{color:#8a6a52}
.don-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}.don-gal img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:14px}
.don-rep{display:flex;gap:16px;background:#fff;border:1.5px solid #F0E2CC;border-radius:18px;padding:14px;margin-bottom:10px}.don-rep small{color:#C8643B;font-weight:700}.don-rep p{margin:6px 0 0}
.don-rep-pic{flex:0 0 200px;line-height:0}.don-rep-pic img{width:200px;height:150px;object-fit:cover;border-radius:12px}
.don-table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}.don-table th,.don-table td{padding:9px 12px;border-bottom:1px solid #F0E2CC;text-align:left}.don-table .num{text-align:right;white-space:nowrap}
.don-thanks{text-align:center;background:#fff;border:2px solid #EAD3B0;border-radius:24px;padding:22px;margin:0 0 20px}.don-thanks .don-house{width:160px;height:auto}
.don-adm-keys{background:#FFF9F0;border:1.5px solid #EAD3B0;border-radius:14px;padding:10px 14px;margin:8px 0 18px}.don-adm-keys code{word-break:break-all}
.don-adm-form{display:flex;flex-direction:column;gap:10px;max-width:760px;margin-bottom:18px}.don-adm-form label{display:flex;flex-direction:column;gap:4px}.don-adm-form label.chk{flex-direction:row;align-items:center}
.don-adm-form fieldset{border:1.5px solid #F0E2CC;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.don-adm-ph{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0}.don-adm-ph img{display:block;width:160px;height:120px;object-fit:cover;border-radius:10px}.don-adm-ph form{display:flex;gap:4px;margin-top:4px}
@media (max-width:760px){.don-card{flex-direction:column;align-items:stretch;padding:16px;gap:14px}.don-pic{flex-basis:auto}.don-go{align-self:stretch}.don-rep{flex-direction:column}.don-rep-pic{flex-basis:auto}.don-rep-pic img{width:100%;height:auto;aspect-ratio:4/3}.don-own input{width:100%}.don-own{flex:1 1 140px}}
@media (prefers-reduced-motion:no-preference){.don-bar i:after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);transform:translateX(-100%);animation:donShine 10s ease-in-out infinite}
@keyframes donShine{0%{transform:translateX(-100%)}10%,100%{transform:translateX(100%)}}}

/* KK_FILTER_ORDER 18.11: кнопка «Отфильтровать» над списком категорий */
.w-cat-side>.title{order:-2}
.w-cat-side>.w-cats-go{order:-1}

/* KK_SIDE_SCROLL 18.11: левая колонка кабинета листается сама, не дожидаясь правой */
@media (min-width:861px){.c-side{max-height:calc(100vh - 100px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}}
