.header-inner {
  gap: 22px;
}
.header #nav {
  gap: 20px;
}
.header-search-form {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 220px;
  height: 42px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe7e2;
  border-radius: 6px;
  background: #f8faf9;
}
.header-search-form:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px #087e8610;
}
.header-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 0 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.header-search-form input::placeholder {
  color: #7b8485;
  opacity: 1;
}
.header-search-submit {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
}
.header-search-submit:hover {
  background: #e9f2ef;
}
.header-search-submit svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
@media (min-width: 851px) and (max-width: 1050px) {
  .header-inner {
    gap: 16px;
  }
  .header #nav {
    gap: 16px;
  }
  .header-search-form {
    width: 180px;
  }
}
@media (max-width: 850px) {
  .header #nav {
    top: 100%;
    gap: 0;
  }
  .header-search-form {
    margin-left: auto;
  }
  .header .contact-btn {
    margin-left: 0;
  }
}
@media (max-width: 560px) {
  .header-inner {
    height: auto;
    min-height: 67px;
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 12px 0;
  }
  .header .brand {
    order: 0;
  }
  .header .contact-btn {
    order: 1;
    margin-left: auto;
  }
  .header .menu-btn {
    order: 2;
  }
  .header-search-form {
    order: 3;
    width: 100%;
    margin: 0;
  }
}


@media (min-width: 851px) {
  .header #nav {
    flex: 1;
    justify-content: center;
    margin-left: 0;
  }
}
