.header_search {
  position: relative;
}

.header_search_panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(18, 31, 46, 0.08);
  box-shadow: 0 24px 60px rgba(18, 31, 46, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
  z-index: 30;
}

.header_search.is-open .header_search_panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header_search_form {
  display: block;
}

.header_search_label {
  display: block;
  margin-bottom: 10px;
  color: #12202f;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.header_search_field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header_search_input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(18, 31, 46, 0.14);
  background: #f8f4f1;
  color: #12202f;
  outline: none;
}

.header_search_input:focus {
  border-color: #bf2f38;
}

.header_search_submit {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #12202f;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 1024px) {
  .header_search_panel {
    position: fixed;
    top: 92px;
    left: 16px;
    right: 16px;
    width: auto;
  }
}

@media (max-width: 767px) {
  .header_search_field {
    flex-direction: column;
    align-items: stretch;
  }

  .header_search_submit {
    width: 100%;
  }
}
