/* =========================
   Banner / Logo — FULL WIDTH
   ========================= */
.header_banner {
  margin-top: var(--header-top-h);
  background: linear-gradient(135deg, #1e1f24 0%, #2a2b33 100%);
  padding: 0;
  overflow: hidden;
}

.header_banner .logo {
  display: block;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.header_banner .logo:hover {
  transform: scale(1.005);
}

.header_banner .logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

/* =========================
   Search — FULL WIDTH
   ========================= */
.header_search {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px 15px;
  border-bottom: 3px solid #49b545;
}

.header_search .container-header {
  display: flex;
  justify-content: center;
}

.search-form {
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.search-wrapper {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.search-input-group {
  flex: 1;
  min-width: 250px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  color: #6c757d;
  font-size: 18px;
  pointer-events: none;
  z-index: 2;
}

.search-input {
  width: 100%;
  padding: 14px 50px 14px 62px;
  border: 2px solid #dee2e6;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fff;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: #49b545;
  box-shadow: 0 0 0 4px rgba(73, 181, 69, 0.1);
}

.search-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.search-clear:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.search-buttons {
  display: flex;
  gap: 10px;
}

.btn-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2bb42b 0%, #49b545 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #49b545 0%, #5cc55f 100%);
  box-shadow: 0 6px 20px rgba(73, 181, 69, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: #49b545;
  border: 2px solid #49b545;
}

.btn-secondary:hover {
  background: #49b545;
  color: #fff;
  transform: translateY(-2px);
}

.search-tips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 15px;
  background: rgba(73, 181, 69, 0.1);
  border-left: 3px solid #49b545;
  border-radius: 6px;
  font-size: 13px;
  color: #495057;
}

/* =========================
   Search Suggestions (вынесено из _header.tpl)
   ========================= */
.search-input-group { position: relative; }

#searchsuggestions {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: auto !important;
  width: 50% !important;
  max-width: 50% !important;
  min-width: 320px !important;
  z-index: var(--z-toast) !important;
  max-height: 480px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 12px 24px -4px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06) !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(73,181,69,.4) transparent;
}
#searchsuggestions.fs-ready { opacity: 1; pointer-events: auto; animation: fsDrop .2s cubic-bezier(.16,1,.3,1) both; }
@keyframes fsDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
#searchsuggestions::-webkit-scrollbar { width: 4px; }
#searchsuggestions::-webkit-scrollbar-track { background: transparent; }
#searchsuggestions::-webkit-scrollbar-thumb { background: rgba(73,181,69,.4); border-radius: 4px; }

#searchsuggestions a.eg-fs-item,
#searchsuggestions a.eg-fs-item:link,
#searchsuggestions a.eg-fs-item:visited,
#searchsuggestions a.eg-fs-item:hover,
#searchsuggestions a.eg-fs-item:active {
  all: unset !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  height: auto !important;
  clear: none !important;
  background: transparent !important;
  text-decoration: none !important;
  color: #1f2937 !important;
  border-bottom: 1px solid rgba(0,0,0,.06) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  transition: background .15s ease !important;
}
#searchsuggestions a.eg-fs-item:hover { background: rgba(34,197,94,.04) !important; }
#searchsuggestions a.eg-fs-item:last-of-type { border-bottom: none !important; }

#searchsuggestions .eg-fs-item__img {
  flex: 0 0 44px !important;
  width: 44px !important;
  height: 60px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 2px solid rgba(34,197,94,.18) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.08) !important;
  display: block !important;
  transition: border-color .2s, box-shadow .2s, transform .2s !important;
}
#searchsuggestions a.eg-fs-item:hover .eg-fs-item__img {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34,197,94,.1), 0 4px 8px rgba(0,0,0,.12) !important;
  transform: scale(1.04) !important;
}

#searchsuggestions .eg-fs-item__body { flex: 1 !important; min-width: 0 !important; display: flex !important; flex-direction: column !important; gap: 3px !important; }

#searchsuggestions .eg-fs-item__title,
#searchsuggestions a span.eg-fs-item__title,
#searchsuggestions a:hover span.eg-fs-item__title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  line-height: 1.4 !important;
  background: none !important;
  padding: 0 !important;
  transition: color .15s !important;
}
#searchsuggestions a.eg-fs-item:hover .eg-fs-item__title { color: #16a34a !important; }

#searchsuggestions .eg-fs-item__desc,
#searchsuggestions a span.eg-fs-item__desc,
#searchsuggestions a:hover span.eg-fs-item__desc {
  display: block !important;
  font-size: 11px !important;
  color: #6b7280 !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  background: none !important;
  padding: 0 !important;
  font-weight: 400 !important;
}

#searchsuggestions span.seperator { display: none !important; }
#searchsuggestions span.notfound {
  display: block !important; padding: 24px 20px !important;
  text-align: center !important; color: #9ca3af !important;
  font-size: 13px !important; background: transparent !important;
  height: auto !important;
}

#searchsuggestions .eg-fs-btns {
  display: flex !important;
  gap: 8px !important;
  padding: 10px 14px !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;
  background: linear-gradient(180deg, #fafafa, #f3f4f6) !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
}
#searchsuggestions .eg-fs-btns button {
  all: unset !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: center !important;
  box-sizing: border-box !important;
  line-height: 1.3 !important;
  transition: all .2s ease !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-appearance: none !important;
}
#searchsuggestions .eg-fs-btns button svg { flex-shrink: 0; width: 14px; height: 14px; pointer-events: none; }
#searchsuggestions .eg-fs-btn--search { background: linear-gradient(135deg, #22c55e, #16a34a) !important; color: #fff !important; box-shadow: 0 2px 8px rgba(34,197,94,.3) !important; }
#searchsuggestions .eg-fs-btn--search:hover { box-shadow: 0 4px 16px rgba(34,197,94,.4), 0 0 0 3px rgba(34,197,94,.1) !important; transform: translateY(-1px) !important; }
#searchsuggestions .eg-fs-btn--adv { background: #fff !important; color: #16a34a !important; box-shadow: inset 0 0 0 2px #22c55e, 0 1px 4px rgba(0,0,0,.06) !important; }
#searchsuggestions .eg-fs-btn--adv:hover { background: #16a34a !important; color: #fff !important; transform: translateY(-1px) !important; }

/* Dark theme */
[data-theme="dark"] #searchsuggestions {
  background: #1a1d25 !important;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.35), 0 12px 24px -4px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.07) !important;
}
[data-theme="dark"] #searchsuggestions a.eg-fs-item,
[data-theme="dark"] #searchsuggestions a.eg-fs-item:link,
[data-theme="dark"] #searchsuggestions a.eg-fs-item:visited { color: #e5e7eb !important; border-bottom-color: rgba(255,255,255,.06) !important; }
[data-theme="dark"] #searchsuggestions a.eg-fs-item:hover { background: rgba(34,197,94,.05) !important; }
[data-theme="dark"] #searchsuggestions .eg-fs-item__img { border-color: rgba(34,197,94,.22) !important; box-shadow: 0 2px 6px rgba(0,0,0,.3) !important; }
[data-theme="dark"] #searchsuggestions a.eg-fs-item:hover .eg-fs-item__img { border-color: #22c55e !important; box-shadow: 0 0 0 3px rgba(34,197,94,.15), 0 4px 8px rgba(0,0,0,.4) !important; }
[data-theme="dark"] #searchsuggestions .eg-fs-item__title,
[data-theme="dark"] #searchsuggestions a span.eg-fs-item__title { color: #e5e7eb !important; }
[data-theme="dark"] #searchsuggestions a.eg-fs-item:hover .eg-fs-item__title { color: #4ade80 !important; }
[data-theme="dark"] #searchsuggestions .eg-fs-item__desc,
[data-theme="dark"] #searchsuggestions a span.eg-fs-item__desc { color: #9ca3af !important; }
[data-theme="dark"] #searchsuggestions span.notfound { color: #6b7280 !important; }
[data-theme="dark"] #searchsuggestions .eg-fs-btns { background: linear-gradient(180deg, #1e2129, #181a21) !important; border-top-color: rgba(255,255,255,.06) !important; }
[data-theme="dark"] #searchsuggestions .eg-fs-btn--search { background: linear-gradient(135deg, #16a34a, #15803d) !important; box-shadow: 0 2px 8px rgba(22,163,74,.35) !important; }
[data-theme="dark"] #searchsuggestions .eg-fs-btn--adv { background: rgba(255,255,255,.04) !important; color: #4ade80 !important; box-shadow: inset 0 0 0 2px rgba(34,197,94,.6), 0 1px 4px rgba(0,0,0,.25) !important; }
[data-theme="dark"] #searchsuggestions .eg-fs-btn--adv:hover { background: #16a34a !important; color: #fff !important; }

@media (max-width: 768px) {
  #searchsuggestions { max-height: 380px !important; border-radius: 12px !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
  #searchsuggestions a.eg-fs-item { padding: 9px 12px !important; gap: 10px !important; }
  #searchsuggestions .eg-fs-item__img { flex: 0 0 36px !important; width: 36px !important; height: 50px !important; }
  #searchsuggestions .eg-fs-item__title,
  #searchsuggestions a span.eg-fs-item__title { font-size: 12px !important; -webkit-line-clamp: 1 !important; }
  #searchsuggestions .eg-fs-item__desc,
  #searchsuggestions a span.eg-fs-item__desc { display: none !important; }
  #searchsuggestions .eg-fs-btns { flex-direction: column !important; gap: 6px !important; }
}