/* Поиск по справочнику (пакет SRCH). Не править style.css. */
.sp-search {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 8px;
  padding: 0 12px;
  min-height: 56px;
  z-index: 40;
  font-family: Roboto, system-ui, sans-serif;
}

.sp-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sp-search__field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #7eb8b4;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(13, 115, 119, 0.12);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sp-search__field:focus-within {
  border-color: #0D7377;
  box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.22), 0 2px 10px rgba(13, 115, 119, 0.12);
}

.sp-search__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  color: #0D7377;
  pointer-events: none;
}

.sp-search__icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.sp-search__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 8px 0 0;
  border: 0;
  background: transparent;
  color: #212121;
  font-size: 16px;
  line-height: 1.3;
  font-family: inherit;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.sp-search__input::placeholder {
  color: #5a7a7c;
  opacity: 1;
}

.sp-search__input[type="search"]::-webkit-search-decoration,
.sp-search__input[type="search"]::-webkit-search-cancel-button,
.sp-search__input[type="search"]::-webkit-search-results-button,
.sp-search__input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.sp-search__clear {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0D7377;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
}

.sp-search__clear[hidden] {
  display: none;
}

.sp-search__clear:focus-visible {
  outline: 2px solid #0D7377;
  outline-offset: -4px;
}

.sp-search__list {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% - 2px);
  z-index: 50;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #b7d5d9;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(13, 115, 119, 0.16);
  max-height: 320px;
  overflow-y: auto;
  box-sizing: border-box;
}

.sp-search__list[hidden] {
  display: none;
}

.sp-search__option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 16px;
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
  color: #212121;
}

.sp-search__option.is-active,
.sp-search__option:hover {
  background: #e8f5f6;
}

.sp-search__option.is-active {
  background: #d9f2f0;
}

.sp-search__name {
  flex: 1 1 auto;
  font-size: 16px;
  line-height: 1.35;
}

.sp-search__typ {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1.3;
  color: #0D7377;
  text-transform: lowercase;
}

.sp-search__empty {
  margin: 0;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.45;
  color: #212121;
}

.sp-search__empty a {
  color: #0D7377;
}

@media (max-width: 599px) {
  .sp-search {
    max-width: none;
    padding: 0 12px;
  }

  .sp-search__list {
    left: 12px;
    right: 12px;
  }
}
