/* Умная строка шапки: выпадающий список подсказок (js/omni/omni.js). Вид — макет «Шапка и умная строка» 13.11.
   Цвета и радиусы — переменные кубиков (--navy, --line, --muted…), рядом запасное значение. Поле — 16 px (телефон
   не увеличивает страницу); список — во всю ширину поля, страница вбок не едет. */

[data-omni-slot].omni-slot { position: relative; }
[data-omni-slot] input[name="q"] { font-size: 16px; min-width: 0; }

.omni-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  max-height: min(70vh, 520px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg, #fff); color: var(--ink, #0f1729);
  border: 1px solid var(--line, #e6eaef); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .2);
  font-family: inherit; text-align: left;
}
.omni-drop[hidden] { display: none !important; }

.omni-group { border-bottom: 1px solid var(--line, #e6eaef); }
.omni-group:last-child { border-bottom: 0; }
.omni-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--omni-accent, var(--navy, #1c3d78));
}
.omni-gi {
  width: 19px; height: 19px; border-radius: 6px; flex: none; display: grid; place-items: center;
  font-size: 11px; line-height: 1; color: #fff; background: var(--omni-accent, var(--navy, #1c3d78));
}
.omni-group--auctions { --omni-accent: var(--sea, #0369a1); }
.omni-group--obv { --omni-accent: var(--violet, #7c3aed); }
.omni-group--sales { --omni-accent: var(--ok-ink, #15803d); }
.omni-group--vin { --omni-accent: var(--warn, #d97706); }

.omni-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 44px;
  color: inherit; text-decoration: none; cursor: pointer;
}
.omni-row:hover, .omni-row.is-active { background: var(--bg-2, #f5f7fa); }
.omni-row.is-active { box-shadow: inset 3px 0 0 var(--omni-accent, var(--navy, #1c3d78)); }
.omni-th {
  width: 46px; height: 34px; border-radius: 7px; flex: none;
  background-color: #dbe7f5; background-repeat: no-repeat; background-position: center; background-size: 40px 22px;
  background-image: linear-gradient(135deg, #e7f0f9, #cfe0f2);
}
.omni-th--auto {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 66'%3E%3Cpath d='M8 46c0-3 2-5 6-7l10-14c2-3 5-4 9-4h32c4 0 7 1 10 4l12 13 14 3c4 1 7 4 7 8v4c0 2-2 4-4 4H12c-2 0-4-2-4-4z' fill='%231c3d78'/%3E%3Ccircle cx='32' cy='52' r='8' fill='%230f1729'/%3E%3Ccircle cx='92' cy='52' r='8' fill='%230f1729'/%3E%3C/svg%3E"), linear-gradient(135deg, #e7f0f9, #cfe0f2);
}
.omni-th--moto {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 66'%3E%3Ccircle cx='28' cy='46' r='14' fill='none' stroke='%230f1729' stroke-width='6'/%3E%3Ccircle cx='92' cy='46' r='14' fill='none' stroke='%230f1729' stroke-width='6'/%3E%3Cpath d='M28 46l20-14h26l10 14' fill='none' stroke='%231c3d78' stroke-width='8' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"), linear-gradient(135deg, #e7f0f9, #cfe0f2);
}
.omni-th--vin {
  background-size: 22px 22px, auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5z' fill='%231c3d78'/%3E%3Cpath d='M8 12l3 3 5-6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), linear-gradient(135deg, #fef3c7, #fde68a);
}
.omni-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.omni-t1 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omni-t1 mark { background: #fde68a; color: inherit; font-weight: 700; border-radius: 3px; padding: 0 1px; }
.omni-t2 { font-size: 12px; color: var(--muted, #64748b); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.omni-go { flex: none; font-size: 15px; font-weight: 800; color: var(--navy-line, #cdd9ef); }
.omni-row.is-active .omni-go, .omni-row:hover .omni-go { color: var(--navy, #1c3d78); }

.omni-note { padding: 18px 16px; color: var(--muted, #64748b); font-size: 13px; overflow-wrap: anywhere; }
.omni-note--loading { padding: 14px 16px; }

@media (max-width: 720px) {
  .omni-drop { max-height: 65vh; border-radius: 12px; }
  .omni-row { padding: 9px 12px; gap: 10px; }
  .omni-head { padding: 9px 12px 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  .omni-row { transition: background-color .12s; }
}
