/* ============================================================
   Умный поиск: выпадающие подсказки и поиск в шапке
   ============================================================ */
.inzoi-sg-host { position: relative; }
.inzoi-sg {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1000;
  min-width: 300px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e3e9f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .16);
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  box-sizing: border-box;
}
.inzoi-sg[hidden] { display: none; }
.inzoi-sg.is-loading { opacity: .75; }
.inzoi-sg p { margin: 0; }
.inzoi-sg__head { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #8a94a6; }
.inzoi-sg__fixed { margin: 2px 4px 4px !important; padding: 8px 10px; border-radius: 10px; background: #fff8e6; font-size: 13px; color: #6b5310; }
.inzoi-sg__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 12px;
  color: #1f2433 !important;
  text-decoration: none !important;
}
.inzoi-sg__item:hover, .inzoi-sg__item.is-active { background: #f1f6fd; }
.inzoi-sg__thumb {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 52px; width: 52px; height: 52px;
  border-radius: 10px; overflow: hidden; background: #eef3f9; color: #b8c4d6;
}
.inzoi-sg__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inzoi-sg__thumb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.inzoi-sg__thumb i {
  position: absolute; right: 3px; bottom: 3px;
  padding: 1px 4px; border-radius: 5px; background: rgba(229, 57, 90, .95);
  color: #fff; font-size: 8.5px; font-style: normal; font-weight: 800;
}
.inzoi-sg__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: #eef5ff; color: #5b9bf0; }
.inzoi-sg__icon svg, .inzoi-sg__chip svg, .inzoi-sg__all svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inzoi-sg__txt { display: flex; flex-direction: column; min-width: 0; }
.inzoi-sg__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 14px; }
.inzoi-sg__title mark { padding: 0; background: none; color: #2e7bc4; }
.inzoi-sg__cat { margin-top: 2px; font-size: 12px; color: #8a94a6; }
.inzoi-sg__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 8px 6px; }
.inzoi-sg__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; background: #f1f6fd;
  color: #2e5f99 !important; font-size: 13px; font-weight: 700; text-decoration: none !important;
}
.inzoi-sg__chip span { color: #8a94a6; font-weight: 600; }
.inzoi-sg__chip:hover, .inzoi-sg__chip.is-active { background: #e1edfc; }
.inzoi-sg__all {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px; padding: 11px; border-top: 1px solid #eef1f6; border-radius: 0 0 10px 10px;
  color: #2e7bc4 !important; font-weight: 800; text-decoration: none !important;
}
.inzoi-sg__all span { padding: 1px 8px; border-radius: 999px; background: #eef5ff; font-size: 12px; }
.inzoi-sg__all:hover, .inzoi-sg__all.is-active { background: #f1f6fd; }
.inzoi-sg__empty { padding: 14px 12px; color: #667085; font-size: 13.5px; line-height: 1.5; }
.inzoi-sg__empty a { color: #2e7bc4; font-weight: 700; }

/* Поиск в шапке (компьютер) */
.inzl-nav-actions { position: relative; }
.inzl-search-pop {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1001;
  width: 560px;
  max-width: calc(100vw - 40px);
  padding: 10px;
  border: 1px solid #e3e9f3;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .18);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease;
}
.inzl-search-pop.is-on { opacity: 1; transform: none; }
.inzl-search-pop[hidden] { display: none; }
.inzl-search-pop form { position: relative; margin: 0; }
.inzl-search-pop form > svg { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; fill: none; stroke: #8a94a6; stroke-width: 2; stroke-linecap: round; pointer-events: none; z-index: 1; }
.inzl-search-pop input[type="search"] {
  width: 100%; height: 48px; margin: 0; padding: 0 14px 0 42px; box-sizing: border-box;
  border: 1px solid #e3e8f1; border-radius: 13px; background: #f7f9fc;
  font: inherit; font-size: 15.5px; color: #1f2433; outline: none; -webkit-appearance: none; appearance: none;
}
.inzl-search-pop input[type="search"]:focus { border-color: #83bbff; background: #fff; box-shadow: 0 0 0 3px rgba(131, 187, 255, .22); }
.inzl-search-pop .inzoi-sg { position: static; margin-top: 8px; padding: 2px; border: 0; box-shadow: none; max-height: 60vh; }
.inzl-search-pop__hint { margin: 8px 4px 2px; font-size: 12px; color: #9aa3b2; }
.inzl-search-pop__hint kbd { padding: 1px 6px; border: 1px solid #dfe6f0; border-radius: 5px; background: #f7f9fc; font: inherit; font-size: 11px; }

/* Мобильное меню: подсказки на всю ширину */
.inzl-mnav-search .inzoi-sg { min-width: 0; }

html.dark .inzoi-sg, html.dark .inzl-search-pop { background: #181b25; border-color: #2a2f3d; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
html.dark .inzoi-sg__item { color: #e7e9f2 !important; }
html.dark .inzoi-sg__item:hover, html.dark .inzoi-sg__item.is-active, html.dark .inzoi-sg__all:hover, html.dark .inzoi-sg__all.is-active { background: #20263a; }
html.dark .inzoi-sg__thumb { background: #232838; color: #4b5468; }
html.dark .inzoi-sg__icon { background: #1f2c42; color: #8fc2ff; }
html.dark .inzoi-sg__title mark { color: #8fc2ff; }
html.dark .inzoi-sg__chip { background: #1f2c42; color: #a9cfff !important; }
html.dark .inzoi-sg__fixed { background: #2e2a1b; color: #e8cf8a; }
html.dark .inzoi-sg__all { border-color: #262b38; color: #8fc2ff !important; }
html.dark .inzoi-sg__all span { background: #1f2c42; }
html.dark .inzl-search-pop input[type="search"] { background: #1f2230; border-color: #2c3140; color: #e7e9f2; }
html.dark .inzl-search-pop__hint kbd { background: #1f2230; border-color: #2c3140; }
@media (prefers-reduced-motion: reduce) { .inzl-search-pop { transition: none; } }

/* ---------- Страница поиска ---------- */
.inzoi-search-page { width: 100%; }
.inzoi-sp__head { margin: 6px 0 22px; }
.inzoi-sp__title { margin: 0 0 4px !important; font-size: 28px !important; font-weight: 800; line-height: 1.25; color: #1f2433; overflow-wrap: anywhere; }
.inzoi-sp__count { margin: 0 0 14px; font-size: 14px; color: #7a8798; }
.inzoi-sp__form { position: relative; display: flex; gap: 8px; max-width: 680px; margin: 0; }
.inzoi-sp__form > svg { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; fill: none; stroke: #8a94a6; stroke-width: 2; stroke-linecap: round; pointer-events: none; z-index: 1; }
.inzoi-sp__form .inzoi-sg-host, .inzoi-sp__form { flex: 1 1 auto; }
.inzoi-sp__form input[type="search"] {
  flex: 1 1 auto; width: 100%; height: 48px; margin: 0; padding: 0 14px 0 42px; box-sizing: border-box;
  border: 1px solid #e3e8f1; border-radius: 13px; background: #fff; font: inherit; font-size: 15.5px; color: #1f2433; outline: none;
  -webkit-appearance: none; appearance: none;
}
.inzoi-sp__form input[type="search"]:focus { border-color: #83bbff; box-shadow: 0 0 0 3px rgba(131, 187, 255, .22); }
.inzoi-sp__form button {
  flex: 0 0 auto; height: 48px; padding: 0 22px; border: 0; border-radius: 13px;
  background: #83bbff; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.inzoi-sp__form button:hover { background: #5aa3f5; }
.inzoi-sp__note { margin: 14px 0 0 !important; padding: 10px 14px; max-width: 680px; border-radius: 12px; background: #fff8e6; font-size: 14px; color: #6b5310; }
.inzoi-sp__empty { margin: 0 0 26px; padding: 22px 24px; border: 1px solid #e8edf4; border-radius: 18px; background: #fff; }
.inzoi-sp__empty p { margin: 0; color: #5f6679; font-size: 14.5px; line-height: 1.6; }
.inzoi-sp__empty .inzoi-sp__empty-title { margin-bottom: 6px; font-size: 18px; font-weight: 800; color: #1f2433; }
.inzoi-sp__h2 { margin: 26px 0 12px !important; font-size: 20px !important; font-weight: 800; color: #1f2433; }
.inzoi-sp__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.inzoi-sp__cats a { display: inline-flex; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid #e3e9f3; color: #2e5f99 !important; font-size: 14px; font-weight: 700; text-decoration: none !important; }
.inzoi-sp__cats a:hover { border-color: #83bbff; background: #f2f8ff; }
.inzoi-sp__cats a span { color: #9aa3b2; font-weight: 600; }
@media (max-width: 640px) {
  .inzoi-sp__title { font-size: 22px !important; }
  .inzoi-sp__form button { padding: 0 16px; }
}
html.dark .inzoi-sp__title, html.dark .inzoi-sp__h2, html.dark .inzoi-sp__empty .inzoi-sp__empty-title { color: #e7e9f2; }
html.dark .inzoi-sp__form input[type="search"] { background: #1f2230; border-color: #2c3140; color: #e7e9f2; }
html.dark .inzoi-sp__note { background: #2e2a1b; color: #e8cf8a; }
html.dark .inzoi-sp__empty, html.dark .inzoi-sp__cats a { background: #1b1e29; border-color: #2a2f3d; }
html.dark .inzoi-sp__empty p { color: #9aa3b8; }
html.dark .inzoi-sp__cats a { color: #a9cfff !important; }

/* Поле поиска каталога обрезало подсказки */
.arc-search.inzoi-sg-host { overflow: visible !important; z-index: 30; }

/* Сетка карточек на странице поиска */
.inzoi-search-results .inzoi-search-page .post-cards--vertical {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
@media (max-width: 560px) {
  .inzoi-search-results .inzoi-search-page .post-cards--vertical { grid-template-columns: 1fr; }
}


/* ============================================================
   08.11.2026: моды и статьи раздельно
   ============================================================ */
.inzoi-sp__tabs{display:flex;gap:6px;margin:4px 0 22px;padding:4px;background:#fff;border:1px solid #e5e9f2;border-radius:14px;width:max-content;max-width:100%}
.inzoi-sp__tabs a{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:10px;font-weight:700;font-size:14px;color:#46566b;text-decoration:none}
.inzoi-sp__tabs a span{font-size:12px;font-weight:700;color:#8a94a6;background:#f1f4f9;border-radius:999px;padding:2px 8px}
.inzoi-sp__tabs a.is-on{background:#eef4ff;color:#2e6bdb}
.inzoi-sp__tabs a.is-on span{background:#2e6bdb;color:#fff}
.inzoi-sp__arts-top{margin:0 0 26px}
.inzoi-sp__arts-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.inzoi-sp__arts-head a{font-size:14px;font-weight:700;color:#2e6bdb;text-decoration:none;white-space:nowrap}
.inzoi-sp__arts-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.inzoi-sp__arts-list{display:flex;flex-direction:column;gap:14px}
.inzoi-sp-art{display:grid;grid-template-columns:280px minmax(0,1fr);gap:0;overflow:hidden;background:#fff;border:1px solid #e5e9f2;border-radius:16px;text-decoration:none!important;color:inherit;transition:transform .2s,box-shadow .2s,border-color .2s}
.inzoi-sp-art:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(23,34,51,.08);border-color:#cfdcf3}
.inzoi-sp-art__img{display:block;aspect-ratio:16/9;background:#eef2f8;overflow:hidden}
.inzoi-sp-art__img img{width:100%;height:100%;object-fit:cover;display:block}
.inzoi-sp-art__ph{display:block;width:100%;height:100%;background:linear-gradient(135deg,#e6efff,#f3eaff)}
.inzoi-sp-art__body{display:flex;flex-direction:column;gap:7px;padding:16px 20px;min-width:0}
.inzoi-sp-art__cat{align-self:flex-start;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#2e6bdb;background:#eef4ff;border-radius:999px;padding:4px 9px}
.inzoi-sp-art__title{font-weight:800;font-size:17px;line-height:1.3;color:#172233}
.inzoi-sp-art__ex{font-size:14px;line-height:1.5;color:#5a6a80;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.inzoi-sp-art__date{margin-top:auto;font-size:12px;color:#8a94a6}
.inzoi-sp-art--compact{grid-template-columns:1fr}
.inzoi-sp-art--compact .inzoi-sp-art__body{padding:12px 14px}
.inzoi-sp-art--compact .inzoi-sp-art__title{font-size:14.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.inzoi-sp-art--compact .inzoi-sp-art__ex{display:none}
@media (max-width:1020px){.inzoi-sp__arts-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){
  .inzoi-sp-art{grid-template-columns:1fr}
  .inzoi-sp__arts-row{grid-template-columns:1fr 1fr;gap:10px}
  .inzoi-sp__tabs{width:100%}.inzoi-sp__tabs a{flex:1;justify-content:center;padding:9px 8px}
}
html.dark .inzoi-sp__tabs,html.dark .inzoi-sp-art{background:#1d2130;border-color:#2c3245}
html.dark .inzoi-sp__tabs a{color:#c3cbe0}html.dark .inzoi-sp__tabs a span{background:#262c3d;color:#9aa4bd}
html.dark .inzoi-sp__tabs a.is-on{background:#22304d;color:#8db7ff}
html.dark .inzoi-sp-art__title{color:#eef1f8}html.dark .inzoi-sp-art__ex{color:#a9b2c7}
html.dark .inzoi-sp-art__cat{background:#22304d;color:#8db7ff}
