/* OKO.md — один стиль на весь сайт, по мотивам 999.md: белый фон, плотная сетка, оранжевый акцент. */
:root {
  --accent: #ff6a13;
  --accent-dark: #e65500;
  --link: #1a5fb4;
  --text: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --radius: 8px;
  --container: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* Верхняя строка */
.topline { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.topline-in { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topline-city { color: var(--muted); }
.topline-links { display: flex; gap: 12px; align-items: center; }
.topline-links a { color: var(--text); }
.topline-links a.is-on { font-weight: 700; }
.topline-links .sep { width: 1px; height: 14px; background: var(--line); }

/* Шапка */
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header-in { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 28px; letter-spacing: -.5px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-tld { color: var(--accent); }
.logo-eye { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 7px #fff, inset 0 0 0 9px var(--accent); }
.logo-sm { font-size: 20px; }
.search { flex: 1; display: flex; border: 2px solid var(--accent); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.search-q { flex: 1; min-width: 0; border: 0; padding: 0 14px; height: 40px; font: inherit; font-size: 15px; outline: none; }
.search-region { border: 0; border-left: 1px solid var(--line); padding: 0 10px; font: inherit; background: #fff; color: var(--text); max-width: 160px; }
.search-btn { border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 700; padding: 0 22px; cursor: pointer; }
.search-btn:hover { background: var(--accent-dark); }
.btn-add {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 44px; padding: 0 18px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 15px;
}
.btn-add:hover { background: var(--accent-dark); text-decoration: none; }
.btn-wide { width: 100%; }

/* Строка разделов */
.catbar { border-top: 1px solid var(--line); }
.catbar-in { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; height: 40px; align-items: center; }
.catbar-in::-webkit-scrollbar { display: none; }
.catbar a { color: var(--text); white-space: nowrap; font-weight: 600; }
.catbar a.is-on { color: var(--accent); }

.page { padding-top: 20px; padding-bottom: 40px; }
.page-title { font-size: 24px; margin: 4px 0 16px; }
.crumbs { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0; }

/* Рубрикатор на главной */
.rubrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 28px; padding: 8px 0 28px; border-bottom: 1px solid var(--line); }
.rubric-head { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 16px; }
.rubric-head:hover { color: var(--accent); text-decoration: none; }
.rubric-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff1e8; color: var(--accent); }
.rubric-ico svg { width: 24px; height: 24px; }
.rubric-ico--realty { background: #e8f1ff; color: #1a5fb4; }
.rubric-ico--jobs { background: #e9f8ef; color: #198754; }
.rubric-ico--services { background: #f3ecff; color: #6f42c1; }
.rubric-count { color: var(--muted); font-weight: 400; font-size: 13px; }
.rubric-sub { list-style: none; margin: 8px 0 0 50px; padding: 0; display: grid; gap: 3px; }
.rubric-sub a { color: var(--link); font-size: 13.5px; }

/* Лента */
.feed-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 14px; }
.feed-head h2 { margin: 0; font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; color: var(--text); border-radius: var(--radius); }
.card:hover { text-decoration: none; }
.card:hover .card-title { color: var(--accent); }
.card-photo { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); display: grid; place-items: center; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { width: 48px; height: 48px; color: #c4c8cf; }
.badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.card.is-vip .card-photo { box-shadow: 0 0 0 2px var(--accent); }
.card-body { padding: 8px 2px 0; }
.card-title { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-weight: 800; font-size: 16px; margin-top: 4px; }
.card-meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* Список раздела */
.list-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.list-layout > :only-child { grid-column: 1 / -1; }
.list-layout > * { min-width: 0; }
.filters-box > summary { display: none; }
.side-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-cats a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--text); }
.side-cats a:hover { background: var(--bg-soft); text-decoration: none; }
.side-cats a.is-on { background: #fff1e8; color: var(--accent-dark); font-weight: 700; }

/* Карточка объявления */
.lot { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.lot-main, .lot-side { min-width: 0; }
.lot-photo { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; }
.lot-photo img { width: 100%; height: 100%; object-fit: contain; }
/* Слайдер: нативная прокрутка с привязкой к кадру — свайп на телефоне работает как в галерее */
.slides { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; cursor: zoom-in; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.88); color: #222; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.slide-nav--prev { left: 10px; } .slide-nav--next { right: 10px; }
.slide-count { position: absolute; right: 10px; bottom: 10px; padding: 2px 9px; border-radius: 12px; background: rgba(0,0,0,.55);
  color: #fff; font-size: 13px; pointer-events: none; }
.slide-close { display: none; }
@media (hover: none) { .slide-nav { display: none; } }
/* На весь экран */
.lot-photo.is-full { position: fixed; inset: 0; z-index: 1000; aspect-ratio: auto; border-radius: 0; background: #000; }
.lot-photo.is-full .slides { cursor: default; }
.lot-photo.is-full .slide-close { display: block; position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; cursor: pointer; }
.lot-photo.is-full .slide-nav { display: block; }
.no-scroll, .no-scroll body { overflow: hidden; }
.lot-side { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.lot-price { font-size: 28px; font-weight: 800; }
.lot-meta { color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
.block-title { font-size: 18px; margin: 24px 0 10px; }
.params { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 0; }
.params div { display: flex; justify-content: space-between; border-bottom: 1px dotted var(--line); padding: 4px 0; }
.params dt { color: var(--muted); }
.params dd { margin: 0; font-weight: 600; }

/* Подвал */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px; }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }


/* Сообщения, вход, статусы */
.flash p { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); background: #e9f8ef; color: #146c43; }
.flash .flash-info { background: #e8f1ff; color: #1a5fb4; }
.flash .flash-error { background: #fdecec; color: #b42318; }
.inline-form { display: inline; margin: 0; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--text); cursor: pointer; }
.auth { max-width: 380px; margin: 12px auto; display: grid; gap: 4px; }
.auth form { display: grid; gap: 14px; margin-bottom: 12px; }
.status-note { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: #92400e; background: #fef3c7; padding: 2px 8px; border-radius: 4px; }
.count { color: var(--muted); font-weight: 400; font-size: 16px; }

/* Поля форм */
.field { display: grid; gap: 4px; }
.field label, .filter label, .filter-label { font-size: 13px; font-weight: 600; color: var(--text); }
.req { color: var(--accent); }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea,
.filter input, .filter select {
  width: 100%; height: 38px; padding: 0 10px; border: 1px solid #d0d4da; border-radius: 6px;
  font: inherit; background: #fff; color: var(--text);
}
.field textarea { height: auto; padding: 8px 10px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filter input:focus, .filter select:focus { outline: 2px solid #ffd2b5; border-color: var(--accent); }
.has-error input, .has-error select, .has-error textarea { border-color: #d92d20; }
.hint { color: var(--muted); font-size: 12px; }
.hint ul { margin: 4px 0 0; padding-left: 18px; }
.err { color: #d92d20; font-size: 12px; }

/* Подача */
.step { color: var(--muted); margin: -8px 0 18px; }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.pick-root { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.pick-root summary { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.pick-root summary::-webkit-details-marker { display: none; }
.pick-root ul { list-style: none; margin: 10px 0 4px 50px; padding: 0; display: grid; gap: 6px; }
.compose { max-width: 820px; }
.compose-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 20px; margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.field--wide { grid-column: 1 / -1; }

/* Фильтры */
.filters { display: grid; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.side > .filters-box:first-child .filters { margin-top: 0; padding-top: 0; border-top: 0; }
.filter { display: grid; gap: 4px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 5px 10px; border: 1px solid #d0d4da; border-radius: 6px; font-size: 13px; font-weight: 400; cursor: pointer; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid #ffd2b5; }
.filters .btn-add { height: 40px; }
.filters-reset { text-align: center; font-size: 13px; }

@media (max-width: 1000px) {
  .pick { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: repeat(2, 1fr); }
  .rubrics { grid-template-columns: repeat(3, 1fr); }
  .lot { grid-template-columns: minmax(0, 1fr); }
  .lot-side { position: static; }
}
@media (max-width: 720px) {
  .header-in { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; }
  .search-region { display: none; }
  .btn-add { height: 38px; padding: 0 12px; font-size: 14px; margin-left: auto; }
  .logo { font-size: 24px; }
  .rubrics { grid-template-columns: repeat(2, 1fr); gap: 18px 16px; }
  .rubric-sub, .rubric-count { display: none; }
  .rubric-head { flex-direction: column; text-align: center; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .list-layout { grid-template-columns: 1fr; }
  .side-cats { display: flex; overflow-x: auto; gap: 6px; }
  .side-cats a { white-space: nowrap; background: var(--bg-soft); }
  .params { grid-template-columns: 1fr; }
  .pick, .fields { grid-template-columns: 1fr; }
  .filters-box { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; }
  .filters-box > summary { display: block; padding: 10px 0; font-weight: 700; cursor: pointer; }
  .filters-box .filters { margin-top: 0; padding: 0 0 14px; border-top: 0; }
  .compose-block { padding: 4px 14px 14px; }
  .topline-links { gap: 8px; }
}

/* Главная: колонка справа с погодой, курсами и рекламой */
.home-layout { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: start; }
.home-layout .rubrics { grid-template-columns: repeat(3, 1fr); }
.home-main { min-width: 0; }
.home-aside { display: grid; gap: 16px; position: sticky; top: 16px; }
.widget { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.widget-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.widget-head span, .widget-meta { color: var(--muted); font-size: 12px; }
.weather { display: flex; align-items: baseline; gap: 10px; }
.weather-temp { font-size: 32px; font-weight: 800; }
.weather-desc { color: var(--muted); }
.fx-rates { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.fx-rates li { display: flex; justify-content: space-between; }
.fx-rates span { font-weight: 700; }
.fx-convert { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; }
.fx-convert input { grid-column: 1 / -1; }
.fx-convert input, .fx-convert select { height: 34px; border: 1px solid #d0d4da; border-radius: 6px; padding: 0 8px; font: inherit; background: #fff; min-width: 0; }
.fx-swap { border: 1px solid #d0d4da; background: #fff; border-radius: 6px; cursor: pointer; padding: 0 8px; }
.fx-result { grid-column: 1 / -1; font-weight: 800; font-size: 16px; }

/* Рекламные места */
.ad-slot { position: relative; }
.ad-slot img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.ad-slot--home_top { margin-bottom: 20px; }
.lot-mark { position: absolute; top: 6px; right: 6px; font-size: 10px; color: #fff; background: rgba(0, 0, 0, .45); padding: 1px 5px; border-radius: 3px; }
.house-ad { display: grid; gap: 6px; padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, #fff1e8, #ffe0cc); color: var(--text); }
.house-ad:hover { text-decoration: none; }
.house-ad strong { font-size: 18px; }
.house-ad span { color: #5b4636; font-size: 13px; }
.house-ad em { font-style: normal; font-weight: 700; color: var(--accent-dark); }
.house-ad--home_top { grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.grid-ad { grid-column: 1 / -1; }

/* VIN и комплектация */
.btn-secondary { height: 38px; padding: 0 14px; border: 1px solid var(--accent); color: var(--accent-dark); background: #fff; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-secondary:hover { background: #fff1e8; }
.btn-secondary:disabled { opacity: .6; cursor: wait; }
.vin-box { background: var(--bg-soft); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.vin-row { display: grid; grid-template-columns: minmax(0, 320px) auto; gap: 10px; align-items: end; }
.vin-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px; text-transform: uppercase; }
.vin-details { margin-top: 10px; }
.vin-details summary { cursor: pointer; font-weight: 600; }
.vin-details .params { margin-top: 8px; }
.equip { display: grid; gap: 8px; }
.equip-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 14px; }
.equip-group summary { cursor: pointer; font-weight: 700; }
.equip-count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }
.equip-count:empty { display: none; }
.equip-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; padding: 10px 0 4px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--accent); }
.equip-view { columns: 3; margin: 8px 0 4px; padding-left: 18px; }
.seg--zones input { position: absolute; opacity: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border-radius: 12px; background: var(--bg-soft); font-size: 13px; }
.chip--warn { background: #fdecec; color: #b42318; }
.filter-opts summary { cursor: pointer; }
.filter-opt-group { display: grid; gap: 4px; margin-top: 8px; }
.filter-opt-group > span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.filter-opts { max-height: none; }

/* Галерея */
.lot-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.lot-thumbs button { flex: none; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bg-soft); }
.lot-thumbs button.is-on { border-color: var(--accent); }
.lot-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1000px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .equip-list { grid-template-columns: repeat(2, 1fr); }
  .equip-view { columns: 2; }
}
@media (max-width: 720px) {
  .home-layout .rubrics { grid-template-columns: repeat(2, 1fr); }
  .home-aside { grid-template-columns: 1fr; }
  .vin-row { grid-template-columns: 1fr; }
  .equip-list { grid-template-columns: 1fr; }
  .equip-view { columns: 1; }
  .house-ad--home_top { grid-template-columns: 1fr; }
}

/* Меню «Все категории» по кнопке, как на 999.md; в полосе под шапкой — только популярные разделы */
.catmenu-btn { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; border-radius: var(--radius); background: var(--bg-soft); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.catmenu-btn:hover, .catmenu-btn[aria-expanded="true"] { background: #fff1e8; color: var(--accent); }
.catmenu-burger, .catmenu-burger::before, .catmenu-burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative; }
.catmenu-burger::before, .catmenu-burger::after { content: ""; position: absolute; left: 0; }
.catmenu-burger::before { top: -5px; }
.catmenu-burger::after { top: 5px; }
.catbar-all { margin-left: auto; flex: none; border: 0; background: none; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.catmenu { position: absolute; left: 0; right: 0; z-index: 50; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); max-height: calc(100vh - 140px); overflow-y: auto; }
.catmenu .rubrics { padding: 20px 0 24px; border-bottom: 0; }
.header { position: relative; }
.ad-slot:not(:has(*)) { display: none; }
.home-main > .feed:first-child .feed-head { margin-top: 0; }
@media (max-width: 720px) {
  .catmenu-label { display: none; }
  .catmenu-btn { order: 3; height: 44px; width: 44px; padding: 0; justify-content: center; }
  .header-in .search { order: 4; flex: 1 1 calc(100% - 56px); flex-basis: auto; }
  .catmenu .rubric-sub { display: grid; margin-left: 0; }
  .catmenu .rubric-head { flex-direction: row; text-align: left; }
  .catmenu .rubrics { grid-template-columns: 1fr; }
}

/* —— Общие элементы для кабинета, переписки и панели модерации —— */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.badge-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; vertical-align: 1px; }
.nav-staff { color: #9c36b5 !important; font-weight: 700; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
a.btn-secondary:hover { text-decoration: none; }
.btn-danger { height: 38px; padding: 0 14px; border: 1px solid #e03131; color: #c92a2a; background: #fff; border-radius: 6px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn-danger:hover { background: #fff5f5; }
.btn-wide + .btn-wide, .lot-side > * + * { margin-top: 10px; }
.linkish--danger { color: #c92a2a; font-size: 13px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; }
.tabs a { padding: 7px 12px; border-radius: 6px; color: var(--text); background: var(--bg-soft); font-weight: 600; font-size: 14px; }
.tabs a:hover { text-decoration: none; background: #eceef1; }
.tabs a.is-on { background: var(--text); color: #fff; }
.tabs a.is-on .count { color: #d1d5db; }
.tabs .count { font-size: 13px; }
.st { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 12px; font-weight: 700; background: var(--bg-soft); color: var(--muted); }
.st--active, .st--approve, .st--auto_ok, .st--unban { background: #e9f8ef; color: #146c43; }
.st--pending, .st--auto_hold, .st--edit, .st--report { background: #fef3c7; color: #92400e; }
.st--rejected, .st--reject, .st--auto_reject, .st--ban, .st--spam, .st--spam_ban, .st--auto_block, .st--blocked_ip { background: #fdecec; color: #b42318; }
.st--scan, .st--bad_ua, .st--honeypot, .st--too_fast, .st--no_js, .st--bad_token { background: #fff4e6; color: #d9480f; }
.st--ratelimit, .st--msg_flood { background: #e7f5ff; color: #1864ab; }
.st--login_fail, .st--login_lock, .st--csrf { background: #f8f0fc; color: #862e9c; }

/* Страница объявления */
.tr-note { margin: -8px 0 12px; color: var(--muted); font-size: 13px; }
.tr-note .linkish { color: var(--link); font-size: 13px; }
.lot-id { color: var(--muted); font-size: 13px; margin-top: 20px; }
.phone-number { display: block; margin-top: 10px; padding: 10px; border-radius: var(--radius); background: var(--bg-soft); font-size: 18px; font-weight: 700; text-align: center; color: var(--text); }
.write-box > summary { list-style: none; display: flex; }
.write-box > summary::-webkit-details-marker { display: none; }
.write-box textarea, .report-box textarea, .thread-form textarea { width: 100%; margin: 10px 0 8px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; resize: vertical; box-sizing: border-box; }
.fav-btn { width: 100%; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.fav-btn span[aria-hidden] { color: #adb5bd; }
.fav-btn.is-on span[aria-hidden] { color: #e03131; }
.seller-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
.seller-card:hover { text-decoration: none; border-color: #d0d4da; }
.seller-info { display: grid; gap: 2px; min-width: 0; }
.seller-info small { color: var(--muted); font-size: 12px; }
.seller-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.seller-ava--empty { display: grid; place-items: center; background: #fff1e8; color: var(--accent); font-weight: 700; font-size: 18px; }
.seller-ava--lg { width: 72px; height: 72px; font-size: 28px; }
.badge-biz { display: inline-block; padding: 1px 7px; border-radius: 4px; background: #e8f1ff; color: #1a5fb4; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.report-box summary { color: var(--muted); font-size: 13px; cursor: pointer; }
.report-reasons { display: grid; gap: 6px; margin-top: 10px; }
.seller-page { margin-bottom: 16px; }
.seller-head { display: flex; gap: 16px; align-items: center; }
.seller-head .page-title { margin-bottom: 4px; }
.seller-biz { margin: 16px 0; }

/* Подача: фото */
.photo-drop { position: relative; display: block; padding: 22px; border: 2px dashed #d0d4da; border-radius: var(--radius); text-align: center; cursor: pointer; color: var(--muted); }
.photo-drop:hover { border-color: var(--accent); }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop span { display: grid; gap: 4px; font-weight: 600; color: var(--text); }
.photo-drop small { font-weight: 400; color: var(--muted); }
.photo-preview, .photo-edit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-preview img { width: 92px; height: 70px; object-fit: cover; border-radius: 6px; }
.photo-preview img.is-over { opacity: .3; outline: 2px solid #e03131; }
.photo-tile { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.photo-tile img { width: 110px; height: 82px; object-fit: cover; border-radius: 6px; }

/* Кабинет */
.cab { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.cab-nav { position: sticky; top: 16px; display: grid; gap: 14px; }
.cab-user { display: flex; gap: 10px; align-items: center; }
.cab-user small { display: block; color: var(--muted); font-size: 12px; }
.cab-nav nav { display: grid; gap: 2px; }
.cab-nav nav a { padding: 8px 10px; border-radius: 6px; color: var(--text); font-weight: 600; }
.cab-nav nav a:hover { background: var(--bg-soft); text-decoration: none; }
.cab-nav nav a.is-on { background: #fff1e8; color: var(--accent-dark); }
.cab-main { min-width: 0; }
.my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.my-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.my-photo { display: grid; place-items: center; width: 120px; height: 90px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.my-photo img { width: 100%; height: 100%; object-fit: cover; }
.my-photo .card-noimg { width: 40px; height: 40px; }
.my-info { min-width: 0; display: grid; gap: 4px; }
.my-title { font-weight: 700; color: var(--text); }
.my-price { font-weight: 700; }
.my-reason { color: #b42318; font-size: 13px; }
.my-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 280px; }
.my-actions .btn-secondary, .my-actions .btn-danger { height: 32px; padding: 0 10px; font-size: 13px; }
.biz-pitch { padding: 14px 18px; border-radius: var(--radius); background: #e8f1ff; margin-bottom: 16px; }
.biz-pitch ul { margin: 6px 0 0; padding-left: 18px; }
.biz-off { margin-top: 12px; }
.biz-off .linkish { color: var(--muted); font-size: 13px; }
.auth-form { max-width: 420px; display: grid; gap: 4px; }

/* Сообщения */
.inbox { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; color: var(--text); }
.inbox-row:hover { background: var(--bg-soft); text-decoration: none; }
.inbox-row.is-unread { background: #fff8f3; }
.inbox-photo { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.inbox-photo img { width: 100%; height: 100%; object-fit: cover; }
.inbox-main { display: grid; min-width: 0; }
.inbox-main > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-ad { color: var(--muted); font-size: 13px; }
.inbox-last { font-size: 14px; }
.inbox-side { display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 12px; }
.thread-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.thread-ad { display: flex; gap: 10px; align-items: center; color: var(--text); }
.thread-ad img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.thread-ad span { display: grid; }
.thread-who { color: var(--muted); font-size: 14px; }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.msg { max-width: 75%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: #fff; align-self: flex-start; box-shadow: 0 1px 1px rgba(0, 0, 0, .05); }
.msg--me { align-self: flex-end; background: #fff1e8; border-radius: 12px 12px 4px 12px; }
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg time { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.thread-form { display: grid; gap: 4px; margin-top: 10px; justify-items: start; }
.spam-form { margin-top: 14px; }

/* Панель модерации и безопасности */
.page--staff { max-width: 1400px; }
.staff { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.staff-nav { position: sticky; top: 16px; display: grid; gap: 2px; }
.staff-brand { margin-bottom: 8px; color: #9c36b5; }
.staff-nav a { padding: 8px 10px; border-radius: 6px; color: var(--text); font-weight: 600; }
.staff-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.staff-nav a.is-on { background: #f8f0fc; color: #862e9c; }
.staff-main { min-width: 0; }
.staff-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.staff-bar .tabs { margin: 0; }
.staff-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.staff-search input[type=search], .staff-search input[type=text], .staff-search select, .modq-bulk select, .modq-bulk input[type=text], .staff-actions input[type=text] { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; min-width: 0; }
.staff-search input[type=search] { width: 320px; max-width: 100%; }
.staff-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.staff-actions { display: grid; gap: 10px; align-content: start; }
.staff-actions form { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 8px 0 20px; }
.kpi { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
a.kpi:hover { border-color: #c5cad1; text-decoration: none; }
.kpi b { font-size: 26px; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi--warn b { color: #c92a2a; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 16px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid #f1f3f5; vertical-align: top; }
.tbl tr.muted td { color: var(--muted); }
.tbl code { font-size: 12px; overflow-wrap: anywhere; }
.tbl--log td { font-size: 12.5px; }
.modq-bulk { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; margin-bottom: 12px; border-radius: var(--radius); background: #f8f9fa; border: 1px solid var(--line); }
.modq-item { display: grid; grid-template-columns: 24px 150px 1fr 220px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.modq-check { padding-top: 4px; }
.modq-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.modq-photo { position: relative; display: block; width: 150px; height: 112px; border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.modq-photo img { width: 100%; height: 100%; object-fit: cover; }
.modq-photo .badge { position: absolute; left: 6px; bottom: 6px; }
.modq-body { min-width: 0; display: grid; gap: 6px; align-content: start; }
.modq-title { font-weight: 700; color: var(--text); }
.modq-text { margin: 0; font-size: 13.5px; color: #374151; white-space: pre-line; overflow-wrap: anywhere; }
.modq-report { font-size: 13px; padding: 4px 8px; border-radius: 4px; background: #fff4e6; }
.modq-author { display: grid; gap: 4px; align-content: start; font-size: 13px; }
.modq-author small { color: var(--muted); }
.modq-one { display: flex; gap: 6px; margin-top: 6px; }
.modq-one button { height: 32px; padding: 0 10px; font-size: 13px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 16px 0; }
.pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.chart-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.chart-head .block-title { margin: 0 0 8px; font-size: 15px; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.chart { display: block; width: 100%; height: 180px; }
.chart rect:hover { opacity: .75; }
.chart-base { stroke: var(--line); stroke-width: .5; vector-effect: non-scaling-stroke; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 4px; }
.hbars { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; }
.hbars li { position: relative; padding: 5px 8px; border-radius: 4px; overflow: hidden; display: flex; justify-content: space-between; font-size: 13.5px; }
.hbars li a { position: relative; z-index: 1; display: flex; justify-content: space-between; width: 100%; color: var(--text); }
.hbars li i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff4e6; z-index: 0; }

@media (max-width: 1000px) {
  .cab, .staff { grid-template-columns: 1fr; }
  .cab-nav, .staff-nav { position: static; }
  .cab-nav nav, .staff-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .charts, .staff-cols { grid-template-columns: 1fr; }
  .modq-item { grid-template-columns: 24px 110px 1fr; }
  .modq-photo { width: 110px; height: 84px; }
  .modq-author { grid-column: 2 / -1; }
}
@media (max-width: 720px) {
  .my-row { grid-template-columns: 90px 1fr; }
  .my-photo { width: 90px; height: 68px; }
  .my-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .inbox-row { grid-template-columns: 48px 1fr; }
  .inbox-side { grid-column: 2; justify-items: start; grid-auto-flow: column; }
  .msg { max-width: 90%; }
  .seller-head { align-items: flex-start; }
  .tbl { display: block; overflow-x: auto; }
}
[hidden] { display: none !important; }
.phone-number:not([href]) { font-size: 14px; font-weight: 400; color: var(--muted); text-decoration: none; }
.blk-add { display: grid; gap: 8px; margin-bottom: 8px; }
.blk-add textarea, .blk-add input[type=text], .blk-add select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.blk-add button { justify-self: start; }
.st--blocked_phone { background: #fdecec; color: #b42318; }
.rep-actions { display: grid; gap: 6px; }
.rep-actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.rep-actions select, .modq-bulk select { height: 38px; border: 1px solid var(--line); border-radius: 6px; font: inherit; padding: 0 8px; }
.vbadges { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.vbadge { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.vbadge--ok { background: #e9f8ef; color: #146c43; }
.vbadge--no { background: var(--bg-soft); color: var(--muted); font-weight: 600; }
.verify-box { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.verify-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.verify-row .btn-secondary { height: 32px; font-size: 13px; }

/* —— Телефон: верхняя строка, меню кабинета и панели модерации прокручиваются вбок, а не переносятся —— */
@media (max-width: 720px) {
  .topline-city { display: none; }
  .topline-in { justify-content: flex-start; }
  .topline-links { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; max-width: 100%; }
  .topline-links::-webkit-scrollbar { display: none; }
  .cab { gap: 12px; }
  .cab-user .seller-ava { width: 36px; height: 36px; font-size: 15px; }
  .cab-nav { gap: 10px; }
  .cab-nav > .btn-add { display: none; }
  .cab-nav nav, .staff-nav, .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
    margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .cab-nav nav::-webkit-scrollbar, .staff-nav::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .cab-nav nav a, .staff-nav a, .tabs a { flex: none; }
  .staff-brand { display: none; }
  .staff { gap: 12px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 10px 12px; }
  .kpi b { font-size: 20px; }
  .modq-bulk { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .modq-bulk .check, .modq-bulk .btn-add, .modq-bulk input[type=text] { grid-column: 1 / -1; }
  .modq-item { grid-template-columns: 24px 1fr; }
  .modq-photo { grid-column: 2; width: 100%; height: 180px; }
  .modq-body, .modq-author { grid-column: 2; }
  .staff-search input[type=search], .staff-search input[type=text] { width: 100%; flex: 1 1 100%; }
  .staff-bar { align-items: flex-start; }
  .chart { height: 140px; }
  .verify-row { align-items: flex-start; }
  .thread { max-height: 55vh; }
  .lot-side { position: static; }
}
.lot-mobilebar { display: none; }
@media (max-width: 720px) {
  .lot-mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0, 0, 0, .06); }
  .lot-mobilebar strong { font-size: 18px; }
  .lot-mobilebar .btn-add { height: 40px; padding: 0 18px; margin: 0; }
  .lot { padding-bottom: 64px; }
  #contact { scroll-margin-top: 12px; }
}

/* Подсказки поиска */
.search { position: relative; overflow: visible; }
.suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 2px); z-index: 60; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); padding: 6px 0; max-height: 70vh; overflow-y: auto; }
.suggest a { display: block; padding: 7px 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest a:hover, .suggest a.is-on { background: var(--bg-soft); text-decoration: none; }
.suggest small { color: var(--muted); margin-left: 6px; }
.suggest-h { padding: 6px 14px 2px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.suggest-all { color: var(--link) !important; font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; }
.search-q { border-radius: 6px 0 0 6px; }
.search-btn { border-radius: 0 5px 5px 0; }
.dup-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.dup-head { margin-bottom: 10px; }
.dup-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dup-ad { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: start; }
.dup-ad .modq-photo { width: 110px; height: 82px; }
.dup-ad form { margin-top: 6px; }
.dup-ad .btn-secondary { height: 30px; font-size: 12.5px; padding: 0 10px; }
.bulk-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.bulk-bar .btn-secondary, .bulk-bar .btn-danger { height: 32px; font-size: 13px; padding: 0 12px; }
.my-row { grid-template-columns: 22px 120px 1fr auto; }
.my-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.badge--biz { left: auto; right: 8px; background: #1a5fb4; }
@media (max-width: 720px) {
  .my-row { grid-template-columns: 22px 90px 1fr; }
  .my-actions { grid-column: 2 / -1; }
}
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-head .page-title { margin-bottom: 8px; }
.saved-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.saved-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; }
.saved-row + .saved-row { border-top: 1px solid var(--line); }
.saved-title { font-weight: 600; color: var(--text); }
.saved-actions { margin-left: auto; display: flex; gap: 14px; }
.saved-actions .linkish { font-size: 13px; color: var(--muted); }
.card.is-hl { box-shadow: 0 0 0 2px #ffd43b; background: #fffbea; border-radius: var(--radius); }
.badge--top { background: #2b8a3e; }
.btn-promo { color: #b45309; border-color: #f59f00; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.promo-card { display: grid; gap: 8px; align-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.promo-card--vip { border-color: var(--accent); background: #fff8f3; }
.promo-price { font-size: 22px; font-weight: 800; }
.promo-pay p { margin: 0; }
.tbl--promo td:nth-child(4) { min-width: 180px; }
.import-box { margin-top: 20px; }
.import-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.import-errors { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: #b42318; }
.seller-site { display: block; font-size: 13px; margin-top: -4px; }
.similar { margin-top: 28px; }
.similar .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.price-old { color: var(--muted); font-weight: 400; font-size: .8em; margin-left: 4px; }
.badge--drop { top: auto; bottom: 8px; background: #2b8a3e; }
.drop-note { display: block; font-size: 13px; font-weight: 600; color: #2b8a3e; margin-top: 2px; }
.my-expires { font-size: 12.5px; color: var(--muted); }
.my-expires.is-soon { color: #b45309; font-weight: 600; }
.my-expires .linkish { color: var(--link); font-size: 12.5px; }
.charts--4 { grid-template-columns: repeat(2, 1fr); }
.chart--sm { height: 110px; }
@media (max-width: 1000px) { .charts--4 { grid-template-columns: 1fr; } }
/* Звёзды: --r — оценка от 0 до 5, закраска по процентам */
.stars { --size: 16px; display: inline-block; width: calc(var(--size) * 5); height: var(--size); vertical-align: -2px;
  background: linear-gradient(90deg, #f59f00 calc(var(--r) / 5 * 100%), #dee2e6 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l2.6 6 6.4.6-4.8 4.3 1.4 6.4L10 15l-5.6 3.3 1.4-6.4L1 7.6l6.4-.6z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l2.6 6 6.4.6-4.8 4.3 1.4 6.4L10 15l-5.6 3.3 1.4-6.4L1 7.6l6.4-.6z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x; }
.stars--sm { --size: 12px; }
.rating-line { margin: 2px 0 6px; }
.rating-mini { font-size: 12px; color: var(--muted); }
.reviews { margin: 20px 0 28px; }
.reviews-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review p { margin: 6px 0 0; }
.review-reply { margin-top: 8px; padding: 8px 12px; background: var(--bg-soft); border-radius: 6px; font-size: 14px; }
.review-reply-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.review-reply-form textarea { flex: 1 1 260px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.btn-sm { height: 30px !important; font-size: 13px; padding: 0 10px; }
.stars-input { border: 0; padding: 0; margin: 0 0 12px; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-input legend { width: 100%; margin-bottom: 4px; font-weight: 600; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 34px; line-height: 1; color: #dee2e6; cursor: pointer; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: #f59f00; }
.stars-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.share-label { font-size: 13px; color: var(--muted); width: 100%; }
.share-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 15px;
  background: #fff; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.share-btn:hover { text-decoration: none; border-color: #c5cad1; }
.share-btn--viber { color: #7360f2; } .share-btn--tg { color: #229ed9; } .share-btn--wa { color: #25d366; } .share-btn--fb { color: #1877f2; }
.cat-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0; }
.cat-form select { height: 32px; max-width: 260px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; }
.cat-form .btn-secondary { height: 32px; font-size: 13px; padding: 0 10px; }
.rep-tools { display: grid; gap: 4px; margin-top: 6px; }
.staff-box { padding: 10px; border: 1px dashed #c5a3d6; border-radius: var(--radius); background: #fbf7fd; }
/* Согласие на cookies */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .1); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.consent-in { display: grid; gap: 10px; }
.consent p { margin: 0; font-size: 14px; }
.consent-opts { display: grid; gap: 6px; }
.consent-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.consent-btns .btn-add, .consent-btns .btn-secondary { height: 38px; }
.footer-consent { color: inherit; font-size: inherit; opacity: .85; }
.static-page { max-width: 820px; }
.static-body h2 { font-size: 18px; margin: 22px 0 8px; }
.static-body ul { padding-left: 20px; }
.static-body li { margin: 4px 0; }
.static-updated { margin-top: 24px; font-size: 13px; }
.contact-form { display: grid; gap: 8px; max-width: 560px; margin-top: 16px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; box-sizing: border-box; }
/* Подача: быстрый старт */
.quick-start { padding: 16px; border: 2px solid var(--accent); border-radius: var(--radius); margin-bottom: 18px; background: #fffaf6; }
.quick-label { display: block; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.quick-input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; }
.quick-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick-cat { display: grid; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.quick-cat:hover { text-decoration: none; border-color: var(--accent); }
.quick-cat small { color: var(--muted); font-size: 12px; }
.quick-cat.is-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
/* Подача: подсказки, качество, предпросмотр */
.tips { font-size: 13.5px; color: #475467; background: #f8f9fa; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.price-hint { margin-top: 6px; font-size: 14px; color: #2b8a3e; }
.price-hint .linkish { color: var(--link); font-size: 14px; }
.draft-note { margin-bottom: 10px; padding: 8px 12px; border-radius: 6px; background: #e8f1ff; font-size: 14px; }
.draft-note .linkish { color: var(--link); }
.quality { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0; }
.quality-head { display: flex; justify-content: space-between; }
.quality-bar { height: 8px; border-radius: 4px; background: var(--bg-soft); margin: 8px 0; overflow: hidden; }
.quality-bar i { display: block; height: 100%; width: 0; background: #e8590c; transition: width .25s; }
.quality-bar i.is-mid { background: #f59f00; } .quality-bar i.is-good { background: #2b8a3e; }
.quality-todo { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.compose-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.preview { border: 1px dashed var(--accent); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.preview-card { display: grid; grid-template-columns: 160px 1fr; gap: 14px; }
.preview-photo { width: 160px; height: 120px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.preview-photo img { width: 100%; height: 100%; object-fit: cover; }
.preview-title { font-weight: 700; } .preview-price { font-weight: 800; font-size: 18px; margin: 4px 0; }
.preview-body { font-size: 13.5px; color: #475467; white-space: pre-line; }
@media (max-width: 720px) { .preview-card { grid-template-columns: 1fr; } .preview-photo { width: 100%; height: 180px; } }
/* ИИ-помощник */
.ai-photo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ai-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ai-btn { cursor: pointer; }
.ai-btn::before { content: "✨ "; }
.ai-btn:disabled { opacity: .6; cursor: wait; }

/* Условия сделки и виды бизнеса */
.badge--offer { top: auto; bottom: 8px; left: 8px; background: #6741d9; }
.badge--free { background: #2b8a3e; }
.badge--buy { background: #e8590c; }
.badge--video { left: auto; right: 8px; top: auto; bottom: 8px; background: rgba(0,0,0,.65); }
.card-torg { font-size: 12px; font-weight: 600; color: var(--muted); }
.seg--offer, .seg--biz { margin-bottom: 12px; flex-wrap: wrap; }
.deal-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
.deal-terms { margin: 10px 0 4px; }
.filter-checks { display: grid; gap: 4px; }
.seller-cats { margin: 4px 0 10px; }
.seller-cats .chip.is-on { background: var(--accent); color: #fff; }
.seller-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.seller-filter input, .seller-filter select { min-width: 0; flex: 1 1 140px; }
.video-link { display: inline-block; margin: 6px 0; }
.filter .check input { width: auto; height: auto; padding: 0; }
.filter .check { font-weight: 400; align-items: center; }
.field ul:has(input[type=checkbox]), .field div:has(> div > label > input[type=checkbox]) { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 0; margin: 0; list-style: none; }
.field label:has(> input[type=checkbox]) { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
/* Сотрудники бизнес-кабинета */
.team-invite { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 6px; }
.team-invite input { flex: 1 1 220px; height: 38px; padding: 0 10px; border: 1px solid #d0d4da; border-radius: 6px; font: inherit; }
.team-invite select, .team-tbl select, .agent-filter select, .agent-select { height: 34px; border: 1px solid #d0d4da; border-radius: 6px; font: inherit; background: #fff; }
.team-tbl td { vertical-align: top; }
.agent-filter { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; }
.seller-agent { margin: 8px 0 0; font-size: 13.5px; }
/* Карта */
.map-pick { margin-top: 12px; }
.map-pick-head { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.map-pick-head .linkish { color: var(--link); font-size: 14px; }
.map-box { height: 300px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); z-index: 0; }
.map-box--view { height: 260px; }
.per-m2 { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.map-list-bar { margin-bottom: 10px; }
.map-box--list { height: 420px; margin-bottom: 14px; }
.fields .field:has(textarea[data-wide]) { grid-column: 1 / -1; }
.price-list { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14.5px; }
.price-list td { padding: 7px 4px; border-bottom: 1px solid var(--line); }
.price-list td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
/* Безопасность и входы */
.geo-note { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.geo-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.geo-ua { font-size: 12.5px; color: var(--muted); word-break: break-word; }
.geo-warn { margin: 10px 0; }
.logins { width: 100%; border-collapse: collapse; font-size: 14px; }
.logins th, .logins td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.logins tr.is-foreign td, .tbl tr.is-foreign td { background: #fff4e6; }
.footer-credit { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) { .logins th:nth-child(4), .logins td:nth-child(4) { display: none; } }
/* Страницы ленты */
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 22px 0 8px; }
.pager a, .pager span { min-width: 38px; padding: 7px 11px; border-radius: 6px; text-align: center; font-weight: 600; font-size: 14.5px; }
.pager a { border: 1px solid var(--line); color: var(--text); }
.pager a:hover { border-color: var(--accent); text-decoration: none; }
.pager .is-on { background: var(--accent); color: #fff; }
.pager .pager-gap { min-width: auto; padding: 7px 2px; color: var(--muted); font-weight: 400; }
.footer-app { margin: 8px 0; }
.badge-trust { display: inline-block; margin: 2px 0; padding: 2px 8px; border-radius: 10px; background: #e6f4ea; color: #1e7e34; font-size: 12.5px; font-weight: 700; }
.ai-hint { margin: 6px 0; padding: 6px 10px; border-radius: 6px; font-size: 13.5px; background: #f1f3f5; }
.ai-hint--suspicious { background: #fff4e6; } .ai-hint--prohibited { background: #ffe3e3; }
.msg-img { display: block; max-width: 260px; max-height: 260px; border-radius: 8px; margin-bottom: 4px; }
.msg-attach { cursor: pointer; font-size: 22px; padding: 4px 6px; }
.seen { color: var(--muted); font-size: 12.5px; } .seen--on { color: #2b8a3e; font-weight: 600; }
.seen-line { display: block; }
.price-hist { font-size: 13.5px; margin: 4px 0 10px; } .price-hist summary { cursor: pointer; color: var(--link); }
.price-hist ul { list-style: none; margin: 6px 0 0; padding: 0; } .price-hist li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.bn-admin { margin-bottom: 26px; } .bn-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bn-thumb { width: 90px; height: 50px; object-fit: cover; border-radius: 4px; } .bn-thumb--lg { width: 300px; height: auto; }
.muted-row td { opacity: .55; }
