* {
  box-sizing: border-box;
}

html,
body,
main {
  height: 100%;
  margin: 0;
}

body {
  background: #101418;
  color: #e8edf2;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  display: grid;
  grid-template-rows: auto 1fr;
}

header {
  align-items: end;
  background: #171d23;
  border-bottom: 1px solid #2a343f;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 16px;
}

h1 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

p {
  color: #a9b6c4;
  font-size: 14px;
  margin: 4px 0 0;
}

form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

label {
  color: #a9b6c4;
  display: grid;
  font-size: 12px;
  gap: 4px;
}

input {
  background: #0f1419;
  border: 1px solid #344250;
  border-radius: 6px;
  color: #f5f7fa;
  min-height: 36px;
  padding: 7px 9px;
  width: 150px;
}

button {
  background: #1d78d6;
  border: 0;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  min-height: 36px;
  padding: 0 14px;
}

#map {
  min-height: 0;
  width: 100%;
}

@media (max-width: 720px) {
  header {
    align-items: stretch;
    display: grid;
  }

  form {
    justify-content: stretch;
  }

  label,
  input,
  button {
    width: 100%;
  }
}
