/*
 * Доска объявлений 2KOLESA. Mobile first: сначала телефон (390 px), шире 720 px — компьютер.
 * Цвета, шрифт, кнопки и шапка — по дизайн-системе сайта (холст «2KOLESA Moto Hub: сайт для телефона»,
 * брендбук 2KOLESA Moto Hub). Шрифт Onest лежит на сервере (лицензия OFL, assets/fonts/OFL-Onest.txt),
 * без Google Fonts: правило «без CDN» и CSP. Казахские буквы — в наборе cyrillic-ext.
 */

@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/onest-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/onest-cyrillic-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/onest-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(fonts/onest-cyrillic-600-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(fonts/onest-cyrillic-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(fonts/onest-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 800;
  src: url(fonts/onest-cyrillic-800-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 800;
  src: url(fonts/onest-cyrillic-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 800;
  src: url(fonts/onest-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* брендбук */
  --plum: #320932;          /* фон шапки и первого экрана, основной текст на светлом */
  --white: #FCFCFC;         /* фон страниц, текст на сливовом */
  --pink: #F3A4A1;          /* акценты на сливовом, контур второй кнопки */
  --coral: #E94C45;         /* главная кнопка (текст на ней сливовый), иконки */
  /* служебные оттенки дизайн-системы */
  --card: #F5ECF2;          /* подложка карточек и меток */
  --line: #D9C7D4;          /* рамки полей */
  --muted: #6B5468;         /* второстепенный текст на светлом */
  --muted-on-plum: #D9CBD8; /* второстепенный текст на сливовом */
  --lead-on-plum: #E4D8E3;  /* абзац под заголовком на сливовом */
  --plum-2: #4A1C47;        /* плашки на сливовом: переключатель языка, телефон */
  --field: #FFFFFF;

  --radius: 16px;
  --radius-s: 12px;
  --tap: 52px;              /* высота кнопок и полей на телефоне (дизайн-система: 52–56) */
  --gutter: 16px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--plum);
  font: 400 16px/1.45 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--plum); }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
img, svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 14px; border-radius: var(--radius-s);
  background: var(--white); color: var(--plum); font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- шапка (как на сайте): логотип, языки, адрес и телефон ---------- */
.bh {
  /* шапка уезжает при прокрутке, закреплена строка поиска (макет, принят владельцем 06.11) */
  position: relative; z-index: 20;
  background: var(--plum); color: var(--white);
  padding-top: env(safe-area-inset-top);
}
.bh-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  max-width: 960px; margin: 0 auto; padding: 10px var(--gutter) 6px;
}
.bh-home { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--white); text-decoration: none; }
.bh-home:hover { color: var(--white); }
.bh-logo { width: 132px; height: 38px; }

.bh-me { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border-radius: var(--radius-s);
  background: var(--plum-2); color: var(--white); flex: none; }
.bh-me:hover { color: var(--white); background: #5A2A56; }
.bh-me svg { width: 22px; height: 22px; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; }
.bh-ic-me svg { stroke: var(--pink); }
.bh-lang { display: flex; padding: 3px; border-radius: var(--radius-s); background: var(--plum-2); flex: none; }
.bh-lang a {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 38px; padding: 0 6px; border-radius: 9px;
  color: var(--muted-on-plum); font-size: 14px; font-weight: 700; text-decoration: none;
}
.bh-lang a:hover { color: var(--white); }
.bh-lang a[aria-current="true"] { background: var(--white); color: var(--plum); font-weight: 800; }
/* самые узкие телефоны (320 px): шапка и узкая полоса без прокрутки вбок */
@media (max-width: 359px) {
  .bh-logo { width: 112px; height: 32px; }
  .bh-lang a { min-width: 34px; padding: 0 4px; }
  .bh-mini .bh-logo { width: 88px; height: 26px; }
}

.bh-contact { padding: 0 var(--gutter) 10px; }
.bh-addr {
  display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 44px;
  color: var(--muted-on-plum); font-size: 14px; text-decoration: none;
}
.bh-addr:hover { color: var(--white); }
.bh-addr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-addr svg, .bh-phone svg { width: 18px; height: 18px; flex: none; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bh-addr svg { stroke: var(--pink); }
.bh-phone {
  display: flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-s); background: var(--plum-2); color: var(--white);
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.bh-phone:hover { color: var(--white); background: #5A2A56; }
.bh-phone svg { stroke: var(--coral); }
.bh-contact .bh-phone:only-child { margin-left: auto; }

/* ---------- узкая шапка при прокрутке (07.11): логотип и значки WhatsApp, карта, язык ----------
   Выезжает сверху, когда большая шапка ушла; класс is-mini у <html> ставит assets/board.js.
   Спрятанная полоса — visibility: hidden, поэтому её ссылки не ловят Tab и экранный диктор. */
:root { --mini: 52px; }
.bh-mini {
  position: fixed; top: 0; left: 0; right: 0; z-index: 25;
  background: var(--plum); color: var(--white); padding-top: env(safe-area-inset-top);
  box-shadow: 0 2px 12px rgba(50, 9, 50, .28);
  transform: translateY(-110%); visibility: hidden;
  transition: transform .2s ease, visibility 0s linear .2s;
}
.is-mini .bh-mini { transform: none; visibility: visible; transition: transform .2s ease; }
.bh-mini-in { display: flex; align-items: center; gap: 6px; max-width: 960px; height: var(--mini); margin: 0 auto; padding: 0 var(--gutter); }
.bh-mini .bh-home { min-height: 44px; margin-right: auto; }
.bh-mini .bh-logo { width: 104px; height: 30px; }
.bh-ic {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--radius-s); background: var(--plum-2);
  color: var(--white); font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer;
}
.bh-ic:hover { color: var(--white); background: #5A2A56; }
.bh-ic svg { width: 21px; height: 21px; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bh-ml { position: relative; }
.bh-ml summary { list-style: none; }
.bh-ml summary::-webkit-details-marker { display: none; }
.bh-ml[open] summary { background: var(--white); color: var(--plum); }
.bh-ml-list {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; padding: 6px;
  border-radius: var(--radius-s); background: var(--white); box-shadow: 0 8px 24px rgba(50, 9, 50, .25);
  display: grid; gap: 2px;
}
.bh-ml-list a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px;
  color: var(--plum); font-size: 15px; font-weight: 600; text-decoration: none; }
.bh-ml-list a:hover { background: var(--card); color: var(--plum); }
.bh-ml-list a[aria-current="true"] { background: var(--card); font-weight: 800; }

/* ---------- первый экран на сливовом ---------- */
.bm { flex: 1; }
.hero { background: var(--plum); color: var(--white); padding: 28px 0 32px; }
.hero-tall { min-height: 56vh; display: flex; align-items: flex-end; }
.hero h1 { font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; }
.kicker {
  display: inline-flex; align-items: center; margin: 0 0 14px; padding: 7px 12px; border-radius: 999px;
  background: var(--white); color: var(--plum); font-size: 14px; font-weight: 700;
}
.lead { margin: 14px 0 0; max-width: 36em; font-size: 17px; line-height: 1.45; color: var(--lead-on-plum); }

/* ---------- пункты «что здесь будет» ---------- */
.points { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 12px; }
.points li {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 16px;
  border-radius: var(--radius); background: var(--card); font-size: 16px; font-weight: 600; line-height: 1.35;
}
.points-n {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: var(--radius-s); background: var(--plum); color: var(--white);
  font-size: 15px; font-weight: 800;
}

/* ---------- кнопки (одна коралловая на экран) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--coral); color: var(--plum); font: 700 17px/1 var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--plum); filter: brightness(1.05); }
.btn-dark { background: var(--plum); color: var(--white); }
.btn-dark:hover { color: var(--white); }
.btn-line { background: transparent; border: 2px solid var(--plum); color: var(--plum); }

/* ---------- ошибка ---------- */
.err { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.err-code { margin: 0; font-size: 56px; font-weight: 800; line-height: 1; color: var(--coral); }
.err h1 { font-size: 26px; line-height: 1.15; }

/* ---------- подвал ---------- */
.bf { background: var(--plum); color: var(--muted-on-plum); font-size: 14px; padding-bottom: env(safe-area-inset-bottom); }
.bf-in { max-width: 960px; margin: 0 auto; padding: 18px var(--gutter); }

/* ---------- компьютер ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; --tap: 48px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 48px; }
  .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .points li { align-items: flex-start; flex-direction: column; min-height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}


/* =====================================================================
   Объявления (MVP, шаг M3): лента, поиск, карточки, объявление, продавец, «мой мотоцикл».
   Устройство экранов — по макету board/public/maket.html (решение 10, 06.11).
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.feed svg, .sbar svg, .lst svg, .gal-nav svg, .back svg, .moto svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* строка поиска — закреплена */
.sbar { position: sticky; top: 0; z-index: 15; background: var(--plum); padding: 4px 0 12px; transition: top .2s ease, padding .2s ease; }
/* под узкой шапкой строка поиска встаёт сразу под неё и становится ниже */
.is-mini .sbar { top: calc(var(--mini) + env(safe-area-inset-top)); padding: 0 0 8px; }
.is-mini .search-box, .is-mini .search-go { height: 44px; }
.search { display: flex; gap: 8px; }
.search-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px;
  border-radius: 14px; background: var(--white); color: var(--plum); }
.search-box svg { width: 22px; height: 22px; flex: none; }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--plum); font: 400 16px var(--font); outline: none; }
.search-box input::placeholder { color: var(--muted); }
.search-box:focus-within { box-shadow: 0 0 0 3px var(--pink); }
.search-go { flex: none; height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--plum-2); color: var(--white);
  font: 700 15px var(--font); cursor: pointer; }

.feed { padding-top: 12px; padding-bottom: 40px; }
.mybike { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--card);
  text-decoration: none; color: var(--plum); }
.mybike:hover { color: var(--plum); background: #EFE2EB; }
.mybike-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--plum); color: var(--white);
  display: flex; align-items: center; justify-content: center; }
.mybike-ic svg { width: 24px; height: 24px; }
.mybike-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mybike-t b { font-weight: 800; font-size: 15px; }
.mybike-t small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.mybike-go { width: 20px; height: 20px; flex: none; }

/* типы — в несколько строк, без прокрутки вбок (правило владельца: ничего не листать в сторону) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--plum); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { color: var(--plum); border-color: var(--plum); }
.chip.is-on { background: var(--plum); border-color: var(--plum); color: var(--white); }
.chip-line { border-style: dashed; }

.feed-h { margin: 18px 0 10px; font-size: 19px; line-height: 1.2; }
.feed-empty { margin: 8px 0 24px; padding: 18px; border-radius: var(--radius); background: var(--card); font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
.more { width: 100%; margin-top: 20px; }

.card { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-decoration: none; color: var(--plum); }
.card:hover { color: var(--plum); }
.card:hover .card-t { text-decoration: underline; }
.card-ph { position: relative; aspect-ratio: 1; margin-bottom: 5px; border-radius: 14px; background: var(--card); overflow: hidden;
  display: flex; align-items: center; justify-content: center; }
.card-ph img { width: 100%; height: 100%; object-fit: cover; }
.card-noph { width: 40%; height: 40%; color: #9C7F98; }
.card-price { position: absolute; left: 8px; bottom: 8px; padding: 5px 9px; border-radius: 10px; background: var(--plum); color: var(--white);
  font-size: 15px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.card-badge { position: absolute; left: 8px; top: 8px; padding: 4px 8px; border-radius: 8px; background: var(--pink); color: var(--plum);
  font-size: 11.5px; font-weight: 800; }
.card-sold { position: absolute; right: 8px; top: 8px; padding: 4px 8px; border-radius: 8px; background: var(--white); color: var(--plum);
  font-size: 12px; font-weight: 800; }
.card-t { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-fit { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 0; }
.card-fit span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-fit.is-ok { color: var(--plum); font-weight: 700; }
.card-fit svg { width: 14px; height: 14px; flex: none; color: var(--coral); stroke-width: 3; }
.card-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* объявление */
.lst { padding-bottom: 96px; }
.gal { position: relative; background: var(--card); }
.gal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 960px; margin: 0 auto; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-item { flex: none; display: block; width: 100%; scroll-snap-align: center; scroll-snap-stop: always; cursor: zoom-in; }
.gal-item img { width: 100%; height: min(78vw, 520px); object-fit: contain; background: var(--card); }
/* высокие фото и видео с телефона: по краям — тот же кадр, размытый и притемнённый (09.11), а не пустые поля */
.gal-item { position: relative; overflow: hidden; }
.gal-item .gal-bg { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); object-fit: cover;
  filter: blur(22px) saturate(1.15) brightness(.62); background: #140411; }
.gal-item .gal-bg + img, .gal-item .gal-bg + video { position: relative; background: transparent; }
.gal-nav { position: absolute; top: 50%; margin-top: -22px; display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: rgba(252, 252, 252, .94); color: var(--plum); cursor: pointer; box-shadow: 0 2px 8px rgba(50, 9, 50, .18); }
.gal-nav svg { width: 22px; height: 22px; }
.gal-nav:disabled { opacity: .35; cursor: default; }
.gal-prev { left: 10px; }
.gal-next { right: 10px; }
/* стрелки — только там, где есть мышь; на телефоне листают пальцем */
@media (hover: hover) and (pointer: fine) { .gal-nav:not([hidden]) { display: flex; } }
.gal-back { position: absolute; left: 10px; top: 10px; width: 44px; height: 44px; border-radius: 50%; background: rgba(252, 252, 252, .94);
  display: flex; align-items: center; justify-content: center; color: var(--plum); }
.gal-back svg { width: 22px; height: 22px; }
.gal-n { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(50, 9, 50, .8); color: var(--white);
  font-size: 13px; font-weight: 700; }
.lst-body { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.lst-price { margin: 0; font-size: 28px; font-weight: 800; line-height: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lst-sold { padding: 5px 10px; border-radius: 8px; background: var(--plum); color: var(--white); font-size: 14px; }
.lst-title { font-size: 21px; line-height: 1.2; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 9px; background: var(--card); font-size: 13px; font-weight: 600; }
.tag-oem { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.box { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--card); }
.box-h { font-size: 15px; }
.fit-me { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--plum); color: var(--white);
  font-size: 14px; font-weight: 700; }
.fit-me svg { width: 18px; height: 18px; flex: none; color: var(--pink); stroke-width: 3; }
.fit-row { margin: 0; font-size: 14px; }
.fit-why { margin: -2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.fit-warn { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1.5px dashed var(--line); font-size: 14px; color: var(--plum); }
.feed-maybe-note { margin: -4px 0 12px; font-size: 14px; color: var(--muted); }
.lst-desc { margin: 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.lst-row { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; }
.lst-row svg { width: 22px; height: 22px; flex: none; }
.lst-meta { margin: 0; font-size: 13px; color: var(--muted); }

.seller { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); border: 1.5px solid var(--line);
  text-decoration: none; color: var(--plum); }
a.seller:hover { color: var(--plum); border-color: var(--plum); }
.seller-ava { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--pink); color: var(--plum);
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; }
.seller-ava.is-own { background: var(--plum); }
.seller-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.seller-t b, .seller-t h1 { font-size: 16px; font-weight: 800; line-height: 1.25; }
.seller-t small { color: var(--muted); font-size: 13px; }
.seller-go { width: 20px; height: 20px; flex: none; }
.seller-head { margin: 8px 0 16px; border: 0; padding: 0; }
.seller-head .seller-t h1 { font-size: 21px; }

.act { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--white); border-top: 1px solid #EFE4EC;
  box-shadow: 0 -6px 20px rgba(50, 9, 50, .06); padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); }
.act-in { display: flex; gap: 8px; }
.act-main { flex: 1; }
.act-none { margin: 0; font-size: 14px; color: var(--muted); }
.btn-sq { flex: none; width: var(--tap); padding: 0; }
.btn-sq svg { width: 22px; height: 22px; }

.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.back svg { width: 20px; height: 20px; }

/* мой мотоцикл */
.moto { padding-top: 8px; padding-bottom: 40px; }
.moto h1 { font-size: 26px; margin-top: 4px; }
.moto-lead { margin: 6px 0 12px; color: var(--muted); font-size: 15px; }
.moto-now { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 12px 14px;
  border-radius: var(--radius-s); background: var(--card); }
.moto-step { font-size: 17px; margin: 12px 0 10px; }
.moto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.moto-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px;
  border-radius: var(--radius-s); border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; }
.moto-list a:hover { border-color: var(--plum); color: var(--plum); }
.moto-list a.is-strong { background: var(--plum); border-color: var(--plum); color: var(--white); }
.moto-list small { color: var(--muted); font-weight: 500; }
.moto-list.is-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.moto-list.is-compact li:first-child { grid-column: 1 / -1; }
.moto-list.is-compact a { justify-content: center; }

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
  .lst-body { max-width: 720px; }
  .act { position: static; box-shadow: none; border: 0; padding: 0; background: transparent; }
  .act-in { max-width: 720px; padding-top: 4px; }
  .lst { padding-bottom: 40px; }
  .moto-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .moto-list.is-compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- контакты продавца без номеров в странице (07.11) ---------- */
.hp { display: none !important; }
.js-contact.is-busy { opacity: .6; pointer-events: none; }
.act-msg { margin: 8px auto 0; max-width: 720px; padding: 0 var(--gutter); font-size: 14px; text-align: center; color: var(--muted); }
.act-num { font-size: 20px; font-weight: 800; color: var(--plum); text-decoration: none; }
.contact { padding-top: 12px; padding-bottom: 40px; display: grid; gap: 14px; max-width: 560px; }
.contact h1 { font-size: 24px; }
.contact-what { margin: 0; color: var(--muted); }
.contact form .btn, .contact-num { width: 100%; }
.contact-num { font-size: 22px; }
.contact-why { margin: 0; font-size: 14px; color: var(--muted); }
.contact svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- вход и регистрация продавцов, кабинет (07.11, шаг R2) ---------- */
.auth, .cab { padding-top: 20px; padding-bottom: 48px; max-width: 520px; }
.auth h1, .cab h1 { font-size: 26px; line-height: 1.15; }
.auth-lead { margin: 8px 0 0; color: var(--muted); }
.auth-err { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-s); background: #FBE3E2; color: #8A1D18; font-weight: 600; }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-weight: 700; font-size: 15px; }
.fld small { font-weight: 400; color: var(--muted); }
.fld input, .fld select { height: var(--tap); padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--field);
  color: var(--plum); font: 400 16px var(--font); width: 100%; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--pink); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.seg legend { width: 100%; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.seg-item { position: relative; }
.seg-item input { position: absolute; opacity: 0; inset: 0; }
.seg-item span { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; cursor: pointer; }
.seg-item input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--white); }
.seg-item input:focus-visible + span { box-shadow: 0 0 0 3px var(--pink); }
.auth-form .btn { width: 100%; }
.auth-small { margin: 0; font-size: 14px; color: var(--muted); }
.auth-alt { margin: 18px 0 0; }
.cab-kicker { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: .04em; }
.cab-meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.cab-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 18px 0; padding: 0; }
.cab-stats li { display: grid; gap: 2px; padding: 12px; border-radius: var(--radius-s); background: var(--card); }
.cab-stats b { font-size: 24px; }
.cab-stats span { font-size: 13px; color: var(--muted); }
.cab-soon { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-s); border: 1.5px dashed var(--line); color: var(--muted); }
.cab form .btn { width: 100%; margin-bottom: 12px; }
.cab svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


/* ---------- установка доски (bazar/install, временная страница для администратора CRM) ---------- */
.inst { padding-top: 20px; padding-bottom: 48px; max-width: 760px; }
.inst-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inst-head h1 { font-size: 24px; line-height: 1.15; margin: 0; }
.btn-link { border: 0; background: none; padding: 8px 0; color: var(--muted); font: 600 15px var(--font); text-decoration: underline; cursor: pointer; }
.inst-meta { margin: 8px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.inst-sum { margin: 12px 0 16px; font-weight: 600; }
.inst-sum a { margin-left: 8px; font-weight: 400; }
.inst-step { margin: 0 0 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--field); }
.inst-step.is-next { border-color: var(--coral); box-shadow: 0 0 0 2px var(--pink); }
.inst-step.is-done { background: var(--card); }
.inst-step h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.inst-n { display: block; font-size: 13px; color: var(--coral); text-transform: uppercase; letter-spacing: .04em; }
.inst-state { margin: 6px 0 0; font-weight: 600; }
.inst-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--card); font-size: 12px; font-weight: 700; color: var(--muted); }
.inst-tag.is-danger { background: #FBE3E2; color: #8A1D18; }
.inst-about, .inst-after { margin: 8px 0 0; font-size: 15px; }
.inst-after { color: var(--muted); font-size: 14px; }
.inst-btns { display: grid; gap: 8px; margin-top: 12px; }
.inst-btns form { display: grid; gap: 8px; }
.inst-btns .btn { width: 100%; }
.btn-ghost { background: transparent; border: 2px solid var(--plum); color: var(--plum); }
.btn-danger { background: #8A1D18; color: var(--white); }
.btn-danger:hover { color: var(--white); }
.inst-ok { display: flex; gap: 10px; align-items: center; min-height: 44px; font-size: 15px; }
.inst-ok input { width: 22px; height: 22px; flex: none; }
.inst-rb summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); cursor: pointer; }
.inst-res { margin-top: 12px; padding: 12px; border-radius: var(--radius-s); background: #E4F4E8; }
.inst-res.is-err { background: #FBE3E2; color: #8A1D18; }
.inst-res p { margin: 0 0 6px; overflow-wrap: anywhere; }
.inst-res h3 { margin: 10px 0 6px; font-size: 15px; }
.inst-log { font-size: 14px; }
.inst-tbl { overflow-x: auto; max-width: 100%; }
.inst-tbl table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.inst-tbl th, .inst-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
@media (min-width: 720px) {
  .inst-btns { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
}

/* ---------- умный поиск: подсказки под полем, «ищем также», похожие (08.11) ---------- */
.search { position: relative; }
.sugg { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); z-index: 30; max-height: min(70vh, 520px);
  overflow-y: auto; overscroll-behavior: contain; background: var(--white); color: var(--plum); border-radius: var(--radius-s);
  box-shadow: 0 12px 32px rgba(50, 9, 50, .28); padding: 6px 0; }
.sugg a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; color: var(--plum); text-decoration: none; }
.sugg a:hover, .sugg a.is-active { background: var(--card); }
.sugg-fix { margin: 4px 14px 6px; font-size: 14px; color: var(--muted); }
.sugg-q { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.sugg-n { flex: none; min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; text-align: center; }
.sugg-i { border-top: 1px solid var(--card); }
.sugg-ph { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--card); overflow: hidden; }
.sugg-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sugg-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sugg-t b { font-weight: 600; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg-t small { font-size: 13px; color: var(--muted); }
.sugg-all { justify-content: center; font-weight: 700; border-top: 1px solid var(--card); }
.sq { margin: 12px 0 0; display: grid; gap: 6px; font-size: 15px; }
.sq p { margin: 0; }
.sq-fix a { margin-left: 4px; }
.sq-also { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }
.sq-w { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line);
  color: var(--plum); font-weight: 600; text-decoration: none; }
.feed-h2 { margin-top: 28px; }

/* ---------- «Похожие» и «Может подойти»: отдельная зона под точными результатами (просьба владельца 08.11) ----------
 * На телефоне — полоса во всю ширину другого фона с пунктиром сверху, заголовок со значком и пояснением,
 * объявления — строками (фото слева), а не плитками, как у найденного точно. На компьютере — панель. */
.alt { margin: 34px calc(-1 * var(--gutter)) 0; padding: 20px var(--gutter) 24px; background: var(--card); border-top: 2px dashed var(--line); }
.feed > .alt:last-child { margin-bottom: -40px; padding-bottom: 40px; }
.alt-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.alt-ic { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--white); color: var(--coral); }
.alt-h { font-size: 17px; line-height: 1.25; }
.alt-note { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.rows { display: grid; gap: 8px; }
.card-row { flex-direction: row; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--white); }
.card-row .card-ph { flex: none; width: 84px; margin: 0; border-radius: 10px; }
.card-row .card-noph { width: 46%; height: 46%; }
.card-b { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.card-rp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; line-height: 1.3; }
.card-rp b { font-weight: 800; }
.card-rp small { padding: 2px 7px; border-radius: 7px; background: var(--pink); font-size: 11.5px; font-weight: 800; }
.card-rp small.is-sold { background: var(--plum); color: var(--white); }
.alt .more { background: var(--white); }

/* ---------- видео в объявлениях (08.11) ----------
 * Лента: значок «▶ 0:08» справа внизу; скрипт кладёт <video> поверх обложки и показывает его, когда пошли кадры.
 * Видео не ловит нажатия — нажатие по карточке открывает объявление. Объявление: слайд галереи с плеером. */
.card-vid { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 4px 7px 4px 5px;
  border-radius: 9px; background: rgba(50, 9, 50, .82); color: var(--white); font-size: 12px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; }
.card-vid svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.card-price, .card-badge, .card-sold { z-index: 2; }
.card-v { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: transparent; }
.card-row .card-vid { right: 4px; bottom: 4px; padding: 3px 5px 3px 3px; font-size: 11px; }
.card-row .card-vid svg { width: 11px; height: 11px; }
.gal-video { display: flex; align-items: center; justify-content: center; background: #140411; cursor: zoom-in; }
.gal-prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(252, 252, 252, .25); pointer-events: none; }
.gal-prog i { display: block; height: 100%; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); transition: transform .25s linear; }
.gal-video { position: relative; }
.gal-video video { display: block; width: 100%; height: min(78vw, 520px); object-fit: contain; background: #140411; }
.gal-snd { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(252, 252, 252, .94); color: var(--plum); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gal-snd[hidden] { display: none; }
.gal-snd svg { width: 22px; height: 22px; }
.gal-snd .snd-on, .gal-snd.is-on .snd-off { display: none; }
.gal-snd.is-on .snd-on { display: block; }
.gal-snd.is-on { background: var(--coral); }

/* лента подгружается сама: вместо кнопки — «Загружаем ещё…» с крутилкой; ошибка — снова кнопка */
.more.is-auto { border-color: transparent; background: transparent; color: var(--muted); font-weight: 600; pointer-events: none; }
.more.is-auto::before { content: ''; width: 18px; height: 18px; margin-right: 10px; border: 2.5px solid var(--line); border-top-color: var(--coral);
  border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .more.is-auto::before { animation: none; } }

@media (min-width: 720px) {
  .alt { margin: 40px 0 0; padding: 22px; border-top: 0; border-radius: var(--radius); }
  .feed > .alt:last-child { margin-bottom: 0; padding-bottom: 22px; }
  .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.inst-copy { width: 100%; margin: 4px 0 6px; }

/* ---------- кабинет продавца R3 (09.11): мои объявления и редактор ---------- */
.cab-verify { display: flex; gap: 12px; margin: 16px 0 0; padding: 14px; border-radius: var(--radius-s); background: #FFF4D6; color: #5A4200; }
.cab-verify.is-ask { background: #FBE3E2; color: #8A1D18; }
.cab-verify svg { flex: none; width: 24px; height: 24px; }
.cab-verify b { display: block; }
.cab-verify p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }
.cab-new { margin: 18px 0 8px; }
.cab-new .btn { gap: 8px; }
.cab-new .btn svg { width: 22px; height: 22px; stroke-width: 2.5; }
.cab-empty { margin: 8px 0; color: var(--muted); line-height: 1.45; }
.cab-h { margin: 22px 0 8px; font-size: 17px; }
.cab-h span { color: var(--muted); font-weight: 600; }
/* «Мои объявления N», под ним группы по статусам мелкими подписями; после «Опубликовать» и др. — плашка и подсветка строки */
.cab-all { margin: 26px 0 0; font-size: 20px; }
.cab-all span { color: var(--muted); font-weight: 600; }
.cab-g { margin: 14px 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cab-g span::before { content: '· '; }
.cab-done { display: flex; gap: 12px; margin: 16px 0 0; padding: 14px; border-radius: var(--radius-s); background: #DDF3E4; color: #155B2E; }
.cab-done svg { flex: none; width: 24px; height: 24px; }
.cab-done b { display: block; }
.cab-done p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.cab-done a { display: inline-block; margin-top: 8px; font-weight: 700; color: inherit; }
.cab-row.is-fresh { box-shadow: 0 0 0 2px #2E9E5B; animation: cab-fresh 1.6s ease-out; }
@keyframes cab-fresh { from { background: #DDF3E4; } }
@media (prefers-reduced-motion: reduce) { .cab-row.is-fresh { animation: none; } }
.cab-list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.cab-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--card); text-decoration: none; color: inherit; }
.cab-th { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--line); }
.cab-th img { width: 100%; height: 100%; object-fit: cover; }
.cab-th svg { width: 28px; height: 28px; }
.cab-tx { display: grid; gap: 2px; flex: 1; min-width: 0; }
.cab-tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-tx span { font-weight: 700; }
.cab-tx em { font-style: normal; font-size: 13px; color: var(--muted); }
.cab-go { flex: none; width: 20px; height: 20px; color: var(--muted); }
.cab-foot { display: grid; gap: 4px; margin-top: 28px; }
.cab-foot .btn { width: 100%; }

.ed { padding-top: 12px; padding-bottom: 140px; max-width: 620px; }
.ed svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ed-top .back { margin-right: auto; }
.ed-st { padding: 4px 10px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; }
.ed-st.st-active { background: #DDF3E4; color: #155B2E; }
.ed-st.st-rejected { background: #FBE3E2; color: #8A1D18; }
.ed-save { width: 100%; min-height: 18px; font-size: 13px; color: var(--muted); text-align: right; }
.ed-save.is-bad { color: #8A1D18; font-weight: 600; }
.ed-done { margin: 8px 0 0; padding: 10px 14px; border-radius: var(--radius-s); background: #DDF3E4; color: #155B2E; font-weight: 600; }
.ed-h { margin: 16px 0 8px; font-size: 17px; }
.ed-h small { font-size: 13px; font-weight: 500; color: var(--muted); }
.ed-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-ph, .ed-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card); }
.ed-ph img { width: 100%; height: 100%; object-fit: cover; }
.ed-ph.is-cover { box-shadow: 0 0 0 2.5px var(--coral); }
.ed-ph.is-loading { opacity: .6; }
.ed-cover { position: absolute; left: 6px; top: 8px; padding: 3px 7px; border-radius: 7px; background: var(--coral); color: var(--plum); font-size: 11.5px; font-weight: 800; }
.ed-x, .ed-star { position: absolute; top: 4px; width: 36px; height: 36px; padding: 7px; border: 0; border-radius: 50%; background: rgba(252, 252, 252, .92); color: var(--plum); cursor: pointer; }
.ed-x { right: 4px; }
.ed-star { left: 4px; }
.ed-star[hidden] { display: none; }
.ed-x svg, .ed-star svg { width: 100%; height: 100%; }
.ed-prog { position: absolute; left: 10px; right: 10px; top: 50%; height: 6px; border-radius: 3px; background: var(--white); overflow: hidden; }
.ed-prog i { display: block; height: 100%; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); transition: transform .2s; }
.ed-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line); background: transparent;
  color: var(--plum); font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; }
.ed-add[hidden] { display: none; }
.ed-add svg { width: 30px; height: 30px; color: var(--coral); }
.ed-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.ed-form { display: grid; gap: 16px; margin-top: 18px; }
.ed-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--field); font: inherit; color: inherit; resize: vertical; }
.ed-form textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--pink); }
.ed-price { position: relative; display: block; }
.ed-price input { width: 100%; padding-right: 40px; font-size: 18px; font-weight: 700; }
.ed-price b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ed-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.ed-check input { width: 22px; height: 22px; accent-color: var(--plum); }
.ed-fit { position: relative; }
.ed-fit[hidden] { display: none; }
.ed-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ed-chips:empty { display: none; }
.ed-chips li { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--plum); color: var(--white); font-size: 14px; font-weight: 600; }
.ed-chips button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--pink); font-size: 20px; line-height: 1; cursor: pointer; }
.ed-fit-q { position: relative; }
.ed-fit-q input { width: 100%; }
.ed-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 6px; border-radius: var(--radius-s);
  background: var(--white); box-shadow: 0 10px 30px rgba(50, 9, 50, .18); max-height: 300px; overflow: auto; }
.ed-sugg[hidden] { display: none; }
.ed-sugg button { display: block; width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: inherit; text-align: left; color: inherit; cursor: pointer; }
.ed-sugg button:hover, .ed-sugg button:focus-visible { background: var(--card); outline: none; }
.ed-sugg .is-own { color: var(--muted); font-style: italic; }
.fld-err { margin: 4px 0 0; color: #8A1D18; font-size: 14px; font-weight: 600; }
.ed-nojs { width: 100%; }
.ed-nojs[hidden] { display: none; }
.ed-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white);
  box-shadow: 0 -6px 24px rgba(50, 9, 50, .12); }
.ed-bar > * { max-width: 620px; margin-left: auto; margin-right: auto; }
.ed-miss { margin: 0 auto 8px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.ed-miss[hidden] { display: none; }
.ed-acts { display: flex; gap: 8px; }
.ed-acts form, .ed-acts > a { flex: 1; }
.ed-acts .btn { width: 100%; margin: 0; }
@media (min-width: 720px) { .ed-media { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---------- бэкофис менеджера /admin (09.11) ---------- */
.adm { padding-top: 20px; padding-bottom: 48px; max-width: 760px; }
.adm h1 { font-size: 26px; }
.adm svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm-card { margin: 0 0 10px; padding: 12px; border-radius: 14px; background: var(--card); }
.adm-card p { margin: 4px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.adm-note { color: #8A1D18 !important; }
.adm-l { display: flex; gap: 12px; }
.adm-l > div { flex: 1; min-width: 0; }
.adm-th { flex: none; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--white); }
.adm-th img { width: 100%; height: 100%; object-fit: cover; }
.adm-acts { display: flex; gap: 8px; margin-top: 10px; }
.adm-acts form, .adm-acts a { flex: 1; }
.adm-acts .btn { width: 100%; }
.adm-more { margin-top: 8px; }
.adm-more summary { min-height: 40px; display: flex; align-items: center; font-weight: 600; color: var(--muted); cursor: pointer; }
.adm-text { display: flex; gap: 8px; margin-top: 8px; }
.adm-text input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); font: inherit; }
.adm-text .btn { flex: none; width: auto; padding: 0 14px; }
.ed-vt { position: absolute; left: 6px; right: 6px; top: calc(50% + 10px); font-size: 11.5px; font-weight: 700; text-align: center; color: var(--plum); line-height: 1.2; }
.ed-addv svg { color: var(--plum); }
.ed-ph .card-vid { right: 6px; bottom: 6px; }

/* ---------- «Подать пачкой» (09.11): фото пачкой, из таблицы, по кодам, быстрая таблица ---------- */
.cab-bulk { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 12px 14px; border-radius: 14px; background: var(--card); color: inherit; text-decoration: none; }
.cab-bulk > svg:first-child { flex: none; width: 28px; height: 28px; color: var(--coral); }
.cab-bulk span { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cab-bulk small { color: var(--muted); font-size: 13px; }
.bk { padding-top: 12px; padding-bottom: 160px; max-width: 760px; }
.bk svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-h1 { margin: 12px 0 4px; font-size: 26px; line-height: 1.15; }
.bk-lead { margin: 0; color: var(--muted); line-height: 1.45; }
.bk-note { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-s); background: #FFF4D6; color: #5A4200; font-size: 14px; line-height: 1.4; }
.bk-nojs { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-s); background: #FBE3E2; color: #8A1D18; font-weight: 600; }
.bk-nojs[hidden] { display: none; }
.bk-ways { display: grid; gap: 10px; margin: 16px 0 0; }
.bk-way { border-radius: var(--radius); background: var(--card); }
.bk-way > summary { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none; }
.bk-way > summary::-webkit-details-marker { display: none; }
.bk-way > summary b { display: block; font-size: 17px; }
.bk-way > summary small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.bk-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-s); background: var(--white); color: var(--coral); }
.bk-ic svg { width: 24px; height: 24px; }
.bk-way[open] > summary .bk-ic { background: var(--plum); color: var(--white); }
.bk-body { display: grid; gap: 12px; padding: 0 14px 16px; }
.bk-tips { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.45; }
.bk-pick { position: relative; overflow: hidden; width: 100%; }
.bk-pick input, .bk-cam input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bk-pick svg { width: 22px; height: 22px; }
.bk-batch, .bk-plan { display: grid; gap: 10px; }
.bk-batch[hidden], .bk-plan[hidden], .bk-prog[hidden] { display: none; }
.bk-opts { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 8px; }
.bk-opt span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.bk-opt select { width: 100%; height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--plum); font: 15px var(--font); }
.bk-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.bk-sum { margin: 0; font-weight: 700; }
.bk-go { display: grid; gap: 8px; }
.bk-go .btn, .bk-plan > .btn { width: 100%; }
.bk-go .btn:disabled, .bk-bar .btn:disabled { opacity: .5; cursor: default; }
.bk-prog { display: grid; gap: 4px; font-size: 14px; }
.bk-prog progress { width: 100%; height: 10px; accent-color: var(--coral); }
.bk-groups { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bk-g { display: flex; align-items: flex-start; gap: 8px; padding: 8px; border-radius: var(--radius-s); background: var(--white); }
.bk-gn { flex: none; display: flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--plum); color: var(--white); font-size: 13px; font-weight: 800; }
.bk-gp { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.bk-gph { position: relative; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); cursor: pointer; }
.bk-gph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bk-gph.is-start { box-shadow: 0 0 0 2px var(--plum); }
.bk-paste { width: 100%; min-height: 140px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white); color: var(--plum); font: 14px/1.4 var(--font); resize: vertical; }
.bk-paste:focus, .bk-f input:focus, .bk-f select:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--pink); }
.bk-prev { display: grid; gap: 6px; max-height: 55vh; margin: 0; padding: 0; overflow: auto; list-style: none; }
.bk-prev li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--white); font-size: 14px; }
.bk-prev li.is-error { background: #FBE3E2; }
.bk-pl { flex: none; min-width: 22px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-pb { flex: 1; display: grid; gap: 2px; min-width: 0; }
.bk-pb b { overflow-wrap: anywhere; }
.bk-pb small { color: var(--muted); overflow-wrap: anywhere; }
.bk-pb em { font-style: normal; font-weight: 600; color: #8A1D18; }
.bk-pa { flex: none; padding: 2px 8px; border-radius: 999px; background: #DDF3E4; color: #155B2E; font-size: 12px; font-weight: 800; }
.is-update .bk-pa { background: #E3ECFB; color: #1D3F8A; }
.is-error .bk-pa { background: #8A1D18; color: var(--white); }
.bk-tabs { display: flex; gap: 8px; margin: 28px 0 10px; scroll-margin-top: 70px; }
.bk-tabs a { flex: 1; padding: 10px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--plum); font-weight: 700; text-align: center; text-decoration: none; }
.bk-tabs a[aria-current="page"] { background: var(--plum); border-color: var(--plum); color: var(--white); }
.bk-tabs span { opacity: .7; }
.bk-tabs + .bk-hint { margin-bottom: 10px; }
.bk-rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bk-row { display: grid; grid-template-columns: auto 64px minmax(0, 1fr); grid-template-areas: 'sel th f' 'sel cam f'; align-items: start; gap: 8px; padding: 8px; border-radius: 14px; background: var(--card); }
.bk-sel { grid-area: sel; }
.bk-th { grid-area: th; }
.bk-f { grid-area: f; }
.bk-cam { grid-area: cam; }
.bk-row.is-ready { box-shadow: inset 4px 0 0 #2E9E5B; }
.bk-row.is-saving { opacity: .8; }
.bk-sel { display: flex; align-items: center; height: 64px; }
.bk-sel input, .bk-all input { width: 22px; height: 22px; accent-color: var(--plum); }
.bk-th { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--white); color: var(--line); }
.bk-th > svg { width: 28px; height: 28px; }
.bk-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bk-th span { position: absolute; right: 3px; bottom: 3px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: rgba(50, 9, 50, .8); color: var(--white); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.bk-th span:empty { display: none; }
.bk-f { display: grid; gap: 6px; min-width: 0; }
.bk-f input, .bk-f select { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); color: var(--plum); font: 15px var(--font); }
.bk-f input.is-bad { border-color: #C0392B; }
.bk-l2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.bk-l2.has-code { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); }
.bk-l2 select { padding: 0 4px 0 8px; }
.bk-miss { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.bk-miss:empty { display: none; }
.bk-miss.is-bad { color: #8A1D18; font-weight: 600; }
.bk-st { margin: 0; font-size: 13px; font-weight: 700; }
.bk-st.st-rejected { color: #8A1D18; }
.bk-cam { position: relative; display: flex; align-items: center; justify-content: center; width: 64px; height: 40px; border-radius: 10px; background: var(--white); color: var(--coral); }
.bk-cam svg { width: 24px; height: 24px; }
.bk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -6px 20px rgba(50, 9, 50, .12); }
.bk-bar-in { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 0 auto; }
.bk-all { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.bk-more { position: relative; }
.bk-more > summary { display: flex; align-items: center; height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; list-style: none; }
.bk-more > summary::-webkit-details-marker { display: none; }
.bk-menu { position: absolute; left: 0; bottom: calc(100% + 8px); display: grid; gap: 8px; width: min(320px, calc(100vw - 32px)); padding: 12px; border-radius: 14px; background: var(--white); box-shadow: 0 8px 28px rgba(50, 9, 50, .25); }
.bk-menu p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.bk-mrow { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-menu button { min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--plum); font: 600 14px var(--font); cursor: pointer; }
.bk-menu button:disabled { opacity: .45; cursor: default; }
.bk-menu .bk-del { color: #8A1D18; border-color: #F0B9B5; }
.bk-menu .bk-del.is-sure { background: #8A1D18; border-color: #8A1D18; color: var(--white); }
.bk-bar [data-publish] { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; font-size: 15px; }
.bk-bar-msg { max-width: 760px; margin: 4px auto 0; color: var(--muted); font-size: 13px; }
.bk-bar-msg:empty { display: none; }
@media (min-width: 720px) {
  .bk-gph { width: 80px; height: 80px; }
  .bk-row { grid-template-columns: auto 64px minmax(0, 1fr) auto; grid-template-areas: 'sel th f cam'; }
  .bk-cam { width: 44px; height: 44px; }
  .bk-f { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); align-items: start; }
  .bk-f .bk-miss, .bk-f .bk-st { grid-column: 1 / -1; }
}
