/* Стили для поиска */
.search-wrapper {
  margin: 0 20px;
}

.searchbox-container {
  height: 38px;
  display: inline-flex;
  align-items: center;
}

.searchbutton,
.searchbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: background-color 0.3s ease;
  -moz-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  border-radius: 0;
  float: left;
  border: none;
  height: 38px;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
}

input[type="search"] {
  border-radius: 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  -webkit-appearance: none;
}

.searchbox {
  padding: 0 16px;
  width: 220px;
  border-radius: 10px 0 0 10px;
}

.searchbox:focus,
.searchbox:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.searchbox:focus + .searchbutton,
.searchbox:hover + .searchbutton {
  background-color: rgba(255, 255, 255, 0.2);
}

.searchbox::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.searchbox:-moz-placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.searchbox::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.searchbox:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.searchbox::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

.searchbutton {
  width: 42px;
  padding: 0;
  text-align: center;
  border-radius: 0 10px 10px 0;
  cursor: pointer;
}

.searchbutton:hover {
  background-color: var(--accent);
  color: #fff;
  
}

.searchbutton:active {
  background-color: var(--accent-dark);
  color: #fff;
}

.searchbutton i {
  font-size: 16px;
}

/* Адаптация для планшетов */
@media (max-width: 1080px) {
  .searchbox {
    width: 180px;
    padding: 0 12px;
  }
  
  .searchbutton {
    width: 38px;
  }
  
  .searchbox-container {
    height: 36px;
  }
  
  .searchbutton,
  .searchbox {
    height: 36px;
    font-size: 13px;
  }
}

/* Адаптация для мобильных */
@media (max-width: 860px) {
  .topbar-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .search-wrapper {
    order: 3;
    width: 100%;
    margin: 8px 0;
  }
  
  .searchbox-container {
    width: 100%;
  }
  
  .searchbox {
    width: calc(100% - 42px);
    flex: 1;
  }
  
  .topbar-left {
    order: 1;
  }
  
  .topbar-right {
    order: 2;
  }
}

@media (max-width: 720px) {
  .search-wrapper {
    margin: 6px 0;
  }
  
  .searchbox {
    padding: 0 12px;
    font-size: 13px;
  }
  
  .searchbutton {
    width: 38px;
  }
  
  .searchbox,
  .searchbutton {
    height: 34px;
  }
  
  .searchbox-container {
    height: 34px;
  }
}




.fa-search:hover{
  color: #ffd4a5;
}