.contacts-search {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(220px, 1fr) minmax(120px,.45fr) auto auto;
  gap: 12px;
  align-items: center;
}

.contacts-search input,
.contacts-search select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 42px 0 13px;
  border: 1px solid #bac7c7;
  border-radius: 0;
  background-color: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.contacts-search input {
  padding-right: 13px;
}

.contacts-search select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%),
    linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.contacts-search input:focus,
.contacts-search select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 107, 117, .12);
}

.contacts-search button,
.contacts-search .button {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 850px) {
  .contacts-search {
    grid-template-columns: 1fr;
  }

  .contacts-search button,
  .contacts-search .button {
    width: 100%;
  }
}
