/* AKB 2026-11-16: единый стиль подбора (Codex + правки Claude после проверки на живом сайте).
   Подключается в footer.tpl после akb_vehicle.css / akb_vehicle_ai.css. */
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter,
body #content .akb-vehicle-bar,
body #content .akb-vehicle-product .akb-vehicle-fit {
  box-sizing: border-box; min-width: 0; padding: 20px;
  border: 1px solid #eef0f4; border-radius: 16px; background-color: #fff; color: #142b45;
  box-shadow: 0 20px 50px rgba(20,43,69,.12); font-family: inherit;
}
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter { margin: 0 0 20px; height: auto; justify-content: flex-start; gap: 0; }
body:not(#akb-x) .homepage-hero__filter .afilter { margin: 0; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter h3 {
  margin: 0 0 16px; padding: 0; border: 0; background: transparent; color: #142b45;
  font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-align: left; overflow-wrap: anywhere;
}
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter .filter-switcher { flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding: 6px; margin: 0 0 16px; border-radius: 12px; background: #eef5ff; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter .filter-switcher-btn { flex: 1 1 auto; min-height: 44px; padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #142b45; font: inherit; line-height: 1.35; white-space: normal; cursor: pointer; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter .filter-switcher-btn.active { background: #fff; border-color: #e6e9ef; color: #142b45; font-weight: 600; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter .filter-vertical { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter :is(.filter-horizontal, .filter-vertical) > div { min-width: 0; width: 100%; margin: 0; }
body:not(#akb-x) .homepage-hero__filter .afilter .filter-horizontal,
body :is(#column-left, #column-right) .afilter .filter-horizontal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter .filter-label { margin: 0 0 6px; color: #526379; font-size: 14px; line-height: 1.4; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter :is(.filter_brand, .filter_model, .filter_year, .filter_engines)::after { content: none; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter select:not([multiple]):not([size]) {
  box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; height: 46px; padding: 0 40px 0 14px;
  border: 1px solid #e6e9ef; border-radius: 12px;
  background: #f2f4f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23142b45' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: #142b45; font-family: inherit; font-size: 16px; line-height: normal; box-shadow: none; -webkit-appearance: none; appearance: none; cursor: pointer;
}
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter select:disabled { background-color: #f2f4f7; color: #65758a; opacity: 1; cursor: not-allowed; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter select:focus { border-color: #2787f5; outline: 2px solid #2787f5; outline-offset: 2px; box-shadow: none; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter #filter_button,
body #content .akb-vehicle-bar__actions .akb-vehicle-results {
  box-sizing: border-box; min-height: 46px; height: auto; padding: 12px 18px; border: 1px solid #2787f5; border-radius: 12px;
  background: #2787f5; color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.35;
  text-transform: none; text-shadow: none; text-decoration: none; white-space: normal; box-shadow: none; cursor: pointer;
}
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter #filter_button { width: 100%; margin: 0; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter #filter_button:hover:not(:disabled),
body #content .akb-vehicle-bar__actions .akb-vehicle-results:hover { background: #1670d8; border-color: #1670d8; color: #fff; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter #filter_button:disabled { background: #eef0f4; border-color: #e6e9ef; color: #65758a; opacity: 1; cursor: not-allowed; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter .akb-ai-entry {
  box-sizing: border-box; width: 100%; min-height: 44px; margin: 10px 0 0; padding: 10px 16px;
  border: 1px solid #d6e6fb; border-radius: 12px; background: #eef5ff; color: #1670d8;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .15s;
}
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter .akb-ai-entry:hover { background: #e1eeff; }
body #content .akb-vehicle-bar__actions :is(.akb-vehicle-change, .akb-vehicle-clear),
body #content .akb-vehicle-fit__actions :is(a, button) { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #1670d8; font-family: inherit; text-decoration: underline; text-underline-offset: 3px; }
body #content .akb-vehicle-bar__name,
body #content .akb-vehicle-fit__heading { color: #142b45; font-size: 20px; line-height: 1.35; }
body #content .akb-vehicle-bar__icon { background: #eef5ff; color: #2787f5; }
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter :is(button, a):focus-visible,
body #content :is(.akb-vehicle-bar, .akb-vehicle-fit) :is(button, a):focus-visible { outline: 2px solid #2787f5; outline-offset: 3px; }
@media (max-width: 767px) {
  body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter,
  body #content .akb-vehicle-bar,
  body #content .akb-vehicle-product .akb-vehicle-fit { padding: 16px; }
  body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter .filter-horizontal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body #content .akb-vehicle-bar__actions { width: 100%; }
  body #content .akb-vehicle-bar__actions .akb-vehicle-results { flex-basis: 100%; width: 100%; }
}
@media (forced-colors: active) {
  body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter select:not([multiple]):not([size]) { -webkit-appearance: auto; appearance: auto; background-image: none; }
}
/* вкладка «По марке» единственная и ничего не переключает — скрываем везде, как уже было на главной и странице подбора */
body :is(#content, #column-left, #column-right, .homepage-hero__filter, #ocfilter) .afilter .filter-switcher { display: none !important; }
/* главная: тот же стиль, компактнее — блок стоит рядом с баннером */
body:not(#akb-x) .homepage-hero__filter .afilter { padding: 14px 16px; box-shadow: 0 12px 32px rgba(20,43,69,.10); }
body:not(#akb-x) .homepage-hero__filter .afilter h3 { margin: 0 0 10px; font-size: 17px; white-space: nowrap; }
body:not(#akb-x) .homepage-hero__filter .afilter :is(.filter-horizontal, .filter-vertical) { gap: 7px; }
body:not(#akb-x) .homepage-hero__filter .afilter select:not([multiple]):not([size]) { height: 38px; font-size: 15px; border-radius: 10px; }
body:not(#akb-x) .homepage-hero__filter .afilter #filter_button { min-height: 40px; padding: 8px 16px; margin-top: 4px; border-radius: 10px; font-size: 15px; }
body:not(#akb-x) .homepage-hero__filter .afilter .akb-ai-entry { min-height: 38px; margin-top: 7px; padding: 7px 14px; border-radius: 10px; font-size: 14px; }
