/**
 * Умный поиск в шапке — вид как у композера консультанта.
 * Подключается в header.php с ?v=1, не зависит от кеша Bitrix.
 */
.header-search-wrap .bx-searchtitle { margin: 0; }
.header-search-wrap #title-search {
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  z-index: 1010;
  margin: 0 auto;
  padding: 0 16px 16px;
  max-width: 780px;
  width: 100%;
  box-sizing: border-box;
}
.header-search-wrap #title-search .search {
  display: none;
  overflow: hidden;
  position: static;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 16px;
  min-height: 120px;
  height: 120px;
  box-sizing: border-box;
  background: #fff !important;
  opacity: 1 !important;
  border: 1px solid #1d1d1b;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.header-search-wrap #title-search .search.active { display: block; }
.header-search-wrap #title-search .bx-input-group {
  display: flex !important;
  align-items: flex-end;
  gap: 12px;
  width: 100% !important;
  min-height: 96px;
  height: 96px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.header-search-wrap #title-search .bx-input-group-btn {
  flex: 0 0 auto;
  position: static !important;
  width: auto !important;
  min-width: 100px;
}
.header-search-wrap #title-search .bx-form-control {
  flex: 1 1 auto;
  align-self: flex-start;
  min-width: 0 !important;
  min-height: 44px;
  max-height: 160px;
  padding: 10px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #1d1d1b !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  -webkit-font-smoothing: antialiased;
}
.header-search-wrap #title-search .bx-form-control::placeholder { color: #6b6b6b; }
.header-search-wrap #title-search .bx-input-group-btn button {
  flex-shrink: 0;
  position: static !important;
  float: none !important;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  min-width: 100px;
  max-width: 100%;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  line-height: 44px;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-search-wrap #title-search .bx-input-group-btn button:hover { background: #1a1a1a !important; }
.header-search-form__hint {
  margin: 8px 0 0;
  padding: 0;
  font-size: 11px;
  color: #6b6b6b;
  line-height: 1.3;
}
@media (max-width: 975px) {
  .header-search-wrap #title-search {
    max-width: calc(100vw - 32px);
    padding: 0 16px 16px;
  }
}
@media (max-width: 767px) {
  .header-search-wrap #title-search {
    top: 100px;
    max-width: calc(100vw - 24px);
    padding: 0 12px 12px;
  }
}
